/* Landing page, admin console, and KYC flow. Loads after styles.css. */

/* ---------------------------------------------------------------------------
   Landing page
   ------------------------------------------------------------------------ */

.topbar-public { background: var(--navy-900); }
.brand-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .15rem .4rem;
  border-radius: 5px;
  background: rgba(147, 180, 245, .2);
  color: #93b4f5;
}

.landing { padding: 0; max-width: none; }

.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #17416b 100%);
  color: #fff;
  padding: 4.5rem 1.5rem 5rem;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem;
  align-items: center;
}
.pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(147, 180, 245, .16);
  color: #93b4f5;
  margin-bottom: 1.1rem;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 1rem;
}
.hero-sub { font-size: 1.1rem; color: #bcd2e8; max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.1rem; }
.hero-note { font-size: .87rem; color: #8fb0d0; }

.hero-visual { position: relative; margin-bottom: 2.5rem; }
.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(3, 12, 26, .4);
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: #bcd2e8;
}
.hero-card-chip {
  font-size: .78rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}
.hero-card-balance {
  font-size: 2.35rem;
  font-weight: 680;
  letter-spacing: -.03em;
  margin: .5rem 0 1.25rem;
}
.hero-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .92rem;
}
.hero-row-icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  color: #bcd2e8;
}
.hero-row-icon svg { width: 16px; height: 16px; }
.hero-row-label { flex: 1; color: #e2e8f0; }
.hero-row-amount { font-variant-numeric: tabular-nums; color: #e2e8f0; }
.hero-row-amount.is-positive { color: #93b4f5; }

.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: -2.75rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  color: var(--ink);
  padding: .75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(3, 12, 26, .28);
}
.hero-badge svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.hero-badge strong { display: block; font-size: .9rem; }
.hero-badge span { font-size: .8rem; color: var(--ink-subtle); }

.section { padding: 4rem 1.5rem; }
.section-alt { background: #eef2f8; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-narrow { max-width: 760px; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.028em; }
.section-lead { color: var(--ink-muted); font-size: 1.05rem; max-width: 46rem; margin-top: .7rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: #0f766e;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.feature p { color: var(--ink-muted); font-size: .94rem; }

.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.step {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.step-number {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #93b4f5;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
}
.step h3 { font-size: 1rem; margin-bottom: .25rem; }
.step p { color: var(--ink-muted); font-size: .94rem; }

.security {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-muted);
  font-size: .96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stat-panel {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1.4rem;
}
.stat-value { display: block; font-size: 1.75rem; font-weight: 680; letter-spacing: -.02em; color: #93b4f5; }
.stat-label { font-size: .88rem; color: #a5c0dd; }

.faq { margin-top: 1.75rem; display: grid; gap: .7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-subtle);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: .7rem; color: var(--ink-muted); font-size: .95rem; }

.cta { background: var(--navy-900); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.028em; }
.cta p { color: #a5c0dd; margin: .7rem 0 1.6rem; }

.site-footer { background: #081526; color: #94a3b8; padding: 3rem 1.5rem 1.5rem; }
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
}
.brand-footer { color: #fff; margin-bottom: .8rem; }
.footer-note { font-size: .9rem; max-width: 30rem; line-height: 1.6; }
.footer-links { display: grid; gap: .55rem; align-content: start; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #93b4f5; text-decoration: underline; }
.footer-legal {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
}

/* ---------------------------------------------------------------------------
   Buttons & badges
   ------------------------------------------------------------------------ */

.btn-accent { background: #2563eb; color: #fff; }
.btn-accent:hover { background: #3b82f6; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-lg { min-height: 50px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-danger-ghost { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger-ghost:hover { background: var(--danger-soft); border-color: #fca5a5; }
.btn-ghost-dark { background: transparent; color: var(--ink-muted); border-color: transparent; }
.btn-ghost-dark:hover { background: #eef2f7; }

.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .02em;
  padding: .24rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-approved, .badge-active { background: var(--success-soft); color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rejected, .badge-suspended { background: var(--danger-soft); color: #991b1b; }
.badge-unverified { background: #e2e8f0; color: #475569; }

/* ---------------------------------------------------------------------------
   Admin console
   ------------------------------------------------------------------------ */

.topbar-admin { background: #0a1424; border-bottom: 2px solid #3b82f6; }
.avatar-admin { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat-card-attention { border-color: #fcd34d; background: #fffbeb; }
.stat-card-label { display: block; font-size: .86rem; color: var(--ink-subtle); }
.stat-card-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 670;
  letter-spacing: -.025em;
  margin-top: .3rem;
}

.tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab {
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--line);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tab:hover { border-color: #94a3b8; }
.tab.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab-count { display: inline-block; margin-left: .3rem; font-size: .8rem; opacity: .75; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th {
  text-align: left;
  font-size: .78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-subtle);
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafc; }
.cell-strong { font-weight: 600; }
.cell-sub { font-size: .84rem; color: var(--ink-subtle); margin-top: .1rem; }
.cell-right { text-align: right; }
.cell-numeric { font-variant-numeric: tabular-nums; }
.row-actions { display: inline-flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }

.search-bar { display: flex; gap: .55rem; margin-bottom: 1.25rem; max-width: 34rem; }
.search-bar .input { flex: 1; }

.detail-list { margin: 0; display: grid; gap: .85rem; }
.detail-list > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; }
.detail-list dt { font-size: .88rem; color: var(--ink-subtle); }
.detail-list dd { margin: 0; font-size: .94rem; }
.detail-list code { background: #eef2f7; padding: .12rem .4rem; border-radius: 4px; font-size: .88em; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.doc { border: 1px dashed #cbd5e1; border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.doc-label { display: block; font-size: .85rem; color: var(--ink-subtle); margin-bottom: .6rem; }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  font-weight: 550;
  text-decoration: none;
}
.doc-link:hover { text-decoration: underline; }
.doc-link svg { width: 17px; height: 17px; }
.doc-missing { font-size: .9rem; color: var(--ink-subtle); }

.decision-actions { display: grid; gap: .6rem; }

/* ---------------------------------------------------------------------------
   Forms & KYC
   ------------------------------------------------------------------------ */

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.label-optional { font-weight: 400; color: var(--ink-subtle); }
.form-section-title {
  font-size: .82rem;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-subtle);
  padding-bottom: .5rem;
  margin: 1.75rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; }

textarea.input { resize: vertical; min-height: 5.5rem; font-family: inherit; line-height: 1.5; }
.input-file { padding: .55rem .6rem; cursor: pointer; background: #f8fafc; }
.input-file::file-selector-button {
  margin-right: .75rem;
  padding: .4rem .8rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.input-file::file-selector-button:hover { background: #f1f5f9; }

.checkbox, .radio {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .92rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.checkbox input, .radio input { margin-top: .2rem; width: 17px; height: 17px; flex: none; cursor: pointer; }
.radio-group { border: 0; padding: 0; margin-bottom: 1.05rem; }
.radio-group legend { font-size: .88rem; font-weight: 600; padding: 0; margin-bottom: .5rem; }
.radio { margin-bottom: .5rem; }
.radio strong { font-weight: 600; }

.auth-card-wide { max-width: 520px; }
.demo-list { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; }

.kyc-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.kyc-banner-unverified { background: #fffbeb; border-color: #fcd34d; }
.kyc-banner-pending { background: #eff6ff; border-color: #bfdbfe; }
.kyc-banner-rejected { background: var(--danger-soft); border-color: #fecaca; }
.kyc-banner-title { font-weight: 650; font-size: 1rem; }
.kyc-banner-body { font-size: .92rem; color: var(--ink-muted); margin-top: .2rem; max-width: 44rem; }

.review-state {
  text-align: center;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.review-state h2 { font-size: 1.15rem; margin: .75rem 0 .4rem; }
.review-state p { color: var(--ink-muted); font-size: .94rem; max-width: 34rem; margin: 0 auto; }

.progress-list { list-style: none; margin: 0; padding: 0; }
.progress-step { display: flex; gap: .85rem; padding-bottom: 1.4rem; position: relative; }
.progress-step:last-child { padding-bottom: 0; }
.progress-step::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.progress-step:last-child::before { display: none; }
.progress-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}
.progress-step.is-done .progress-dot { background: var(--accent); border-color: var(--accent); }
.progress-step.is-current .progress-dot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .16); }
.progress-step strong { display: block; font-size: .93rem; }
.progress-step span { font-size: .85rem; color: var(--ink-subtle); }

.mini-title { font-size: .95rem; margin-bottom: .45rem; }
.mini-body { font-size: .9rem; color: var(--ink-muted); line-height: 1.6; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual { max-width: 460px; }
  .security { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .detail-list > div { grid-template-columns: 1fr; gap: .15rem; }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 1.25rem 4rem; }
  .section { padding: 2.75rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-badge { position: static; margin-top: 1rem; }
  .topbar-public .nav { display: none; }
  .kyc-banner { flex-direction: column; align-items: stretch; }
  .kyc-banner .btn { width: 100%; }
  .search-bar { flex-wrap: wrap; }
  .row-actions { flex-direction: column; align-items: stretch; }
  .stat-card-value { font-size: 1.5rem; }
}

.account-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 132px;
  border-style: dashed;
  border-color: #cbd5e1;
  box-shadow: none;
  color: var(--ink-muted);
}
.account-card-new:hover { border-color: var(--accent); color: var(--accent); background: #f8fafc; }
.account-card-plus {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2f7;
}
.account-card-new:hover .account-card-plus { background: var(--accent-soft); }
.account-card-plus svg { width: 19px; height: 19px; }
.account-card-new-label { font-size: .94rem; font-weight: 550; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.product h2 { font-size: 1.1rem; margin: .7rem 0 .4rem; }
.product p { color: var(--ink-muted); font-size: .94rem; }
.product-rate { margin-top: .6rem; font-weight: 600; color: var(--accent); font-size: .92rem; }
