/* Leaf Client Web - temel katman */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
::selection { background: var(--accent); color: #2a1405; }

:root, [data-theme="dark"] {
  --bg: #0d0805; --bg-2: #150e08;
  --panel: rgba(30, 20, 12, .72); --panel-solid: #1a120a; --panel-2: #241809;
  --line: rgba(255, 176, 92, .16); --line-strong: rgba(255, 176, 92, .32);
  --text: #f7ede1; --muted: #b39a82;
  --accent: #ffa53d; --accent-2: #e2701a; --accent-soft: rgba(255, 165, 61, .13);
  --danger: #ff7b6b; --warn: #ffd166; --info: #f0a35e;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --grid: rgba(255, 165, 61, .06);
}
[data-theme="light"] {
  --bg: #fdf5ec; --bg-2: #f7e9d8;
  --panel: rgba(255, 252, 247, .85); --panel-solid: #fffdf9; --panel-2: #fbf1e4;
  --line: rgba(120, 62, 12, .14); --line-strong: rgba(120, 62, 12, .26);
  --text: #2a1708; --muted: #7d6249;
  --accent: #d9741a; --accent-2: #b4550c; --accent-soft: rgba(217, 116, 26, .12);
  --danger: #c2410c; --warn: #a16207; --info: #b45309;
  --shadow: 0 20px 50px rgba(90, 45, 10, .14);
  --grid: rgba(120, 62, 12, .06);
}

#leaf-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 55% at 30% 20%, rgba(255, 165, 61, .2), transparent 70%),
              radial-gradient(40% 50% at 75% 10%, rgba(214, 88, 30, .16), transparent 70%);
  filter: blur(10px);
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: #2a1405; background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(226, 112, 26, .35);
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 17px; letter-spacing: .18em; }
.brand-text small { font-size: 9.5px; letter-spacing: .34em; color: var(--muted); margin-top: 4px; }

.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  animation: popIn .35s ease both;
}
.user-chip[hidden] { display: none; }
.user-chip:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.avatar-frame { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-strong); }
.skin-head { display: block; image-rendering: pixelated; border-radius: 4px; }
.avatar-frame .skin-head { border-radius: 50%; width: 100%; height: 100%; }
.avatar-meta { display: flex; flex-direction: column; line-height: 1.15; }
.avatar-meta strong { font-size: 13px; }
.avatar-meta small { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a.active { color: var(--text); background: var(--accent-soft); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.header-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; transition: transform .18s, border-color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--accent-soft); }
.icon-btn[hidden] { display: none; }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  background: var(--accent); color: #04120a;
}
.cart-count[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #2a1405; box-shadow: 0 10px 26px rgba(226, 112, 26, .28); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(226, 112, 26, .38); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.btn-soft { background: var(--accent-soft); border-color: var(--line); color: var(--accent); }
.btn-danger { background: rgba(255, 123, 123, .12); border-color: rgba(255, 123, 123, .35); color: var(--danger); }
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.user-chip .avatar-meta { display: flex; }

.view { position: relative; z-index: 1; min-height: 70vh; }
.site-footer { position: relative; z-index: 1; margin-top: 80px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 28px; display: grid; gap: 22px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand strong { font-size: 14px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* Leaf Client Web - bileşenler */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 36px); }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px); }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].revealed { opacity: 1; transform: none; }

.hero { position: relative; padding: clamp(44px, 7vw, 84px) 0 clamp(30px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent), #9ef0b4 45%, var(--info)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: clamp(14px, 1.6vw, 16.5px); line-height: 1.65; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.stat { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.stat b { display: block; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.launcher-mock { position: relative; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--panel-2), var(--panel-solid)); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-bar i:first-child { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: var(--warn); } .mock-bar i:nth-child(3) { background: var(--accent); }
.mock-bar span { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--panel-2) 80%, transparent); border: 1px solid var(--line); }
.mock-row .skin-head { border-radius: 8px; }
.mock-row strong { font-size: 13px; display: block; }
.mock-row small { font-size: 11px; color: var(--muted); }
.mock-row .pill { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.mock-progress { height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--panel-2) 60%, #000 10%); overflow: hidden; }
.mock-progress i { display: block; height: 100%; width: 68%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); animation: pulse 2.4s ease-in-out infinite; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.mock-tile b { display: block; font-size: 15px; }
.mock-tile span { font-size: 10.5px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: transform .25s, border-color .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature-card h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature-card p { font-size: 13px; line-height: 1.6; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.tab { padding: 8px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: #04120a; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: var(--accent-soft); border-color: var(--line-strong); color: var(--accent); }

.field { display: grid; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent); color: var(--text);
  font-size: 13.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 92px; resize: vertical; font-family: inherit; }
.search { position: relative; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: rgba(245, 196, 81, .14); color: var(--warn); }
.badge-info { background: rgba(94, 200, 242, .14); color: var(--info); }
.badge-muted { background: color-mix(in srgb, var(--panel-2) 80%, transparent); color: var(--muted); }
.badge-danger { background: rgba(255, 123, 123, .14); color: var(--danger); }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--panel-2) 25%, color-mix(in srgb, var(--panel-2) 60%, var(--line)) 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: currentColor; animation: spin .7s linear infinite; display: inline-block; }
/* Leaf Client Web - mağaza, sepet, panel ve responsive */
.store-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px 0 10px; }
.store-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.store-hero p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.store-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 24px; }
.store-toolbar .search { flex: 1 1 240px; max-width: 320px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: .8; }
.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 22px 44px rgba(0, 0, 0, .24); }
.product-card.owned { border-color: var(--line-strong); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.product-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.product-name { font-size: 16px; font-weight: 700; }
.product-desc { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-top: 6px; min-height: 40px; }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.perks li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.perks .ico { color: var(--accent); flex: none; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 18px; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.old-price { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; margin-top: 14px; }
.owned-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--accent); }

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); margin: 30px 0 10px; }
.auth-side { padding: 34px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%), var(--panel-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.auth-side h2 { font-size: clamp(24px, 3vw, 32px); }
.auth-side p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.auth-side .skin-head { border-radius: 14px; border: 1px solid var(--line-strong); }
.auth-side .who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.auth-side .who strong { display: block; font-size: 13px; }
.auth-side .who small { font-size: 11px; color: var(--muted); }
.auth-form { padding: 34px; display: grid; gap: 14px; align-content: start; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); }
.auth-tabs button { padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all .2s; }
.auth-tabs button.active { background: var(--accent); color: #04120a; }
.auth-note { font-size: 11.5px; line-height: 1.6; color: var(--muted); padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--accent-soft); }
.form-error { font-size: 12px; color: var(--danger); min-height: 16px; }
.ms-btn { background: #fff; color: #1b1b1b; border: 1px solid #d7d7d7; }
.ms-btn:hover { background: #f3f3f3; }
.ms-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 16px; height: 16px; }
.ms-logo i { display: block; width: 7px; height: 7px; }
.ms-logo i:nth-child(1) { background: #f25022; } .ms-logo i:nth-child(2) { background: #7fba00; }
.ms-logo i:nth-child(3) { background: #00a4ef; } .ms-logo i:nth-child(4) { background: #ffb900; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 60;
  display: flex; flex-direction: column; background: var(--panel-solid); border-left: 1px solid var(--line-strong);
  transform: translateX(102%); transition: transform .32s cubic-bezier(.2,.7,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.4);
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 16px; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.cart-item { display: flex; gap: 12px; padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); }
.cart-thumb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); flex: none; }
.cart-item strong { font-size: 13px; display: block; }
.cart-item small { font-size: 11.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 26px; height: 26px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; }
.qty button:hover { background: var(--accent-soft); color: var(--accent); }
.qty span { min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--panel-2); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total span { font-size: 12.5px; color: var(--muted); }
.cart-total b { font-size: 22px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; cursor: pointer; }
.pay-option input { accent-color: var(--accent); }
.pay-option.active { border-color: var(--accent); background: var(--accent-soft); }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); font-size: 13px; display: grid; gap: 10px; justify-items: center; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(2, 8, 5, .55); backdrop-filter: blur(2px); }
.drawer-backdrop[hidden] { display: none; }

.modal-root { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 5, .6); backdrop-filter: blur(3px); }
.modal { position: relative; width: min(560px, 100%); max-height: 86vh; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--panel-solid); box-shadow: var(--shadow); animation: fadeUp .25s ease both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px; overflow-y: auto; font-size: 13px; line-height: 1.65; color: var(--muted); }
.modal-body strong { color: var(--text); }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-solid); box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; max-width: 340px; }
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.toast-error .toast-dot { background: var(--danger); }
.toast-warn .toast-dot { background: var(--warn); }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; padding: 11px 14px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--accent-soft); }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13px; display: grid; gap: 10px; justify-items: center; border: 1px dashed var(--line-strong); border-radius: 16px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .header-right .user-chip .avatar-meta { display: none; }
  .brand-text small { display: none; }
  .user-chip { padding: 4px; }
  .modal { max-height: 92vh; }
}
