* {
  box-sizing: border-box;
}

:root {
  --bg: #070d18;
  --bg2: #0a1323;
  --panel: #0f1a2f;
  --panel2: #16243d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f7ff;
  --muted: #97a9c8;
  --gold: #f0b90b;
  --gold2: #dca30a;
  --green: #2ebd85;
  --red: #f6465d;
  --amber: #f8c851;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #132344 0%, #09111f 40%, #070d18 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px;
}

/* HEADER */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-shell-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 26px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: #111;
  font-weight: 900;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.top-nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
}

.top-nav a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d9e4f7;
  transition: 0.2s ease;
}

.top-nav a:hover {
  background: rgba(240, 185, 11, 0.1);
  border-color: rgba(240, 185, 11, 0.25);
  color: var(--gold);
}

.top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #dbe7fb;
}

/* HERO */
.hero-exchange {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(16, 27, 49, 0.9) 0%, rgba(11, 20, 36, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.hero-left h1 {
  font-size: 52px;
  line-height: 1.04;
  margin: 16px 0;
}

.hero-left p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 720px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: #151515;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(240, 185, 11, 0.35);
}

.btn.small {
  padding: 9px 12px;
  font-size: 12px;
}

.btn.danger {
  background: linear-gradient(180deg, #ff6b78 0%, #d83d4b 100%);
  color: #fff;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-badges span {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d8e4f8;
  font-size: 13px;
}

.hero-terminal {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, #0a1220 0%, #0f1930 100%);
  border: 1px solid var(--line);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce7fa;
  padding: 4px 2px 16px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: var(--red);
}

.terminal-dot.yellow {
  background: var(--amber);
}

.terminal-dot.green {
  background: var(--green);
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.terminal-card,
.premium-card,
.card {
  background: linear-gradient(180deg, var(--panel) 0%, #16243d 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.terminal-card {
  padding: 18px;
}

.terminal-card span,
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.terminal-card strong,
.stat strong,
.big-balance {
  font-size: 28px;
  color: var(--gold);
}

.premium-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.premium-grid,
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-card,
.card {
  padding: 24px;
}

.premium-card h3,
.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.premium-card p,
.card p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 22px;
}

label {
  display: block;
  margin: 14px 0 8px;
  color: #d6e2f7;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #091220;
  color: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240, 185, 11, 0.45);
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.08);
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.alert.success {
  background: rgba(46, 189, 133, 0.14);
  border: 1px solid rgba(46, 189, 133, 0.3);
}

.alert.error {
  background: rgba(246, 70, 93, 0.14);
  border: 1px solid rgba(246, 70, 93, 0.3);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #bfcee6;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.pending {
  background: rgba(248, 200, 81, 0.16);
  color: var(--amber);
}

.badge.approved {
  background: rgba(46, 189, 133, 0.16);
  color: var(--green);
}

.badge.rejected,
.badge.failed {
  background: rgba(246, 70, 93, 0.16);
  color: var(--red);
}

.badge.expired {
  background: rgba(255, 255, 255, 0.08);
  color: #c9d5e8;
}

.wallet,
.code {
  display: block;
  word-break: break-all;
  padding: 13px;
  border-radius: 14px;
  background: #091220;
  color: var(--gold);
  border: 1px solid var(--line);
}

.inline-form {
  display: inline-block;
  margin-right: 6px;
}

.qr-wrap {
  margin-top: 18px;
}

.qr-wrap img {
  border-radius: 18px;
  background: #fff;
  padding: 8px;
}

.chart-card {
  margin-top: 18px;
}

.card-link {
  transition: 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 185, 11, 0.24);
}

.form-card {
  max-width: 720px;
}

@media (max-width: 1180px) {
  .hero-exchange {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .top-shell-inner {
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    padding: 18px;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .hero-left h1 {
    font-size: 38px;
  }

  .grid-2,
  .grid-4,
  .terminal-grid {
    grid-template-columns: 1fr;
  }
}
.top-nav a {
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: 0.2s ease;
}

.top-nav a:hover {
  background: rgba(240,185,11,0.12);
  border-color: rgba(240,185,11,0.3);
  color: #f0b90b;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-hero-left,
.dashboard-balance-card,
.dashboard-panel,
.premium-stat {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.dashboard-hero-left {
  padding: 28px;
}

.dashboard-hero-left h1 {
  margin: 14px 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.dashboard-hero-left p {
  color: var(--muted);
  max-width: 700px;
}

.dashboard-balance-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-balance-card span {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.dashboard-balance-card strong {
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}

.dashboard-balance-card small {
  margin-top: 12px;
  color: var(--muted);
}

.premium-stat {
  padding: 22px;
}

.dashboard-panel {
  padding: 24px;
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-row span {
  color: var(--muted);
}

.metric-row strong {
  color: var(--gold);
}

.quick-links {
  display: grid;
  gap: 12px;
}

.quick-link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: 0.2s ease;
}

.quick-link:hover {
  border-color: rgba(240,185,11,0.25);
  background: rgba(240,185,11,0.08);
  color: var(--gold);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(240,185,11,0.1);
  color: var(--gold);
  border: 1px solid rgba(240,185,11,0.2);
}

.mini-table {
  display: grid;
  gap: 12px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mini-row:last-child {
  border-bottom: none;
}

.mini-row strong {
  display: block;
}

.mini-row small {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
}