/* SimCards.pl — visual theme inspired by hero-sms / sms-man (dark with neon accents) */
:root {
  --bg: #0b1020;
  --bg-2: #131a32;
  --bg-3: #1c2547;
  --line: #243066;
  --text: #e8ecff;
  --muted: #98a3d6;
  --primary: #6c5cff;
  --primary-2: #4cd2ff;
  --success: #2dd673;
  --warn: #ffb454;
  --danger: #ff5470;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { padding-bottom: 72px; /* reserve clearance for the floating support button so it never overlaps content */ }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  min-height: 64px;
  flex-wrap: nowrap;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: .3px; flex-shrink: 0; white-space: nowrap; }
.brand .dot { color: var(--primary-2); }
.nav .links {
  display: flex; gap: 2px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 8px;
}
.nav .links a {
  color: var(--muted); font-weight: 500; font-size: 13.5px;
  padding: 7px 10px;
  border-radius: 8px;
  position: relative;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav .links a:hover {
  color: var(--text);
  background: var(--bg-2);
  text-decoration: none;
}
.nav .links a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(108,92,255,.16), rgba(76,210,255,.10));
}
.nav .links a.active::after { display: none; }

.nav .right {
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.nav-divider {
  width: 1px; height: 22px;
  background: var(--line);
  margin: 0 4px;
}

.nav-auth {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

/* Big "Buy number" CTA in nav — red action variant draws the eye */
.nav-cta {
  background: linear-gradient(135deg, #ff2d4d 0%, #ff5a3c 50%, #ff8043 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  box-shadow: 0 0 0 0 rgba(255,56,88,.5), 0 4px 14px rgba(255,56,88,.30);
  transition: transform .15s, filter .15s;
  animation: actionPulse 2.4s ease-in-out infinite;
}
.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); animation-play-state: paused; }

/* "More" dropdown in nav links */
.links-more { position: relative; }
.more-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  user-select: none;
}
.more-trigger:hover { background: var(--bg-2); color: var(--text); }
.more-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 60;
}
.links-more.open .more-menu { display: block; }
.more-menu a {
  display: block;
  padding: 8px 12px !important;
  border-radius: 6px;
  font-size: 13px !important;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.more-menu a:hover { background: var(--bg-3); }

/* Cart icon in nav */
.nav-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  text-decoration: none;
  transition: .15s;
  flex-shrink: 0;
}
.nav-cart:hover { border-color: var(--primary); transform: translateY(-1px); text-decoration: none; }
.cart-icon { font-size: 17px; }
.cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* Compact flag-only language selector */
.lang-picker { position: relative; }
.lang-picker-btn {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 15px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  color: var(--text);
  transition: .15s;
}
.lang-picker-btn:hover { border-color: var(--primary); }
.lang-picker-btn .chev { font-size: 10px; opacity: .6; }
.lang-picker-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}
.lang-picker.open .lang-picker-dropdown { display: block; }
.lang-picker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  cursor: pointer; color: var(--text);
  font-size: 14px;
}
.lang-picker-item:hover { background: var(--bg-3); }
.lang-picker-item.active { background: rgba(76,210,255,.10); color: var(--primary-2); }
.lang-picker-item .flag { font-size: 18px; }

/* Buttons */
.btn { padding: 9px 16px; border-radius: 10px; border: 0; background: var(--bg-3); color: var(--text); font-weight: 600; transition: .15s; line-height: 1; }
.btn:hover { background: var(--line); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 4px 14px rgba(108,92,255,.25); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108,92,255,.35); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #051; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Voice OTP UI */
.voice-toggle {
  display: flex; align-items: center; gap: 10px;
  background: rgba(108,92,255,.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 13px;
  flex-wrap: wrap;
}
.voice-toggle input[type=checkbox] { width: auto; transform: scale(1.2); }
.voice-toggle .muted { font-size: 11px; flex-basis: 100%; margin-left: 32px; margin-top: 2px; }
.voice-badge {
  display: inline-block;
  background: rgba(108,92,255,.20);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  margin-left: 6px;
}
.act-code-box.act-voice {
  background: rgba(108,92,255,.10);
  border-color: var(--primary);
}
.act-voice-player {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
}
.act-voice-player audio { display: block; }
.act-transcript {
  background: var(--bg-3);
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 13px;
}
.act-transcript strong { color: var(--primary-2); margin-right: 6px; }

/* Status page daily blocks */
.status-daily {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  height: 32px;
}
.status-cell {
  border-radius: 3px;
  transition: transform .1s;
  cursor: help;
}
.status-cell:hover { transform: scaleY(1.2); }

/* Stats bars chart */
.stats-bars {
  display: flex; align-items: flex-end;
  gap: 4px; height: 180px; margin: 14px 0 4px;
}
.bar-cell {
  flex: 1;
  height: 100%;
  display: flex; align-items: flex-end;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  border-radius: 4px;
  transition: height .3s;
}
.bar-cell:hover .bar-fill { filter: brightness(1.2); }
.stats-bars-axis {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 4px;
}

/* Admin Logs panel */
.logs-toolbar {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.logs-counters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.logs-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.logs-filters select, .logs-filters input { max-width: 180px; padding: 7px 10px; font-size: 13px; }
.logs-table th, .logs-table td { padding: 10px 12px; vertical-align: top; font-size: 13px; }
.log-row.log-resolved { opacity: 0.55; }
.log-msg { color: var(--text); word-break: break-word; }
.log-expand {
  background: transparent; border: 0; color: var(--primary-2);
  font-size: 12px; cursor: pointer; padding: 4px 0; margin-top: 4px;
}
.log-detail { margin-top: 8px; padding: 10px; background: var(--bg-3); border-radius: 8px; font-size: 12px; }
.log-detail code, .log-detail pre { word-break: break-all; white-space: pre-wrap; }

/* Strategic action button — used for the most important CTA on each screen.
   Red-orange gradient with animated glow draws the eye away from primary purple. */
.btn-action {
  background: linear-gradient(135deg, #ff2d4d 0%, #ff5a3c 50%, #ff8043 100%);
  color: #fff !important;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 0 rgba(255, 56, 88, 0),
    0 8px 24px rgba(255, 56, 88, .35),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  text-decoration: none !important;
  animation: actionPulse 2.4s ease-in-out infinite;
  transition: transform .15s ease-out, filter .15s ease-out;
}
.btn-action:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-action:active { transform: translateY(0); }
.btn-action.btn-lg { padding: 16px 22px; font-size: 16px; letter-spacing: .3px; }
.btn-action.btn-sm { padding: 7px 14px; font-size: 13px; }

@keyframes actionPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255, 56, 88, .55),
      0 8px 24px rgba(255, 56, 88, .35),
      inset 0 1px 0 rgba(255, 255, 255, .2);
  }
  60% {
    box-shadow:
      0 0 0 12px rgba(255, 56, 88, 0),
      0 10px 28px rgba(255, 56, 88, .45),
      inset 0 1px 0 rgba(255, 255, 255, .2);
  }
}

/* Pause pulse on hover so it doesn't fight the lift effect */
.btn-action:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .btn-action { animation: none; }
}

/* Nav-specific button sizing */
.nav-btn { padding: 7px 14px; font-size: 13.5px; white-space: nowrap; }
.nav-btn.btn-primary { box-shadow: 0 2px 10px rgba(108,92,255,.30); }

/* Wallet pill (when logged in) */
.nav-wallet {
  display: inline-flex; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 12px;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: .15s;
}
.nav-wallet:hover { border-color: var(--primary); text-decoration: none; }
.nav-wallet .w-usd { color: var(--primary-2); }
.nav-wallet .w-zorki { color: var(--warn); }
.nav-wallet .w-sep {
  display: inline-block; width: 1px; height: 14px;
  background: var(--line); margin: 0 2px;
}
.nav-wallet .w-user {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* Burger for mobile */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
}

@media (max-width: 1080px) {
  .nav .inner { gap: 10px; }
  .nav .links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    margin: 0;
    display: none;
  }
  .nav .links.open { display: flex; align-items: stretch; }
  .nav .links a { padding: 12px 20px; width: 100%; font-size: 15px; border-radius: 0; }
  .nav .links a.active { background: rgba(108,92,255,.10); border-left: 3px solid var(--primary); }
  .links-more { width: 100%; padding: 0; }
  .more-trigger { display: none; }
  .more-menu { display: block; position: static; border: 0; padding: 0; min-width: 0; box-shadow: none; background: transparent; }
  .more-menu a { padding: 12px 20px !important; font-size: 15px !important; border-radius: 0 !important; }
  .nav-divider { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 720px) {
  .nav-cta { display: none; }
}
@media (max-width: 520px) {
  .nav .inner { gap: 6px; }
  .brand { font-size: 17px; }
  .nav-btn { padding: 7px 11px; font-size: 13px; }
  .lang-picker-btn { padding: 6px 8px; font-size: 14px; }
  .nav-cart { width: 34px; height: 34px; }
}

/* hero */
.hero { padding: 60px 0 80px; background: radial-gradient(circle at 20% 0%, rgba(108,92,255,.25), transparent 50%), radial-gradient(circle at 90% 30%, rgba(76,210,255,.18), transparent 50%); }
.hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 14px; }
.hero p.sub { font-size: 18px; color: var(--muted); max-width: 680px; }
.hero .cta { display:flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .v { font-size: 22px; font-weight: 700; color: var(--primary-2); }
.stat .l { color: var(--muted); font-size: 13px; }

.features { padding: 50px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .icon { font-size: 28px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.section-title { font-size: 28px; margin: 30px 0 18px; }
.muted { color: var(--muted); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.pad-lg { padding: 26px; }

/* Stat cards — used on the client dashboard. Vertical flex with spacing between
   label / big value / explanation / CTA so the button never crashes into the value. */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.stat-card .muted { font-size: 13px; }
.stat-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin: 2px 0 6px;
}
.stat-sub {
  font-size: 13px;
  margin: 2px 0 8px;
  color: var(--muted);
}
.stat-foot {
  font-size: 12px;
  margin: 6px 0 0;
}
.stat-cta {
  margin-top: 12px;
  align-self: flex-start;
}
.stat-card .tier-badge { margin: 4px 0 2px; }
.stat-card .tier-progress { width: 100%; margin-top: 8px; }

.grid-2 { display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

input, select, textarea {
  width: 100%;
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 10px; outline: none;
}
input:focus, select:focus { border-color: var(--primary); }
label { font-size: 13px; color: var(--muted); display:block; margin-bottom: 6px; margin-top: 10px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { color: var(--muted); font-weight: 600; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }

.badge { display:inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.badge.waiting { background: rgba(255,180,84,.15); color: var(--warn); }
.badge.received { background: rgba(45,214,115,.15); color: var(--success); }
.badge.cancelled { background: rgba(152,163,214,.15); color: var(--muted); }
.badge.expired { background: rgba(255,84,112,.15); color: var(--danger); }

.modal-bg { position: fixed; inset: 0; background: rgba(5,8,18,.7); z-index: 100; display: none; align-items: center; justify-content: center; }
.modal { background: var(--bg-2); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); width: min(540px, 92vw); }
.modal h3 { margin-top: 0; }
.modal-bg.show { display: flex; }

.tabs { display:flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 10px 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--text); border-bottom-color: var(--primary); }

.kbd { background: var(--bg-3); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.services-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.service-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; transition: .12s; text-align: center; }
.service-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.service-tile .ic { font-size: 28px; }
.service-tile .nm { font-weight: 600; margin-top: 6px; }
.service-tile .pr { color: var(--primary-2); font-size: 13px; margin-top: 4px; }

.country-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap:10px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.country-tile { display:flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.country-tile:hover { border-color: var(--primary); }
.country-tile.sel { border-color: var(--primary-2); background: rgba(76,210,255,.08); }
.country-tile .flag { font-size: 22px; }
.country-tile .name { font-size: 14px; }
.country-tile .price { color: var(--primary-2); font-size: 13px; margin-left: auto; }

.foot { padding: 40px 0 20px; border-top: 1px solid var(--line); margin-top: 80px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot .row { display:flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }

.pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 var(--success); animation: pulse 1.6s infinite; vertical-align: middle; margin-right: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,214,115,.7);} 70% { box-shadow: 0 0 0 8px rgba(45,214,115,0);} 100% { box-shadow: 0 0 0 0 rgba(45,214,115,0);} }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg-3); border: 1px solid var(--line); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 200; animation: slideIn .25s ease-out; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .hero .stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
}

pre.code { background: var(--bg-3); border: 1px solid var(--line); padding: 14px; border-radius: 10px; overflow:auto; font-size: 13px; line-height: 1.45; }
code.inline { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; }

/* Quick-buy widget — tile grids */
.qb-section { margin-bottom: 28px; }
.qb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.qb-section-head h3 { margin: 0; font-size: 18px; }
.qb-section-head input { max-width: 280px; padding: 8px 12px; font-size: 14px; }
.qb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.qb-svc-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.qb-ctr-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.qb-more { margin-top: 12px; text-align: center; }

.tile {
  position: relative;
  background: var(--bg-3); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 8px 10px; cursor: pointer; transition: .12s ease-out; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; min-height: 118px;
}
.tile:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,92,255,.15); }
.tile.active { border-color: var(--primary-2); background: rgba(76,210,255,.10); box-shadow: 0 0 0 1px var(--primary-2) inset; }
.tile.oos { opacity: .35; cursor: not-allowed; }
.tile.oos:hover { transform: none; box-shadow: none; }

.tile .tile-icon-wrap {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  overflow: hidden;
}
.tile .tile-icon-wrap img { width: 36px; height: 36px; object-fit: contain; }
.tile .tile-icon-wrap .emoji { font-size: 30px; line-height: 1; }
.brand-img {
  width: 36px; height: 36px; object-fit: contain;
  display: inline-block;
}
.brand-mask {
  display: inline-block;
  width: 36px; height: 36px;
  background-color: var(--c, #222);
  -webkit-mask: var(--m) center/contain no-repeat;
          mask: var(--m) center/contain no-repeat;
}
.tile-flag { font-size: 38px; line-height: 1; margin: 6px 0 2px; }
.tile .tile-name { font-size: 12px; font-weight: 600; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .tile-price { font-size: 12px; color: var(--primary-2); font-weight: 700; }
.tile.oos .tile-price { color: var(--muted); }

/* Checkout panel */
.qb-pay { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.qb-pay-empty { padding: 40px 0; text-align: center; }
.qb-pay-summary { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.qb-pay-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.qb-pay-price { font-size: 24px; font-weight: 800; color: var(--primary-2); }
.qb-pay select { max-width: 200px; }
.qb-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 4px; }
.qb-method { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer; transition: .15s; }
.qb-method:hover { border-color: var(--primary); }
.qb-method.active { border-color: var(--primary-2); background: rgba(76,210,255,.10); }
.qb-success { margin-top: 14px; background: rgba(45,214,115,.08); border: 1px solid var(--success); border-radius: 10px; padding: 16px; }

.qb-cta-row { display: flex; gap: 10px; margin-top: 14px; }
.qb-buy { flex: 1; }
.qb-add-cart { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
@media (max-width: 540px) {
  .qb-cta-row { flex-direction: column; }
}

/* Cart page */
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 14px; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.cart-item-icon {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 15px; }
.cart-item-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cart-item-qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-3);
  border-radius: 8px;
  padding: 4px;
}
.cart-item-qty button {
  width: 28px; height: 28px;
  background: transparent; border: 0; color: var(--text);
  cursor: pointer; font-size: 16px; font-weight: 700;
  border-radius: 6px;
}
.cart-item-qty button:hover { background: var(--line); }
.cart-item-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item-price {
  font-weight: 700; font-size: 16px;
  color: var(--primary-2);
  min-width: 70px; text-align: right;
}
.cart-item-remove {
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: 6px;
  font-size: 16px;
}
.cart-item-remove:hover { background: var(--bg-3); color: var(--danger); }

.cart-summary {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.cart-summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
}
.cart-summary-line.cart-total {
  font-size: 18px; font-weight: 700;
}

@media (max-width: 600px) {
  .cart-item { grid-template-columns: auto 1fr auto; row-gap: 10px; }
  .cart-item-qty { grid-column: 2 / 3; justify-self: start; }
  .cart-item-price { grid-column: 1 / 4; text-align: left; font-size: 18px; }
  .cart-item-remove { grid-column: 3 / 4; grid-row: 1 / 2; }
}

.btn-lg { padding: 14px 18px; font-size: 16px; }

@media (max-width: 600px) {
  .qb-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .tile { min-height: 108px; padding: 10px 6px 8px; }
  .tile .tile-icon-wrap { width: 48px; height: 48px; }
  .tile .tile-icon-wrap img { width: 30px; height: 30px; }
  .tile-flag { font-size: 32px; }
}

/* Anti-scam banner */
.scam-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 84, 112, .08);
  border: 1px solid rgba(255, 84, 112, .35);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
  font-size: 14px; color: var(--text);
}
.scam-icon { font-size: 22px; }

/* Active activation cards */
.active-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.active-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
}
.active-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.active-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.active-svc { font-weight: 600; }
.active-ctr { color: var(--muted); }
.active-price { font-size: 18px; font-weight: 700; color: var(--primary-2); }

.act-phone-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.act-phone { font-size: 22px; font-weight: 700; letter-spacing: .5px; flex: 1; }

.act-waiting { display: flex; flex-direction: column; gap: 10px; }
.act-status-line {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.act-ttl {
  margin-left: auto;
  background: var(--bg-3);
  padding: 4px 10px; border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--warn);
  font-weight: 600;
}
.act-receive {
  width: 100%;
  padding: 16px 22px; font-size: 16px;
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
}
.act-code-box {
  background: rgba(45,214,115,.10);
  border: 1px solid var(--success);
  border-radius: 12px; padding: 16px; text-align: center;
}
.act-code-label {
  color: var(--success); font-size: 13px; font-weight: 600; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 1px;
}
.act-code {
  font-size: 36px; font-weight: 800; letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.act-state-box {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; text-align: center;
}

/* Help / FAQ page */
.faq-card { padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.faq-card h3 { margin: 0 0 10px; font-size: 17px; }
.faq-card p { margin: 6px 0; color: var(--text); }
.faq-card ul, .faq-card ol { padding-left: 22px; }
.faq-steps li { padding: 6px 0; }
.faq-steps li strong { color: var(--primary-2); }

/* Floating support widget — smaller and reserved zone in body */
.support-fab {
  position: fixed; bottom: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); z-index: 90;
  border: 0; transition: transform .15s, opacity .15s;
  opacity: .92;
}
.support-fab:hover { transform: scale(1.08); opacity: 1; }
.support-panel {
  position: fixed; bottom: 72px; right: 16px;
  width: min(340px, 92vw);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px; z-index: 90; display: none;
}
.support-panel.open { display: block; }
.support-panel h3 { margin: 0 0 10px; }
.support-panel a.support-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg-3);
  border-radius: 10px; margin-bottom: 8px;
  color: var(--text);
}
.support-panel a.support-link:hover { background: var(--line); text-decoration: none; }
.support-panel .si { font-size: 22px; }

/* Cart page */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto 36px;
  gap: 14px; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.cart-item-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #fff; border-radius: 10px; }
.cart-item-info .cart-item-name { font-weight: 700; font-size: 15px; }
.cart-item-info .cart-item-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-item-qty { display: flex; align-items: center; gap: 4px; }
.cart-item-qty button {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text); font-size: 16px; font-weight: 700;
  cursor: pointer;
}
.cart-item-qty button:hover { background: var(--line); }
.cart-item-qty span { min-width: 28px; text-align: center; font-weight: 600; }
.cart-item-price { font-weight: 700; font-size: 16px; color: var(--primary-2); }
.cart-item-remove {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 14px;
}
.cart-item-remove:hover { color: var(--danger); border-color: var(--danger); }
.cart-summary {
  margin-top: 24px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
}
.cart-summary-line { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.cart-summary-line.cart-total { font-size: 18px; align-items: baseline; }

/* QuickBuy: add-to-cart button + "or" divider */
.qb-cart-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600;
}
.qb-or {
  text-align: center; color: var(--muted); font-size: 12px;
  margin: 14px 0 4px; letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .cart-item { grid-template-columns: 40px 1fr auto; row-gap: 8px; column-gap: 10px; padding: 10px 12px; }
  .cart-item-icon { width: 40px; height: 40px; }
  .cart-item-icon img, .cart-item-icon .brand-mask, .cart-item-icon .brand-img { width: 26px; height: 26px; }
  .cart-item-qty { grid-column: 2; }
  .cart-item-price { grid-column: 3; }
  .cart-item-remove { grid-column: 3; grid-row: 1; align-self: start; }
}

/* ZORKI loyalty UI */
.tier-card { position: relative; overflow: hidden; }
.tier-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, currentColor 200%);
  opacity: .04; pointer-events: none;
}
.tier-card.tier-bronze   { color: #cd7f32; border-color: rgba(205,127,50,.40); }
.tier-card.tier-silver   { color: #c0c0c0; border-color: rgba(192,192,192,.40); }
.tier-card.tier-gold     { color: #ffd700; border-color: rgba(255,215,0,.40); }
.tier-card.tier-diamond  { color: #b9f2ff; border-color: rgba(185,242,255,.40); }
.tier-badge {
  display: flex; align-items: center; gap: 10px;
  font-size: 28px; font-weight: 800;
  margin: 6px 0;
}
.tier-ic { font-size: 32px; }
.tier-name { color: var(--text); }
.tier-progress {
  height: 8px; background: var(--bg-3);
  border-radius: 999px; overflow: hidden;
  margin-top: 8px;
}
.tier-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  transition: width .4s ease-out;
}

.zorki-redeem {
  background: rgba(255, 180, 84, .08);
  border: 1px solid rgba(255, 180, 84, .25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
}
.zorki-redeem input[type=range] {
  appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--warn) 0%, var(--warn) var(--val, 0%), var(--bg-3) var(--val, 0%));
  margin: 8px 0 4px;
}
.zorki-redeem input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--warn); cursor: pointer; border: 2px solid #fff;
}
.zorki-summary {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}

/* ───── Help tooltips ───── */
.help-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 11px; font-weight: 700; cursor: help;
  margin-left: 6px; vertical-align: middle;
  user-select: none;
  position: relative;
  opacity: .7; transition: opacity .15s ease;
}
.help-tip:hover { opacity: 1; }
.help-tip::after {
  content: attr(data-help-text);
  position: absolute;
  bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1a1a2e; color: #fff;
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 400;
  white-space: normal; width: 240px; max-width: 240px;
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  z-index: 9999;
  line-height: 1.4;
}
.help-tip:hover::after { opacity: 1; }

/* RTL support dla arabic */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .help-tip { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .nav .links { flex-direction: row-reverse; }
html[dir="rtl"] .scam-banner { flex-direction: row-reverse; }
