body {
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  padding: 20px;
  max-width: 700px;
  margin: 60px auto;
  align-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-items: center;
  justify-content: center;
}

.main_text {
  font-size: 0.8rem;
  color: #e8e8e8;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.grid button {
  margin: 0px 0 5px 0;
  display: flex;
  padding: 10px;
  font-size: 15px;
  background-color: #ffffff00;
  border: 0px solid #ccc;
  border-radius: 208px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: normal;
  width: 4rem;
  flex-direction: column;
  justify-content: flex-start;
  color: #e8e8e8;
}

.grid button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* 팝업 배경 (반투명 블랙) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 40, 0.8));
  z-index: 10000;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 팝업 본체 */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(100%, -50%);
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  padding: 32px 24px 24px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10001;
  max-height: 85vh;
  max-width: 500px;
  width: 90%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.popup.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

.popup::-webkit-scrollbar {
  width: 8px;
}

.popup::-webkit-scrollbar-track {
  background: #333;
  border-radius: 10px;
}

.popup::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00A859, #00b366);
  border-radius: 10px;
}

.popup::-webkit-scrollbar-thumb:hover {
  background: #009950;
}

.popup h3 {
  margin-top: 0;
  font-size: 20px;
  text-align: center;
  color: #e8e8e8;
}

.popup input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #333;
  color: #e8e8e8;
  box-sizing: border-box;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
}

.popup-buttons button {
  flex: 1;
  margin: 0 5px;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.popup-buttons button:first-child {
  background-color: #4caf50;
  color: white;
}

.popup-buttons button:first-child:hover {
  background-color: #43a047;
}

.popup-buttons button:last-child {
  background-color: #f44336;
  color: white;
}

.popup-buttons button:last-child:hover {
  background-color: #e53935;
}



.icon-main {
  /* height: 4rem; */
  display: flex;
  border: 0;
  justify-content: center;
  align-items: center;
  position: relative;
  /* top: -125px; */
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
}

.icon-lock {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100px;
  height: 100px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 16px;
  background: linear-gradient(145deg, #2a2a2a, #383838);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 168, 89, 0.3);
}

.icon-lock img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

#xxx_btn {
  border: 0;
  font-size: 1.8rem;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 300;
}

#xxx_btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
  color: #e8e8e8;
}

h1 {
  font-weight: 700;
  font-size: 1.4rem;
  color: #e8e8e8;
  margin-bottom: 24px;
  margin-top: 12px;
  text-align: center;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: #c8c8c8;
  font-size: 0.95rem;
}

strong {
  color: #ffffff;
  font-weight: 600;
}

em {
  color: #999;
  font-style: normal;
  font-size: 0.9rem;
}

b {
  color: #ff6b6b;
  font-weight: 600;
}

.highlight {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.link-box {
  margin-top: 12px;
}

.link-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 15px;
  background-color: #333;
  color: #e8e8e8;
}

.png_main {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* a.button {
    display: block;
    background-color: #03c75a;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
  } */

a.button:hover {
  background-color: #02b050;
}

.below-link {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  word-break: break-all;
  color: #999;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

.copy-button {
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background-color: #444;
  color: #e8e8e8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-button:hover {
  background-color: #555;
}






/* popup.css - 공통 CSS */



.container {
  position: relative;
  background: transparent;
  max-width: 100%;
  padding: 0;
}

ul {
  padding-left: 8px;
  list-style: none;
  margin: 20px 0;
}

li {
  margin-bottom: 20px;
  color: #c8c8c8;
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 32px;
  position: relative;
  transition: all 0.2s ease;
}

li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #00A859, #00b366);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

li:hover {
  color: #e8e8e8;
  transform: translateX(3px);
}

.notice-list li {
  color: #c8c8c8;
  font-size: 0.95rem;
}

.notice-list li strong {
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.important {
  color: #ff6b6b;
  font-weight: 600;
  background-color: rgba(255, 107, 107, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

a.button {
  display: inline-block;
  margin: 24px 0 15px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #00A859, #00b366);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 168, 89, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

a.button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

a.button:hover {
  background: linear-gradient(135deg, #00b366, #00c278);
  box-shadow: 0 8px 25px rgba(0, 168, 89, 0.4);
  transform: translateY(-2px);
}

a.button:hover:before {
  left: 100%;
}

a.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 168, 89, 0.3);
}

.copy-button {
  padding: 6px 10px;
  font-size: 13px;
  background-color: #03c75a;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
}

.copy-button:hover {
  background-color: #02a84e;
}

.inline-button {
  padding: 6px 12px;
  font-size: 13px;
  border: 1.5px solid #00A859;
  border-radius: 8px;
  background-color: transparent;
  color: #00A859;
  font-weight: 600;
  margin: 4px 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.inline-button:hover {
  background-color: #00A859;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 168, 89, 0.4);
}

.notice-list a {
  color: #00A859;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid #00A859;
  padding-bottom: 1px;
  transition: all 0.2s ease;
}

.notice-list a:hover {
  color: #00b366;
  border-bottom-color: #00b366;
}

.below-link {
  margin-top: 8px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 하우투 페이지 인포박스 */
.info-box {
  border: 2px solid #00A859;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 168, 89, 0.1), rgba(0, 168, 89, 0.05));
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

.info-main {
  font-size: 1.05rem;
  color: #e8e8e8;
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.info-sub {
  padding: 12px 16px;
  background-color: rgba(0, 168, 89, 0.1);
  border-radius: 10px;
  border-left: 4px solid #00A859;
}

.info-sub p {
  font-size: 0.9rem;
  color: #c8c8c8;
  margin-bottom: 8px;
  font-weight: 500;
}

.info-sub p:last-child {
  margin-bottom: 0;
}