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

/* ── BG Orbs (decorative) ──────────────────────────────────── */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18;
}
.orb-1 { width: 500px; height: 500px; background: var(--violet); top: -200px; left: -100px; animation: orbFloat 12s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--teal);   bottom: -150px; right: -100px; animation: orbFloat 15s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: var(--indigo); top: 40%; left: 50%; animation: orbFloat 10s ease-in-out infinite 3s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,-20px)} 66%{transform:translate(-20px,30px)} }

/* ── 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 */
.coin-3d-wrap { width: 110px; height: 110px; perspective: 600px; }
.coin-3d {
  width: 110px; height: 110px; border-radius: 50%;
  box-shadow: 0 10px 40px rgba(124,58,237,.4), 0 0 0 2px rgba(124,58,237,.2);
  animation: coinFloat 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: 30px; font-weight: 800; color: var(--navy);
  letter-spacing: 1px;
}
.brand-payment { color: var(--violet); }
.brand-coin-name {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid rgba(12,35,64,.1);
  border-radius: 99px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--text2);
  box-shadow: var(--shadow-sm);
}
.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: 12px; 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; }

/* Role cards */
.role-cards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.role-card {
  width: 170px; background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px 14px 16px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  cursor: pointer; transition: all .3s;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.role-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-main);
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.role-card.gold::before { background: var(--grad-gold); }
.role-icon { font-size: 38px; }
.role-card-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--text-on-dark);
}
.role-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .8px;
  padding: 3px 10px; border-radius: 99px;
  font-family: var(--font-mono); 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: 9px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(79,70,229,.1); color: var(--indigo);
  border: 1px solid rgba(79,70,229,.2);
  font-family: var(--font-mono);
}

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

.auth-brand {
  background: var(--card);
  padding: 40px 32px;
  display: flex; flex-direction: column;
}
.auth-brand .brand-name { font-size: 26px; color: var(--text-on-dark); margin-top: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.feature-list div {
  font-size: 13px; color: var(--muted-dark);
  display: flex; align-items: center; gap: 8px;
}

.auth-form {
  background: var(--surface);
  padding: 40px 32px;
}
.auth-form h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.auth-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.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: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .2s;
}
.auth-tab.active { color: var(--violet); border-bottom-color: var(--violet); }

/* ── 2FA Screen ────────────────────────────────────────────── */
#screen-2fa { background: var(--bg); }
.twofa-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 32px; 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;
}
.pic-item {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  background: var(--bg2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; border: 2px solid transparent;
  transition: all .2s;
}
.pic-item.selected {
  border-color: var(--violet);
  background: rgba(124,58,237,.1);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

/* ── Seed Screen ───────────────────────────────────────────── */
.seed-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 32px; 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;
}
.seed-word {
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 8px; text-align: center;
  font-size: 12px; font-family: var(--font-mono);
}
.seed-num { font-size: 9px; color: var(--muted); display: block; }
.seed-val { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ── 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-mono); font-size: 10px;
  font-weight: 700; letter-spacing: 1px;
  color: var(--muted); padding: 0 16px 12px;
  text-transform: uppercase;
}
.kyc-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--text2);
  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: 10px; 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-mono); font-size: 9px;
  font-weight: 700; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 10px;
  text-transform: uppercase;
}

.kyc-risk-num { font-family: var(--font-display); font-size: 36px; font-weight: 800; }
.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: 11px; border-bottom: 1px solid rgba(12,35,64,.05);
}
.kyc-st-ok   { color: var(--success); font-weight: 600; font-size: 10px; }
.kyc-st-warn { color: var(--warning); font-weight: 600; font-size: 10px; }

.kyc-db-table {
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 8px 10px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10px; 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; }
}
