*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface2: #f0f3fa;
  --border: #e2e8f0;
  --text: #0f172a;
  --text2: #64748b;
  --text3: #94a3b8;
  --primary: #0ea5e9;
  --primary2: #0284c7;
  --primary-bg: #e0f2fe;
  --emerald: #10b981;
  --emerald-bg: #d1fae5;
  --amber: #f59e0b;
  --amber-bg: #fef3c7;
  --rose: #f43f5e;
  --rose-bg: #ffe4e6;
  --sidebar-w: 230px;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 24px rgba(14, 165, 233, 0.15);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SIDEBAR ── */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.25s ease;
  height: 100vh;
}
#sidebar.collapsed {
  width: 60px;
}
.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
}
.sb-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}
.sb-logo-text {
  overflow: hidden;
  transition: opacity 0.2s;
}
.sb-logo-text h2 {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sb-logo-text p {
  font-size: 10px;
  color: var(--text3);
}
#sidebar.collapsed .sb-logo-text,
#sidebar.collapsed .nav-label,
#sidebar.collapsed .sb-section-label,
#sidebar.collapsed .collapse-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sb-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 16px 16px 6px;
}
nav {
  flex: 1;
  padding: 4px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 2px;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--bg);
  color: var(--text);
}
.nav-item.active {
  background: var(--primary-bg);
  color: var(--primary2);
  border: 1px solid rgba(14, 165, 233, 0.2);
}
.nav-item svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.sb-footer {
  padding: 8px;
  border-top: 1px solid var(--border);
}
.collapse-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text3);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.18s;
}
.collapse-btn:hover {
  background: var(--bg);
  color: var(--text2);
}
.collapse-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.25s;
}
#sidebar.collapsed .collapse-btn svg {
  transform: rotate(180deg);
}

/* ── MAIN WRAPPER ── */
#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s;
}
#sidebar.collapsed ~ #main {
  margin-left: 60px;
}

/* ── TOPBAR ── */
#topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 54px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
#topbar .tb-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 7px;
  transition: all 0.15s;
}
#topbar .tb-toggle:hover {
  background: var(--bg);
  color: var(--text2);
}
#topbar .tb-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.tb-spacer {
  flex: 1;
}
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary2);
}
.wallet-pill svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}
.notif-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  transition: all 0.15s;
}
.notif-btn:hover {
  background: var(--bg);
  color: var(--text2);
}
.notif-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid #fff;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ── PAGE PANELS ── */
.page {
  display: none;
  padding: 24px;
  animation: fadeUp 0.3s ease both;
}
.page.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-p {
  padding: 20px;
}
h1.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
p.page-sub {
  font-size: 13px;
  color: var(--text2);
  margin-top: 4px;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 60%, #f0fdf4 100%);
  padding: 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 70%
  );
}
.hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary2);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.hero h1 span {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text2);
  font-size: 13.5px;
  max-width: 420px;
  margin-top: 10px;
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    opacity 0.18s,
    box-shadow 0.18s;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.35);
  text-decoration: none;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.45);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary2);
}
.btn-primary svg,
.btn-outline svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── STAT GRID ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.stat-card:hover {
  box-shadow: var(--shadow-hover);
}
.stat-card .sc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stat-card .sc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.stat-card .sc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card .sc-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.stat-card .sc-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  margin-top: 10px;
}
.stat-card .sc-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.cyan-icon {
  background: var(--primary-bg);
  color: var(--primary2);
}
.emerald-icon {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.amber-icon {
  background: var(--amber-bg);
  color: var(--amber);
}
.rose-icon {
  background: var(--rose-bg);
  color: var(--rose);
}
.text-emerald {
  color: var(--emerald);
}
.text-rose {
  color: var(--rose);
}
.text-amber {
  color: var(--amber);
}
.text-primary {
  color: var(--primary2);
}

/* ── BOTTOM GRID ── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}
@media (max-width: 1000px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.view-all {
  font-size: 12px;
  color: var(--primary2);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.view-all:hover {
  text-decoration: underline;
}

/* ── NUMBER ROW ── */
.num-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 8px;
  transition: border-color 0.18s;
  cursor: default;
}
.num-row:hover {
  border-color: var(--primary);
}
.num-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.num-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary2);
  fill: none;
  stroke-width: 2;
}
.num-info {
  flex: 1;
  min-width: 0;
}
.num-info .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.num-info .sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-active {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.badge-used {
  background: var(--surface2);
  color: var(--text3);
}
.badge-expired {
  background: var(--rose-bg);
  color: var(--rose);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-active .badge-dot {
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.num-right {
  text-align: right;
}
.num-timer {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}
.num-timer svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── SERVICES LIST ── */
.svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.svc-row:last-child {
  border-bottom: none;
}
.svc-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.svc-count {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* ── WALLET MINI ── */
.wallet-mini {
  background: linear-gradient(135deg, var(--primary-bg), #eff6ff);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
}
.wallet-mini .wm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
}
.wallet-mini .wm-label svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary2);
  fill: none;
  stroke-width: 2;
}
.wallet-mini .wm-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px;
}
.wallet-mini .wm-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
}

/* ── BUY NUMBERS PAGE ── */
.search-panel {
  padding: 22px;
  margin-bottom: 20px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
@media (max-width: 800px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}
.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.country-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text2);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.18s;
  font-family: 'Space Grotesk', sans-serif;
}
.country-select-btn:hover,
.country-select-btn.open {
  border-color: var(--primary);
}
.country-select-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s;
}
.country-select-btn.open svg {
  transform: rotate(180deg);
}
.dropdown-wrap {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
  display: none;
}
.dropdown-menu.open {
  display: block;
}
.dropdown-search {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.dropdown-search input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
}
.dropdown-search input:focus {
  border-color: var(--primary);
}
.dropdown-search-wrap {
  position: relative;
}
.dropdown-search-wrap svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.dropdown-list {
  max-height: 200px;
  overflow-y: auto;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.12s;
}
.dropdown-item:hover {
  background: var(--bg);
}
.dropdown-item .di-prefix {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text3);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.svc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 9.5px;
  color: var(--text3);
  transition: all 0.15s;
  font-family: 'Space Grotesk', sans-serif;
}
.svc-btn:hover {
  border-color: var(--primary);
  color: var(--text2);
  background: var(--primary-bg);
}
.svc-btn.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary2);
  font-weight: 600;
}
.svc-btn .svc-emoji {
  font-size: 18px;
  line-height: 1;
}
.find-btn {
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  transition:
    opacity 0.18s,
    box-shadow 0.18s;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.3);
}
.find-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}
.find-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.find-btn svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* Number results */
.results-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.tag-badge {
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--surface2);
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  border: 1px solid var(--border);
}
.num-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .num-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .num-results-grid {
    grid-template-columns: 1fr;
  }
}
.num-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.num-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.num-card.unavail {
  opacity: 0.5;
}
.nc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.nc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nc-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text3);
}
.nc-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nc-meta svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.nc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nc-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.buy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity 0.15s;
}
.buy-btn:hover {
  opacity: 0.9;
}
.buy-btn.bought {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.buy-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.buy-btn.bought svg {
  stroke: var(--emerald);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary2);
  fill: none;
  stroke-width: 2;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.empty-state p {
  font-size: 12.5px;
  color: var(--text3);
  margin-top: 5px;
}

/* ── HISTORY PAGE ── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.sum-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.sum-card .sum-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.sum-card .sum-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-input-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 0.18s;
}
.search-input:focus {
  border-color: var(--primary);
}
.filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text3);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.15s;
  text-transform: capitalize;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary2);
}
.filter-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: transparent;
  color: #fff;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.history-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  vertical-align: middle;
}
.history-table tr:last-child td {
  border-bottom: none;
}
.history-table tr:hover td {
  background: var(--bg);
}
.order-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text3);
}
.num-cell .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.num-cell .c {
  font-size: 10px;
  color: var(--text3);
  margin-top: 1px;
}
.svc-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sms-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--emerald-bg);
  color: var(--emerald);
  padding: 2px 7px;
  border-radius: 5px;
}
.no-sms {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.no-sms svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.price-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary2);
}
.date-cell .d {
  font-size: 12px;
  color: var(--text);
}
.date-cell .t {
  font-size: 10px;
  color: var(--text3);
}
.table-wrap {
  overflow-x: auto;
}
.no-results {
  text-align: center;
  padding: 48px;
  color: var(--text3);
  font-size: 13px;
}

/* ── SHOP PAGE ── */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: var(--shadow);
}
.cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary2);
}
.cart-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary2);
  fill: none;
  stroke-width: 2;
}
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.cart-count.show {
  display: flex;
}
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pc-emoji {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.pc-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.product-badge {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pb-bestseller {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.pb-hot {
  background: var(--rose-bg);
  color: var(--rose);
}
.pb-popular {
  background: var(--amber-bg);
  color: var(--amber);
}
.pb-sale {
  background: var(--primary-bg);
  color: var(--primary2);
}
.pb-save {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.pc-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}
.pc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 3px;
  line-height: 1.35;
}
.pc-desc {
  font-size: 12px;
  color: var(--text3);
  margin-top: 6px;
  line-height: 1.55;
  flex: 1;
}
.pc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
}
.pc-rating .star {
  color: var(--amber);
  font-size: 13px;
}
.pc-rating .rv {
  font-weight: 600;
  color: var(--amber);
}
.pc-rating .cnt {
  color: var(--text3);
}
.pc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pc-price .main {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pc-price .orig {
  font-size: 12px;
  color: var(--text3);
  text-decoration: line-through;
}
.add-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity 0.15s;
}
.add-btn:hover {
  opacity: 0.9;
}
.add-btn.added {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.add-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.add-btn.added svg {
  stroke: var(--emerald);
}

/* ── WALLET PAGE ── */
.wallet-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 100%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 36px;
  margin-bottom: 20px;
}
.wallet-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.12),
    transparent 70%
  );
}
.wh-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.wh-label svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary2);
  fill: none;
  stroke-width: 2;
}
.wh-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 52px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px;
}
.wh-sub {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
}
.wh-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.topup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .topup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.topup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow);
}
.topup-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.topup-card .ta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topup-card .ts {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}
.tx-list {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: background 0.15s;
}
.tx-row:last-child {
  border-bottom: none;
}
.tx-row:hover {
  background: var(--bg);
}
.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tx-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.tx-credit {
  background: var(--emerald-bg);
  color: var(--emerald);
}
.tx-debit {
  background: var(--rose-bg);
  color: var(--rose);
}
.tx-info {
  flex: 1;
}
.tx-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.tx-meta {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.tx-meta svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.tx-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
}
.tx-plus {
  color: var(--emerald);
}
.tx-minus {
  color: var(--rose);
}

/* ── DEPOSIT PAGE ── */
.deposit-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.dep-method {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.dep-method:hover {
  border-color: var(--primary);
}
.dep-method.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.dep-method-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.dep-method-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.dep-method-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.dep-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dep-amount {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.dep-amount:hover {
  border-color: var(--primary);
}
.dep-amount.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.da-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.da-bonus {
  font-size: 10px;
  color: var(--emerald);
  font-weight: 600;
  margin-top: 4px;
}
.dep-custom {
  margin-top: 12px;
}
.dep-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.dep-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dep-row:last-of-type {
  border-bottom: none;
}
.dep-row.total {
  border-top: 2px solid var(--primary);
  margin-top: 8px;
  padding-top: 14px;
}
.dep-label {
  font-size: 13px;
  color: var(--text2);
}
.dep-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ── PROFILE PAGE ── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-info h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.profile-info p {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}
.profile-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.profile-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-section h3 svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary2);
  fill: none;
  stroke-width: 2;
}
.pf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pf-row:last-child {
  border-bottom: none;
}
.pf-label {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}
.pf-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.pf-edit-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.15s;
}
.pf-edit-btn:hover {
  border-color: var(--primary);
  color: var(--primary2);
}
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.toggle-switch.on {
  background: var(--primary);
}
.toggle-switch.on::after {
  transform: translateX(18px);
}

/* ── AUTH PAGES ── */
.auth-wrapper {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.auth-wrapper.active {
  display: flex;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 40px 36px;
  animation: fadeUp 0.35s ease both;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.auth-logo .sb-logo-icon {
  width: 40px;
  height: 40px;
}
.auth-logo h2 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 24px;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 0.18s;
}
.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.auth-input::placeholder {
  color: var(--text3);
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  padding: 2px;
  display: flex;
}
.auth-input-wrap .toggle-pw:hover {
  color: var(--text2);
}
.auth-input-wrap .toggle-pw svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12px;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
}
.auth-check input {
  accent-color: var(--primary);
}
.auth-link {
  color: var(--primary2);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
.auth-link:hover {
  text-decoration: underline;
}
.auth-submit {
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition:
    opacity 0.18s,
    box-shadow 0.18s;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.3);
  margin-bottom: 16px;
}
.auth-submit:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}
.auth-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--text3);
}
.auth-footer a {
  color: var(--primary2);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-btns {
  display: flex;
  gap: 10px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.18s;
}
.social-btn:hover {
  border-color: var(--primary);
  background: var(--bg);
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.pw-strength {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition:
    width 0.3s,
    background 0.3s;
}
.auth-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}
.auth-success.show {
  display: block;
}
.check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.check-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--emerald);
  fill: none;
  stroke-width: 2;
}
.auth-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-success p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* ── MOBILE RESPONSIVE ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
}
.mobile-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 230px !important;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
  }
  #sidebar.mobile-open {
    transform: translateX(0);
  }
  #sidebar.collapsed {
    width: 230px !important;
  }
  #sidebar.collapsed .sb-logo-text,
  #sidebar.collapsed .nav-label,
  #sidebar.collapsed .sb-section-label,
  #sidebar.collapsed .collapse-label {
    opacity: 1;
    width: auto;
    overflow: visible;
  }
  #main {
    margin-left: 0 !important;
  }
  .page {
    padding: 16px;
  }
  h1.page-title {
    font-size: 18px;
  }
  .hero {
    padding: 24px 20px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 12.5px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card .sc-value {
    font-size: 20px;
  }
  .stat-card .sc-icon {
    width: 32px;
    height: 32px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .num-results-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-wrap {
    min-width: unset;
  }
  .filter-btns {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  /* Responsive table: stack rows as cards on mobile */
  .history-table thead {
    display: none;
  }
  .history-table,
  .history-table tbody,
  .history-table tr,
  .history-table td {
    display: block;
    width: 100%;
  }
  .history-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
  }
  .history-table tr:hover td {
    background: transparent;
  }
  .history-table td {
    padding: 4px 0;
    border-bottom: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .history-table td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    flex-shrink: 0;
    margin-right: 10px;
  }
  .no-results {
    display: block !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .shop-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-filters .search-input-wrap {
    max-width: 100% !important;
  }
  .wallet-hero {
    padding: 24px 20px;
  }
  .wh-amount {
    font-size: 36px;
  }
  .wh-actions {
    flex-direction: column;
  }
  .wh-actions .btn-primary,
  .wh-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .topup-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tx-row {
    padding: 10px 14px;
    gap: 10px;
  }
  .tx-name {
    font-size: 12px;
  }
  .tx-meta {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .tx-amount {
    font-size: 12px;
  }
  .deposit-methods {
    grid-template-columns: 1fr;
  }
  .dep-amounts {
    grid-template-columns: 1fr 1fr;
  }
  .dep-custom {
    flex-direction: column;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-grid {
    grid-template-columns: 1fr !important;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .social-btns {
    flex-direction: column;
  }
  .num-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .num-right {
    margin-left: auto;
  }
  .wallet-pill {
    padding: 5px 8px;
    font-size: 11px;
  }
  .wallet-pill svg {
    width: 12px;
    height: 12px;
  }
  #topbar {
    padding: 0 12px;
  }
  .sb-footer .collapse-btn {
    display: none;
  }
  .wallet-mini .wm-amount {
    font-size: 26px;
  }
  .svc-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-btns {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dep-amounts {
    grid-template-columns: 1fr;
  }
  .topup-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    margin: 12px;
  }
  .auth-title {
    font-size: 18px;
  }
}

/* ── FLOATING TELEGRAM ── */
.floating-tg {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
  text-decoration: none;
}
.floating-tg:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5);
}
.floating-tg svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: none;
}
.floating-tg-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--surface);
  animation: ftg-pulse 2s infinite;
}
@keyframes ftg-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.announcement-icon {
  color: var(--primary);
  flex-shrink: 0;
}
.announcement-text {
  flex: 1;
}
.announcement-text a {
  color: var(--primary);
  font-weight: 600;
}
.announcement-text a:hover {
  text-decoration: underline;
}
.announcement-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text3);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.announcement-close:hover {
  color: var(--text);
}

/* ── TELEGRAM MODAL ── */
.tg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.tg-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.tg-modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
  position: relative;
}
.tg-modal-overlay.active .tg-modal {
  transform: translateY(0) scale(1);
}
.tg-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text3);
  cursor: pointer;
}
.tg-modal-close:hover {
  color: var(--text);
}
.tg-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.tg-modal h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.tg-modal p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.tg-modal-btns {
  display: flex;
  gap: 10px;
}
.tg-modal-btns .btn-primary,
.tg-modal-btns .btn-outline {
  font-size: 13px;
  padding: 10px 16px;
}

@media (max-width: 500px) {
  .tg-modal {
    padding: 28px 20px;
  }
  .tg-modal-btns {
    flex-direction: column;
  }
}
