/* Volume Funding: dark (default) and light themes share these token names */
:root {
  --bg: #041F17;
  --bg-2: #062A1F;
  --panel: #07301F;
  --panel-2: #0A3A28;
  --border: #12493A;
  --text: #ECFDF5;
  --muted: #9CC7B4;
  --green: #22C55E;
  --green-light: #4ADE80;
  --green-dark: #064E3B;
  --btn-from: #22C55E;
  --btn-to: #4ADE80;
  --btn-text: #03261A;
  --red: #F87171;
  --amber: #FBBF24;
  --header-bg: rgba(4, 31, 23, .78);
  --glow: rgba(74, 222, 128, .35);
  --glow-soft: rgba(34, 197, 94, .14);
  --grid-line: rgba(74, 222, 128, .05);
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
  --radius: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3FBF6;
  --bg-2: #E7F5EC;
  --panel: #FFFFFF;
  --panel-2: #F0F9F3;
  --border: #CBE5D6;
  --text: #062A1F;
  --muted: #4A6B5C;
  --green: #16A34A;
  --green-light: #15803D;
  --green-dark: #064E3B;
  --red: #DC2626;
  --amber: #B45309;
  --header-bg: rgba(243, 251, 246, .82);
  --glow: rgba(22, 163, 74, .28);
  --glow-soft: rgba(22, 163, 74, .10);
  --grid-line: rgba(21, 128, 61, .06);
  --shadow: 0 24px 60px rgba(6, 78, 59, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Nothing may push the page sideways on phones; clip keeps the sticky header working */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.7;
  transition: background-color .35s, color .35s;
}
a { color: var(--green-light); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ltr { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }

/* Faint neon grid behind every page */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* Scroll progress line */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--green-light)); box-shadow: 0 0 10px var(--glow); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow .3s, background-color .35s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.18), 0 1px 0 var(--glow-soft); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; direction: ltr; color: var(--text); flex-shrink: 0; }
.brand img { width: 40px; height: 40px; transition: transform .4s, filter .4s; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 8px var(--glow)); }
.brand .wm { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: .22em; line-height: 1; }
.brand .wm small { display: block; font-size: .55rem; font-weight: 500; letter-spacing: .5em; color: var(--green-light); margin-top: 6px; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links > a { color: var(--muted); font-size: .9rem; white-space: nowrap; position: relative; transition: color .2s; }
.nav-links > a::after { content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--green-light);
  box-shadow: 0 0 8px var(--glow); transform: scaleX(0); transition: transform .25s; }
.nav-links > a:hover { color: var(--text); }
.nav-links > a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
.nav-links > a.current { color: var(--green-light); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-actions .btn { white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; transition: border-color .2s, box-shadow .2s, color .2s; }
.icon-btn:hover { border-color: var(--green); color: var(--green-light); box-shadow: 0 0 14px var(--glow-soft), inset 0 0 10px var(--glow-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-switch { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 68px; height: 38px; padding: 0 9px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); cursor: pointer; flex: none; transition: border-color .2s, box-shadow .2s; }
.theme-switch:hover { border-color: var(--green); box-shadow: 0 0 14px var(--glow-soft); }
.ts-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; transition: color .25s; }
.ts-ico svg { width: 15px; height: 15px; }
.ts-knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--glow-soft); transition: transform .25s ease; }
html[data-theme=light] .ts-sun, html:not([data-theme=light]) .ts-moon { color: #fff; }
html:not([data-theme=light]) .ts-knob { transform: translateX(30px); }
html[dir=rtl]:not([data-theme=light]) .ts-knob { transform: translateX(-30px); }
.menu-btn { display: none; }
.menu-auth, .menu-theme { display: none; }
@media (max-width: 1480px) {
  .nav-links { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); padding: 16px;
    border-bottom: 1px solid var(--border); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 6px 0; }
  .menu-auth { display: grid; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
  .menu-btn { display: inline-grid; }
}
/* Phones: Log in / Sign up (or Dashboard / Log out) stay in the top bar; the rest moves into the menu */
@media (max-width: 900px) {
  .nav-actions .btn:not(.ghost), .nav-actions .nav-admin { display: none; }
}
@media (max-width: 480px) {
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; }
  .brand .wm { font-size: 1rem; letter-spacing: .14em; }
  .brand .wm small { letter-spacing: .4em; }
  .brand img { width: 32px; height: 32px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn.small { padding: 6px 8px; font-size: .74rem; }
  /* The theme switch moves into the menu on phones */
  .nav-actions #themeBtn { display: none; }
  .nav-links .menu-theme { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 6px 0; font-weight: 600; }
  .icon-btn { min-width: 34px; height: 34px; padding: 0 8px; }
  .theme-switch { width: 64px; height: 34px; padding: 0 8px; }
  .ts-knob { width: 26px; height: 26px; }
}
@media (max-width: 380px) {
  .brand .wm { font-size: .85rem; letter-spacing: .1em; }
  .brand .wm small { display: none; }
  .brand img { width: 28px; height: 28px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn.small { padding: 6px 7px; font-size: .72rem; }
  .site-header .container { gap: 6px; padding-inline: 12px; }
  .icon-btn { min-width: 28px; height: 30px; padding: 0 5px; }
}
@media (max-width: 340px) {
  .brand .wm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden;
  border: 0; border-radius: 12px; padding: 12px 22px; cursor: pointer; font: inherit; font-weight: 700;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--btn-text);
  transition: transform .2s, box-shadow .25s, filter .2s;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s; pointer-events: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(74,222,128,.5), 0 8px 28px var(--glow); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: var(--green); color: var(--green-light); box-shadow: 0 0 16px var(--glow-soft), inset 0 0 12px var(--glow-soft); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { color: var(--green-light); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-shadow: 0 0 12px var(--glow); }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 8px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }
.alt { background: color-mix(in srgb, var(--bg-2) 88%, transparent); border-block: 1px solid var(--border); }

.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero .orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); will-change: transform; }
.hero .orb.a { inset: -30% -12% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(34,197,94,.24), transparent 60%); animation: float 12s ease-in-out infinite; }
.hero .orb.b { inset: auto auto -40% -10%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(74,222,128,.12), transparent 60%); animation: float 15s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 30px 24px; } }
.hero .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 12px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--green), var(--green-light), var(--green)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px var(--glow)); animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; color: var(--muted); font-size: .9rem; }
.hero-points span::before { content: ''; display: inline-block; width: .38em; height: .72em; margin-inline-end: 9px; vertical-align: .05em;
  border: solid var(--green-light); border-width: 0 2px 2px 0; transform: rotate(45deg); filter: drop-shadow(0 0 4px var(--glow)); }
.hero-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow), 0 0 0 1px var(--glow-soft); position: relative; }
.hero-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 70%, var(--green-light), transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.hero-card .row-b { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.hero-card .row-b:last-of-type { border: 0; }
.big, .amount, .acc, .stat .value { font-family: 'Montserrat', sans-serif; direction: ltr; text-align: right; }
[dir="ltr"] .big, [dir="ltr"] .amount, [dir="ltr"] .acc, [dir="ltr"] .stat .value { text-align: left; }
.hero-card .big { font-size: 2.4rem; font-weight: 700; }
@media (max-width: 900px) { .hero .hero-grid { grid-template-columns: 1fr; } }

/* Number band under the hero */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; position: relative; }
.numbers div { text-align: center; padding: 18px 8px; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.numbers b { display: block; font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green-light); text-shadow: 0 0 16px var(--glow); direction: ltr; }
.numbers span { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .numbers { grid-template-columns: 1fr 1fr; } }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards light up under the pointer */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative;
  transition: border-color .25s, box-shadow .3s, transform .3s, background-color .35s; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 60%); }
.card:hover { border-color: color-mix(in srgb, var(--green) 60%, var(--border)); box-shadow: 0 0 0 1px var(--glow-soft), 0 10px 40px var(--glow-soft), 0 0 24px var(--glow-soft); }
.card:hover::after { opacity: 1; }
.card.lift:hover { transform: translateY(-4px); }
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; background: var(--glow-soft); color: var(--green-light); margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--glow-soft); }
.icon { width: 46px; height: 46px; margin-bottom: 12px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--green-light);
  background: var(--glow-soft); box-shadow: inset 0 0 0 1px var(--glow-soft); transition: transform .3s, box-shadow .3s; }
.icon .ico { width: 24px; height: 24px; filter: drop-shadow(0 0 6px var(--glow)); }
.card:hover .icon { box-shadow: inset 0 0 0 1px var(--green), 0 0 18px var(--glow); }
.ico { width: 18px; height: 18px; vertical-align: -3px; flex: none; }
.note-ico { display: flex; gap: 10px; align-items: flex-start; }
.note-ico > .icon, .note-ico > .ico { width: 22px; height: 22px; margin: 0; background: none; box-shadow: none; border-radius: 0; color: var(--green-light); flex: none; }
.note-ico > .icon .ico { width: 20px; height: 20px; }
.me-meta .note-ico { gap: 4px; align-items: center; }
.me-meta .note-ico .ico { width: 15px; height: 15px; color: var(--green-light); }
.card:hover .icon { transform: scale(1.15) rotate(-6deg); }

/* ---------- Pricing ---------- */
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 5px; gap: 4px; flex-wrap: wrap; justify-content: center; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.seg button:hover { color: var(--text); background: var(--glow-soft); }
.seg button.active { background: var(--green); color: #03261A; box-shadow: 0 0 16px var(--glow); }
.seg-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; }
.pricing { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-box { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.price-box .badge { align-self: flex-start; }
.price-box .amount { font-size: 3rem; font-weight: 700; margin: 12px 0 0; text-shadow: 0 0 22px var(--glow-soft); }
.price-box .acc { color: var(--green-light); font-weight: 600; }
.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.94); opacity: .4; } 100% { transform: none; opacity: 1; } }
.rules-table { width: 100%; border-collapse: collapse; }
.rules-table td { padding: 12px 6px; border-bottom: 1px solid var(--border); }
.rules-table td:last-child { font-weight: 700; unicode-bidi: plaintext; text-align: left; }
[dir="ltr"] .rules-table td:last-child { text-align: right; }
.rules-table tr:last-child td { border: 0; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--glow-soft); color: var(--green-light); }
.badge.warn { background: rgba(251,191,36,.14); color: var(--amber); }
.badge.bad { background: rgba(248,113,113,.14); color: var(--red); }
.badge.gray { background: rgba(156,199,180,.12); color: var(--muted); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.compare th, .compare td { padding: 15px 14px; border-bottom: 1px solid var(--border); text-align: center; transition: background-color .2s; }
.compare th:first-child, .compare td:first-child { text-align: start; color: var(--muted); font-weight: 600; position: sticky; inset-inline-start: 0; background: var(--panel); z-index: 1; }
.compare thead th { padding-top: 22px; vertical-align: bottom; }
.compare thead th .pname { display: block; font-size: 1.1rem; color: var(--text); }
.prog-card { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.prog-card .badge { align-self: flex-start; }
.prog-card p { flex: 1; }
.prog-card .from { color: var(--muted); }
.prog-card .from b { color: var(--green-light); font-family: 'Montserrat', sans-serif; font-size: 1.5rem; margin-inline-start: 4px; }
.prog-card .more { color: var(--green-light); font-weight: 600; font-size: .9rem; }
.compare thead th .from { display: block; color: var(--green-light); font-weight: 700; }
.compare thead th .from .ltr { font-family: 'Montserrat', sans-serif; }
.compare tbody tr:hover td { background: var(--glow-soft); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--green-light); }
.compare td.no { font-size: .82rem; color: var(--muted); max-width: 170px; }
.compare td.yes .ico { width: 20px; height: 20px; filter: drop-shadow(0 0 5px var(--glow)); }
.compare .hot { background: color-mix(in srgb, var(--green) 8%, transparent); }
.compare thead .hot { box-shadow: inset 0 3px 0 var(--green-light); }
.compare tr.group td { color: var(--green-light); font-weight: 700; font-size: .85rem; background: var(--panel-2); text-align: start; letter-spacing: .04em; }
.compare .buy { padding: 7px 14px; font-size: .85rem; }

/* ---------- Affiliate ---------- */
.aff { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 900px) { .aff { grid-template-columns: 1fr; } }
.aff-steps { display: grid; gap: 12px; }
.aff-step { display: flex; gap: 14px; align-items: flex-start; }
.aff-step .step-num { flex: none; margin: 0; }
.aff-card { text-align: center; padding: 36px 24px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.aff-card .pct { font-family: 'Montserrat', sans-serif; font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 700; color: var(--green-light); text-shadow: 0 0 30px var(--glow); line-height: 1.1; direction: ltr; }
.ref-box { display: flex; gap: 8px; align-items: center; background: var(--panel-2); border: 1px dashed var(--green); border-radius: 12px; padding: 10px 12px; }
.ref-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: 'Montserrat', monospace; direction: ltr; text-align: left; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding: 0 20px; transition: border-color .25s, box-shadow .25s; }
.faq details:hover, .faq details[open] { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); box-shadow: 0 0 18px var(--glow-soft); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green-light); font-size: 1.3rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.cta-band { background: linear-gradient(135deg, #064E3B, #0B5D3F); color: #ECFDF5; border-radius: 24px; padding: 48px 32px; text-align: center; border: 1px solid rgba(74,222,128,.35); box-shadow: 0 0 40px rgba(34,197,94,.18); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: -50%; background: radial-gradient(circle at 30% 30%, rgba(74,222,128,.22), transparent 40%); animation: float 10s ease-in-out infinite; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-band p { color: #C8EBDB; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); transition: color .2s, text-shadow .2s; }
.site-footer li a:hover { color: var(--green-light); text-shadow: 0 0 10px var(--glow); }
.disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }

/* ---------- Forms ---------- */
label { display: block; font-size: .9rem; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; } /* password fields are left-to-right, so the eye sits on the right */
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--green-light); background: var(--glow-soft); outline: none; }
.pw-toggle .ico { width: 20px; height: 20px; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--glow-soft), 0 0 16px var(--glow-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; direction: ltr; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; margin: 10px 0; cursor: pointer; }
.check input { width: auto; margin-top: 6px; accent-color: var(--green); }
.error { color: var(--red); min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; }
.success { color: var(--green-light); }
.req { color: var(--green-light); }
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; isolation: isolate; }
/* Sign-in background: two slow green glows, a faint grid that fades out at the edges, and a soft ring behind the box */
.auth-wrap::before, .auth-wrap::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(12px); }
.auth-wrap::before { width: 620px; height: 620px; top: -18%; inset-inline-end: -10%; background: radial-gradient(circle, rgba(34,197,94,.22), transparent 62%); animation: float 13s ease-in-out infinite; }
.auth-wrap::after { width: 520px; height: 520px; bottom: -22%; inset-inline-start: -8%; background: radial-gradient(circle, rgba(74,222,128,.14), transparent 62%); animation: float 16s ease-in-out infinite reverse; }
.auth-wrap > .auth-card { position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px var(--glow-soft), 0 0 60px var(--glow-soft); }
[data-theme="light"] .auth-wrap > .auth-card { box-shadow: 0 18px 50px rgba(4,31,23,.10), 0 0 0 1px var(--glow-soft), 0 0 40px var(--glow-soft); }
.auth-wrap { background:
  radial-gradient(ellipse 60% 55% at 50% 50%, transparent 0 35%, var(--bg) 75%),
  linear-gradient(var(--glow-soft) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, var(--glow-soft) 1px, transparent 1px) 0 0 / 48px 48px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.wide { max-width: 640px; }
.auth-card h2 { margin-top: 0; }
.auth-brand { display: flex; justify-content: center; margin: 4px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.auth-brand .brand img { width: 52px; height: 52px; }
.auth-brand .brand .wm { font-size: 1.5rem; }
.auth-card .auth-brand + h2 { text-align: center; }
.forgot { margin: 8px 0 0; font-size: .88rem; text-align: end; }
.auth-card .notice { margin: 14px 0; }
.form-group-title { margin: 22px 0 0; font-size: .8rem; font-weight: 700; color: var(--green-light); letter-spacing: .06em; }

.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .options.two { grid-template-columns: 1fr; } }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--panel-2); margin: 0; color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.option:hover { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); box-shadow: 0 0 14px var(--glow-soft); }
.option input { width: auto; accent-color: var(--green); }
.option:has(input:checked) { border-color: var(--green); background: var(--glow-soft); box-shadow: 0 0 18px var(--glow-soft); }
.option .grow { flex: 1; }
.coin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .75rem; color: #fff; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.chip:hover { border-color: var(--green); box-shadow: 0 0 12px var(--glow-soft); }
.chip.active { border-color: var(--green); background: var(--glow-soft); color: var(--green-light); box-shadow: 0 0 14px var(--glow-soft); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 40px 0 80px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 92px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-row b { color: var(--text); direction: ltr; }
.sum-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.3rem; }
.sum-total b { color: var(--green-light); font-family: 'Montserrat', sans-serif; text-shadow: 0 0 14px var(--glow); }
.checkout .card + .card { margin-top: 16px; }
.card h3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--glow-soft); color: var(--green-light); font-size: .85rem; margin-inline-end: 8px; font-family: 'Montserrat', sans-serif; }

/* ---------- Dashboard / tables ---------- */
.dash { padding: 32px 16px 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.dash-head h1 { margin: 0; font-size: 1.6rem; }
.me-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: #03261A;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); box-shadow: 0 0 22px var(--glow); flex: none; }
.me-card .who { flex: 1; min-width: 200px; }
.me-card .who h2 { margin: 0; font-size: 1.3rem; }
.me-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.me-meta span { overflow-wrap: anywhere; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--green-light); border-color: var(--green); text-shadow: 0 0 10px var(--glow); }
.tab-panel { animation: pop .35s ease; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: start; white-space: nowrap; }
table.data th { color: var(--muted); font-weight: 600; }
table.data tbody tr:hover td, table.data tr:hover td { background: var(--glow-soft); }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; }
.acc-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fail-note, .goal-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; }
.fail-note { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.goal-note { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.meters { margin-top: 14px; display: grid; gap: 12px; }
.meter-bal { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.meter-bal b { font-size: 1.05rem; }
.meter-time { font-size: .75rem; margin-inline-start: auto; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; margin-bottom: 6px; flex-wrap: wrap; }
.meter-note { color: var(--muted); }
.meter-note b { color: var(--text); }
.meter-track { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-light)); transition: width .6s ease; }
.meter.warn .meter-track span { background: var(--amber); }
.meter.danger .meter-track span { background: var(--red); }
.acc-card .size { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 700; }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; background: var(--panel-2); border-radius: 12px; padding: 14px; font-size: .92rem; }
.cred b { font-family: 'Montserrat', sans-serif; unicode-bidi: plaintext; text-align: left; overflow-wrap: anywhere; }
[dir="ltr"] .cred b { text-align: right; }
.cred b.pending { text-align: start; font-family: inherit; }
.notice { background: var(--glow-soft); border: 1px solid var(--green); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; box-shadow: 0 0 18px var(--glow-soft); }
.legal { max-width: 860px; margin: 0 auto; padding: 48px 16px 80px; }
.legal h2 { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); }
.legal p, .legal li { color: var(--muted); }

/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert-card canvas, .cert-card img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); }
.cert-card .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.share a { font-size: .8rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); transition: border-color .2s, color .2s, box-shadow .2s; }
.share a:hover { border-color: var(--green); color: var(--green-light); box-shadow: 0 0 12px var(--glow-soft); }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.anim .reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.anim .reveal.from-above { transform: translateY(-28px) scale(.98); }
.anim .reveal.in { opacity: 1; transform: none; }
.hero .reveal-load { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim .reveal { opacity: 1; transform: none; }
}

/* Support conversations (Contact us, admin inbox) */
.thread { display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.bubble.support { justify-self: end; background: var(--glow-soft); border-color: var(--green); }
.bubble.client { justify-self: start; }
.bubble .meta { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.ticket-item { display: block; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--border); color: inherit; font: inherit; padding: 12px 10px; cursor: pointer; }
.ticket-item:hover, .ticket-item.active { background: var(--glow-soft); }
.ticket-item .t-sub { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item .t-meta { font-size: .78rem; color: var(--muted); }

/* Trader Desk */
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mini-stats .card { padding: 16px; }
.mini-stats .value { font-size: 1.3rem; }
.split-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--border); margin: 8px 0 6px; }
.split-bar .buy { background: var(--green); }
.split-bar .sell { background: var(--red); }
.split-legend { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 6px 14px; font-size: .9rem; }
.kv b { overflow-wrap: anywhere; font-weight: 600; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.acc-section { margin-top: 14px; }
.acc-section h4 { margin: 0 0 8px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.timeline li { display: flex; gap: 8px; align-items: baseline; }
.timeline li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-1px); }
.timeline li.todo::before { background: var(--border); }

/* Arabic */
html[lang="ar"] body { font-family: 'Noto Kufi Arabic', 'Montserrat', system-ui, sans-serif; }
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
.lang-btn { font-family: 'Noto Kufi Arabic', 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; }
