@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

:root {
  /* Brand */
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #6366f1;
  --secondary: #c084fc;
  --accent: #f472b6;
  --cyan: #22d3ee;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --grad-mesh:
    radial-gradient(at 20% 0%, rgba(99,102,241,0.35) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(236,72,153,0.25) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(139,92,246,0.3) 0px, transparent 50%);

  /* Dark theme */
  --bg: #0a0f1f;
  --bg-soft: #131a2e;
  --card: rgba(22,30,50,0.7);
  --card-solid: #161e32;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148,163,184,0.12);
  --border-soft: rgba(148,163,184,0.07);
  --glass: rgba(15,23,42,0.55);

  --success: #34d399;
  --success-bg: rgba(16,185,129,0.15);
  --danger: #f87171;
  --danger-bg: rgba(239,68,68,0.15);
  --warn: #fbbf24;
  --warn-bg: rgba(245,158,11,0.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 32px rgba(99,102,241,0.18), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-primary: 0 8px 24px rgba(99,102,241,0.4);

  --radius: 14px;
  --radius-lg: 18px;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  /* Reserve space for fixed bottom-tabs. Must match actual tab height
     so no empty gap appears between content and tabs when scrolled.
     Includes iOS home-indicator safe area. */
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grad-mesh);
  z-index: -2;
  pointer-events: none;
  opacity: 0.7;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 28px 28px;
  z-index: -1;
  pointer-events: none;
}

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ========== HEADER (Glass) ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
/* Single-img mini logo: gradient background visible when image absent/broken.
   No wrapper, no fallback class — just the <img> with inline styling. */
.logo-mini {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
  /* Alt-text rendering for broken/missing src */
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  text-align: center;
  line-height: 38px;
}
.logo-wrap .brand-text {
  font-family: 'Montserrat', 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #f472b6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.7px;
  animation: gradientShift 6s ease infinite;
  position: relative;
  text-shadow: 0 2px 12px rgba(165,180,252,0.15);
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

/* Glass balance pill */
.balance-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.3s, border-color 0.3s;
}
.balance-pill strong {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.balance-label { opacity: 0.7; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.balance-pill.pulse { animation: balancePulse 1.6s ease; }
.balance-pill { cursor: pointer; }
.balance-pill:hover {
  border-color: rgba(165,180,252,0.4) !important;
  background: rgba(255,255,255,0.10);
  transform: scale(1.03);
}
.balance-pill:active { transform: scale(0.97); }
.balance-plus {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: #fff;
  margin-left: 4px;
  transition: all 0.2s;
}
.balance-pill:hover .balance-plus {
  background: rgba(255,255,255,0.3);
  transform: scale(1.15);
}
@keyframes balancePulse {
  0% { transform: scale(1); border-color: rgba(255,255,255,0.1); }
  50% { transform: scale(1.12); border-color: rgba(165,180,252,0.6); box-shadow: 0 0 0 8px rgba(99,102,241,0.2); }
  100% { transform: scale(1); border-color: rgba(255,255,255,0.1); }
}

.menu-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; cursor: pointer;
  transition: all 0.2s;
}
.menu-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.menu-btn span { width: 18px; height: 2px; background: var(--primary-light); border-radius: 2px; }

/* ========== SIDE MENU ========== */
.side-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 60;
}
.side-overlay.open { opacity: 1; pointer-events: auto; }

.side-menu {
  position: fixed; top: 0; right: -340px; bottom: 0; width: 320px;
  background: var(--card-solid);
  border-left: 1px solid var(--border);
  padding: 24px 18px; z-index: 70;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.side-menu.open { right: 0; }
.side-user {
  display: flex; gap: 14px; align-items: center;
  padding: 4px 4px 18px; border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-primary);
}
.side-name { font-weight: 700; font-size: 15px; color: var(--text); }
.side-id {
  font-size: 11px; color: var(--muted);
  font-family: 'SF Mono', Monaco, monospace;
  background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 6px;
  display: inline-block; margin-top: 4px;
  border: 1px solid var(--border-soft);
}

.side-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 12px 6px;
}

.side-link {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid transparent;
  padding: 11px 12px; border-radius: 10px; text-align: left;
  cursor: pointer; font-size: 14px; color: var(--text-soft);
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
  font-family: inherit;
}
.side-link:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.2);
  color: var(--primary-light);
  transform: translateX(2px);
}
.side-link.danger { color: var(--danger); margin-top: auto; }
.side-link.danger:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--danger); }

/* ========== MAIN ========== */
main {
  padding: 20px 16px;
  max-width: 760px;
  margin: 0 auto;
  /* Fill the viewport between sticky topbar (~70px) and bottom-tabs reserve
     (72px + safe-area). This prevents an empty area below short content. */
  min-height: calc(100vh - 70px - 72px - env(safe-area-inset-bottom, 0px));
}

.card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card h2 { font-size: 18px; margin-bottom: 14px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }
.card h3 { font-size: 15px; margin-bottom: 10px; font-weight: 700; color: var(--text); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(236,72,153,0.15) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  color: #fff;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(165,180,252,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.5px;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { opacity: 0.85; font-size: 14px; line-height: 1.6; position: relative; color: var(--text-soft); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(165,180,252,0.15);
  border: 1px solid rgba(165,180,252,0.3);
  backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  color: #c7d2fe;
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
@media (max-width: 480px) {
  .steps { gap: 6px; }
  .step { padding: 12px 6px !important; }
  .step-num { width: 28px !important; height: 28px !important; font-size: 13px !important; margin-bottom: 6px !important; }
  .step-text { font-size: 11px !important; line-height: 1.3; }
}
.step {
  background: rgba(99,102,241,0.08);
  padding: 18px 14px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.step:hover { transform: translateY(-3px); border-color: var(--primary); background: rgba(99,102,241,0.15); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 10px;
  box-shadow: var(--shadow-primary);
  font-size: 16px;
}
.step-text { font-size: 14px; color: var(--text); font-weight: 600; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px; background: var(--grad-primary); color: #fff;
  border: none; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s;
  letter-spacing: -0.2px;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(99,102,241,0.5); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none; }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--primary-light);
  box-shadow: none;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 6px 20px rgba(239,68,68,0.4); }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 6px 20px rgba(16,185,129,0.4); }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }

/* VIDEO */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  border: 1px solid var(--border);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
  color: #fff; padding: 40px 20px;
  border-radius: var(--radius);
  text-align: center;
  min-height: 200px;
  border: 1px solid var(--border);
}
.video-placeholder .icon { width: 56px; height: 56px; opacity: 0.7; margin-bottom: 12px; }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0 8px;
}
.feature-tile {
  padding: 16px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.feature-tile:hover { border-color: var(--primary); transform: translateY(-2px); background: rgba(99,102,241,0.08); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px; box-shadow: var(--shadow-primary);
}
.feature-icon .icon { color: #fff; }
.feature-tile h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.feature-tile p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* USE CASES */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.use-case {
  padding: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--primary-light);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border); padding: 0;
  border-radius: 10px; margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-q {
  font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  font-size: 14px; color: var(--text);
}
.faq-q .chev { transition: transform 0.2s; color: var(--primary-light); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  color: var(--text-soft); font-size: 14px;
  padding: 0 16px;
  max-height: 0; overflow: hidden;
  transition: all 0.3s;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 16px 14px; }

/* SUPPORT LINKS */
.support-links { display: flex; flex-direction: column; gap: 8px; }
.support-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); font-weight: 500;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}
.support-links a:hover { border-color: var(--primary); background: rgba(99,102,241,0.08); transform: translateX(4px); }
.support-links a .ic-bg {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* SUBTABS */
.subtabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: rgba(255,255,255,0.04); padding: 5px; border-radius: 12px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.subtab {
  flex: 1; padding: 11px;
  background: transparent; border: none; border-radius: 9px;
  font-weight: 600; cursor: pointer; color: var(--muted);
  font-size: 14px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit;
}
.subtab.active { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-primary); }

/* INPUTS */
.search-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px; font-size: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
}
.search-input { margin-bottom: 14px; }
.search-input:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.15); background: rgba(255,255,255,0.06); }
input::placeholder, textarea::placeholder { color: var(--muted); }

/* PLATFORM CARDS */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; }
.platform-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  cursor: pointer; transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-primary);
  opacity: 0; transition: opacity 0.3s;
  z-index: 0;
}
.platform-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.platform-card:hover::before { opacity: 0.1; }
.platform-card .logo-circle {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative; z-index: 1;
  padding: 12px;
  transition: transform 0.25s;
}
.platform-card:hover .logo-circle { transform: scale(1.08) rotate(-3deg); }
.platform-card .logo-circle img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.platform-card div.name { font-weight: 700; font-size: 14px; color: var(--text); position: relative; z-index: 1; }

/* COUNTRY ROWS */
.country-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px; margin-bottom: 8px; cursor: pointer;
  transition: all 0.2s;
}
.country-row:hover { border-color: var(--primary); transform: translateX(4px); background: rgba(99,102,241,0.08); }
.country-row.disabled { opacity: 0.4; cursor: not-allowed; }
.country-left { display: flex; align-items: center; gap: 12px; }
.country-flag { font-size: 28px; line-height: 1; }
.country-name { font-weight: 700; font-size: 15px; color: var(--text); }
.country-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.country-stock, .country-success {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  display: inline-block;
  border: 1px solid var(--border-soft);
  font-weight: 600;
}
.country-stock {
  color: var(--muted);
  background: rgba(255,255,255,0.05);
}
.country-success {
  color: var(--success);
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.25);
}

.sort-bar {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  margin: 12px 0 6px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.sort-bar > .muted {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}
.sort-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.sort-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}
.sort-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(99,102,241,0.3);
}

.logo-mini-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  padding: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}
.logo-mini-inline img { width: 100%; height: 100%; object-fit: contain; }
.country-price {
  font-weight: 800; font-size: 16px;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ACTIVE ORDER */
.active-order {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); padding: 22px;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Big timer */
.order-timer {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(236,72,153,0.15) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.order-timer .timer-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600; margin-bottom: 6px;
}
.order-timer .timer-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 36px; font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.order-timer.warning .timer-value {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulseTimer 1s ease infinite;
}
@keyframes pulseTimer { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.order-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.order-row:last-child { border: none; }
.order-row .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.order-row .value { font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }

.copy-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
  cursor: pointer; font-size: 12px; font-weight: 600;
  color: var(--primary-light);
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.2s;
  font-family: inherit;
}
.copy-btn:hover { background: var(--grad-primary); color: #fff; border-color: transparent; }

.sms-box {
  margin-top: 16px; padding: 18px;
  background: rgba(255,255,255,0.03); border-radius: 12px; text-align: center;
  font-size: 14px; color: var(--muted); font-weight: 500;
  border: 2px dashed var(--border);
  transition: all 0.3s;
}
.sms-box.has-otp {
  background: var(--success-bg); color: var(--success);
  border-color: var(--success);
  font-weight: 800; font-size: 22px; letter-spacing: 4px;
  font-family: 'Space Grotesk', monospace;
}

/* ORDER ITEMS (Sifarişlərim) */
.order-item {
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.order-item:hover { border-color: var(--primary); transform: translateX(2px); }
.order-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-platform { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text); }
.order-platform .logo-mini {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.order-platform .logo-mini img { width: 100%; height: 100%; object-fit: contain; }
.order-otp {
  background: var(--success-bg); color: var(--success);
  padding: 6px 12px; border-radius: 8px;
  font-weight: 800; letter-spacing: 1.5px;
  font-family: 'Space Grotesk', monospace;
  border: 1px solid rgba(52,211,153,0.3);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}
.empty-illustration {
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(236,72,153,0.15) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px solid var(--border);
  animation: floatY 3s ease infinite;
}
.empty-illustration::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.1;
  filter: blur(20px);
  z-index: -1;
}
.empty-illustration .icon { width: 64px; height: 64px; color: var(--primary-light); stroke-width: 1.5; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 280px; margin: 0 auto 20px; }
.empty-state .btn { max-width: 240px; margin: 0 auto; }

/* PROFILE */
.profile-head {
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(236,72,153,0.15) 100%);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  color: #fff; padding: 28px 22px;
  border-radius: var(--radius-lg); text-align: center; margin-bottom: 16px;
  overflow: hidden;
}
.profile-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(165,180,252,0.18) 0%, transparent 60%);
}
.profile-head .avatar {
  width: 76px; height: 76px; margin: 0 auto 12px;
  font-size: 28px; background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.3);
  position: relative;
}
.profile-head .name { font-size: 20px; font-weight: 800; position: relative; color: #fff; }
.profile-head .id {
  font-size: 13px; opacity: 0.92;
  font-family: 'SF Mono', Monaco, monospace;
  background: rgba(255,255,255,0.15);
  display: inline-block; padding: 4px 12px;
  border-radius: 6px; margin-top: 6px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.2);
}

.balance-big {
  text-align: center; padding: 28px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); margin-bottom: 16px;
  border: 1px solid var(--border);
}
.balance-big .label {
  color: var(--muted); font-size: 12px;
  font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.balance-big .amount {
  font-family: 'Space Grotesk', monospace;
  font-size: 42px; font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0 16px;
  letter-spacing: -1px;
}

.amount-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.amount-buttons button {
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
}
.amount-buttons button:hover { border-color: var(--primary); background: rgba(99,102,241,0.08); }
.amount-buttons button.active {
  background: var(--grad-primary); color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.upload-area {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 24px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
  font-weight: 500; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.upload-area:hover { border-color: var(--primary); background: rgba(99,102,241,0.08); color: var(--text); }
.upload-area input { display: none; }
.upload-area.has-file { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.upload-area .icon { width: 32px; height: 32px; }

.card-info {
  background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(251,191,36,0.1) 100%);
  border-left: 4px solid var(--warn);
  padding: 14px; border-radius: 10px; margin: 12px 0;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px; white-space: pre-wrap;
  color: var(--warn);
}

/* PROFILE SETTINGS FORM */
.field-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.field-group label {
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.field-group .helper {
  font-size: 12px; color: var(--muted);
  margin-top: 4px;
}
.field-locked {
  background: rgba(255,255,255,0.02) !important;
  cursor: not-allowed; opacity: 0.7;
}

/* ========== BOTTOM TABS (Glass) ========== */
.bottom-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  /* padding-bottom respects iOS home-indicator safe area so the tabs
     extend all the way to the bottom edge with no empty stripe below. */
  padding: 8px 4px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  --indicator-pos: 0%;
  --indicator-w: 20%;
}
.bottom-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--indicator-pos);
  width: var(--indicator-w);
  height: 3px;
  background: var(--grad-primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.6);
  transition: left 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.tab-item {
  flex: 1;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px; color: var(--muted); font-size: 11px; font-weight: 600;
  transition: all 0.2s;
  position: relative;
  border-radius: 10px;
  font-family: inherit;
}
.tab-item .icon { width: 22px; height: 22px; transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1); }
.tab-item.active { color: var(--primary-light); }
.tab-item.active .icon { stroke-width: 2.5; transform: scale(1.15) translateY(-1px); }

/* TAB CONTENT slide animation */
#tabContent {
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}
.tab-anim-left {
  animation: tabInLeft 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.tab-anim-right {
  animation: tabInRight 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
}
@keyframes tabInLeft {
  from { transform: translate3d(40px,0,0); opacity: 0; }
  to   { transform: translate3d(0,0,0);    opacity: 1; }
}
@keyframes tabInRight {
  from { transform: translate3d(-40px,0,0); opacity: 0; }
  to   { transform: translate3d(0,0,0);     opacity: 1; }
}

/* SUPPORT FAB */
.support-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  right: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-primary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  animation: float 3s ease-in-out infinite;
}
.support-fab:hover { transform: scale(1.1); }
.support-fab .icon { width: 26px; height: 26px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* MODAL */
.modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative; background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px; max-width: 420px; width: 100%;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.25s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0;
}
.modal-close {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 10px; border-radius: 10px; cursor: pointer;
  font-weight: 600; color: var(--muted);
  font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.support-btn {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 14px; border-radius: 12px; text-decoration: none; font-weight: 700;
  transition: all 0.2s;
}
.support-btn:hover { transform: translateY(-2px); }
.support-btn.tg { background: linear-gradient(135deg, #229ED9 0%, #1c7eb0 100%); color: #fff; box-shadow: 0 6px 16px rgba(34,158,217,0.4); }
.support-btn.wa { background: linear-gradient(135deg, #25D366 0%, #1da851 100%); color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,0.4); }
.support-btn.ig { background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%); color: #fff; box-shadow: 0 6px 16px rgba(225,48,108,0.4); }
.support-btn.email { background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); color: #fff; box-shadow: 0 6px 16px rgba(99,102,241,0.4); }
.support-btn .icon { width: 22px; height: 22px; }

/* TOAST */
.toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card-solid);
  border: 1px solid var(--border);
  color: var(--text); padding: 14px 22px;
  border-radius: 12px; font-size: 14px; z-index: 200;
  opacity: 0; pointer-events: none; transition: all 0.25s;
  max-width: 90%; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: linear-gradient(135deg, rgba(239,68,68,0.95), rgba(220,38,38,0.95)); border-color: rgba(239,68,68,0.5); color: #fff; }
.toast.success { background: linear-gradient(135deg, rgba(16,185,129,0.95), rgba(5,150,105,0.95)); border-color: rgba(16,185,129,0.5); color: #fff; }
.toast.warn { background: linear-gradient(135deg, rgba(245,158,11,0.95), rgba(217,119,6,0.95)); border-color: rgba(245,158,11,0.5); color: #fff; }

@media (max-width: 480px) {
  .topbar { padding: 12px 14px; }
  .balance-pill { padding: 6px 10px; font-size: 12px; }
  .balance-label { display: none; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 22px; }
  .balance-big .amount { font-size: 36px; }
  .order-timer .timer-value { font-size: 32px; }
  .logo-wrap .brand-text { font-size: 16px; }
}


/* Password show/hide toggle (settings page) */
.pass-wrap {
  position: relative;
  width: 100%;
  display: block;
}
.pass-wrap input {
  padding-right: 46px !important;
  width: 100% !important;
  display: block;
}
.pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  padding: 0;
  font-size: 0; /* removes any inherited spacing */
  z-index: 10;
}
.pass-toggle:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
.pass-toggle:active { transform: translateY(-50%) scale(0.92); }
.pass-toggle .icon { width: 18px; height: 18px; pointer-events: none; stroke: #ffffff; color: #ffffff; }
.pass-toggle:focus { outline: none; color: #ffffff; }
.pass-toggle:focus-visible { outline: 2px solid rgba(165,180,252,0.4); outline-offset: 1px; }


/* Topup modal */
.topup-modal .amount-buttons button {
  padding: 14px 8px;
  font-size: 15px;
}
.modal-x:hover {
  background: rgba(255,255,255,0.1) !important;
  color: var(--text) !important;
}


/* Search input with icon */
.search-wrap { position: relative; }
.search-wrap .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-wrap .search-icon .icon { width: 18px; height: 18px; }
.search-wrap .search-input.search-with-icon { padding-left: 42px !important; }
.search-wrap .search-input { margin-bottom: 0; }


/* SMS Help Banner & Modal */
.help-banner:hover { border-color: var(--primary) !important; transform: translateY(-2px); transition: all 0.2s; box-shadow: var(--shadow-lg); }
.help-banner .icon { color: #fff; }

.help-step {
  display: flex; gap: 14px; margin-bottom: 20px;
  padding: 14px; background: rgba(255,255,255,0.03);
  border-radius: 12px; border: 1px solid var(--border-soft);
}
.help-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; box-shadow: var(--shadow-primary);
}
.help-step-content h4 {
  font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.help-step-content p {
  font-size: 13px; color: var(--text-soft); line-height: 1.6; margin-bottom: 8px;
}
.help-step-content ul, .help-step-content ol {
  font-size: 13px; color: var(--text-soft); line-height: 1.7;
  margin: 6px 0 8px 18px; padding: 0;
}
.help-step-content li { margin-bottom: 4px; }
.help-step-content .help-action {
  background: rgba(99,102,241,0.1);
  border-left: 3px solid var(--primary);
  padding: 10px 12px; border-radius: 8px;
  margin-top: 10px; font-size: 13px;
}



/* ============================================================
   Notifications bell + modal
   ============================================================ */
.notif-bell {
  position: relative;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--primary-light);
  transition: all 0.2s;
  font-family: inherit;
  padding: 0;
}
.notif-bell:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.notif-bell .icon { width: 20px; height: 20px; }
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 2px solid var(--card-solid);
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.notif-modal-card {
  max-width: 480px; max-height: 80vh; overflow-y: auto; width: 95%;
}
.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.notif-item.unread {
  background: rgba(99,102,241,0.08);
  border-color: var(--primary);
}
.notif-item-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.notif-item-icon .icon { width: 18px; height: 18px; }
.notif-item-icon.balance { background: linear-gradient(135deg, #10b981, #059669); }
.notif-item-icon.approved { background: linear-gradient(135deg, #34d399, #059669); }
.notif-item-icon.rejected { background: linear-gradient(135deg, #ef4444, #dc2626); }
.notif-item-icon.broadcast { background: var(--grad-primary); }
.notif-item-icon.order { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-content h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.notif-item-content p { font-size: 13px; color: var(--text-soft); line-height: 1.5; margin: 0; word-wrap: break-word; }
.notif-item-time { font-size: 11px; color: var(--muted); margin-top: 4px; }



/* ============================================================
   PREMIUM ƏLAVƏLƏR (PR #42)
   ============================================================ */

/* ---- Feature 1: Mikro-animasiyalar ---- */
.btn:active:not(:disabled),
.copy-btn:active,
.sort-btn:active,
.subtab:active { transform: scale(0.96); }

@keyframes cardRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: cardRise 0.34s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* balans dəyişəndə yumşaq "pop" (count-up JS ilə işləyir) */
@keyframes balanceBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
#topBalance.bump { display: inline-block; animation: balanceBump 0.5s ease; }

/* ---- Feature 2: Dairəvi countdown timer ---- */
.timer-ring-wrap {
  position: relative;
  width: 172px; height: 172px;
  margin: 4px auto 2px;
}
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.timer-ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 9; }
.timer-ring-fg {
  fill: none; stroke: #8b5cf6; stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 0.6s linear, stroke 0.4s;
}
.order-timer.warning .timer-ring-fg { stroke: #ef4444; }
.timer-ring-wrap::before {
  content: ''; position: absolute; inset: 16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.20), transparent 70%);
  animation: ringPulse 1.8s ease-in-out infinite;
}
.order-timer.warning .timer-ring-wrap::before {
  background: radial-gradient(circle, rgba(239,68,68,0.24), transparent 70%);
}
@keyframes ringPulse {
  0%, 100% { transform: scale(0.9);  opacity: 0.45; }
  50%      { transform: scale(1.05); opacity: 1; }
}
.timer-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.timer-wait {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.timer-wait .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6;
  animation: waitBlink 1.2s ease-in-out infinite;
}
.order-timer.warning .timer-wait .dot { background: #ef4444; }
@keyframes waitBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* ---- Feature 3: Favorilər ---- */
.subtab-badge {
  background: #ef4444; color: #fff; padding: 1px 6px;
  border-radius: 6px; font-size: 10px; margin-left: 4px; font-weight: 700;
}

/* Ölkə sətrindəki ürək (favori) düyməsi */
.fav-heart {
  background: none; border: none; cursor: pointer;
  padding: 4px; line-height: 0; flex-shrink: 0;
  transition: transform 0.15s;
}
.fav-heart .icon { width: 20px; height: 20px; color: rgba(255,255,255,0.28); transition: color 0.2s, fill 0.2s; }
.fav-heart:hover { transform: scale(1.2); }
.fav-heart:hover .icon { color: #f87171; }
.fav-heart.active .icon { color: #ef4444; fill: #ef4444; }
.country-left { display: flex; align-items: center; gap: 12px; }

/* Favorilər subtab — kart siyahısı */
.fav-list { display: flex; flex-direction: column; gap: 10px; }
.fav-card {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,0.04); overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.fav-card:hover { border-color: rgba(165,180,252,0.4); background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.fav-card-out { opacity: 0.6; }
.fav-card-go {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; cursor: pointer;
}
.fav-card-logo {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
}
.fav-card-logo img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.fav-card-info { flex: 1; min-width: 0; }
.fav-card-name { font-weight: 700; font-size: 15px; color: var(--text); }
.fav-card-country { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fav-card-right { text-align: right; flex-shrink: 0; }
.fav-card-price { font-weight: 800; font-size: 15px; color: var(--primary-light); }
.fav-card-status { font-size: 11px; margin-top: 2px; font-weight: 600; }
.fav-card-status.ok { color: #34d399; }
.fav-card-status.out { color: #f87171; }
.fav-card-del {
  background: none; border: none; border-left: 1px solid var(--border);
  color: var(--muted); cursor: pointer; padding: 0 14px;
  display: flex; align-items: center; transition: color 0.2s, background 0.2s;
}
.fav-card-del:hover { color: var(--danger); background: rgba(239,68,68,0.08); }
.fav-card-del .icon { width: 18px; height: 18px; }

/* ---- Feature 1: Balans artırma — kart məlumatı (böyük, mərkəzdə) ---- */
/* ---- Ödəniş metodları: bank seçimi + struktur kart ---- */
.pm-banks-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); margin-bottom: 8px;
}
.pm-banks {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.pm-bank-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border);
  color: var(--text-soft); font-weight: 600; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.pm-bank-tab:hover { border-color: rgba(165,180,252,0.45); transform: translateY(-1px); }
.pm-bank-tab.active {
  border-color: var(--primary); background: rgba(99,102,241,0.14); color: #fff;
}
.pm-bank-tab img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; background: #fff; padding: 2px; }
.pm-bank-tab .icon { width: 20px; height: 20px; }

.pm-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.20), rgba(236,72,153,0.12));
  border: 1px solid rgba(165,180,252,0.35);
  border-radius: 14px; padding: 13px 14px; text-align: center;
  box-shadow: 0 6px 20px rgba(99,102,241,0.15);
}
.pm-card-bank {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.pm-card-bank-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; background: #fff; padding: 2px; }
.pm-card-bank .icon { width: 18px; height: 18px; color: var(--primary-light); }

.pm-card-number-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 7px;
}
.pm-card-number {
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-size: 17px; font-weight: 700; color: #fff;
  letter-spacing: 1.5px; user-select: all; word-break: break-word;
}
.pm-copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 9px; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pm-copy-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.pm-copy-btn:active { transform: scale(0.94); }
.pm-copy-btn.copied { background: rgba(16,185,129,0.3); border-color: #34d399; }
.pm-copy-btn .icon { width: 16px; height: 16px; }

.pm-card-holder {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-soft); text-transform: uppercase;
}

/* Admin: ödəniş metodları siyahısı */
.pm-admin-list { display: flex; flex-direction: column; gap: 12px; }
.pm-admin-card.pm-inactive { opacity: 0.6; }
.pm-admin-head { display: flex; align-items: center; gap: 12px; }
.pm-admin-logo {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
}
.pm-admin-logo img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.pm-admin-logo .icon { width: 24px; height: 24px; color: var(--muted); }

/* ---- Feature 2: Ödəniş tarixçəsi ---- */
.tph-summary {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.tph-summary strong { font-size: 18px; color: #34d399; }
.tph-list { display: flex; flex-direction: column; gap: 8px; }
.tph-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.03);
}
.tph-left { min-width: 0; }
.tph-amount { font-weight: 700; font-size: 15px; color: var(--text); }
.tph-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tph-note { font-size: 12px; color: #f87171; margin-top: 4px; }
.tph-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 8px; white-space: nowrap;
}
.tph-pending  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.tph-approved { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.tph-rejected { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ---- Feature 4: Rəylər / testimonial ---- */
.reviews-grid { display: grid; gap: 12px; margin-top: 8px; }
.review-card {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.review-stars { color: #fbbf24; font-size: 14px; letter-spacing: 3px; }
.review-comment { margin: 8px 0 6px; color: var(--text); font-size: 14px; line-height: 1.55; }
.review-author { font-size: 12px; color: var(--muted); font-weight: 700; }
.star-input { display: inline-flex; gap: 8px; font-size: 28px; cursor: pointer; user-select: none; }
.star-input .s { color: rgba(255,255,255,0.22); transition: color 0.15s, transform 0.15s; }
.star-input .s.on { color: #fbbf24; }
.star-input .s:hover { transform: scale(1.15); }

/* ---- Feature 5: Canlı xəbər tickeri ---- */
.news-ticker {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(99,102,241,0.18), rgba(236,72,153,0.12));
  border-bottom: 1px solid var(--border);
  overflow: hidden; height: 40px; padding: 0 12px;
}
.news-ticker .news-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  color: #fff; background: var(--grad-primary); padding: 4px 9px; border-radius: 8px;
}
.news-ticker .news-viewport { flex: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; }
.news-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: tickerScroll linear infinite; }
.news-track span { padding: 0 28px; font-size: 13px; font-weight: 600; color: var(--text); }
.news-ticker:hover .news-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }



/* ============================================================
   BLOK OVERLAY — bloklanmış istifadəçi üçün bağlana bilməyən bildiriş
   ============================================================ */
.block-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: blockOverlayFade 0.35s ease;
}

@keyframes blockOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.block-overlay-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-solid);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 26px 26px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: blockOverlayPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes blockOverlayPop {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.block-overlay-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 113, 113, 0.12);
  border: 2px solid rgba(248, 113, 113, 0.4);
  animation: blockIconPulse 2.2s ease infinite;
}

@keyframes blockIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(248, 113, 113, 0); }
}

.block-overlay-icon svg {
  width: 38px;
  height: 38px;
  color: var(--danger);
}

.block-overlay-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.block-overlay-reason {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  margin-bottom: 14px;
}

.block-overlay-reason-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--danger);
  margin-bottom: 6px;
}

.block-overlay-reason p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  word-break: break-word;
}

.block-overlay-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  margin-bottom: 14px;
}

.block-overlay-meta svg {
  width: 15px;
  height: 15px;
  color: var(--primary-light);
}

.block-overlay-help {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.block-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.block-overlay-btn:active { transform: scale(0.98); }
.block-overlay-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.block-overlay-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.block-overlay-btn-primary {
  background: #25d366;
  color: #06311a;
}

.block-overlay-btn-primary:hover:not(:disabled) {
  background: #20bd5a;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.block-overlay-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border-color: var(--border);
}

.block-overlay-btn-ghost:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
}

@media (max-width: 480px) {
  .block-overlay-card { padding: 26px 20px 22px; }
  .block-overlay-icon { width: 68px; height: 68px; }
  .block-overlay-icon svg { width: 33px; height: 33px; }
  .block-overlay-title { font-size: 20px; }
}



/* ============================================================
   HESAB AL — Premium hesab mağazası
   ============================================================ */
/* 5 bottom tab sığsın deyə kiçik tənzimləmə */
.bottom-tabs .tab-item { font-size: 10px; padding-left: 2px; padding-right: 2px; gap: 3px; }
.bottom-tabs .tab-item > span:last-child { white-space: nowrap; }

/* Məhsul gridi */
.acc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 560px) { .acc-grid { grid-template-columns: repeat(3, 1fr); } }
.acc-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); font-family: inherit;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  text-align: center;
}
.acc-card:hover:not(:disabled) { border-color: rgba(165,180,252,0.45); transform: translateY(-2px); background: rgba(255,255,255,0.07); }
.acc-card:disabled, .acc-card.acc-out { opacity: 0.5; cursor: not-allowed; }
.acc-card-logo {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
}
.acc-card-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.acc-card-logo .icon { width: 28px; height: 28px; color: #fbbf24; }
.acc-card-name { font-weight: 700; font-size: 14px; }
.acc-card-price { font-weight: 800; font-size: 14px; color: var(--primary-light); }
.acc-card-stock { font-size: 11px; font-weight: 600; }
.acc-card-stock.ok { color: #34d399; }
.acc-card-stock.out { color: #f87171; }

/* Detal görünüşü */
.acc-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.acc-detail-logo {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
}
.acc-detail-logo img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.acc-detail-logo .icon { width: 32px; height: 32px; color: #fbbf24; }
.acc-detail-name { margin: 0; font-size: 19px; font-weight: 800; }
.acc-detail-desc {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--text-soft);
  white-space: pre-wrap; margin-bottom: 10px;
}
.acc-detail-delivery {
  display: flex; align-items: center; gap: 7px; font-size: 13px; color: #fbbf24;
  background: rgba(245,158,11,0.1); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px;
}
.acc-detail-delivery .icon { width: 16px; height: 16px; }

/* Müddət planları */
.acc-plans-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 4px 0 8px; }
.acc-plans { display: flex; flex-direction: column; gap: 8px; }
.acc-plan {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border);
  color: var(--text); font-family: inherit; transition: all 0.18s;
}
.acc-plan:hover { border-color: rgba(165,180,252,0.45); }
.acc-plan.active { border-color: var(--primary); background: rgba(99,102,241,0.14); }
.acc-plan-label { font-weight: 600; font-size: 15px; }
.acc-plan-price { font-weight: 800; font-size: 16px; color: var(--primary-light); }
.acc-order-btn { background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.acc-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sifariş uğur ekranı */
.acc-success { text-align: center; padding: 16px 8px; }
.acc-success-icon {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(16,185,129,0.15); border: 2px solid rgba(16,185,129,0.4);
  display: flex; align-items: center; justify-content: center;
}
.acc-success-icon .icon { width: 36px; height: 36px; color: #34d399; }
.acc-success h3 { font-size: 20px; margin-bottom: 8px; }
.acc-success-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }

/* Üç ayrı səliqəli info blok */
.acc-success-cards { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.acc-sc {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.acc-sc-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.14);
}
.acc-sc-icon .icon { width: 19px; height: 19px; color: var(--primary-light); }
.acc-sc-body { flex: 1; min-width: 0; }
.acc-sc-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.acc-sc-text { font-size: 13px; line-height: 1.5; color: var(--text-soft); }
.acc-sc-text strong { color: var(--text); }
.acc-success-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Info modal maddələri — ayrı-ayrı səliqəli kartlar */
.acc-info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.acc-info-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.acc-info-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.acc-info-item strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--text); }
.acc-info-item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-soft); }

/* Hesab sifarişləri (müştəri) */
.aord-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.aord-pending { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.aord-delivered { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.aord-creds {
  margin-top: 10px; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25);
  border-radius: 12px; padding: 12px;
}
.aord-creds-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #34d399; margin-bottom: 8px; }
.aord-creds-label .icon { width: 15px; height: 15px; }
.aord-creds-box {
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
  font-family: 'SF Mono', Monaco, monospace; font-size: 13px; color: #fff;
  white-space: pre-wrap; word-break: break-word;
}
.aord-pending-note {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.1); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; color: #fbbf24;
}
.aord-pending-note .icon { width: 15px; height: 15px; flex-shrink: 0; }

/* Admin: plan sətirləri */
.acc-plan-row { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.acc-plan-row .acc-plan-label-in { flex: 2; }
.acc-plan-row .acc-plan-price-in { flex: 1; }

/* ============================================================
   SCROLLBAR GİZLƏTMƏ — skrol işləyir, amma vizual çubuq görünmür
   (səhifənin sağındakı scrollbar və daxili skrol sahələri)
   ============================================================ */
html,
body {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* köhnə Edge / IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;                /* Chrome, Safari, yeni Edge */
}

/* Daxili skrol sahələri (modal, tab məzmunu və s.) üçün də gizlət */
.modal-card,
#tabContent,
.tab-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-card::-webkit-scrollbar,
#tabContent::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
