/* ═══════════════════════════════════════════════════════════
   DwinPayment v3.0 — screens.css
   Luxury · Role, Auth, 2FA, Seed, KYC
   ═══════════════════════════════════════════════════════════ */

.screen-layer {
  line-height: 1.6;
  font-size: 16px;
}

/* ── BG Orbs — champagne, amethyst, playful pop ──────────── */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .22;
}
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #c9a227 0%, #8b5cf6 70%); top: -220px; left: -120px; animation: orbFloat 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #2dd4bf 0%, #6366f1 65%); bottom: -160px; right: -100px; animation: orbFloat 17s ease-in-out infinite reverse; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, #ff6b9d 0%, #a78bfa 60%); top: 38%; left: 48%; animation: orbFloat 11s ease-in-out infinite 2s; opacity: .16; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(28px,-24px) scale(1.03)} 66%{transform:translate(-22px,26px) scale(.98)} }

/* ── Role Screen ───────────────────────────────────────────── */
#screen-role { padding: 20px 0; background: var(--bg); }
.role-wrap {
  width: 100%; max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  padding: 0 20px; position: relative; z-index: 1;
  animation: fadeIn .5s ease;
}

/* Logo coin — jewel spotlight */
.coin-3d-wrap { width: 118px; height: 118px; perspective: 700px; }
.coin-3d {
  width: 118px; height: 118px; border-radius: 50%;
  box-shadow:
    0 16px 48px rgba(26, 21, 40, 0.35),
    0 0 0 2px rgba(201, 162, 39, 0.45),
    0 0 40px rgba(139, 92, 246, 0.25),
    inset 0 2px 12px rgba(255, 255, 255, 0.15);
  animation: coinFloat 5.5s ease-in-out infinite;
  overflow: hidden; position: relative;
}
.coin-face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.coin-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.coin-shine {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, transparent 50%);
  pointer-events: none;
}

/* Brand */
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 600; color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.brand-payment {
  background: linear-gradient(135deg, #8b5cf6, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-coin-name {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 99px; padding: 7px 18px;
  font-size: 14px; font-weight: 600; color: var(--text2);
  box-shadow: var(--shadow-sm);
}
.brand-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-align: center;
  max-width: 28rem;
  line-height: 1.55;
  margin: 4px 0 0;
  letter-spacing: 0.01em;
}
.brand-tagline::before { content: '✦ '; color: var(--gold); opacity: .8; }
.brand-tagline::after { content: ' ✦'; color: var(--fun); opacity: .75; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(16,185,129,.6);
  animation: pulse 2s ease-in-out infinite;
}

/* Stats row */
.role-stats {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.role-stats span {
  font-size: 14px; color: var(--text2);
  background: var(--surface); padding: 5px 12px;
  border-radius: 99px; border: 1px solid rgba(12,35,64,.08);
  box-shadow: var(--shadow-sm);
}
.role-stats strong { color: var(--navy); font-weight: 700; }

/* First page — sign in / sign up hint */
.role-sign-hint {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-align: center;
  max-width: 22rem;
  line-height: 1.55;
  margin: 4px 16px 0;
}
.role-sign-hint strong { color: var(--navy); font-weight: 700; }

/* Small admin login — bottom of first screen only */
.role-admin-icon-btn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 55;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faf7f2, #ffffff);
  box-shadow: 0 4px 16px rgba(30, 26, 46, 0.1), 0 0 0 1px rgba(201, 162, 39, 0.28);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.role-admin-icon-btn:hover {
  opacity: 1;
  transform: scale(1.06);
}
.role-admin-icon-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Role cards */
.role-cards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.role-card {
  width: 176px;
  background: linear-gradient(165deg, #ffffff 0%, #faf7f2 50%, #f3efe8 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius-lg);
  padding: 24px 16px 18px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34, 1.25, .64, 1), box-shadow .35s, border-color .25s;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.role-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-main);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.role-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 20px 44px rgba(30, 26, 46, 0.12), 0 0 0 1px rgba(232, 213, 163, 0.35);
  border-color: rgba(232, 213, 163, 0.45);
}
.role-card:active { transform: translateY(-4px) scale(0.98); }
.role-card.gold::before {
  background: var(--grad-gold);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.5);
}
.role-icon { font-size: 38px; }
.role-card-title {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700; color: var(--navy);
  line-height: 1.35;
}
.role-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 99px;
  font-family: var(--font-body); text-transform: uppercase;
}
.role-badge.admin  { background: rgba(245,158,11,.2); color: #fbbf24; }
.role-badge.user   { background: rgba(6,182,212,.2); color: var(--teal); }
.role-badge.member { background: rgba(16,185,129,.2); color: var(--success); }

/* ISO badges */
.iso-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.iso-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(201, 162, 39, 0.12);
  color: #7c6a2e;
  border: 1px solid rgba(201, 162, 39, 0.28);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ── Auth Screen ───────────────────────────────────────────── */
#screen-auth { background: var(--bg); }
.auth-wrap {
  width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 162, 39, 0.12);
  margin: 20px; position: relative; z-index: 1;
}

.auth-brand {
  background: linear-gradient(160deg, #f8f4ff 0%, #eef8ff 45%, #faf7f2 100%);
  padding: 44px 36px;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(201, 162, 39, 0.18);
}
.auth-brand .brand-name { font-size: 26px; color: var(--navy); margin-top: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.feature-list div {
  font-size: 13px; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}

.auth-form {
  background: rgba(255, 252, 248, 0.97);
  backdrop-filter: blur(12px);
  padding: 44px 36px;
}
.auth-form h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600; color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.auth-subtitle { font-size: 15px; color: var(--text2); margin-bottom: 28px; line-height: 1.5; }

.auth-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border-bottom: 1px solid rgba(12,35,64,.1);
}
.auth-tab {
  flex: 1; padding: 10px; background: none; border: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .2s;
}
.auth-tab.active {
  color: #5b21b6;
  border-bottom-color: var(--gold);
  text-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}

.auth-signup-hint {
  text-align: center;
  font-size: 15px;
  color: var(--text2);
  margin-top: 18px;
  line-height: 1.55;
}
.auth-signup-hint .auth-signup-link {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
}
.auth-signup-hint .auth-signup-link:hover {
  text-decoration: underline;
}

/* ── 2FA Screen ────────────────────────────────────────────── */
#screen-2fa { background: var(--bg); }
.twofa-card {
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.18);
  padding: 36px; max-width: 440px; width: 100%;
  margin: 20px; box-shadow: var(--shadow-lg);
  text-align: center; position: relative; z-index: 1;
}
.pic-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; margin-bottom: 16px;
  min-height: 120px;
}
.pic-item {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  background: var(--bg2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  /* Emoji must not inherit Inter-only stack (invisible on some Windows setups) */
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", "Segoe UI Symbol", sans-serif;
  font-size: 28px;
  line-height: 1;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
  color: #1a1628;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pic-item.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(45,212,191,.1));
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  transform: scale(1.05);
}

/* ── Seed Screen ───────────────────────────────────────────── */
.seed-card {
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.18);
  padding: 36px; max-width: 500px; width: 100%;
  margin: 20px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.seed-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; margin-bottom: 20px;
  min-height: 120px;
}
.seed-word {
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 8px; text-align: center;
  font-size: 13px;
  font-family: var(--font-mono);
  line-height: 1.4;
  color: var(--text);
  border: 1px solid rgba(12, 35, 64, 0.08);
}
.seed-num { font-size: 11px; color: var(--text2); display: block; }
.seed-val {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--navy);
  word-break: break-word;
}

/* ── KYC Screen ────────────────────────────────────────────── */
#screen-kyc { background: var(--bg); padding: 0; align-items: stretch; }
.kyc-layout {
  display: flex; width: 100%; height: 100%;
}

.kyc-sidebar {
  width: 220px; background: var(--surface);
  border-right: 1px solid rgba(12,35,64,.08);
  padding: 20px 0; flex-shrink: 0;
  overflow-y: auto;
}
.kyc-sidebar-title {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 700; letter-spacing: 0.08em;
  color: var(--text2); padding: 0 16px 12px;
  text-transform: uppercase;
}
.kyc-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text2);
  line-height: 1.4;
  transition: background .2s;
}
.kyc-step:hover { background: var(--bg2); }
.kyc-step.active { background: rgba(124,58,237,.08); color: var(--violet); font-weight: 600; }
.kyc-step.done { color: var(--success); }
.kyc-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg2); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text2);
}
.kyc-step.active .kyc-step-num { background: var(--grad-main); color: #fff; }
.kyc-step.done .kyc-step-num { background: rgba(16,185,129,.15); color: var(--success); }

.kyc-main { flex: 1; overflow-y: auto; padding: 24px; }

.kyc-panel {
  width: 240px; background: var(--surface);
  border-left: 1px solid rgba(12,35,64,.08);
  padding: 20px 16px; flex-shrink: 0; overflow-y: auto;
}
.kyc-panel-section { margin-bottom: 20px; }
.kyc-panel-title {
  font-family: var(--font-body); font-size: 11px;
  font-weight: 700; letter-spacing: 0.08em;
  color: var(--text2); margin-bottom: 10px;
  text-transform: uppercase;
}

.kyc-risk-num {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
}
.kyc-risk-meter {
  height: 6px; background: rgba(12,35,64,.1);
  border-radius: 99px; overflow: hidden; margin: 8px 0 4px;
}
.kyc-risk-fill { height: 100%; border-radius: 99px; transition: width .8s ease; }

.kyc-compliance-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 6px 0;
  font-size: 13px; border-bottom: 1px solid rgba(12,35,64,.05);
  line-height: 1.4;
}
.kyc-st-ok   { color: var(--success); font-weight: 600; font-size: 12px; }
.kyc-st-warn { color: var(--warning); font-weight: 600; font-size: 12px; }

.kyc-db-table {
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 8px 10px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text2);
}

@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .kyc-panel { display: none; }
  .kyc-sidebar { width: 60px; }
  .kyc-step span:not(.kyc-step-num) { display: none; }
}
