/* ═══════════════════════════════════════════════════════════
   DailySolve — White Card Theme  v10
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:       #f4f6fb;
  --card:     #ffffff;
  --border:   #e8ecf4;
  --shadow:   0 2px 20px rgba(99,102,241,.07);
  --shadow2:  0 8px 40px rgba(99,102,241,.13);
  --primary:  #6366f1;
  --pri2:     #4f46e5;
  --pri-bg:   #eef0ff;
  --success:  #22c55e;
  --danger:   #ef4444;
  --warning:  #f59e0b;
  --info:     #06b6d4;
  --text:     #18213e;
  --muted:    #64748b;
  --radius:   14px;
  --nav-h:    62px;
  --side-w:   240px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter','Segoe UI',sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
code { background: #f0f2f9; padding: 2px 6px; border-radius: 5px; font-family: 'Courier New',monospace; font-size: .85em; color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 14px;
  box-shadow: 0 1px 0 var(--border);
}
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); padding: 6px; border-radius: 9px; flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg); }
.nav-hamburger svg { display: block; width: 22px; height: 22px; }
.nav-brand {
  font-size: 1.2rem; font-weight: 900; color: var(--primary);
  flex: 1; white-space: nowrap; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.nav-right { display: flex; align-items: center; gap: 6px; }

/* Profile dropdown */
.profile-dropdown { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--border);
  border-radius: 99px; padding: 5px 12px 5px 5px;
  cursor: pointer; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.profile-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.profile-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff;
}
.profile-name { font-size: .82rem; font-weight: 700; color: var(--text); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.profile-dropdown.open .chevron { transform: rotate(180deg); }
.profile-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow2); min-width: 220px; z-index: 500; overflow: hidden;
}
.profile-dropdown.open .profile-menu { display: block; }
.profile-menu-header { display: flex; align-items: center; gap: 12px; padding: 16px; }
.pm-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),#a855f7); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; color: #fff; flex-shrink: 0; }
.pm-name  { font-weight: 700; font-size: .875rem; }
.pm-email { font-size: .72rem; color: var(--muted); margin-top: 1px; word-break: break-all; }
.pm-divider { height: 1px; background: var(--border); }
.pm-bal { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: .82rem; color: var(--muted); }
.pm-bal strong { color: var(--primary); font-size: .9rem; }
.pm-link { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: .85rem; font-weight: 500; color: var(--text); transition: background .15s; text-decoration: none; }
.pm-link:hover { background: var(--pri-bg); text-decoration: none; }
.pm-logout { color: var(--danger) !important; }
.pm-logout:hover { background: #fff0f0 !important; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR + LAYOUT
   ═══════════════════════════════════════════════════════════ */
.app-wrap { display: flex; padding-top: var(--nav-h); min-height: 100vh; }
.sidebar {
  width: var(--side-w); flex-shrink: 0;
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  background: #fff; border-right: 1px solid var(--border);
  overflow-y: auto; z-index: 150; transition: transform .25s ease;
}
.sidebar-inner { padding: 12px 0 40px; display: flex; flex-direction: column; min-height: 100%; }
.sidebar-profile {
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.s-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
}
.s-name { font-weight: 700; font-size: .875rem; color: var(--text); }
.s-bal  { font-size: .75rem; color: var(--primary); font-weight: 600; margin-top: 2px; }
.sidebar-label {
  padding: 14px 18px 5px; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; color: var(--muted); font-size: .875rem; font-weight: 500;
  border-left: 3px solid transparent; transition: all .15s; text-decoration: none;
}
.sidebar-nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .65; }
.sidebar-nav a:hover { background: var(--pri-bg); color: var(--primary); text-decoration: none; }
.sidebar-nav a.active {
  background: var(--pri-bg); color: var(--primary);
  border-left-color: var(--primary); font-weight: 700;
}
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-logout { color: var(--danger) !important; margin-top: auto; }
.sidebar-logout:hover { background: #fff0f0 !important; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 149; }
.sidebar-overlay.show { display: block; }
.main-content { flex: 1; margin-left: var(--side-w); padding: 28px 24px; min-width: 0; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.card-title { font-size: .95rem; font-weight: 800; margin-bottom: 18px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card + .card { margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px; transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.stat-icon { font-size: 1.6rem; margin-bottom: 10px; }
.stat-val  { font-size: 1.6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-lbl  { font-size: .72rem; color: var(--muted); margin-top: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-sub  { font-size: .72rem; color: var(--success); margin-top: 4px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════ */
.page-header { margin-bottom: 22px; }
.page-header h2 { font-size: 1.4rem; font-weight: 900; }
.page-header p  { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-weight: 700; font-size: .78rem;
  color: var(--muted); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .04em;
}
.form-group .optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .9rem; color: var(--text); background: #fafbff;
  outline: none; transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); background: #fff; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint  { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.input-icon-wrap .form-control { padding-left: 40px; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px;
  font-weight: 700; font-size: .875rem; cursor: pointer; border: none;
  transition: all .18s; text-decoration: none; font-family: inherit; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover  { text-decoration: none; }
.btn-sm  { padding: 6px 13px; font-size: .8rem; border-radius: 8px; }
.btn-xs  { padding: 4px 10px; font-size: .75rem; border-radius: 7px; }
.btn-lg  { padding: 13px 24px; font-size: .95rem; }
.btn-full { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #7c5af7); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--pri2), #6d44f0); box-shadow: 0 6px 20px rgba(99,102,241,.35); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover  { background: #dc2626; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); box-shadow: none; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--pri-bg); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   ALERTS & BADGES
   ═══════════════════════════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .875rem; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #e0f2fe; color: #0c4a6e; border-color: #bae6fd; }
.alert-warning { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-info    { background: #e0f2fe; color: #0c4a6e; }
.badge-primary { background: var(--pri-bg); color: #5b21b6; }
.badge-muted   { background: #f1f5f9; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ═══════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 500px; }
th { background: #f8f9ff; color: var(--muted); font-weight: 700; padding: 11px 14px; text-align: left; border-bottom: 2px solid var(--border); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbff; }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   CODE BOX
   ═══════════════════════════════════════════════════════════ */
.code-box {
  background: #1a1b2e; color: #c9d1f4;
  border-radius: 10px; padding: 16px 18px;
  font-family: 'Courier New',monospace; font-size: .8rem;
  line-height: 1.7; overflow-x: auto; position: relative;
}
.code-box pre { margin: 0; white-space: pre-wrap; word-break: break-all; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 4px 10px; border-radius: 6px;
  cursor: pointer; font-size: .72rem; font-family: inherit;
}
.copy-btn:hover { background: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════════
   FOOTER (sidebar pages)
   ═══════════════════════════════════════════════════════════ */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-left: var(--side-w); padding: 14px 24px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text); }
.footer-domain { color: var(--primary); font-weight: 600; }
.footer-copy { font-size: .78rem; color: var(--muted); }
.footer-copy a { color: var(--primary); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(135deg, #f4f6fb 0%, #edf0ff 100%); }
.auth-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 20px 24px; width: 100%;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-logo h1 { font-size: 1.7rem; font-weight: 900; color: var(--text); letter-spacing: -.03em; }
.auth-logo p  { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.auth-card {
  width: 100%; max-width: 460px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow2);
  padding: 32px;
}
.auth-divider { text-align: center; position: relative; margin: 18px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: #fff; padding: 0 12px; position: relative; font-size: .78rem; color: var(--muted); font-weight: 600; }
.auth-links { margin-top: 18px; font-size: .8rem; color: var(--muted); text-align: center; }
.auth-links a { color: var(--primary); font-weight: 600; margin: 0 4px; }
.auth-page-footer {
  background: #fff; border-top: 1px solid var(--border);
  padding: 13px 20px; text-align: center;
  font-size: .76rem; color: var(--muted); width: 100%;
}
.auth-page-footer strong { color: var(--text); }
.btn-lg.btn-full { margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   CAPTCHA PAGE
   ═══════════════════════════════════════════════════════════ */
.captcha-body { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(135deg,#f0f3ff 0%,#f5f0ff 100%); }
.cap-layout { flex: 1; display: flex; position: relative; }
.cap-side { width: 180px; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: center; padding: 20px 10px; }
.cap-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.cap-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow2);
  padding: 36px 32px; max-width: 420px; width: 100%; text-align: center;
}
.cap-logo { font-size: 1.3rem; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.cap-title { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.cap-sub   { font-size: .82rem; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.cap-progress { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.cap-prog-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #a855f7); border-radius: 99px; transition: width .5s; }
.cap-top-banner { text-align: center; padding: 8px; background: rgba(255,255,255,.7); border-bottom: 1px solid var(--border); }
.cap-bottom-banner { text-align: center; padding: 8px; background: rgba(255,255,255,.7); border-top: 1px solid var(--border); display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cap-popup { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.55); align-items: center; justify-content: center; padding: 20px; }
.cap-popup.show { display: flex; }
.cap-popup-inner { background: #fff; border-radius: 16px; max-width: 400px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.cap-popup-body { padding: 20px; }
.cap-popup-close { float: right; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.timer-ring { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #a855f7); color: #fff; font-size: 1.4rem; font-weight: 900; margin: 10px auto 0; box-shadow: 0 4px 16px rgba(99,102,241,.3); }
.cf-wrap { display: flex; justify-content: center; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════ */
.hero-section { background: linear-gradient(135deg,#4947e5 0%,#7c3aed 60%,#a855f7 100%); padding: 90px 20px 70px; text-align: center; position: relative; overflow: hidden; }
.hero-section::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner  { position: relative; max-width: 740px; margin: 0 auto; }
.hero-badge  { display:inline-block; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); color:#fff; padding:5px 16px; border-radius:99px; font-size:.78rem; font-weight:700; letter-spacing:.04em; margin-bottom:22px; backdrop-filter:blur(6px); }
.hero-section h1 { font-size:clamp(1.8rem,5vw,3rem); font-weight:900; color:#fff; line-height:1.15; margin-bottom:16px; }
.hero-section h1 span { background:linear-gradient(90deg,#fde68a,#fbbf24); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero-section p { font-size:1rem; color:rgba(255,255,255,.85); max-width:500px; margin:0 auto 30px; line-height:1.7; }
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn-hero     { background:#fff; color:var(--primary); padding:13px 28px; border-radius:12px; font-weight:800; font-size:.95rem; text-decoration:none; transition:transform .2s,box-shadow .2s; box-shadow:0 4px 20px rgba(0,0,0,.15); }
.btn-hero:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.2); text-decoration:none; }
.btn-hero-out { background:rgba(255,255,255,.12); color:#fff; padding:13px 28px; border-radius:12px; font-weight:700; font-size:.95rem; text-decoration:none; border:1.5px solid rgba(255,255,255,.35); backdrop-filter:blur(6px); transition:background .2s; }
.btn-hero-out:hover { background:rgba(255,255,255,.22); text-decoration:none; }
.stats-bar { background:#fff; border-bottom:1px solid var(--border); padding:20px; }
.stats-bar-inner { max-width:800px; margin:0 auto; display:flex; justify-content:center; gap:48px; flex-wrap:wrap; }
.sbar-item { text-align:center; }
.sbar-val { font-size:1.6rem; font-weight:900; color:var(--primary); line-height:1; }
.sbar-lbl { font-size:.72rem; color:var(--muted); margin-top:3px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.home-section { padding:60px 20px; }
.home-inner   { max-width:960px; margin:0 auto; }
.sec-label { text-align:center; font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--primary); margin-bottom:8px; }
.sec-title { text-align:center; font-size:clamp(1.4rem,3vw,2rem); font-weight:900; margin-bottom:8px; }
.sec-sub   { text-align:center; color:var(--muted); font-size:.9rem; margin-bottom:40px; max-width:460px; margin-left:auto; margin-right:auto; }
.steps-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:18px; }
.step-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:24px 20px; text-align:center; box-shadow:var(--shadow); transition:transform .2s,box-shadow .2s; }
.step-card:hover { transform:translateY(-3px); box-shadow:var(--shadow2); }
.step-num  { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; background:linear-gradient(135deg,var(--primary),#a855f7); color:#fff; font-weight:900; border-radius:50%; margin-bottom:12px; font-size:.9rem; }
.step-card h3 { font-size:.92rem; font-weight:700; margin-bottom:6px; }
.step-card p  { font-size:.8rem; color:var(--muted); line-height:1.6; }
.feats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.feat-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:22px; box-shadow:var(--shadow); transition:transform .2s,box-shadow .2s; }
.feat-card:hover { transform:translateY(-3px); box-shadow:var(--shadow2); }
.feat-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:12px; }
.feat-card h3 { font-size:.9rem; font-weight:700; margin-bottom:6px; }
.feat-card p  { font-size:.8rem; color:var(--muted); line-height:1.6; }
.cta-section  { background:linear-gradient(135deg,#4947e5,#7c3aed); padding:60px 20px; text-align:center; }
.cta-section h2 { font-size:clamp(1.5rem,3vw,2rem); font-weight:900; color:#fff; margin-bottom:12px; }
.cta-section p  { color:rgba(255,255,255,.8); font-size:.95rem; margin-bottom:28px; }
.earn-tbl { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow:var(--shadow); }
.earn-tbl table { min-width:0; width:100%; }
.earn-tbl th { background:#f8f9ff; }
.fake-code { background:#1a1b2e; color:#c9d1f4; border-radius:10px; padding:14px 18px; font-family:'Courier New',monospace; font-size:.78rem; text-align:left; display:inline-block; max-width:100%; }
.fc-tag{color:#89b4fa} .fc-attr{color:#cba6f7} .fc-val{color:#a6e3a1} .fc-cm{color:#6c7086}
.home-footer { background:#0f172a; color:rgba(255,255,255,.45); text-align:center; padding:24px 20px; font-size:.8rem; }
.home-footer a { color:rgba(255,255,255,.65); margin:0 8px; }
.home-footer a:hover { color:#fff; }
.home-nav { background:transparent; border-bottom:1px solid rgba(255,255,255,.15); position:absolute; width:100%; z-index:100; top:0; }
.home-nav .nav-brand { color:#fff; }
.home-nav .nav-right a { color:rgba(255,255,255,.85); }
.home-nav .nav-right a:hover { background:rgba(255,255,255,.12); color:#fff; text-decoration:none; }
.home-nav .btn-nav { background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.3); color:#fff; padding:7px 16px; border-radius:9px; font-weight:700; font-size:.85rem; }

/* ═══════════════════════════════════════════════════════════
   PUBLIC PAGES (terms, privacy, contact)
   ═══════════════════════════════════════════════════════════ */
.pub-nav { background:#fff; border-bottom:1px solid var(--border); padding:0 24px; height:56px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:100; box-shadow:0 1px 0 var(--border); }
.pub-nav-brand { font-weight:900; font-size:1.1rem; color:var(--primary); text-decoration:none; }
.pub-nav-links a { color:var(--muted); font-size:.85rem; font-weight:500; margin-left:16px; text-decoration:none; }
.pub-nav-links a:hover { color:var(--primary); }
.pub-nav-links a.btn-sm { background:var(--primary); color:#fff; padding:6px 14px; border-radius:8px; }
.page-hero { background:linear-gradient(135deg,#4947e5,#7c3aed); padding:48px 20px 40px; text-align:center; color:#fff; }
.page-hero h1 { font-size:1.8rem; font-weight:900; margin-bottom:8px; }
.page-hero p  { opacity:.8; font-size:.9rem; }
.pub-content { max-width:780px; margin:40px auto; padding:0 20px 60px; }
.pub-content .card { padding:32px; }
.pub-content pre { white-space:pre-wrap; font-family:inherit; font-size:.9rem; line-height:1.8; color:var(--text); }
.pub-footer { background:#0f172a; color:rgba(255,255,255,.5); text-align:center; padding:24px 20px; font-size:.8rem; }
.pub-footer a { color:rgba(255,255,255,.65); margin:0 8px; }
.info-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:28px; box-shadow:var(--shadow); }
.info-item { display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }
.info-icon { width:40px; height:40px; border-radius:10px; background:var(--pri-bg); display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.info-label { font-size:.75rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px; }
.info-val { font-size:.9rem; font-weight:600; color:var(--text); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.mt-0{margin-top:0!important} .mt-1{margin-top:8px!important} .mt-2{margin-top:16px!important} .mt-3{margin-top:24px!important}
.mb-0{margin-bottom:0!important} .mb-1{margin-bottom:8px!important} .mb-2{margin-bottom:16px!important}
.text-muted{color:var(--muted)} .text-primary{color:var(--primary)} .text-success{color:var(--success)} .text-danger{color:var(--danger)}
.text-right{text-align:right} .text-center{text-align:center}
.fw-700{font-weight:700} .fw-800{font-weight:800}
.fs-sm{font-size:.78rem} .fs-xs{font-size:.72rem}
.w-100{width:100%}
.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}
.empty-state .ei{font-size:2.5rem;margin-bottom:10px}
.empty-state p{font-size:.875rem}
.divider{border:none;border-top:1px solid var(--border);margin:18px 0}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media(max-width:900px) {
  :root { --side-w: 200px; }
  .main-content { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
}
@media(max-width:680px) {
  .nav-hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 14px; }
  .site-footer { margin-left: 0; padding: 12px 16px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .form-row, .form-row-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px 16px; }
  .card { padding: 18px; }
  .page-header-row { flex-direction: column; align-items: flex-start; }
  table { min-width: 520px; }
  .cap-side { display: none; }
  .cap-card { padding: 28px 20px; }
  .profile-name { display: none; }
  .auth-card { padding: 24px 20px; }
  .steps-grid, .feats-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar-inner { gap: 24px; }
  .sbar-item { min-width: 80px; }
}
@media(max-width:400px) {
  .stats-grid, .steps-grid, .feats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .auth-card { padding: 20px 16px; }
}
