/*
Theme Name: AsusuX
Theme URI: https://asusumoney.net
Author: Asusu Mobile Money
Author URI: https://asusumoney.net
Description: The official AsusuX WordPress theme — a mobile-money savings-club platform built around "The Ledger Spine," a spatial design system where navigation lives on a bound left rail and content behaves like physical, layered paper: bleeding hero cards, cascading action tokens, and fanned transaction decks. Pairs with the Asusu Wallet Ledger, Asusu Voucher Manager, Asusu Trust & Safety, and Asusu PIN Security plugins for real (self-hosted) deposit, transfer, and withdrawal handling.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asusux
Tags: e-commerce, custom-menu, custom-logo, featured-images, full-width-template, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
========================================================= */
:root{
  --ink:#0B0B0F;
  --surface:#900190;
  --surface-2:#7A0179;
  --surface-3:#63015F;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --gold:#D4AF37; /* true gold accent — kept distinct from brand purple so it never blends into --surface/--violet */
  --gold-2:#E4C662; /* lighter gold tint for text/eyebrows on dark bg */
  --gold-ink:#3A2705; /* dark text used on top of gold fills, for contrast (same idea as .btn-danger's dark text on its light coral bg) */
  --violet:#900190;
  --violet-2:#4A014A;
  --green:#21D19F;
  --coral:#FF6B6B;
  --paper:#F6F1FC;
  --white:#FFFFFF;
  --muted:#C7CCE8;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --font-display:'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Light mode — same brand colors, inverted surfaces. Toggled by
   adding data-theme="light" to <html> (see assets/js/theme-toggle.js). */
html[data-theme="light"]{
  --ink:#F6F1FC;
  --surface:#FFFFFF;
  --surface-2:#F3EEFB;
  --surface-3:#ECE4F8;
  --line: rgba(11,11,15,.10);
  --line-strong: rgba(11,11,15,.18);
  --paper:#1A1730;
  --muted:#5B5A72;
}
html[data-theme="light"] body{ color:var(--paper); }

/* =========================================================
   RESET / BASE
========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--gold-2);text-decoration:none;}
a:hover{color:var(--gold);}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700;line-height:1.15;margin:0 0 .5em;color:var(--paper);}
p{margin:0 0 1em;}
ul,ol{padding-left:1.2em;}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);overflow:hidden;height:1px;width:1px;}
button{font-family:inherit;}

/* background weave texture, used behind hero/feature sections */
.weave{position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    repeating-linear-gradient(115deg, rgba(245,184,65,.05) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(25deg, rgba(139,92,246,.05) 0 2px, transparent 2px 26px);}

.eyebrow{font-family:var(--font-mono);font-size:12px;color:var(--gold-2);letter-spacing:.1em;text-transform:uppercase;margin-bottom:8px;display:inline-block;}
.mono{font-family:var(--font-mono);}
.pos{color:var(--green);} .neg{color:var(--coral);}
.tag{font-family:var(--font-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);}

/* =========================================================
   LAYOUT: SITE SPINE (desktop) / TOP BAR (mobile)
   The signature spatial element carried over from the product:
   navigation lives on a fixed, bound left rail rather than a
   conventional top nav bar.
========================================================= */
.site{display:flex;flex-direction:column;min-height:100vh;}
@media (min-width:901px){.site{flex-direction:row;}}

.site-spine{
  width:88px;flex:none;position:fixed;top:0;left:0;bottom:0;z-index:100;
  background:linear-gradient(180deg,#900190,#4A014A);
  border-right:1px solid var(--line);
  display:flex;flex-direction:column;align-items:center;
  padding:22px 0 20px;
}
.site-spine .stitch{position:absolute;top:0;bottom:0;left:13px;width:1px;
  background:repeating-linear-gradient(180deg,rgba(245,184,65,.35) 0 4px,transparent 4px 10px);}
.spine-logo{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:30px;color:#F6F1FC;}
.spine-logo .mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--gold-2),var(--violet-2));position:relative;flex:none;}
.spine-logo .mark::before,.spine-logo .mark::after{content:"";position:absolute;background:#100C28;width:3px;height:17px;top:8.3px;left:15.3px;}
.spine-logo .mark::before{transform:rotate(45deg);} .spine-logo .mark::after{transform:rotate(-45deg);}
.spine-logo img.custom-logo{width:34px;height:34px;border-radius:10px;object-fit:cover;}
.spine-nav{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px;align-items:center;}
.spine-nav li{position:relative;}
.spine-nav a{
  display:flex;flex-direction:column;align-items:center;gap:5px;color:rgba(246,241,252,.65);
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.03em;text-transform:uppercase;
  padding:6px 4px;width:72px;text-align:center;transition:color .15s ease;
}
.spine-nav a:hover{color:var(--gold-2);}
.spine-nav svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;}
.spine-nav .current-menu-item>a,
.spine-nav a.is-active{color:var(--gold);}
.spine-nav .current-menu-item>a::before,
.spine-nav a.is-active::before{
  content:"";position:absolute;right:-13px;top:50%;transform:translateY(-50%);
  width:13px;height:38px;background:var(--ink);border-radius:10px 0 0 10px;box-shadow:-2px 0 0 var(--gold);
}
.spine-account{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:14px;}
.spine-balance-chip{
  writing-mode:vertical-rl;text-orientation:mixed;font-family:var(--font-mono);font-size:10px;
  color:var(--gold-2);background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:10px 6px;letter-spacing:.02em;
}
.spine-account a{color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:4px;font-size:9px;font-family:var(--font-mono);text-transform:uppercase;}
.spine-account a:hover{color:var(--coral);}
.spine-account svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;}

/* mobile top bar replaces the spine under 900px */
.site-topbar{display:none;position:sticky;top:0;z-index:100;background:linear-gradient(180deg,#900190,#7A0179);border-bottom:1px solid var(--line);padding:12px 16px;align-items:center;justify-content:space-between;gap:10px;}
.site-topbar .spine-logo{margin:0;flex-direction:row;gap:8px;min-width:0;flex:1;overflow:hidden;}
.site-topbar .spine-logo span.site-title{font-family:var(--font-display);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar-right{display:flex;align-items:center;gap:10px;flex:none;}
.topbar-balance{font-family:var(--font-mono);font-size:11.5px;color:var(--gold-2);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:7px 10px;white-space:nowrap;}
.topbar-toggle{width:38px;height:38px;flex:none;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--paper);cursor:pointer;transition:background .15s ease;}
.topbar-toggle svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;pointer-events:none;}
.topbar-toggle[aria-expanded="true"]{background:var(--gold);color:var(--gold-ink);}
@media (max-width:400px){.topbar-balance{display:none;}}

/* Mobile menu: a dropdown that opens directly under the top bar and
   pushes the page content down — NOT a side drawer or a full-screen
   overlay, so it can never appear to "cover the whole screen" or leave
   the user unsure whether it's open. Hidden entirely on desktop. */
.mobile-menu-panel{display:none;background:linear-gradient(180deg,#900190,#7A0179);border-bottom:1px solid var(--line);padding:6px 16px 18px;}
.mobile-menu-panel.open{display:block;animation:menuDrop .2s ease;}
@keyframes menuDrop{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}
.mobile-menu-panel .drawer-balance{font-family:var(--font-mono);font-size:12px;color:var(--gold-2);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-top:12px;}
.mobile-menu-panel .drawer-balance b{display:block;color:#F6F1FC;font-size:16px;font-weight:700;margin-top:2px;}
.mobile-menu-panel ul{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;}
.mobile-menu-panel a{display:flex;align-items:center;gap:12px;color:#F6F1FC;font-weight:600;font-size:14.5px;padding:12px 10px;border-radius:10px;}
.mobile-menu-panel a:hover,.mobile-menu-panel a:focus-visible{background:var(--surface-2);color:var(--gold-2);}
.mobile-menu-panel svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;flex:none;}
@media (min-width:901px){.mobile-menu-panel{display:none!important;}}

/* main column, offset to make room for the fixed spine */
.site-main-wrap{flex:1;margin-left:88px;min-height:100vh;display:flex;flex-direction:column;position:relative;}
.site-content{flex:1;width:100%;max-width:1040px;margin:0 auto;padding:36px 32px 64px;position:relative;z-index:1;}

@media (max-width:900px){
  .site-spine{display:none;}
  .site-topbar{display:flex;}
  .site-main-wrap{margin-left:0;}
  .site-content{padding:26px 18px 48px;}
}

/* =========================================================
   BUTTONS / FORMS
========================================================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-body);font-weight:700;font-size:14.5px;
  border-radius:var(--radius-md);padding:13px 22px;border:none;cursor:pointer;
  transition:transform .12s ease, filter .12s ease;text-align:center;
}
.btn:hover{filter:brightness(1.06);color:inherit;}
.btn:active{transform:scale(.98);}
.btn-block{width:100%;}
.btn-primary{background:linear-gradient(135deg,var(--gold-2),var(--gold));color:var(--gold-ink)!important;}
.btn-outline{background:transparent;border:1.5px solid var(--line-strong);color:var(--paper)!important;}
.btn-outline:hover{border-color:var(--gold-2);}
.btn-ghost{background:var(--surface-2);color:var(--paper)!important;}
.btn-danger{background:linear-gradient(135deg,#ff8a8a,var(--coral));color:#3a0d0d!important;}
.btn-sm{padding:9px 14px;font-size:12.5px;border-radius:10px;}

.field{margin-bottom:16px;}
.field label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:7px;font-family:var(--font-mono);letter-spacing:.04em;text-transform:uppercase;}
.field .hint{font-size:11.5px;color:var(--muted);margin-top:6px;}
input[type=text],input[type=email],input[type=password],input[type=tel],input[type=number],input[type=search],textarea,select{
  width:100%;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:13px 14px;font-family:var(--font-body);font-size:14.5px;color:var(--paper);outline:none;
  transition:border-color .15s ease, background .15s ease;
}
input:focus,textarea:focus,select:focus{border-color:var(--gold-2);background:var(--surface-3);}
textarea{resize:vertical;min-height:110px;}
.mono-in{font-family:var(--font-mono)!important;}
.checkbox-row{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--muted);margin-bottom:16px;}
.checkbox-row input{width:auto;margin-top:3px;accent-color:var(--gold);}

/* 4-6 digit PIN entry: separate boxes */
/* PIN entry: boxes flex to fit the available width at any screen size
   (4, 5 or 6 digits) instead of a fixed pixel width that can overflow
   narrow phones. */
.pin-boxes{display:flex;gap:8px;}
.pin-boxes input{
  flex:1 1 0;min-width:0;max-width:56px;aspect-ratio:1/1;
  text-align:center;font-size:20px;font-family:var(--font-mono);font-weight:700;
  letter-spacing:0;padding:0;
}
@media (max-width:360px){.pin-boxes input{font-size:17px;}}

/* =========================================================
   CARDS — tilted / bleeding / fanned motifs
========================================================= */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);padding:20px;}

/* A "tilt-wrap" holds a rotated foreground card (.tilt-front) with a
   second, slightly-larger card (.tilt-back) peeking out from behind it
   — like two pages of a passbook. .tilt-back is positioned with
   `inset` (not a guessed width/height), so it always automatically
   matches however tall .tilt-front actually renders — no overflow or
   clipping, regardless of content length, font size, or screen width. */
.tilt-wrap{position:relative;margin:6px 12px 10px 2px;}
.tilt-back{
  position:absolute;inset:14px -8px -10px 12px;z-index:0;
  border-radius:var(--radius-lg);background:var(--surface-2);border:1px solid var(--line);
  transform:rotate(3deg);
}
.tilt-front{
  position:relative;z-index:1;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:22px;box-shadow:0 20px 34px -18px rgba(0,0,0,.6);
  transform:rotate(-1.4deg);
}
@media (max-width:480px){
  .tilt-wrap{margin:6px 8px 10px 2px;}
  .tilt-front{padding:16px;}
  .tilt-back{inset:10px -6px -8px 8px;}
}

/* =========================================================
   HERO IMAGE CAROUSEL — swaps in for "What you can do" once
   images are added to /assets/images/hero-carousel/. Lives
   inside the same tilt-front card, so it keeps the exact same
   footprint; the inner layer counter-rotates so photos stay
   level even though the card itself sits tilted.
========================================================= */
.hero-carousel-front{overflow:hidden;padding:0;}
.hero-carousel{position:relative;transform:rotate(1.8deg);width:100%;height:100%;}
.hero-carousel-track{position:relative;width:100%;aspect-ratio:4/3;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface-2);}
.hero-carousel-slide{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;transition:opacity .6s ease;
}
.hero-carousel-slide.is-active{opacity:1;}
.hero-carousel-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:7px;z-index:2;}
.hero-carousel-dot{
  width:7px;height:7px;padding:0;border-radius:50%;border:none;
  background:rgba(246,241,252,.45);cursor:pointer;transition:background .2s ease,transform .2s ease;
}
.hero-carousel-dot.is-active{background:var(--gold-2);transform:scale(1.3);}
@media (max-width:480px){
  .hero-carousel{transform:rotate(1.8deg);}
  .hero-carousel-track{aspect-ratio:1/1;}
}
@media (prefers-reduced-motion: reduce){
  .hero-carousel-slide{transition:none;}
}

/* bleeding hero stack (dashboard balance) — same auto-height technique */
.hero-stack{position:relative;margin:6px 14px 16px 0;}
.hero-back{
  position:absolute;inset:16px -10px -10px 10px;z-index:0;
  border-radius:var(--radius-lg);background:var(--surface-2);border:1px solid var(--line);
  transform:rotate(3deg);
}
.hero-front{
  position:relative;z-index:1;width:100%;max-width:460px;
  border-radius:var(--radius-lg);background:linear-gradient(155deg,#900190 0%,#4A014A 65%);
  border:1px solid var(--line);transform:rotate(-1.6deg);
  padding:24px 26px;overflow:hidden;box-shadow:0 20px 34px -16px rgba(0,0,0,.55);
  color:#F6F1FC; /* fixed light text — this card's background never changes with the theme toggle */
}
.hero-front .balance-chip{color:rgba(246,241,252,.62);}
.hero-front .balance-chip b{color:#F6F1FC;}
@media (max-width:480px){
  .hero-stack{margin:6px 8px 14px 0;}
  .hero-front{padding:18px 20px;}
  .hero-back{inset:12px -8px -8px 6px;}
}
.balance-amt{font-family:var(--font-display);font-size:36px;font-weight:700;letter-spacing:-.5px;line-height:1.15;word-break:break-word;}
@media (max-width:480px){.balance-amt{font-size:27px;}}
.balance-chips{display:flex;gap:22px;margin-top:14px;flex-wrap:wrap;row-gap:8px;}
@media (max-width:480px){.balance-chips{gap:16px;}}
.balance-chip{font-family:var(--font-mono);font-size:11px;color:var(--muted);}
.balance-chip b{color:var(--paper);font-size:13.5px;display:block;margin-top:2px;font-weight:600;}

/* coin cascade (quick actions) */
.coin-cascade{position:relative;height:150px;margin:10px 0 4px;max-width:240px;}
.coin{position:absolute;width:66px;height:66px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-shadow:0 10px 18px -10px rgba(0,0,0,.6);transition:transform .18s cubic-bezier(.34,1.56,.64,1);color:var(--paper);}
.coin:hover{transform:scale(1.08) translateY(-3px);}
.coin span{font-size:9px;font-family:var(--font-mono);color:var(--muted);}
.coin svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;}
.coin.c1{top:0;left:0;background:linear-gradient(135deg,var(--gold-2),var(--gold));z-index:4;}
.coin.c1 svg,.coin.c1 span{color:var(--gold-ink);}
.coin.c2{top:16px;left:56px;z-index:3;} .coin.c3{top:36px;left:112px;z-index:2;} .coin.c4{top:58px;left:168px;z-index:1;}
@media (max-width:360px){
  .coin-cascade{height:128px;max-width:206px;}
  .coin{width:56px;height:56px;}
  .coin svg{width:16px;height:16px;}
  .coin span{font-size:8px;}
  .coin.c2{top:14px;left:48px;} .coin.c3{top:30px;left:96px;} .coin.c4{top:48px;left:144px;}
}

/* fanned deck (transaction / post lists) */
.deck{position:relative;padding-top:6px;}
.deck-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);padding:16px 18px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 10px 16px -12px rgba(0,0,0,.55);position:relative;transition:transform .18s ease, box-shadow .18s ease;}
.deck-card:nth-child(odd){transform:rotate(-.8deg);}
.deck-card:nth-child(even){transform:rotate(.8deg);}
.deck-card:hover{transform:rotate(0deg) translateY(-2px);box-shadow:0 14px 22px -12px rgba(0,0,0,.7);}
.deck-card:last-child{margin-bottom:0;}
.who{display:flex;align-items:center;gap:12px;min-width:0;}
.who .meta{min-width:0;}
.who .meta .title{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.who .meta .sub{font-size:11px;color:var(--muted);margin-top:2px;}
.avatar{width:38px;height:38px;border-radius:10px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;font-size:13px;color:var(--gold-2);flex:none;overflow:hidden;}
.avatar img{width:100%;height:100%;object-fit:cover;}

/* masonry (marketplace / feature tiles) */
.masonry{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:110px;gap:14px;}
.mtile{border-radius:16px;position:relative;overflow:hidden;border:1px solid var(--line);display:block;color:#F6F1FC;}
.mtile .cap{position:absolute;left:14px;bottom:14px;right:14px;}
.mtile.span2{grid-row:span 2;}
.mtile.rot{transform:rotate(-1.2deg);} .mtile.rot2{transform:rotate(1deg);}
@media (max-width:640px){.masonry{grid-template-columns:1fr;}}

.badge-float{position:absolute;top:-10px;right:14px;background:var(--gold);color:var(--gold-ink);font-family:var(--font-mono);font-size:9.5px;font-weight:700;padding:4px 10px;border-radius:20px;transform:rotate(6deg);box-shadow:0 6px 12px -4px rgba(0,0,0,.5);z-index:2;}

/* section headers */
.section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 14px;}
.section-title h2,.section-title h3{margin:0;}
.section-title .see{font-family:var(--font-mono);font-size:11.5px;color:var(--gold);}

/* pills / filters */
.pills{display:flex;gap:9px;margin:6px 0 16px;overflow-x:auto;}
.pill{font-family:var(--font-mono);font-size:11px;padding:8px 14px;border-radius:20px;background:var(--surface-2);color:var(--muted);white-space:nowrap;border:1px solid transparent;flex:none;}
.pill.active{background:var(--gold);color:var(--gold-ink);font-weight:600;}

/* tables (history / admin-ish views) */
.asusu-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.asusu-table th{text-align:left;font-family:var(--font-mono);font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line-strong);}
.asusu-table td{padding:12px;border-bottom:1px solid var(--line);}
.asusu-table tr:last-child td{border-bottom:none;}

/* notices — styled wrappers around plugin-injected banners */
.asusu-wallet-notice,.asusu-trust-notice,.asusu-voucher-notice,.asusu-pin-notice{
  font-family:var(--font-body)!important;border-radius:var(--radius-md)!important;
  max-width:1040px;margin-left:auto!important;margin-right:auto!important;
}

/* status badges */
.badge{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11px;padding:5px 10px;border-radius:20px;background:var(--surface-2);color:var(--muted);}
.badge.ok{color:var(--green);} .badge.pending{color:var(--gold-2);} .badge.bad{color:var(--coral);}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;}

/* =========================================================
   PAGE HEADER / HERO (marketing pages)
========================================================= */
.page-header{margin-bottom:8px;}
.page-header h1{font-size:30px;}
.entry-content{max-width:720px;}
.entry-content h2{margin-top:1.6em;}
.entry-content blockquote{border-left:3px solid var(--gold);margin:1.6em 0;padding:.2em 0 .2em 1.2em;color:var(--muted);font-style:italic;}
.entry-content img{border-radius:var(--radius-md);}
.entry-content a{text-decoration:underline;text-underline-offset:3px;}
.entry-meta{font-family:var(--font-mono);font-size:11.5px;color:var(--muted);margin-bottom:1.4em;}

/* =========================================================
   FRONT PAGE HERO
========================================================= */
.front-hero{position:relative;padding:20px 0 40px;}
.front-hero .weave{opacity:.7;}
.front-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;position:relative;z-index:1;}
.front-hero h1{font-size:44px;line-height:1.08;max-width:520px;}
.front-hero p.lead{color:var(--muted);font-size:16px;max-width:460px;}
.front-hero-actions{display:flex;gap:14px;margin-top:26px;flex-wrap:wrap;}
@media (max-width:800px){.front-hero-grid{grid-template-columns:1fr;}.front-hero h1{font-size:32px;}}

/* "Earn as a vendor" split — was previously set with an inline
   style="grid-template-columns:1.3fr 1fr", which (being inline)
   out-ranked the .front-hero-grid mobile media query above and
   never actually stacked on small screens. Using a class here
   instead lets the more-specific ".vendor-split" media rule below
   win on mobile, so it stacks and re-spaces properly. */
.front-hero-grid--vendor{grid-template-columns:1.3fr 1fr;}
.vendor-tilt-wrap{margin-left:0;}
@media (max-width:800px){
  .vendor-split .front-hero-grid{grid-template-columns:1fr;gap:26px;}
  .vendor-tilt-wrap{margin-top:6px;}
}
@media (max-width:480px){
  .vendor-split .front-hero-grid{gap:20px;}
}

.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:44px 0;}
.feature-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);padding:20px;}
.feature-card .fi{width:42px;height:42px;border-radius:12px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--gold-2);margin-bottom:14px;}
.feature-card .fi svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;}
.feature-card h3{font-size:15px;margin-bottom:6px;}
.feature-card p{font-size:13px;color:var(--muted);margin:0;}
@media (max-width:900px){.feature-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:500px){.feature-grid{grid-template-columns:1fr;}}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{background:linear-gradient(180deg,#7A0179,#4A014A);border-top:1px solid var(--line);margin-top:auto;position:relative;color:rgba(246,241,252,.7);}
.footer-grid{max-width:1040px;margin:0 auto;padding:48px 32px 24px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:32px;}
.footer-col h4{font-size:12.5px;text-transform:uppercase;letter-spacing:.06em;color:rgba(246,241,252,.5);font-family:var(--font-mono);margin-bottom:14px;}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;}
.footer-col a{color:#F6F1FC;font-size:13.5px;}
.footer-col a:hover{color:var(--gold-2);}
.footer-bottom{border-top:1px solid var(--line);padding:18px 32px;display:flex;justify-content:space-between;align-items:center;max-width:1040px;margin:0 auto;font-size:12px;color:rgba(246,241,252,.5);font-family:var(--font-mono);flex-wrap:wrap;gap:10px;}
@media (max-width:800px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:480px){.footer-grid{grid-template-columns:1fr;padding:36px 20px;}}

/* =========================================================
   MISC / UTILITY
========================================================= */
.center{text-align:center;}
.muted{color:var(--muted);}
.stack-gap>*+*{margin-top:14px;}
.alignwide{max-width:100%;}
.alignfull{width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;}
.enter{animation:enter .4s cubic-bezier(.22,.9,.32,1.1);}
@keyframes enter{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

.pagination{display:flex;gap:8px;margin-top:32px;font-family:var(--font-mono);font-size:12.5px;}
.pagination a,.pagination span{padding:8px 12px;border-radius:8px;background:var(--surface);border:1px solid var(--line);color:var(--paper);}
.pagination .current{background:var(--gold);color:var(--gold-ink);border-color:var(--gold);}

.comment-list{list-style:none;margin:0;padding:0;}
.comment-list li{margin-bottom:16px;}
#respond input[type=submit]{width:auto;}

/* =========================================================
   TRANSACTION CONFIRM MODAL (Transfer / Withdraw yes-no step)
========================================================= */
.asusux-confirm-overlay{position:fixed;inset:0;background:rgba(11,11,15,.72);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;}
.asusux-confirm-box{background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-lg);padding:26px;max-width:380px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.4);}
.asusux-confirm-box h3{margin:0 0 16px;font-family:var(--font-display);font-size:19px;color:var(--paper);}
.asusux-confirm-rows .row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);}
.asusux-confirm-rows .row:last-child{border-bottom:none;}
.asusux-confirm-question{margin:16px 0 20px;font-size:13.5px;color:var(--muted);}
.asusux-confirm-actions{display:flex;gap:10px;}
.asusux-confirm-actions .btn{flex:1;text-align:center;}
.asusux-confirm-no{background:var(--surface-2);color:var(--paper);border:1px solid var(--line-strong);}
.asusux-confirm-no:hover{background:var(--surface-3);}

/* =========================================================
   DASHBOARD BALANCE CARDS (currencies + voucher-type balances)
========================================================= */
.asusux-balance-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:14px 0 24px;}
.asusux-balance-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);padding:14px 16px;}
.asusux-balance-card-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px;}
.asusux-balance-card-amt{display:block;font-family:var(--font-mono);font-size:17px;font-weight:700;color:var(--paper);}
.asusux-balance-card-voucher{border-color:var(--violet);background:linear-gradient(160deg,var(--surface),var(--surface-2));}
.asusux-balance-card-voucher .asusux-balance-card-amt{color:var(--gold-2);}
.asusux-balance-cards-scroll{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;}
.asusux-balance-cards-scroll .asusux-balance-card{flex:none;min-width:150px;}
.asusux-balance-card-highlight{
  display:block;text-decoration:none;
  background:linear-gradient(155deg,#900190 0%,#4A014A 65%);border-color:var(--line);
}
.asusux-balance-card-highlight .asusux-balance-card-label{color:rgba(246,241,252,.7);}
.asusux-balance-card-highlight .asusux-balance-card-amt{color:#F6F1FC;}

.asusux-payout-callout{
  display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;
  background:linear-gradient(155deg,#900190 0%,#4A014A 65%);border:1px solid var(--line);
  border-radius:var(--radius-md);padding:14px 16px;margin:0 0 24px;color:#F6F1FC;
}
.asusux-payout-eyebrow{display:block;font-family:var(--font-mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:rgba(246,241,252,.7);margin-bottom:4px;}
.asusux-payout-label{font-size:13.5px;}
.asusux-payout-label b{font-weight:700;}
.asusux-payout-callout svg{flex:none;color:rgba(246,241,252,.85);}

.asusux-joinable-card{display:flex;flex-direction:column;gap:6px;min-width:180px;}
.asusux-joinable-meta{font-family:var(--font-mono);font-size:11px;color:var(--muted);}
.asusux-joinable-card form{margin-top:6px;}

/* =========================================================
   THEME TOGGLE (light/dark)
========================================================= */
.topbar-theme-toggle{width:38px;height:38px;flex:none;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--paper);cursor:pointer;transition:background .15s ease;margin-right:8px;}
.topbar-theme-toggle:hover{background:var(--surface-3);}
.topbar-theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.topbar-theme-toggle .icon-moon{display:none;}
html[data-theme="light"] .topbar-theme-toggle .icon-sun{display:none;}
html[data-theme="light"] .topbar-theme-toggle .icon-moon{display:block;}

/* Cart icon link with floating count badge (Marketplace page) */
.asusux-cart-icon-link{display:inline-flex;align-items:center;gap:6px;position:relative;}
.asusux-cart-badge{position:absolute;top:-8px;right:-8px;background:var(--coral);color:#3a0d0d;font-size:10px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 4px;font-family:var(--font-mono);}
