:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --card: #ffffff;
  --accent: #0b1f5b;
  --accent-strong: #1f4fa3;
  --text: #111827;
  --muted: #5f6b7a;
  --line: rgba(15, 23, 42, 0.12);
  --gold: #c9a85d;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; background: #fff;
  border-bottom: 1px solid var(--line); z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-family: "Times New Roman", serif; font-size: 18px; font-weight: 700;
}
.brand-logo {
  width: 30px; height: 30px; object-fit: contain; display: block;
}
.brand-name { font-size: 16px; color: var(--accent); white-space: nowrap; }
.nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--accent-strong); }
.auth-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: none; transition: all 0.2s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-copy h1 {
  font-size: 42px; line-height: 1.25; color: var(--accent);
  margin-bottom: 16px;
}
.hero-desc { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(11, 31, 91, 0.08); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.event-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #fff; font-size: 14px; margin-bottom: 24px;
}
.event-banner strong {
  padding: 3px 10px; background: var(--gold); color: var(--accent);
  border-radius: 6px; font-size: 12px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 32px; }
.hero-stats {
  display: flex; gap: 32px;
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 18px; color: var(--accent); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-card {
  background: #fff; border-radius: 16px; padding: 32px;
  box-shadow: 0 8px 40px rgba(11, 31, 91, 0.1);
  text-align: center; width: 100%; max-width: 400px;
}
.hero-card h3 { color: var(--accent); margin-bottom: 8px; }
.hero-card .big-rate { font-size: 56px; font-weight: 800; color: var(--accent); }
.hero-card .big-rate span { font-size: 24px; }
.hero-card p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-title {
  font-size: 28px; font-weight: 700; color: var(--accent);
  text-align: center; margin-bottom: 12px;
}
.section-desc {
  text-align: center; color: var(--muted); font-size: 15px;
  margin-bottom: 48px;
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(11, 31, 91, 0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 24px;
}
.card h3 { font-size: 17px; color: var(--accent); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

#reviews { padding: 60px 0; overflow: hidden; }
.reviews-header { text-align: center; margin-bottom: 32px; }
.reviews-header .section-desc { margin-bottom: 0; }
.reviews-slider-wrap { overflow: hidden; }
.reviews-slider {
  display: flex; gap: 24px;
  animation: reviewSlide 40s linear infinite;
}
.reviews-slider:hover { animation-play-state: paused; }
@keyframes reviewSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
  flex-shrink: 0; width: 320px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.review-text { font-size: 14px; line-height: 1.65; color: var(--text); margin-bottom: 16px; }
.review-author { font-size: 13px; color: var(--muted); }

.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.rate-table th { background: var(--accent); color: #fff; font-weight: 600; }
.rate-table tr:hover td { background: var(--bg-soft); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step { text-align: center; counter-increment: step; }
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
}
.step h4 { font-size: 15px; color: var(--accent); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

.coin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.coin-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.coin-card img { width: 48px; height: 48px; }
.coin-card h4 { font-size: 16px; }
.coin-card p { font-size: 13px; color: var(--muted); }

.calc-wrap {
  max-width: 600px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.calc-wrap label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.calc-wrap select, .calc-wrap input[type="number"] {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15px; margin-bottom: 16px;
  background: #fff;
}
.price-display { margin-bottom: 20px; }
.price-value { font-size: 22px; font-weight: 700; color: var(--accent); }
.price-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.calc-results {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.calc-results dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.calc-results dd { font-size: 18px; font-weight: 700; color: var(--accent); }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
.faq-item summary {
  font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; }

.site-footer {
  background: var(--accent); color: rgba(255,255,255,0.7);
  padding: 48px 0 32px; font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-contact { margin-top: 16px; font-size: 13px; line-height: 1.8; opacity: 0.95; }
.footer-contact p { margin: 0 0 4px 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }

.modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; padding: 32px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-box h2 { font-size: 22px; color: var(--accent); margin-bottom: 20px; }
.modal-close {
  float: right; background: none; border: none;
  font-size: 24px; color: var(--muted); cursor: pointer;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15px; background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-message { font-size: 13px; color: var(--danger); margin-top: 8px; }
.form-message.success { color: var(--success); }

.choice-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.choice-button {
  padding: 8px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.choice-button.is-active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.page-wrap { padding: 40px 0 80px; min-height: 70vh; }
.page-title { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 24px; }

.inquiry-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.inquiry-item strong { display: block; margin-bottom: 6px; }
.inquiry-item span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }

.loan-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.loan-summary {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; position: sticky; top: 80px;
  align-self: start;
}
.loan-summary h3 { font-size: 16px; color: var(--accent); margin-bottom: 16px; }
.loan-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loan-summary dt { font-size: 13px; color: var(--muted); }
.loan-summary dd { font-size: 14px; font-weight: 600; text-align: right; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th { background: var(--bg-soft); font-weight: 600; }
.admin-actions { display: flex; gap: 6px; }
.admin-bulk-actions { display: flex; gap: 8px; align-items: center; }
.admin-table input[type="checkbox"] { cursor: pointer; }
.admin-online-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.online-stat-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 28px; min-width: 140px; text-align: center;
}
.online-stat-value { display: block; font-size: 28px; font-weight: 700; color: var(--accent); }
.online-stat-label { font-size: 13px; color: var(--muted); }

.schedule-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.schedule-table th, .schedule-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.schedule-table th { background: var(--bg-soft); font-weight: 600; }

.deposit-address {
  background: var(--bg-soft); padding: 12px; border-radius: var(--radius);
  font-family: monospace; font-size: 13px; word-break: break-all;
  margin: 12px 0;
}
.deposit-qr { display: block; margin: 16px auto; width: 200px; height: 200px; }
.deposit-countdown {
  font-size: 32px; font-weight: 700; color: var(--accent);
  text-align: center; margin: 12px 0;
}

.helper { font-size: 14px; color: var(--muted); padding: 20px 0; }

.deposit-exchange-notice {
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text);
}
#deposit-modal .deposit-exchange-notice {
  font-size: 11px;
  padding: 10px 12px;
  line-height: 1.6;
}
.deposit-exchange-notice p {
  margin: 0;
}
.deposit-exchange-notice p + p {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
#deposit-modal .deposit-exchange-notice p + p {
  margin-top: 6px;
  padding-top: 6px;
}
.deposit-exchange-notice .deposit-notice-no {
  color: var(--muted);
}
.deposit-exchange-notice .deposit-notice-ok {
  color: var(--accent);
  font-weight: 600;
}
.is-hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

.legal-wrap { max-width: 720px; margin: 0 auto; padding: 40px 0 80px; }
.legal-wrap h1 { font-size: 24px; color: var(--accent); margin-bottom: 24px; }
.legal-wrap .legal-updated { font-size: 13px; color: var(--muted); margin: 24px 0 8px; }
.legal-wrap h2 { font-size: 18px; color: var(--accent); margin: 24px 0 12px; }
.legal-wrap p, .legal-wrap li { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 8px; }
.legal-wrap ul { padding-left: 20px; }

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 28px; }
  .hero-visual { display: none; }
  .loan-grid { grid-template-columns: 1fr; }
  .loan-summary { position: static; }
  .calc-results { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
