* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 420px;
  max-height: 96dvh;
}

.card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  max-height: 96dvh;
  display: flex;
  flex-direction: column;
}

.card-header {
  background: url('../images/bg-neon.png') center center / cover no-repeat;
  padding: 18px 24px;
  text-align: center;
}

.card-header .header-logo {
  width: 50px;
  height: auto;
  margin: 0 auto 6px;
  display: block;
}

.card-header h1 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.card-header p {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.card-body {
  padding: 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-body::-webkit-scrollbar {
  display: none;
}

/* 탭 */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
}

.tab-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: #1a1a1a;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn.active {
  background: #D22462;
  color: #fff;
}

.tab-btn:not(:last-child) {
  border-right: 1px solid #333;
}

/* 폼 */
.tab-content { display: none; }
.tab-content.active { display: block; }

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
}

.form-group input:focus {
  border-color: #D22462;
}

.form-group input::placeholder {
  color: #505050;
}

/* 개인정보 동의 */
.consent-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

.consent-item + .consent-item {
  margin-top: 10px;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e0e0e0;
  cursor: pointer;
  line-height: 1.4;
}

.consent-label strong {
  color: #D22462;
  font-weight: 700;
}

.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #D22462;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-detail {
  list-style: none;
  margin: 8px 0 10px;
  padding: 10px 12px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}

.consent-detail li {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
}

.consent-detail li span {
  display: inline-block;
  width: 60px;
  color: #666;
  font-weight: 600;
}

.consent-terms-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.consent-terms-toggle > summary::-webkit-details-marker { display: none; }

.consent-label {
  flex: 1 1 auto;
  min-width: 0;
}

.consent-expand {
  font-size: 12px;
  color: #D22462;
  flex-shrink: 0;
  white-space: nowrap;
}

.consent-expand::before {
  content: '▸ ';
}

.consent-terms-toggle[open] .consent-expand::before {
  content: '▾ ';
}

.consent-terms {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 10px 12px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  font-size: 11px;
  color: #aaa;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.consent-terms::-webkit-scrollbar {
  display: none;
}

.consent-terms h4 {
  font-size: 12px;
  color: #e0e0e0;
  font-weight: 700;
  margin: 10px 0 4px;
}

.consent-terms h4:first-of-type { margin-top: 6px; }

.consent-terms p { margin: 4px 0; }

.consent-terms ul,
.consent-terms ol {
  margin: 4px 0 4px 18px;
  padding: 0;
}

.consent-terms li { margin: 2px 0; }

.consent-terms strong { color: #e0e0e0; }

.consent-note {
  margin-top: 6px;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #D22462;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
  font-family: inherit;
}

.submit-btn:hover {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 결과 영역 */
.result-box {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.result-box.success {
  display: block;
  background: rgba(26, 188, 156, 0.1);
  color: #1ABC9C;
  border: 1px solid rgba(26, 188, 156, 0.25);
}

.result-box.error {
  display: block;
  background: rgba(210, 36, 98, 0.1);
  color: #ee445f;
  border: 1px solid rgba(210, 36, 98, 0.25);
}

/* 조회 결과 */
.lookup-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.lookup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 14px;
}

.lookup-row:last-of-type {
  border-bottom: none;
}

.lookup-label {
  color: #888;
  font-weight: 600;
  flex-shrink: 0;
  width: 70px;
}

.lookup-value {
  color: #fff;
  font-weight: 700;
}

.lookup-input {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  flex: 1;
  text-align: right;
  outline: none;
  font-family: inherit;
}

.lookup-input:focus {
  border-color: #D22462;
}

/* 인증 영역 */
#tab-lookup input[type="text"],
#tab-lookup input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
}

#tab-lookup input[type="text"]:focus,
#tab-lookup input[type="tel"]:focus {
  border-color: #D22462;
}

#tab-lookup input::placeholder {
  color: #505050;
}

.card-footer {
  padding: 12px 24px;
  background: #0a0a0a;
  text-align: center;
  font-size: 11px;
  color: #505050;
  border-top: 1px solid #1a1a1a;
}
