:root {
  --bg: #070916;
  --bg2: #10152b;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.12);
  --text: #f7f8ff;
  --muted: #a9b0cf;
  --line: rgba(255,255,255,.13);
  --gold: #f8c45c;
  --gold2: #d99823;
  --green: #30d158;
  --red: #ff453a;
  --blue: #0a84ff;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 26px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(248,196,92,.2), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(10,132,255,.22), transparent 28%),
    linear-gradient(135deg, #050713, #0c1023 54%, #090a12);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 15px; color: #111; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #fff1bf 46%, var(--gold2));
  box-shadow: 0 10px 30px rgba(248,196,92,.24);
}
.btn {
  border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; transition: .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #191300; background: linear-gradient(135deg, var(--gold), #ffe8a4); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.btn-danger { color: #fff; background: rgba(255,69,58,.9); }
.btn-full { width: 100%; }
.btn-lg { padding: 15px 22px; }
.btn-small { padding: 8px 12px; font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 16px; margin: 12px 0; border: 1px solid var(--line); }
.alert-success { background: rgba(48,209,88,.12); color: #bff8ce; }
.alert-error { background: rgba(255,69,58,.12); color: #ffd0cd; }
.alert-info { background: rgba(10,132,255,.12); color: #cde5ff; }
.app-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 96px; }
.topbar {
  position: sticky; top: 12px; z-index: 30; margin: 12px; padding: 12px;
  border-radius: 24px; display: flex; justify-content: space-between; align-items: center;
}
.menu-btn { color: var(--text); background: rgba(255,255,255,.1); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.drawer { display: none; position: fixed; right: 14px; top: 78px; z-index: 50; border-radius: 20px; padding: 10px; min-width: 190px; }
.drawer.open { display: grid; }
.drawer a { padding: 12px 14px; border-radius: 14px; color: var(--muted); }
.drawer a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.content { padding: 12px; }
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 40;
  width: min(492px, calc(100vw - 24px)); padding: 10px; border-radius: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.bottom-nav a { display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 20px; padding: 8px 0; border-radius: 18px; }
.bottom-nav span { font-size: 11px; }
.bottom-nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.dashboard-hero, .card, .stat-card {
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
}
.dashboard-hero {
  min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, rgba(248,196,92,.25), rgba(10,132,255,.13)), url('data:image/svg+xml,%3Csvg width="220" height="220" viewBox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" stroke="rgba(255,255,255,.12)"%3E%3Ccircle cx="110" cy="110" r="80"/%3E%3Ccircle cx="110" cy="110" r="50"/%3E%3C/g%3E%3C/svg%3E');
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.dashboard-hero h1 { margin: 8px 0; font-size: clamp(34px, 10vw, 52px); letter-spacing: -.06em; line-height: .9; }
.dashboard-hero p, .card p { color: var(--muted); }
.eyebrow { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }
.stat-card { margin-bottom: 0; min-height: 100px; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 19px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
h1, h2, h3 { margin: 0 0 10px; letter-spacing: -.035em; }
.list-stack { display: grid; gap: 10px; }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 18px; }
.list-row span, .list-row small { display: block; color: var(--muted); margin-top: 4px; }
.right { text-align: right; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; text-transform: capitalize; }
.badge-pending { background: rgba(248,196,92,.16); color: #ffe4a0; }
.badge-approved { background: rgba(48,209,88,.16); color: #a6f3b9; }
.badge-rejected { background: rgba(255,69,58,.16); color: #ffc5c1; }
.empty-state { padding: 22px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
input, textarea, select {
  width: 100%; color: var(--text); background: rgba(255,255,255,.08);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(248,196,92,.65); }
code { word-break: break-all; color: #ffe3a2; }
.deposit-grid { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.qr, .qr-placeholder { width: 150px; height: 150px; border-radius: 24px; background: #fff; object-fit: contain; padding: 10px; }
.qr-placeholder { color: #111; display: grid; place-items: center; font-weight: 900; }
.address-box { display: grid; gap: 10px; }
.address-box span { color: var(--muted); }
.profile-wallet { display: grid; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.06); margin-bottom: 16px; }
.profile-wallet span { color: var(--muted); }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td small { color: var(--muted); }
.inline-action { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.inline-action input, .inline-action select { width: auto; min-width: 120px; padding: 9px 10px; border-radius: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.search-form { display: flex; gap: 8px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(440px, 100%); border-radius: 32px; padding: 28px; }
.center-brand { margin-bottom: 24px; }
.switch-text { text-align: center; color: var(--muted); }
.switch-text a { color: var(--gold); font-weight: 800; }
.landing { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 60px; }
.landing-nav { border-radius: 28px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-actions { display: flex; gap: 10px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; padding: 74px 0; }
.hero-copy h1 { font-size: clamp(44px, 7vw, 82px); line-height: .92; letter-spacing: -.07em; margin: 18px 0; max-width: 850px; }
.hero-copy p { color: var(--muted); font-size: 19px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.06); }
.phone-preview { width: min(360px, 100%); justify-self: center; border-radius: 44px; padding: 20px; min-height: 620px; position: relative; }
.phone-status { width: 96px; height: 26px; background: #050713; border-radius: 0 0 18px 18px; margin: -20px auto 28px; }
.premium-card { background: linear-gradient(135deg, rgba(248,196,92,.9), rgba(255,255,255,.85)); color: #111; padding: 22px; border-radius: 28px; margin-bottom: 14px; }
.premium-card h2 { font-size: 34px; line-height: 1; }
.mini-card { border: 1px solid var(--line); border-radius: 24px; padding: 18px; margin-top: 12px; background: rgba(255,255,255,.07); display: flex; justify-content: space-between; }
.mini-card span { color: var(--muted); }
.admin-layout { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 16px; align-self: start; height: calc(100vh - 32px); margin: 16px; border-radius: 28px; padding: 16px; display: grid; align-content: start; gap: 8px; }
.admin-sidebar a:not(.brand) { padding: 12px 14px; border-radius: 16px; color: var(--muted); }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.admin-brand { margin-bottom: 18px; }
.admin-main { padding: 16px 16px 40px 0; min-width: 0; }
.admin-top { border-radius: 24px; padding: 14px 18px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.admin-top span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 0; }
  .hero-copy h1 { font-size: 48px; }
  .phone-preview { min-height: auto; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; grid-template-columns: repeat(3, 1fr); margin: 12px; }
  .admin-sidebar .brand { grid-column: 1 / -1; }
  .admin-main { padding: 0 12px 40px; }
  .admin-stats, .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .landing { width: min(100% - 22px, 100%); }
  .landing-nav { border-radius: 22px; }
  .nav-actions .btn { padding: 10px 12px; }
  .hero-actions { flex-direction: column; }
  .trust-row span { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .deposit-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-sidebar { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: flex-start; flex-direction: column; }
}
.app-disclaimer { color: var(--muted); font-size: 12px; text-align: center; padding: 4px 10px 18px; }


.brand-logo {
  width: 42px;
  height: 42px;
  display: inline-block;
  border-radius: 15px;
  object-fit: contain;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold), #fff1bf 46%, var(--gold2));
  box-shadow: 0 10px 30px rgba(248,196,92,.24);
  border: 1px solid rgba(255,255,255,.22);
}
.brand-logo.round { border-radius: 50%; }
.dashboard-hero { position: relative; overflow: hidden; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 210px;
  height: 210px;
  background: url('../../logo.png') center/contain no-repeat;
  opacity: .16;
  filter: drop-shadow(0 24px 45px rgba(0,0,0,.35));
}
.coin-widget-logo {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  object-fit: contain;
  padding: 5px;
  background: linear-gradient(135deg, rgba(248,196,92,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(255,255,255,.18);
}
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.doc-row p { margin: 0; }

.settings-divider {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.settings-divider p { margin: 0; color: var(--muted); }
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}
.checkbox-line input { width: auto; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
