/* =====================================================================
   MD PANEL — STYLESHEET
   Colours and sizes live in the variables below. Change them here and
   the whole site updates.
   ===================================================================== */

:root {
  /* Backgrounds */
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #1a1a1a;
  --surface-2: #242424;

  /* Lines */
  --tint-rgb: 255, 255, 255;
  --border: rgba(var(--tint-rgb), 0.08);
  --border-strong: rgba(var(--tint-rgb), 0.16);

  /* Text */
  --text: #f2f2f2;
  --muted: #9da3af;

  /* Header surfaces */
  --header-bg: rgba(0, 0, 0, 0.92);
  --mobile-nav-bg: rgba(0, 0, 0, 0.98);

  /* Logo chip — stays dark in both themes since most logos are light-coloured
     and were made to sit on a dark background. Not overridden in [data-theme="light"]. */
  --logo-bg: #050505;
  --logo-border: rgba(255, 255, 255, 0.08);

  /* Brand accent (gold, matched to the cricbosspanel.com look — 6 Oct 2026) */
  --gold: #ffb90d;
  --gold-2: #ffc93c;
  --gold-3: #d59700;
  --gold-gradient: linear-gradient(135deg, #ffe08a 0%, #ffb90d 45%, #d59700 100%);

  /* Contact buttons */
  --green: #25d366;
  --blue: #2aabee;

  /* Shape */
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --header-h: 72px;

  /* Type */
  --font-body: 'Figtree', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Figtree', 'Sora', var(--font-body);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f4f5fa;
  --tint-rgb: 15, 23, 42;
  --text: #12141c;
  --muted: #5a6072;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --header-bg: rgba(255, 255, 255, 0.85);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: none; font: inherit; color: inherit; }
a { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: rgba(255, 185, 13, 0.35); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container.narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--gold); color: #1a1200; padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.9rem;
}
.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-gold { background: var(--gold-gradient); color: #1a1200; box-shadow: 0 8px 24px rgba(255, 185, 13, 0.22); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(255, 185, 13, 0.35); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-premium {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 185, 13, 0.16), rgba(255, 185, 13, 0.05));
  border-color: var(--gold); color: var(--gold-2);
  box-shadow: 0 6px 20px rgba(255, 185, 13, 0.18), inset 0 0 0 1px rgba(255, 185, 13, 0.12);
}
.btn-premium::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-premium:hover {
  background: var(--gold-gradient); color: #1a1200;
  box-shadow: 0 10px 28px rgba(255, 185, 13, 0.4), inset 0 0 0 1px rgba(255, 185, 13, 0.2);
}
.btn-premium:hover::before { left: 130%; }
.btn-whatsapp { background: var(--green); color: #062b14; }
.btn-whatsapp:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3); }
.btn-whatsapp svg, .float-btn.float-whatsapp svg { fill: currentColor; stroke: none; }
.btn-telegram { background: var(--blue); color: #1a1200; }
.btn-telegram:hover { box-shadow: 0 12px 30px rgba(42, 171, 238, 0.3); }
.btn-lg { padding: 1.02rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.85rem; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease;
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-left { display: flex; align-items: center; gap: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  background: transparent; border: 1px solid var(--border-strong); color: var(--gold-2); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--gold); background: rgba(var(--tint-rgb), 0.06); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline-flex; }
.brand-mark-wrap {
  position: relative; display: inline-block; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
}
.brand-mark { width: 40px; height: 40px; display: block; font-family: var(--font-head); animation: logoFloat 4.5s ease-in-out infinite; transform-origin: 50% 55%; }
.brand-mark-wrap::after {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: translateX(-120%); animation: logoShine 5s ease-in-out infinite;
  mix-blend-mode: overlay;
}
.brand:hover .brand-mark { animation-duration: 1.6s; }
.brand:hover .brand-mark-wrap::after { animation-duration: 1.8s; }
@keyframes logoFloat {
  0%, 100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(255, 185, 13, 0)); }
  50% { transform: rotate(-4deg) scale(1.05); filter: drop-shadow(0 3px 9px rgba(255, 185, 13, 0.5)); }
}
@keyframes logoShine {
  0%, 45% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn).active { color: var(--text); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(20px, 3.5vw, 36px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(255, 185, 13, 0.20), transparent 70%),
    radial-gradient(35% 40% at 88% 30%, rgba(255, 185, 13, 0.08), transparent 70%),
    radial-gradient(35% 40% at 10% 70%, rgba(42, 171, 238, 0.06), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--tint-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--tint-rgb), 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; max-width: 900px; margin: 0 auto 1rem;
  line-height: 1.08;
}
.hero .lead { max-width: 680px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 2.4rem; }

/* Brand logo slider */
.brands { margin: 0 auto 2.6rem; max-width: 1100px; }
.brands-label {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.brands-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands-track { display: flex; width: max-content; animation: brandsScroll var(--brands-dur, 30s) linear infinite; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brand-item {
  position: relative;
  flex-shrink: 0; width: 220px; height: 84px; margin-right: 16px; padding: 10px 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--logo-bg); border: 1px solid var(--logo-border); border-radius: 12px;
}
.brand-rate {
  position: absolute; top: 6px; right: 6px;
  background: linear-gradient(135deg, var(--gold-2, #f5c451), var(--gold, #ffb90d));
  color: #0b0f14; font-family: var(--font-head); font-weight: 800; font-size: 0.62rem;
  line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  padding: 3px 7px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.brand-type {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--font-head); font-weight: 800; font-size: 0.58rem; letter-spacing: 0.04em;
  line-height: 1; text-transform: uppercase; white-space: nowrap;
  padding: 3px 7px; border-radius: 999px; border: 1px solid transparent;
}
.brand-type.b2b { background: rgba(255, 185, 13, 0.16); color: #ffb90d; border-color: rgba(255, 185, 13, 0.35); }
.brand-type.b2c { background: rgba(214, 25, 28, 0.2); color: #ff6b6d; border-color: rgba(214, 25, 28, 0.5); }
a.brand-item {
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.brand-item:hover,
a.brand-item:focus-visible {
  border-color: var(--gold, #ffb90d);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.brand-item img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.brand-item .logo-fallback { font-size: 1.1rem; white-space: nowrap; }
@keyframes brandsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Partnership rate highlight ---------- */
.partner-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 auto 2.4rem;
  padding: 10px 20px 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(var(--tint-rgb), 0.05), rgba(var(--tint-rgb), 0.01)),
    var(--surface);
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  animation:
    partnerPop 0.7s cubic-bezier(.2, .9, .25, 1.15) both,
    partnerGlow 3.4s ease-in-out infinite;
}
/* rotating gold "spotlight" ring that forms the border */
.partner-cta::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from 0deg,
    rgba(255, 185, 13, 0.15) 0deg,
    var(--gold-2) 70deg,
    rgba(255, 185, 13, 0.15) 150deg,
    rgba(255, 185, 13, 0.15) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: partnerSpin 4.5s linear infinite;
  z-index: 0;
}
/* diagonal light sheen sweeping across the face */
.partner-cta::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  animation: partnerSheen 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.partner-cta > * { position: relative; z-index: 1; }

.partner-cta-text {
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.partner-cta-rate {
  font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 800; line-height: 0.9; letter-spacing: -0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 185, 13, 0.5));
  animation: partnerRate 2.6s ease-in-out infinite;
}
.partner-cta-rate .pct { font-size: 0.55em; font-weight: 700; }
.partner-cta-arrow {
  font-size: 1.15rem; color: var(--gold-2);
  transition: transform 0.25s ease;
}
.partner-cta:hover { color: var(--text); }
.partner-cta:hover .partner-cta-arrow { transform: translateX(4px); }
.partner-cta:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

@keyframes partnerPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes partnerGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 185, 13, 0.14), 0 8px 26px rgba(0, 0, 0, 0.28); }
  50%      { box-shadow: 0 0 46px rgba(255, 185, 13, 0.42), 0 8px 26px rgba(0, 0, 0, 0.32); }
}
@keyframes partnerSpin { to { transform: rotate(360deg); } }
@keyframes partnerRate {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 185, 13, 0.35)); }
  50%      { transform: scale(1.07); filter: drop-shadow(0 0 20px rgba(255, 185, 13, 0.65)); }
}
@keyframes partnerSheen {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

.trust-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  color: var(--muted); font-size: 0.9rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; font-weight: 700;
  background: #22c55e; color: #fff; border: 1px solid #22c55e;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center h2 { max-width: 640px; }
.section-title h2 { margin-bottom: 0.4em; }
.section-desc { color: var(--muted); max-width: 620px; margin: 0; }

.section-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.55rem 0.9rem; min-width: 250px; transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 0.95rem;
}
.search input::placeholder { color: var(--muted); }
.count {
  font-size: 0.8rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  padding: 0.45rem 0.75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}
.empty { color: var(--muted); text-align: center; padding: 40px 0 0; }

/* ---------- Panel cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 185, 13, 0.45); box-shadow: var(--shadow); }

.card-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; gap: 8px; }
.badge {
  display: inline-block; font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px;
  background: var(--gold-gradient); color: #1a1200;
}
.type-pill {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted);
  margin-left: auto;
}
.type-pill.b2b { color: var(--gold-2); border-color: rgba(255, 185, 13, 0.45); }
.type-pill.b2c { color: #ffd460; border-color: rgba(255, 212, 96, 0.4); }

.card-logo {
  height: 112px; display: flex; align-items: center; justify-content: center;
  background: var(--logo-bg); border: 1px solid var(--logo-border); border-radius: 12px;
  margin: 14px 0 16px; padding: 14px 18px;
}
.card-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logo-fallback { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--gold-2); text-align: center; }

.card h3 { margin-bottom: 0.25rem; }
.original-badge { display: inline-flex; vertical-align: middle; }
.original-star { width: 16px; height: 16px; }
.card-url {
  display: inline-block; color: var(--gold-2); font-size: 0.8rem; text-decoration: none;
  margin: 0 0 0.6rem; word-break: break-all;
}
.card-url:hover { text-decoration: underline; }
.card-tagline { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.85rem; }
.card-offers { list-style: none; margin: 0 0 0.85rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; row-gap: 6px; column-gap: 8px; }
.card-offers li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; color: var(--text); min-width: 0; }
.card-offers li .offer-check { margin-top: 2px; }
.card-offers li span { overflow-wrap: break-word; white-space: normal; }
.offer-check { width: 18px; height: 18px; flex: none; }

.card-rate { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 14px; margin-top: auto; }
.rate-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; }
.rate-value { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: var(--gold-2); line-height: 1.1; }
.rate-period { color: var(--muted); font-size: 0.85rem; margin-left: 0.3rem; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-actions .btn { padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.9rem; }
.card-actions .js-demo-video { grid-column: 1 / -1; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: rgba(255, 185, 13, 0.35); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 185, 13, 0.12); border: 1px solid rgba(255, 185, 13, 0.3); margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  counter-reset: step;
}
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-gradient); color: #1a1200; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- Dealing terms ---------- */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.term {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px;
  text-align: center; transition: border-color 0.2s, transform 0.2s;
}
.term:hover { border-color: rgba(255, 185, 13, 0.35); transform: translateY(-3px); }
.term-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 185, 13, 0.12); border: 1px solid rgba(255, 185, 13, 0.3); margin: 0 auto 14px;
}
.term-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.term-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.term-value { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--gold-2); margin: 0; line-height: 1.2; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: rgba(255, 185, 13, 0.35); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border-strong); color: var(--gold-2); font-size: 1.1rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }

/* ---------- Contact / CTA ---------- */
.cta-section { padding-top: 0; }
.cta {
  position: relative; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px);
  border-radius: 24px; border: 1px solid rgba(255, 185, 13, 0.35);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 185, 13, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.cta h2 { margin-bottom: 0.4em; }
.cta .lead { max-width: 560px; margin: 0 auto 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-email { margin: 1.4rem 0 0; color: var(--muted); }
.cta-email a { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; max-width: 360px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-2); }
.footer-bottom { padding-top: 20px; color: var(--muted); font-size: 0.82rem; }
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom .legal strong { color: var(--text); }

/* ---------- Demo login modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(100%, 480px); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow); animation: pop 0.25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(var(--tint-rgb), 0.06); border: 1px solid var(--border); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: rgba(var(--tint-rgb), 0.12); }
.modal-logo {
  height: 84px; display: flex; align-items: center; justify-content: center;
  background: var(--logo-bg); border: 1px solid var(--logo-border); border-radius: 12px; padding: 10px 16px;
  margin: 0 44px 16px 0;
}
.modal-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.modal-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.modal-card h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin: 0; }

.cred { margin: 18px 0 8px; display: grid; gap: 10px; }
.cred-row {
  display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 10px;
  background: rgba(var(--tint-rgb), 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.cred-row dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cred-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.cred-row code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; color: var(--gold-2); overflow-wrap: anywhere; }
.cred-row a { color: var(--text); overflow-wrap: anywhere; font-size: 0.95rem; }
.copy {
  flex-shrink: 0; font: inherit; font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.65rem; border-radius: 8px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.copy:hover { border-color: var(--gold); color: var(--gold-2); }
.copy.done { border-color: var(--green); color: var(--green); }
.modal-note { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.modal-actions .js-demo-video { grid-column: 1 / -1; }

/* ---------- Demo video modal ---------- */
.video-card { width: min(100%, 720px); }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 14px;
  background: #000; border-radius: 12px; overflow: hidden;
}
.video-frame iframe, .video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain;
}

/* ---------- Welcome popup ---------- */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes welcome-border-run {
  to { --border-angle: 360deg; }
}
.welcome-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 34px 32px;
  border: 2px solid transparent;
  background:
    radial-gradient(120% 160% at 50% -30%, rgba(255, 185, 13, 0.16), transparent 62%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--border-angle, 0deg),
      transparent 0deg, transparent 18deg,
      rgba(255, 224, 138, 0.95) 34deg, var(--gold) 46deg, rgba(255, 224, 138, 0.95) 58deg,
      transparent 74deg, transparent 360deg) border-box;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  animation: welcome-border-run 4.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .welcome-card {
    animation: none;
    background:
      radial-gradient(120% 160% at 50% -30%, rgba(255, 185, 13, 0.16), transparent 62%) padding-box,
      linear-gradient(var(--surface), var(--surface)) padding-box,
      var(--gold-gradient) border-box;
  }
}
.welcome-mark {
  width: 52px; height: 52px; margin: 4px auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 224, 138, 0.22), rgba(255, 185, 13, 0.05));
  border: 1px solid rgba(255, 185, 13, 0.45);
  box-shadow: 0 0 22px rgba(255, 185, 13, 0.28);
}
.welcome-mark svg { width: 22px; height: 22px; fill: var(--gold-2); }
.welcome-card h3 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 10px; }
.welcome-card .modal-sub { max-width: 360px; margin: 0 auto; }
.welcome-actions { grid-template-columns: 1fr; margin-top: 26px; }
.welcome-actions .btn { justify-content: center; }
.welcome-card .btn-whatsapp { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25), 0 0 0 1px rgba(255, 185, 13, 0.3); }
.welcome-card .btn-whatsapp:hover { box-shadow: 0 16px 36px rgba(37, 211, 102, 0.35), 0 0 0 1px rgba(255, 185, 13, 0.45); }

/* ---------- Floating contact buttons ---------- */
.float-contacts {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.float-btn {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; text-decoration: none; transition: transform 0.15s;
}
.float-btn[hidden] { display: none; }
.float-btn:hover { transform: translateY(-2px) scale(1.05); }
.float-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-whatsapp { background: var(--green); color: #062b14; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
.float-telegram { background: var(--blue); color: #1a1200; box-shadow: 0 10px 30px rgba(42, 171, 238, 0.35); }

/* ---------- Reveal on scroll ---------- */
/* Elements are visible by default; main.js marks only below-the-fold items as
   .pending and removes the class as they scroll into view. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pending { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .feature { transition: none; }
  .brand-mark, .brand-mark-wrap::after { animation: none; }
  .brands-track { animation: none; }
  .partner-cta, .partner-cta::before, .partner-cta::after, .partner-cta-rate { animation: none; }
  .partner-cta::before { background: rgba(255, 185, 13, 0.55); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--mobile-nav-bg); border-bottom: 1px solid var(--border); padding: 12px clamp(16px, 4vw, 32px) 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 6px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .site-nav .btn { margin-top: 12px; }

  .section-head { flex-direction: column; align-items: stretch; }
  .section-tools { justify-content: space-between; }
  .search { flex: 1; min-width: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }

  /* Phone card layout lives in css/home.css (list-row redesign, 6 Oct 2026). */

  .hero-actions { flex-wrap: nowrap; gap: 6px; }
  .hero-actions .btn {
    flex: 1 1 0; width: auto; min-width: 0;
    padding: 0.65rem 0.3rem; font-size: 0.72rem; white-space: normal; text-align: center;
  }

  .partner-cta {
    gap: 10px; padding: 8px 16px 8px 18px; margin-bottom: 2rem;
    max-width: calc(100% - 8px);
  }
  .partner-cta-text { font-size: 0.72rem; letter-spacing: 0.06em; white-space: normal; }
  .partner-cta-rate { font-size: 2rem; }

  .brand-item { width: 170px; height: 66px; margin-right: 12px; padding: 8px 14px; }
  .brand-rate { font-size: 0.56rem; padding: 2px 6px; top: 4px; right: 4px; }
  .brand-type { font-size: 0.52rem; padding: 2px 6px; top: 4px; left: 4px; }
  .cta-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .float-contacts { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 21px; height: 21px; }
  .modal-card { padding: 22px 18px; border-radius: 16px; }
  .cred-row { grid-template-columns: 1fr; gap: 4px; }
  .modal-actions { grid-template-columns: 1fr; }

  /* Demo video opens in a tall, portrait-oriented frame on mobile instead
     of the widescreen 16:9 box, so vertically-shot demo clips fill the
     phone screen instead of showing letterboxed bars. */
  .video-card { width: min(94%, 420px); }
  .video-frame { aspect-ratio: 9 / 16; max-height: calc(100vh - 120px); margin-top: 12px; }
}

/* Desktop header keeps only the main links (owner's request, 24 Sep 2026).
   Why Us / How It Works / Dealing Terms / FAQ stay in the phone menu,
   the footer and the page itself. */
@media (min-width: 961px) {
  .site-nav .nav-mobile-only { display: none; }
}

/* ================= BUY USDT BAR + OVERLAY (onramp.money, js/onramp.js) ================= */
.onramp-bar {
  background: linear-gradient(90deg, rgba(255, 185, 13, 0.14), rgba(213, 151, 0, 0.14));
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.onramp-bar[hidden] { display: none; }
.onramp-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  min-height: 48px; padding-top: 0.45rem; padding-bottom: 0.45rem; text-align: center;
}
.onramp-bar p { margin: 0; }
.onramp-bar-lead { font-weight: 600; color: var(--gold); }
.onramp-bar .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .onramp-bar { font-size: 0.82rem; }
  .onramp-bar-inner { justify-content: space-between; text-align: left; gap: 0.6rem; }
}

.onramp-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, 0.7);
}
.onramp-modal[hidden] { display: none; }
html.onramp-open { overflow: hidden; }
.onramp-panel {
  display: flex; flex-direction: column;
  width: 100%; max-width: 460px; height: min(760px, 100%);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.onramp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0.75rem 0.5rem 1.1rem;
}
.onramp-head h2 { margin: 0; font-size: 1.05rem; font-family: var(--font-head); }
.onramp-close {
  width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1;
}
.onramp-close:hover { background: var(--surface-2); color: var(--text); }
.onramp-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.onramp-warn {
  margin: 0 1rem 0.6rem; padding: 0.55rem 0.75rem; border-radius: 10px;
  font-size: 0.8rem; line-height: 1.4;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35);
}
.onramp-frame { flex: 1; min-height: 0; background: #fff; }
.onramp-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.onramp-foot { margin: 0; padding: 0.55rem 1rem; font-size: 0.75rem; color: var(--muted); }
.onramp-foot a { color: var(--gold); }
@media (max-width: 600px) {
  .onramp-modal { padding: 0; }
  .onramp-panel { max-width: none; height: 100%; border-radius: 0; border: 0; }
}

/* ================= PHONE HEADER: Buy Panels beside the menu button =================
   Homepage header only (#top) - buy.html shares this stylesheet and keeps its own header. */
.header-quick { display: none; }
@media (max-width: 960px) {
  #top .header-inner { gap: 10px; }
  #top .brand-name { white-space: nowrap; } /* never split "MD Panel" over two lines */
  #top .nav-toggle, .header-quick { flex-shrink: 0; } /* never squash the menu button or Buy Panels */
  /* margin-left:auto pushes the button to the right, next to the ☰ button */
  .header-quick { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .header-quick .btn { padding: 0.5rem 0.8rem; font-size: 0.82rem; border-radius: 10px; white-space: nowrap; box-shadow: none; }
}
@media (max-width: 380px) {
  /* Not enough room for everything on one line: keep the MD logo mark, drop the word mark. */
  #top .brand-name { display: none; }
  #top .header-left { gap: 8px; }
  .header-quick { gap: 6px; }
  .header-quick .btn { padding: 0.45rem 0.65rem; font-size: 0.8rem; }
}
