/* Ghalem Store Pro — light clean theme, Arabic RTL, orange brand */
:root{
  color-scheme:light;
  --brand:#f36f21; --brand-2:#ff8b3d; --brand-dark:#c85a10;
  --bg:#f7f7f8; --surface:#ffffff; --surface-2:#fafafa;
  --ink:#1d1d1f; --ink-2:#5f6368; --line:#e8e8ea;
  --green:#1faa55; --red:#d92d20;
  --chip:#fff; --shadow:0 1px 2px rgba(25,15,0,.04), 0 10px 26px rgba(25,15,0,.055);
  --shadow-lg:0 18px 44px rgba(25,15,0,.15);
  --grad-brand:linear-gradient(135deg,var(--brand),var(--brand-2));
  --radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,"Noto Kufi Arabic",sans-serif;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(880px 460px at 88% -90px, rgba(255,122,24,.10), rgba(255,122,24,0) 62%),
    radial-gradient(680px 420px at 6% -70px, rgba(243,111,33,.055), rgba(243,111,33,0) 60%),
    var(--bg);
}
button{font-family:inherit; cursor:pointer}
input,select,textarea{font-family:inherit}
img{max-width:100%}
.wrap{max-width:1200px; margin:0 auto; padding:0 14px}
svg.ic{width:20px;height:20px;flex:none;fill:currentColor}
.num{direction:ltr; unicode-bidi:isolate; display:inline-block; font-variant-numeric:tabular-nums}
::selection{background:#ffd9c7; color:var(--brand-dark)}
:focus-visible{outline:2.5px solid rgba(243,111,33,.55); outline-offset:2px}

/* ---------- Top strip ---------- */
.topstrip{background:var(--surface);color:var(--ink-2);font-size:12.5px;border-bottom:1px solid var(--line)}
.topstrip .wrap{display:flex;gap:14px;align-items:center;justify-content:space-between;padding-top:5px;padding-bottom:5px}
.topstrip .t-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.topstrip .t-item svg{width:14px;height:14px;color:var(--brand)}
@media(max-width:640px){.topstrip .hide-s{display:none}}

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:60; background:var(--surface);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
header.site.scrolled{box-shadow:0 8px 26px rgba(25,15,0,.10)}
header.site .wrap{display:flex; align-items:center; gap:14px; padding-top:10px; padding-bottom:10px}
.logo{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); flex:none}
.logo .mark{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#fff;
  background:var(--brand); background-image:var(--grad-brand);
  box-shadow:0 4px 12px rgba(243,111,33,.35);
}
.logo .mark svg{width:26px;height:26px}
.logo .mark-img{width:44px;height:44px;border-radius:12px;object-fit:cover;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.logo .name{font-weight:900; font-size:19px; line-height:1.1}
.logo .name small{display:block; font-weight:700; font-size:11px; color:var(--brand)}
.search{
  flex:1; display:flex; align-items:stretch; border:2px solid var(--brand);
  border-radius:999px; overflow:hidden; background:var(--surface); min-width:0;
  transition:box-shadow .2s ease;
}
.search:focus-within{box-shadow:0 0 0 4px rgba(243,111,33,.16)}
.search input{
  flex:1; border:0; outline:0; padding:9px 16px; font-size:14.5px; background:transparent; color:var(--ink); min-width:0;
}
.search button{
  border:0; background:var(--brand); background-image:var(--grad-brand); color:#fff;
  padding:0 20px; display:flex; align-items:center; gap:6px; font-weight:800; font-size:14px;
}
.head-actions{display:flex; align-items:center; gap:8px; flex:none}
.icon-btn{
  position:relative; border:1px solid var(--line); background:var(--surface); color:var(--ink);
  width:44px;height:44px;border-radius:12px; display:grid; place-items:center;
  transition:transform .16s, border-color .16s, color .16s;
}
.icon-btn:hover{border-color:#ffbfa3; color:var(--brand); transform:translateY(-1px)}
.icon-btn .badge{
  position:absolute; top:-6px; inset-inline-start:-6px; background:var(--brand); color:#fff;
  font-size:11px; font-weight:800; min-width:19px; height:19px; border-radius:99px;
  display:grid; place-items:center; padding:0 5px; border:2px solid var(--surface);
}
#cartCount.pop, #cartCountM.pop{animation:badgePop .45s cubic-bezier(.3,1.5,.5,1)}
@keyframes badgePop{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}
.sound-btn .ic-off{display:none}
.sound-btn.muted{color:var(--ink-2)}
.sound-btn.muted .ic-on{display:none}
.sound-btn.muted .ic-off{display:block}
@media(max-width:760px){
  header.site .wrap{gap:8px; flex-wrap:wrap; padding-top:7px; padding-bottom:7px}
  .search{order:3; flex-basis:100%}
  .search input{padding:7px 14px; font-size:13.5px}
  .search button{padding:0 13px}
  .search button span{display:none}
  .logo .mark{width:34px; height:34px; border-radius:10px}
  .logo .mark svg{width:21px; height:21px}
  .logo .name{font-size:15px}
  .icon-btn{width:38px; height:38px; border-radius:10px}
}

/* ---------- Tabs ---------- */
.main-tabs{background:var(--surface); border-bottom:1px solid var(--line)}
.main-tabs .wrap{display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding-top:6px; padding-bottom:6px}
.main-tabs .wrap::-webkit-scrollbar{display:none}
.tab-btn{
  flex:1 0 auto; border:1.5px solid var(--line); background:var(--surface-2); color:var(--ink);
  padding:7px 14px; border-radius:999px; font-weight:800; font-size:13.5px;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap;
  transition:border-color .15s, color .15s;
}
.tab-btn svg{width:17px;height:17px}
.tab-btn:hover{border-color:var(--brand); color:var(--brand)}
.tab-btn.active{background:var(--brand); background-image:var(--grad-brand); border-color:var(--brand); color:#fff; box-shadow:0 4px 12px rgba(243,111,33,.28)}
@media(max-width:760px){ .main-tabs{display:none} }

/* ---------- Views ---------- */
.view{display:none}
.view.active{display:block; animation:viewIn .22s ease}
@keyframes viewIn{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion: reduce){ .view.active{animation:none} }
section.block{margin-top:26px}
.sec-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px}
.sec-head h2{margin:0; font-size:20px; font-weight:900; display:flex; align-items:center; gap:8px}
.sec-head h2 .dot{width:9px;height:26px;border-radius:99px;background:linear-gradient(180deg,var(--brand),var(--brand-2)); box-shadow:0 3px 8px rgba(243,111,33,.35)}
.sec-head a{color:var(--brand); font-weight:700; font-size:13.5px; text-decoration:none}
.page-intro{margin:4px 0 14px}
.page-intro h2{margin:0 0 4px; font-size:22px; font-weight:900}
.page-intro p{margin:0; color:var(--ink-2); font-size:14px; line-height:1.8}

/* ---------- Hero ---------- */
.hero{
  margin-top:8px; border-radius:20px; overflow:hidden; position:relative;
  background:linear-gradient(120deg,#fff6f1,#ffe7d6 42%,#fff1e6 68%,#fff6f1);
  background-size:220% 220%;
  animation:heroShift 16s ease-in-out infinite alternate;
  border:1px solid #ffe3d3;
}
@keyframes heroShift{from{background-position:0% 40%}to{background-position:100% 60%}}
.hero::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:radial-gradient(rgba(243,111,33,.10) 1.2px, rgba(243,111,33,0) 1.4px);
  background-size:22px 22px;
}
.hero .inner{padding:30px 28px 26px; position:relative; z-index:2; max-width:640px}
.hero h1{margin:0 0 8px; font-size:clamp(26px,4.5vw,40px); font-weight:900; line-height:1.25}
.hero p{margin:0 0 18px; font-size:15.5px; opacity:.95; line-height:1.8}
.hero .cta-row{display:flex; gap:10px; flex-wrap:wrap}
.hero .deco{
  position:absolute; inset-inline-end:-10px; bottom:-24px; z-index:1; opacity:.07;
  width:300px; height:300px; color:var(--brand); pointer-events:none;
  animation:floaty 7s ease-in-out infinite;
}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-13px)}}
.float-chip{
  position:absolute; z-index:2; display:inline-flex; align-items:center; gap:6px;
  background:#fff; border:1px solid #ffe0cd; color:var(--brand-dark);
  font-size:12.5px; font-weight:800; padding:7px 13px; border-radius:99px;
  box-shadow:0 10px 24px rgba(200,90,16,.14); animation:floaty 6s ease-in-out infinite;
}
.float-chip svg{width:15px; height:15px; color:var(--brand)}
.float-chip.fc1{top:30px; inset-inline-end:30px}
.float-chip.fc2{bottom:34px; inset-inline-end:150px; animation-delay:-3s}
@media(max-width:920px){ .float-chip{display:none} }
@media(max-width:640px){ .hero .inner{padding:22px 18px} .hero .deco{width:190px;height:190px} }

.btn{
  border:0; border-radius:12px; padding:12px 22px; font-weight:800; font-size:15px;
  display:inline-flex; align-items:center; gap:8px; text-decoration:none; transition:.15s;
}
.btn:active{transform:scale(.97)}
.btn-white{
  background-color:var(--brand); color:#fff;
  background-image:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.45) 50%,transparent 58%), var(--grad-brand);
  background-size:260% 100%, 100% 100%;
  background-position:130% 0, 0 0;
  transition:background-position .7s ease, transform .16s ease, box-shadow .16s ease;
}
.btn-white:hover{background-position:-130% 0, 0 0; transform:translateY(-2px); box-shadow:0 12px 24px rgba(243,111,33,.30)}
.btn-ghost{background:#fff; color:var(--ink); border:1.5px solid var(--line)}
.btn-ghost:hover{border-color:var(--brand); color:var(--brand)}
.btn-brand{
  border:0; border-radius:12px; padding:12px 22px; font-weight:900; font-size:15px; color:#fff;
  background:var(--brand); background-image:var(--grad-brand);
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .16s, box-shadow .16s, filter .16s;
}
.btn-brand:hover{transform:translateY(-2px); box-shadow:0 12px 24px rgba(243,111,33,.30)}
.btn-outline{
  border:1.5px solid var(--brand); color:var(--brand); background:transparent;
  border-radius:12px; padding:11px 24px; font-weight:900; font-size:14.5px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .16s, border-color .16s, color .16s;
}
.btn-outline:hover{border-color:var(--brand); color:var(--brand); transform:translateY(-1px)}

/* ---------- Trust bar ---------- */
.trust{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:14px}
.trust .t{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:13px 12px; display:flex; align-items:center; gap:10px; box-shadow:var(--shadow);
  transition:transform .2s, box-shadow .2s;
}
.trust .t:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.trust .t .ic-box{
  width:38px;height:38px; border-radius:10px; display:grid; place-items:center; flex:none;
  background:linear-gradient(135deg,#ffe4d1,#fff5ee); color:var(--brand);
}
.trust .t b{display:block; font-size:13.5px; line-height:1.3}
.trust .t span{font-size:11.5px; color:var(--ink-2)}
@media(max-width:820px){ .trust{grid-template-columns:repeat(2,1fr)} }

/* ---------- Games grid ---------- */
.games-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
@media(max-width:980px){ .games-grid{grid-template-columns:repeat(3,1fr)} }
@media(max-width:680px){ .games-grid{grid-template-columns:repeat(2,1fr)} }
.gcard{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:var(--shadow); cursor:pointer; transition:.18s; text-align:start; padding:0; color:var(--ink); font-family:inherit; width:100%;
  display:block; text-decoration:none;
}
.gcard:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.gcard .cover{
  height:132px; position:relative; display:flex; align-items:flex-end; padding:10px 12px; color:#fff; overflow:hidden;
  background:#2b2118;
}
.gcard .cover .cover-img{
  position:absolute; inset:0; z-index:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 30%; display:block;
}
.gcard .cover.has-img::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg,rgba(12,8,24,.36),rgba(12,8,24,0) 42%,rgba(12,8,24,.5));
}
.gcard .cover.has-img::after{
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.38) 50%,transparent 66%);
  transform:translateX(-140%); transition:transform .8s ease;
}
.gcard:hover .cover.has-img::after{transform:translateX(140%)}
.gcard .cover .en{
  position:absolute; top:8px; inset-inline-start:12px; font-weight:900; font-size:12px;
  letter-spacing:1.5px; text-transform:uppercase; opacity:.85; z-index:2;
}
.gcard .cover .cur{font-weight:900; font-size:19px; line-height:1.2; text-shadow:0 2px 8px rgba(0,0,0,.3); position:relative; z-index:2}
.gcard .cover .gem{position:absolute; inset-inline-end:10px; bottom:10px; width:34px; height:34px; opacity:.9; z-index:2; transition:transform .35s}
.gcard:hover .cover .gem{transform:rotate(-10deg) scale(1.14)}
.gcard .cover .off-tag{
  position:absolute; top:31px; inset-inline-start:12px; z-index:2;
  background:var(--brand); color:#fff; font-size:10.5px; font-weight:800; padding:2px 8px; border-radius:99px;
}
.gcard .gbody{padding:11px 12px 13px}
.gcard .gname{font-weight:800; font-size:15px}
.gcard .from{color:var(--ink-2); font-size:12.5px; margin-top:2px}
.gcard .from b{color:var(--brand); font-size:14px}

/* ---------- Deals ---------- */
.deal-card{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:var(--shadow);
  display:flex; gap:0; align-items:stretch; cursor:pointer; text-align:start; width:100%; padding:0; color:var(--ink); font-family:inherit;
  transition:transform .18s, box-shadow .18s;
}
.deal-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.deal-card .d-cover{width:118px; flex:none; position:relative; overflow:hidden; background:#2b2118; min-height:110px}
.deal-card .d-cover img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 30%}
.deal-card .d-info{flex:1; padding:12px 14px; min-width:0}
.deal-card .d-game{font-size:12px; color:var(--ink-2); font-weight:700}
.deal-card .d-name{font-weight:900; font-size:16px; margin:2px 0}
.deal-card .price-row{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap}
.price{color:var(--brand); font-weight:900; font-size:18px}
.price small{font-size:11.5px; font-weight:700}
.old{color:var(--ink-2); text-decoration:line-through; font-size:13px}
.off{background:#ffe9e2; color:var(--brand-dark); font-size:11px; font-weight:800; padding:2px 8px; border-radius:99px}
.deals-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
@media(max-width:680px){ .deals-grid{grid-template-columns:1fr} }
.deal-ends{font-size:12px; color:var(--ink-2); margin-top:6px; display:flex; align-items:center; gap:5px}
.deal-ends svg{width:14px; height:14px; color:var(--brand)}

/* ---------- Game detail ---------- */
.back-btn{
  display:inline-flex; align-items:center; gap:7px; border:1.5px solid var(--line); background:var(--surface);
  color:var(--ink); border-radius:999px; padding:8px 16px; font-weight:800; font-size:13.5px; margin-bottom:14px;
  transition:transform .16s, border-color .16s, color .16s;
}
.back-btn:hover{border-color:var(--brand); color:var(--brand); transform:translateY(-1px)}
.back-btn svg{width:16px;height:16px}
.game-banner{
  border-radius:18px; color:#fff; padding:22px 20px; position:relative; overflow:hidden; margin-bottom:16px;
  background:linear-gradient(120deg,#3a2a1c,#201510);
  min-height:150px; display:flex; flex-direction:column; justify-content:flex-end;
}
.game-banner .banner-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 25%; z-index:0}
.game-banner .banner-shade{position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,rgba(10,6,3,.25),rgba(10,6,3,.72))}
.game-banner > :not(.banner-img):not(.banner-shade){position:relative; z-index:2}
.game-banner .en{font-weight:900; font-size:12.5px; letter-spacing:2px; text-transform:uppercase; opacity:.85}
.game-banner h2{margin:6px 0 4px; font-size:26px; font-weight:900; line-height:1.3}
.game-banner p{margin:0; font-size:13.5px; opacity:.92; line-height:1.8; max-width:520px}
.pkg-panel{
  background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:18px; margin-top:16px;
}
.pkg-panel .p-head{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:6px}
.pkg-panel h3{margin:0; font-size:18px; font-weight:900}
.pkg-panel .hint{color:var(--ink-2); font-size:13px; margin:2px 0 14px}
.pkgs{display:grid; grid-template-columns:repeat(3,1fr); gap:11px}
@media(max-width:900px){ .pkgs{grid-template-columns:repeat(2,1fr)} }
@media(max-width:480px){ .pkgs{grid-template-columns:1fr 1fr; gap:9px} }
.pkg{
  border:1.5px solid var(--line); border-radius:14px; padding:13px; position:relative; background:var(--surface-2);
  display:flex; flex-direction:column; gap:2px;
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.pkg:hover{border-color:var(--brand); transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.pkg .amt{font-weight:900; font-size:19px}
.pkg .amt small{font-size:12px; color:var(--ink-2); font-weight:700}
.pkg .off{position:absolute; top:10px; inset-inline-end:10px}
.pkg .price{font-size:18px; margin-top:4px; color:var(--brand); font-weight:900}
.pkg .old{font-size:12px}
.pkg .acts{display:flex; gap:7px; margin-top:11px}
.pkg .hot{
  position:absolute; top:-9px; inset-inline-start:12px; background:var(--brand); background-image:var(--grad-brand); color:#fff;
  font-size:10.5px; font-weight:800; padding:1px 9px; border-radius:99px;
  animation:hotPulse 2.6s ease-in-out infinite;
}
@keyframes hotPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
.btn-add{
  flex:1; border:1.5px solid var(--brand); color:var(--brand); background:transparent;
  border-radius:10px; padding:8px 4px; font-weight:800; font-size:13px;
  transition:background-color .15s, transform .15s;
}
.btn-add:hover{background:#fff1ea}
.btn-add:active{transform:scale(.96)}
.btn-buy{
  flex:1; border:0; color:#fff; border-radius:10px; padding:8px 4px; font-weight:800; font-size:13px;
  background:var(--brand); background-image:var(--grad-brand);
  transition:filter .15s, transform .15s;
}
.btn-buy:hover{filter:brightness(1.07)}
.btn-buy:active{transform:scale(.96)}
.other-games{display:flex; gap:9px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:none}
.other-games::-webkit-scrollbar{display:none}
.og-chip{
  flex:none; display:inline-flex; align-items:center; gap:8px; border:1.5px solid var(--line);
  background:var(--surface); color:var(--ink); border-radius:999px; padding:6px 14px 6px 8px;
  font-weight:800; font-size:13px; transition:transform .16s, border-color .16s, color .16s;
}
.og-chip:hover{border-color:var(--brand); color:var(--brand); transform:translateY(-1px)}
.og-chip .dotc{width:26px; height:26px; border-radius:50%; overflow:hidden; flex:none; display:grid; place-items:center; color:#fff; font-size:9px; font-weight:900; background:#2b2118}
.og-chip .dotc img{width:100%; height:100%; object-fit:cover}

/* ---------- Steps ---------- */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:11px}
@media(max-width:900px){ .steps{grid-template-columns:repeat(2,1fr)} }
@media(max-width:480px){ .steps{grid-template-columns:1fr} }
.step{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s;
}
.step:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.step .numstep{
  width:34px;height:34px;border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:900;
  background:var(--brand); background-image:var(--grad-brand); margin-bottom:9px;
}
.step b{font-size:14.5px}
.step p{margin:4px 0 0; color:var(--ink-2); font-size:13px; line-height:1.75}

/* ---------- Checkout ---------- */
.co-game{
  background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:16px 18px; margin-bottom:14px;
}
.co-game .co-ghead{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.co-game .co-ghead img{width:44px; height:44px; border-radius:11px; object-fit:cover; background:#2b2118}
.co-game .co-ghead b{font-size:16px}
.co-items{margin-bottom:12px}
.co-item{
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px;
  background:var(--surface-2); border:1px solid var(--line); border-radius:11px; margin-bottom:8px; font-size:13.5px;
}
.co-item .ci-name{font-weight:800}
.co-item .ci-meta{color:var(--ink-2); font-size:12px}
.field{margin-bottom:13px}
.field label{display:block; font-weight:800; font-size:13.5px; margin-bottom:6px}
.field input, .field textarea, .field select{
  width:100%; border:1.5px solid var(--line); border-radius:11px; padding:11px 13px; font-size:15px;
  background:var(--surface); color:var(--ink); outline:0;
  transition:border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus{border-color:var(--brand); box-shadow:0 0 0 4px rgba(243,111,33,.13)}
.field textarea{resize:vertical; min-height:70px}
.field .err{color:var(--red); font-size:12px; margin-top:4px; display:none}
.field.invalid input{border-color:var(--red)}
.field.invalid .err{display:block}
.field .hint-inline{font-size:12px; color:var(--ink-2); margin-top:4px}
.pay-opts{display:grid; grid-template-columns:1fr 1fr; gap:9px}
.pay-opt{
  border:1.5px solid var(--line); border-radius:12px; padding:12px; cursor:pointer; display:flex; gap:9px; align-items:center;
  font-weight:800; font-size:14px; background:var(--surface-2); transition:border-color .15s, background-color .15s;
}
.pay-opt:hover{border-color:#ffbfa3}
.pay-opt input{accent-color:var(--brand); width:17px; height:17px}
.pay-opt.sel{border-color:var(--brand); background:#fff4ef}
.summary{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px 16px; margin:14px 0; font-size:13.5px; box-shadow:var(--shadow);
}
.summary .s-row{display:flex; justify-content:space-between; gap:10px; padding:3px 0}
.summary .s-row.total{border-top:1px dashed var(--line); margin-top:7px; padding-top:9px; font-weight:900; font-size:15px}
.summary .s-row.total span:last-child{color:var(--brand)}
.est-note{font-size:12px; color:var(--ink-2); margin-top:6px; text-align:center}
.btn-block{
  width:100%; border:0; border-radius:12px; padding:13px; font-weight:900; font-size:15.5px; color:#fff;
  background:var(--brand); background-image:var(--grad-brand);
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:filter .16s, transform .16s;
}
.btn-block:hover{filter:brightness(1.07)}
.btn-block:active{transform:scale(.98)}
.btn-block:disabled{opacity:.55; cursor:not-allowed}
.btn-block.wa{background:var(--wa); background-image:none}
.pay-note{
  margin:0 0 11px; background:#fff7e6; border:1px solid #f3d489; color:#7a5200;
  border-radius:11px; padding:10px 14px; font-size:13px; line-height:1.8;
}

/* ---------- Payment / order ---------- */
.order-card{
  background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:20px; margin-bottom:14px;
}
.order-card .o-no{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px}
.order-card .o-no b{font-size:17px}
.status-pill{
  display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:800; padding:4px 12px; border-radius:99px;
}
.st-awaiting_payment{background:#fff4e5; color:#b26a00}
.st-under_review{background:#eef4ff; color:#2b5fc7}
.st-paid{background:#e9f9f0; color:#14804a}
.st-shipped{background:#e9f9f0; color:#14804a}
.st-rejected{background:#fdecea; color:#c03221}
.pay-grid{display:grid; grid-template-columns:1fr 1fr; gap:11px}
@media(max-width:680px){ .pay-grid{grid-template-columns:1fr} }
.pay-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s;
}
.pay-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.pay-card .p-top{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.pay-card .p-logo{
  width:44px;height:44px;border-radius:11px; display:grid; place-items:center; color:#fff; font-weight:900; font-size:12px; text-align:center; line-height:1.1;
  background:var(--brand); background-image:var(--grad-brand);
}
.pay-card b{font-size:15.5px}
.pay-card p{margin:0 0 10px; color:var(--ink-2); font-size:13px; line-height:1.75}
.copy-row{
  display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px dashed var(--line);
  border-radius:10px; padding:9px 12px; direction:ltr;
}
.copy-row code{flex:1; font-size:14px; font-weight:700; letter-spacing:.5px; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.copy-btn{border:0; background:var(--brand); background-image:var(--grad-brand); color:#fff; border-radius:8px; padding:6px 12px; font-weight:800; font-size:12.5px; display:inline-flex; gap:5px; align-items:center; transition:filter .15s}
.copy-btn:hover{filter:brightness(1.05)}
.copy-btn svg{width:14px;height:14px}
.file-input{border:1.5px dashed var(--line); border-radius:11px; padding:14px; text-align:center; font-size:13.5px; color:var(--ink-2); cursor:pointer; display:block; width:100%}
.file-input:hover{border-color:var(--brand); color:var(--brand)}

/* ---------- Timeline ---------- */
.timeline{list-style:none; margin:14px 0 0; padding:0; position:relative}
.timeline::before{content:""; position:absolute; top:8px; bottom:8px; inset-inline-start:7px; width:2px; background:var(--line)}
.timeline li{position:relative; padding:0 28px 18px 0; padding-inline-start:28px; padding-inline-end:0; font-size:13.5px}
.timeline li::before{
  content:""; position:absolute; inset-inline-start:1px; top:4px; width:14px; height:14px; border-radius:50%;
  background:var(--surface); border:2.5px solid var(--line);
}
.timeline li.done::before{border-color:var(--brand); background:var(--brand)}
.timeline li.bad::before{border-color:var(--red); background:var(--red)}
.timeline li b{display:block; font-size:14px}
.timeline li span{color:var(--ink-2); font-size:12px}

/* ---------- Help / FAQ ---------- */
.faq details{
  background:var(--surface); border:1px solid var(--line); border-radius:12px; margin-bottom:9px; box-shadow:var(--shadow);
  transition:border-color .2s;
}
.faq details:hover{border-color:#ffc9ae}
.faq summary{
  padding:14px 16px; font-weight:800; font-size:14.5px; cursor:pointer; list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; color:var(--brand); font-size:20px; font-weight:900}
.faq details[open] summary::after{content:"–"}
.faq details p{margin:0; padding:0 16px 15px; color:var(--ink-2); font-size:13.5px; line-height:1.85}
.support-card{
  margin-top:16px; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:20px; text-align:center;
}
.support-card h3{margin:0 0 6px; font-size:17px; font-weight:900}
.support-card p{margin:0 auto 14px; color:var(--ink-2); font-size:13.5px; line-height:1.9; max-width:520px}
.btn-wa{
  display:inline-flex; align-items:center; gap:8px; background:var(--wa); color:#fff; text-decoration:none;
  font-weight:900; font-size:15px; padding:12px 22px; border-radius:12px;
}
.home-cta{
  margin-top:18px; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow);
  padding:20px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:space-between;
}
.home-cta h3{margin:0 0 4px; font-size:17px; font-weight:900}
.home-cta p{margin:0; color:var(--ink-2); font-size:13.5px; line-height:1.8; max-width:520px}

/* ---------- Footer ---------- */
footer.site{margin-top:34px; background:linear-gradient(180deg,var(--surface),#fff9f4); color:var(--ink-2); border-top:1px solid var(--line); padding:26px 0 90px}
@media(min-width:761px){ footer.site{padding-bottom:26px} }
footer.site .cols{display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px}
@media(max-width:760px){ footer.site .cols{grid-template-columns:1fr} }
footer.site b{color:var(--ink); font-size:15px}
footer.site p, footer.site li{font-size:13px; line-height:1.9}
footer.site ul{list-style:none; margin:8px 0 0; padding:0}
footer.site a{color:var(--ink-2); text-decoration:none}
footer.site a:hover{color:var(--brand)}
footer .fine{border-top:1px solid var(--line); margin-top:18px; padding-top:14px; font-size:12px; color:var(--ink-2); text-align:center}

/* ---------- Bottom nav ---------- */
.bottomnav{
  display:none; position:fixed; bottom:0; right:0; left:0; z-index:70;
  background:var(--surface); border-top:1px solid var(--line);
  padding:4px 4px calc(4px + env(safe-area-inset-bottom));
}
@media(max-width:760px){ .bottomnav{display:flex} body{padding-bottom:56px} }
.bottomnav button{
  flex:1; background:none; border:0; color:var(--ink-2); text-decoration:none;
  display:flex; flex-direction:column; align-items:center; gap:2px; font-size:11px; font-weight:700; padding:4px 0; position:relative;
  border-radius:12px; transition:background-color .2s, color .2s;
}
.bottomnav button.on{color:var(--brand); background:#fff1ea}
.bottomnav svg{width:20px;height:20px}
.bottomnav .badge{
  position:absolute; top:0; inset-inline-start:calc(50% + 2px); background:var(--brand); color:#fff;
  font-size:10px; font-weight:800; min-width:17px; height:17px; border-radius:99px; display:grid; place-items:center; padding:0 4px;
}

/* ---------- Drawer ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(10,5,0,.55); z-index:90; opacity:0; pointer-events:none; transition:.2s; visibility:hidden;
}
.overlay.show{opacity:1; pointer-events:auto; visibility:visible}
.drawer{
  position:fixed; top:0; bottom:0; inset-inline-start:0; width:min(400px,92vw); background:var(--surface);
  z-index:95; transform:translateX(110%); display:flex; flex-direction:column;
  box-shadow:var(--shadow-lg); visibility:hidden; transition:transform .25s ease, visibility 0s linear .25s;
}
.drawer.show{transform:translateX(0) !important; visibility:visible; transition:transform .25s ease}
.drawer .d-head{
  display:flex; align-items:center; justify-content:space-between; padding:15px 16px; border-bottom:1px solid var(--line);
}
.drawer .d-head b{font-size:16.5px}
.drawer .d-body{flex:1; overflow-y:auto; padding:14px 16px}
.drawer .d-foot{border-top:1px solid var(--line); padding:14px 16px}
.cart-item{
  display:flex; gap:10px; padding:11px; border:1px solid var(--line); border-radius:12px; margin-bottom:9px; background:var(--surface-2);
  align-items:center;
}
.cart-item .thumb{width:46px;height:46px;border-radius:10px;overflow:hidden;flex:none;background:#2b2118}
.cart-item .thumb img{width:100%;height:100%;object-fit:cover}
.cart-item .ci-info{flex:1; min-width:0}
.cart-item .ci-info b{font-size:13.5px; display:block}
.cart-item .ci-info span{font-size:12px; color:var(--ink-2)}
.cart-item .ci-price{font-weight:900; color:var(--brand); font-size:14px; white-space:nowrap}
.qty-ctl{display:flex; align-items:center; gap:6px}
.qty-ctl button{
  width:28px; height:28px; border-radius:8px; border:1.5px solid var(--line); background:var(--surface);
  font-size:16px; font-weight:900; line-height:1; color:var(--ink);
}
.qty-ctl button:hover{border-color:var(--brand); color:var(--brand)}
.qty-ctl b{min-width:22px; text-align:center}
.del-btn{border:0; background:none; color:#c0392b; padding:2px}
.del-btn svg{width:17px;height:17px}
.empty{text-align:center; color:var(--ink-2); padding:34px 10px; font-size:14px; line-height:2}
.total-row{display:flex; justify-content:space-between; font-size:15px; margin-bottom:11px}
.total-row b{color:var(--brand); font-size:18px}

/* ---------- Modal ---------- */
.modal{
  position:fixed; inset:0; z-index:96; display:none; align-items:flex-end; justify-content:center; padding:0;
}
.modal.show{display:flex}
.modal .sheet{
  background:var(--surface); width:min(560px,100%); max-height:92vh; overflow-y:auto;
  border-radius:20px 20px 0 0; padding:20px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow:var(--shadow-lg);
  animation:up .25s ease;
}
@media(min-width:761px){ .modal{align-items:center; padding:16px} .modal .sheet{border-radius:20px} }
@keyframes up{from{transform:translateY(26px); opacity:.5} to{transform:none; opacity:1}}
@media (prefers-reduced-motion: reduce){ .modal .sheet{animation:none} }
.modal h3{margin:0 0 4px; font-size:18px; font-weight:900}
.modal .sub{color:var(--ink-2); font-size:13px; margin-bottom:14px}
.x-btn{border:0; background:var(--surface-2); width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:var(--ink)}
.x-btn svg{width:17px;height:17px}
.m-head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}

/* ---------- Toast ---------- */
.toast{
  position:fixed; bottom:86px; left:50%; transform:translate(-50%,20px) scale(.94); z-index:120;
  background:#fff; color:var(--ink); border:1px solid var(--line); padding:11px 20px; border-radius:99px; font-weight:700; font-size:14px;
  opacity:0; pointer-events:none; transition:.25s; box-shadow:var(--shadow-lg); max-width:92vw; text-align:center;
}
@media(min-width:761px){ .toast{bottom:26px} }
.toast.show{opacity:1; transform:translate(-50%,0) scale(1)}

/* ---------- Layla mascot ---------- */
.mascot{
  position:fixed; inset-inline-end:14px; bottom:18px; z-index:65;
  display:flex; flex-direction:column; align-items:center; gap:5px;
  transition:opacity .35s ease, transform .35s ease;
}
.mascot.away{opacity:0; transform:translateY(14px) scale(.8); pointer-events:none}
@media(max-width:760px){
  .mascot{bottom:72px; inset-inline-end:auto; inset-inline-start:10px}
  .mascot-bubble{inset-inline-end:auto; inset-inline-start:0}
  .mascot-bubble::after{inset-inline-end:auto; inset-inline-start:36px}
}
.mascot-char{
  position:relative; border:3px solid #fff; padding:0; background:#ffe9d9; border-radius:28px;
  width:98px; height:98px; overflow:hidden; cursor:pointer; box-shadow:var(--shadow-lg);
}
@media(max-width:760px){ .mascot-char{width:84px; height:84px; border-radius:24px} }
.mascot-breathe{position:absolute; inset:0; display:block; animation:mascotBreathe 3.4s ease-in-out infinite}
@keyframes mascotBreathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.032)}}
.mascot-face{position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:50% 16%}
.mf-blink{opacity:0; transition:opacity .08s ease}
body.mascot-blink-on .mf-blink{opacity:1}
.mascot.waving .mascot-face{animation:mascotWave .85s ease}
@keyframes mascotWave{0%,100%{transform:rotate(0)}18%{transform:rotate(-5deg)}42%{transform:rotate(4.5deg)}66%{transform:rotate(-3deg)}84%{transform:rotate(1.5deg)}}
.mascot.reacting .mascot-char{animation:mascotJump .6s ease}
@keyframes mascotJump{0%{transform:scale(1)}30%{transform:scale(1.13) rotate(-3deg)}55%{transform:scale(1.05) rotate(3deg)}100%{transform:scale(1)}}
.mascot-dot{
  position:absolute; top:6px; inset-inline-start:6px; background:var(--brand); background-image:var(--grad-brand); color:#fff;
  font-size:11px; font-weight:900; min-width:20px; height:20px; border-radius:99px;
  display:grid; place-items:center; padding:0 5px; border:2px solid #fff;
  animation:dotPulse 2.2s ease-out infinite;
}
@keyframes dotPulse{0%{box-shadow:0 0 0 0 rgba(243,111,33,.45)}70%{box-shadow:0 0 0 8px rgba(243,111,33,0)}100%{box-shadow:0 0 0 0 rgba(243,111,33,0)}}
.mascot-name{
  background:var(--surface); border:1px solid var(--line); color:var(--ink);
  font-size:11px; font-weight:800; padding:2px 10px; border-radius:99px; box-shadow:var(--shadow);
}
.mascot-bubble{
  position:absolute; bottom:calc(100% + 12px); inset-inline-end:0; width:232px; max-width:72vw;
  background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-lg);
  padding:11px 14px; font-size:13px; line-height:1.8; font-weight:700; color:var(--ink);
  opacity:0; transform:translateY(8px) scale(.96); pointer-events:none; transition:.25s;
}
.mascot-bubble.show{opacity:1; transform:none; pointer-events:auto}
.mascot-bubble::after{
  content:""; position:absolute; bottom:-6px; inset-inline-end:36px; width:12px; height:12px;
  background:var(--surface); border-inline-end:1px solid var(--line); border-bottom:1px solid var(--line);
  transform:rotate(45deg);
}
.mascot-bubble p{margin:0; padding-inline-start:14px}
.mascot-bubble-x{
  position:absolute; top:4px; inset-inline-start:6px; border:0; background:none;
  color:var(--ink-2); font-size:16px; line-height:1; padding:3px;
}
.mascot-panel{
  position:fixed; inset-inline-end:14px; bottom:152px; z-index:66;
  width:min(340px, calc(100vw - 24px)); max-height:min(500px, 68vh);
  background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-lg);
  display:none; flex-direction:column; overflow:hidden;
}
@media(max-width:760px){ .mascot-panel{bottom:206px; inset-inline-end:auto; inset-inline-start:10px} }
.mascot-panel.show{display:flex; animation:up .22s ease}
.mp-head{
  display:flex; align-items:center; gap:10px; padding:12px 14px;
  background:linear-gradient(120deg,#fff5f0,#ffe7d3); border-bottom:1px solid #ffe3d3;
}
.mp-ava{position:relative; width:44px; height:44px; flex:none}
.mp-ava img{
  position:absolute; inset:0; width:100%; height:100%; border-radius:50%; object-fit:cover; object-position:50% 14%;
  border:2px solid #fff; box-shadow:var(--shadow);
}
.mp-ava .mp-blink{opacity:0; transition:opacity .08s ease}
body.mascot-blink-on .mp-ava .mp-blink{opacity:1}
.mp-head .mp-id{flex:1; min-width:0}
.mp-head b{font-size:14.5px; display:block; line-height:1.35}
.mp-head .mp-id span{font-size:11.5px; color:var(--green); font-weight:700; display:inline-flex; align-items:center; gap:5px}
.mp-head .mp-id span::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--green); animation:onPulse 2s ease-in-out infinite}
@keyframes onPulse{0%,100%{opacity:1}50%{opacity:.3}}
.mp-body{padding:12px 14px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; flex:1}
.msg{max-width:88%; padding:8px 12px; border-radius:14px; font-size:13px; line-height:1.85}
.msg.bot{background:var(--surface-2); border:1px solid var(--line); align-self:flex-start; border-start-start-radius:4px}
.msg.me{background:var(--brand); color:#fff; align-self:flex-end; border-start-end-radius:4px}
.msg.typing{display:inline-flex; gap:4px; align-items:center; padding:13px 14px}
.msg.typing i{width:6px; height:6px; border-radius:50%; background:#cf9a76; animation:typeDot 1s ease-in-out infinite}
.msg.typing i:nth-child(2){animation-delay:.15s}
.msg.typing i:nth-child(3){animation-delay:.3s}
@keyframes typeDot{0%,60%,100%{transform:translateY(0); opacity:.4}30%{transform:translateY(-3px); opacity:1}}
.mp-chips{display:flex; flex-wrap:wrap; gap:6px; padding:2px 14px 10px}
.mp-chip{
  border:1.5px solid var(--brand); color:var(--brand); background:#fff;
  border-radius:99px; padding:5px 12px; font-size:12.5px; font-weight:800;
  transition:background-color .15s, color .15s;
}
.mp-chip:hover{background:var(--brand); color:#fff}
.mp-foot{padding:0 14px 14px}
.mp-wa{
  width:100%; border:0; border-radius:12px; padding:11px; font-weight:900; font-size:14px; color:#fff;
  background:var(--wa,#22c064); display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
}

/* ---------- Layla walker ---------- */
.walker{
  position:fixed; left:0; bottom:10px; z-index:64; width:106px;
  background:none; border:0; padding:0; cursor:pointer; display:none;
  will-change:transform; -webkit-tap-highlight-color:transparent;
  perspective:720px;
}
.walker.show{display:block}
@media(max-width:760px){ .walker{width:88px; bottom:64px} }
.walker-tilt{display:block; transform-style:preserve-3d; will-change:transform; position:relative}
.walker-body{display:block}
.walker-body img{
  width:100%; height:auto; display:block; pointer-events:none;
  filter:drop-shadow(0 7px 9px rgba(122,62,10,.22));
}
.walker.walking .walker-body{animation:walkBob .56s ease-in-out infinite}
@keyframes walkBob{0%,100%{transform:translateY(0) rotate(-1.5deg)}25%{transform:translateY(-6px) rotate(0deg)}50%{transform:translateY(0) rotate(1.5deg)}75%{transform:translateY(-6px) rotate(0deg)}}
.walker.hop .walker-body{animation:walkerHop .55s ease}
@keyframes walkerHop{0%{transform:translateY(0)}35%{transform:translateY(-17px) rotate(-2deg)}70%{transform:translateY(0)}85%{transform:translateY(-5px)}100%{transform:translateY(0)}}
.walker.wave .walker-body{animation:walkerWave .8s ease}
@keyframes walkerWave{0%,100%{transform:rotate(0)}20%{transform:rotate(-4.5deg)}45%{transform:rotate(4deg)}70%{transform:rotate(-2.5deg)}}
.walker-shadow{
  position:absolute; left:50%; bottom:-3px; width:74%; height:13px; z-index:-1;
  transform:translateX(-50%); border-radius:50%; pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(96,52,8,.40), rgba(96,52,8,0) 68%);
}
.walker.walking .walker-shadow{animation:shadowPulse .56s ease-in-out infinite}
@keyframes shadowPulse{0%,100%{transform:translateX(-50%) scaleX(1); opacity:.95}50%{transform:translateX(-50%) scaleX(.85); opacity:.7}}
.walker.hop .walker-shadow{animation:shadowHop .55s ease}
@keyframes shadowHop{0%{transform:translateX(-50%) scale(1); opacity:.95}35%{transform:translateX(-50%) scale(.6); opacity:.5}70%{transform:translateX(-50%) scale(1.04)}100%{transform:translateX(-50%) scale(1)}}
.walker-bubble{
  position:absolute; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%); width:208px; max-width:60vw;
  background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg);
  padding:9px 12px; font-size:12.5px; line-height:1.75; font-weight:700; color:var(--ink); text-align:center;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.walker-bubble.show{opacity:1}
.walker-bubble::after{
  content:""; position:absolute; bottom:-6px; left:50%; margin-left:-6px; width:12px; height:12px;
  background:var(--surface); border-inline-end:1px solid var(--line); border-bottom:1px solid var(--line);
  transform:rotate(45deg);
}
.walker-dust{position:absolute; inset:0; pointer-events:none}
.puff{
  position:absolute; bottom:1px; width:9px; height:9px; border-radius:50%;
  background:rgba(196,152,105,.55); animation:puffFly .55s ease-out forwards;
}
@keyframes puffFly{0%{transform:translate(0,0) scale(.6); opacity:.85}100%{transform:translate(-13px,-13px) scale(1.5); opacity:0}}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{animation:none !important; transition:none !important}
  html{scroll-behavior:auto}
}

/* ---------- Loading / errors ---------- */
.loading{text-align:center; padding:40px 10px; color:var(--ink-2); font-size:14.5px}
.loading .spin{
  width:34px; height:34px; margin:0 auto 12px; border-radius:50%;
  border:3.5px solid var(--line); border-top-color:var(--brand);
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.error-box{
  text-align:center; padding:34px 16px; background:var(--surface); border:1px solid var(--line);
  border-radius:16px; color:var(--ink-2); font-size:14px; line-height:2;
}
.error-box b{color:var(--ink); display:block; font-size:16px}

/* ---------- Free Fire accounts ---------- */
.ff-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
@media(max-width:980px){ .ff-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:480px){ .ff-grid{grid-template-columns:1fr 1fr} }
.ff-card{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:var(--shadow); cursor:pointer; transition:.18s; text-align:start; padding:0; color:var(--ink); font-family:inherit;
  display:block; text-decoration:none;
}
.ff-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.ff-cover{
  height:150px; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
  background:linear-gradient(135deg,#2b2118,#3d2c1c);
}
.ff-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 30%; display:block}
.ff-ph{width:56px; height:56px; color:#8a6f4d; opacity:.7}
.ff-body{padding:11px 12px 13px}
.ff-name{font-weight:800; font-size:14.5px; line-height:1.5}
.ff-badges{display:flex; gap:6px; flex-wrap:wrap; margin-top:7px}
.ff-badge{
  font-size:11.5px; font-weight:800; padding:2px 10px; border-radius:99px;
  background:#fff4e5; color:#c85a10; border:1px solid #f5d9b8; white-space:nowrap;
}
.ff-price-row{margin-top:8px}
.ff-price-row .price{color:var(--brand); font-weight:900; font-size:17px}
.ff-buy{display:inline-block; margin-top:10px; padding:8px 18px; font-size:13.5px}
.ff-card .ff-buy{pointer-events:none}

.ff-detail{
  display:grid; grid-template-columns:minmax(0,340px) 1fr; gap:16px; margin-bottom:16px;
  background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow);
}
@media(max-width:680px){ .ff-detail{grid-template-columns:1fr} }
.ff-d-cover{min-height:240px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#2b2118,#3d2c1c)}
.ff-d-cover img{width:100%; height:100%; max-height:340px; object-fit:cover; display:block}
.ff-ph-lg{width:96px; height:96px; color:#8a6f4d; opacity:.7}
.ff-d-info{padding:18px}
.ff-d-info h2{margin:0 0 10px; font-size:21px}
.ff-desc{color:var(--ink-2); font-size:14px; line-height:1.9; margin:12px 0; white-space:pre-wrap}
.ff-d-price{
  display:flex; align-items:center; justify-content:space-between; margin-top:14px;
  padding:12px 14px; background:#fff8f2; border:1px solid #f5d9b8; border-radius:12px;
}
.ff-d-price span{color:var(--ink-2); font-size:13px}
.ff-d-price b{color:var(--brand); font-size:22px}
.ff-buy-panel{
  background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow);
  padding:18px; margin-bottom:16px;
}
.ff-buy-panel h3{margin:0 0 6px; font-size:17px}
