/* ===== Vanity Store — shared styles (deep violet + chrome, matches the brand pack) ===== */
:root {
  --bg: #0a0814;
  --bg-2: #13102a;
  --card: rgba(20, 16, 42, .5);
  --card-solid: #16122d;
  --line: rgba(170, 150, 255, .12);
  --line-2: rgba(170, 150, 255, .22);
  --line-strong: rgba(167, 139, 250, .6);
  --ink: #f4f1ff;
  --platinum: #dcd6fb;
  --muted: #a6a0cc;
  --dim: #77729c;
  --accent: #b9a8ff;
  --accent-2: #8b6cff;
  --accent-soft: rgba(139, 108, 255, .14);
  --primary-ring: rgba(139, 108, 255, .3);
  --success: #5ee2a8;
  --danger: #ff7a8a;
  --grad: linear-gradient(135deg, #a28bff 0%, #6a4cf5 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #ebe5ff 38%, #b3a2ff 70%, #7f66f3 100%);
  --glow: 0 12px 34px -12px rgba(124, 98, 242, .85);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(124, 98, 242, .5);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Lalezar', 'IBM Plex Sans Arabic', sans-serif;
  --font-latin: 'Montserrat', 'IBM Plex Sans Arabic', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--platinum);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent-2); color: #fff; }
.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }

/* Full-page background: the Vanity banner, softly blurred, behind a dark violet veil */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); overflow: hidden; }
.bg::before {
  content: ''; position: absolute; inset: -40px;
  background: url('../assets/pack/hero.jpg') center / cover no-repeat;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.06);
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 20, .45) 0%, rgba(10, 8, 20, .62) 45%, rgba(10, 8, 20, .82) 100%),
    radial-gradient(800px 500px at 85% -5%, rgba(124, 98, 242, .25), transparent 70%);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Chrome lettering like the pack titles */
.chrome {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #4a36b0) drop-shadow(0 10px 24px rgba(124, 98, 242, .45));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 48px; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s, filter .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 14px 40px -10px rgba(124, 98, 242, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.btn-danger { background: rgba(255, 122, 138, .08); color: var(--danger); border: 1px solid rgba(255, 122, 138, .3); }
.btn-danger:hover { background: rgba(255, 122, 138, .16); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 28px -12px rgba(88, 101, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-discord:hover:not(:disabled) { background: #6a75f5; }
.btn-sm { height: 38px; padding: 0 1rem; font-size: .85rem; }

/* Account (Discord login) */
.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: .55rem; height: 38px; padding: 0 .9rem 0 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--ink); font-size: .85rem; font-weight: 600;
  transition: border-color .2s;
}
[dir=rtl] .account-btn { padding: 0 4px 0 .9rem; }
.account-btn:hover { border-color: var(--line-strong); }
.account-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.account-btn span { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px; z-index: 60;
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px;
  animation: rise .2s var(--ease);
}
.account-who { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-who b { display: block; color: var(--ink); font-size: .9rem; }
.account-who small { color: var(--dim); font-size: .78rem; }
.account-menu button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .6rem .7rem; border-radius: 8px; color: var(--danger); font-size: .88rem; font-weight: 600; }
.account-menu button:hover { background: rgba(255, 122, 138, .08); }
.account-menu svg { width: 16px; height: 16px; }
.login-note { margin-top: .7rem; font-size: .8rem; color: var(--dim); text-align: center; }
.btn-lg { height: 54px; font-size: 1rem; padding: 0 2rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 8, 20, .45);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 20px -4px rgba(124, 98, 242, .7);
}
.brand-name { font-family: var(--font-latin); font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.nav-menu { display: flex; align-self: stretch; margin-inline-start: 2rem; gap: .2rem; }
.nav-link {
  position: relative; display: flex; align-items: center; padding: 0 1rem;
  font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; inset-inline: 1rem; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-2);
}
.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: .5rem; align-items: center; }

/* ===== Shared pieces ===== */
.surface {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
/* Glass effect for cards over the banner background */
.card, .cat, .empty { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(190, 175, 255, .14); }
/* Pill like "●○● VANITY STORE ® — NITRO" in the pack */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-latin); font-size: .7rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 34px; height: 14px; border-radius: 99px; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 8px 50%, #d9d0ff 3px, transparent 3.5px), radial-gradient(circle at 17px 50%, transparent 2px, #d9d0ff 2.2px, #d9d0ff 3px, transparent 3.5px), radial-gradient(circle at 26px 50%, #8a80b8 3px, transparent 3.5px);
}
.chip-tag {
  display: inline-flex; align-items: center; gap: .4rem; height: 30px; padding: 0 .9rem;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(255, 255, 255, .05); color: var(--platinum); border: 1px solid var(--line-2);
}
.chip-tag.brand, a.chip-tag:hover { background: var(--accent-soft); color: var(--accent); border-color: rgba(167, 139, 250, .4); }
.chip-tag.ok { background: rgba(94, 226, 168, .08); color: var(--success); border-color: rgba(94, 226, 168, .25); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex-shrink: 0; }
.dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Image frame */
.art { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.art img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.art-chip { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; }
.art-chip span {
  display: inline-flex; align-items: center; height: 28px; padding: 0 .85rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: #fff;
  background: rgba(20, 15, 45, .7); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ===== Hero ===== */
.hero { padding: 64px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-content { min-width: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.2; color: var(--ink);
  margin: 1rem 0 .9rem;
}
.hero h1 .latin { display: block; font-family: var(--font-latin); font-weight: 800; font-size: .62em; letter-spacing: .12em; line-height: 1.3; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 480px; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-media { aspect-ratio: 16 / 9; }
.hero-media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }

/* Service pills under hero (like the pack's main banner) */
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 48px; }
.services a {
  display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 1.3rem; border-radius: 999px;
  background: rgba(40, 32, 84, .55); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: .92rem;
  transition: .25s var(--ease);
}
.services a small { font-family: var(--font-latin); font-weight: 700; color: var(--accent); font-size: .8rem; }
.services a:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--glow); }

/* ===== Sections ===== */
.section { padding: 88px 0 16px; scroll-margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.25; margin-top: .5rem; }
.section-sub { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--accent); transition: color .2s; white-space: nowrap; }
.link-more:hover { color: #fff; }
.link-more svg { width: 15px; height: 15px; }

/* Section tiles: the pack banner + name row */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cat {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  animation: rise .5s var(--ease) both;
}
.cat:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.cat-media { aspect-ratio: 8 / 3; overflow: hidden; background: var(--bg-2); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat-media img { transform: scale(1.04); }
.cat-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; }
.cat-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--ink); line-height: 1.3; }
.cat-body p { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.cat-count { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; height: 34px; padding: 0 .9rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; border: 1px solid rgba(167, 139, 250, .3); }
.cat-count svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.cat:hover .cat-count svg { transform: translateX(-4px); }

/* Info banners (about + payment) */
.banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.banners .art { aspect-ratio: 8 / 3; }

/* Toolbar */
.toolbar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; height: 46px; padding-inline: 2.9rem 1.1rem; border-radius: 999px;
  background: rgba(22, 18, 45, .8); border: 1px solid var(--line-2); outline: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--primary-ring); }
.search svg { position: absolute; inset-inline-start: 1.1rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--dim); pointer-events: none; }

.chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 40px; padding: 0 1.15rem; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--muted);
  font-weight: 500; font-size: .88rem; transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }

/* Grouped catalog */
.group + .group { margin-top: 64px; }
.group-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.group-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.group-head small { color: var(--dim); font-size: .85rem; white-space: nowrap; }
.group-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); min-width: 20px; }
.group-desc { color: var(--muted); font-size: .92rem; margin: -.8rem 0 1.4rem; }

/* ===== Product cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  animation: rise .5s var(--ease) both;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.card-media { position: relative; aspect-ratio: 8 / 3; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 1.15rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.card-cat { font-size: .76rem; font-weight: 600; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.45; color: var(--ink); margin-top: .1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500; color: var(--muted); }
.status .dot { width: 6px; height: 6px; }
.card .btn { position: relative; z-index: 2; }

.price { display: inline-flex; align-items: baseline; gap: .3rem; direction: ltr; white-space: nowrap; }
.price small { color: var(--dim); font-family: var(--font-latin); font-weight: 600; font-size: .72rem; letter-spacing: .1em; }
.price b { font-family: var(--font-latin); font-size: 1.45rem; font-weight: 800; line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price.lg b { font-size: 2.4rem; }
.price.lg small { font-size: .9rem; }

/* Skeleton while loading */
.skeleton { height: 330px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--card-solid) 30%, #221c44 50%, var(--card-solid) 70%) 0 0 / 300% 100%; border: 1px solid var(--line); animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -100% 0; } }

.empty { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--card); }
.empty svg { width: 40px; height: 40px; color: var(--accent); margin: 0 auto .9rem; }
.empty h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: .3rem; }

/* ===== Section (category) page header ===== */
.cat-hero { padding: 36px 0 8px; }
.cat-hero-banner { aspect-ratio: 8 / 3; margin-top: 8px; }
.cat-hero-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.cat-hero-info h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.2; }
.cat-hero-info p { color: var(--muted); max-width: 560px; }

/* ===== Product page ===== */
.pd { padding: 28px 0 24px; }
.crumbs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .86rem; color: var(--dim); min-height: 44px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; }
.pd-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; margin-top: 16px; align-items: start; }
.pd-art { aspect-ratio: 8 / 3; position: sticky; top: 100px; }
.pd-info { min-width: 0; display: flex; flex-direction: column; }
.pd-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pd-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--ink); line-height: 1.25; margin-top: 1rem; }
.pd-price { margin-top: 1rem; }
.pd-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.pd-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.pd-meta svg { width: 16px; height: 16px; color: var(--accent); }

.buy-box { margin-top: 1.8rem; padding: 1.4rem; }
.buy-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.buy-head h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.ico-box {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(167, 139, 250, .3);
}
.ico-box svg { width: 17px; height: 17px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 58px;
  padding: .6rem 1.1rem; border-radius: var(--r-md);
  background: var(--accent-soft); border: 1px solid var(--line-strong);
}
.opt .price b { font-size: 1.3rem; }
.opt-name { display: flex; align-items: center; gap: .7rem; min-width: 0; font-weight: 600; color: var(--ink); }
.opt-name span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 3px var(--primary-ring); }
.radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.buy-foot { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.buy-row b { color: var(--ink); font-size: 1.2rem; font-weight: 700; }

.specs-title { margin: 2.2rem 0 .8rem; font-family: var(--font-latin); font-size: .72rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.specs { overflow: hidden; }
.specs > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .7rem 1.2rem; font-size: .92rem; }
.specs > div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); flex-shrink: 0; }
.specs dd { color: var(--ink); font-weight: 600; text-align: end; min-width: 0; }

.prose { padding: 1.8rem 2rem; color: var(--platinum); font-size: 1rem; line-height: 2; white-space: pre-line; }
.prose.muted { color: var(--muted); }

/* ===== Footer ===== */
.footer { margin-top: 110px; padding: 40px 0 34px; border-top: 1px solid var(--line); background: rgba(10, 8, 20, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.footer .brand-logo { width: 40px; height: 40px; }
.footer-name { font-family: var(--font-latin); font-weight: 700; color: var(--ink); }
.footer-copy { color: var(--dim); font-size: .82rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.admin-link { color: var(--dim); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); transition: .2s; }
.admin-link:hover { color: var(--ink); border-color: var(--line-strong); }
.admin-link svg { width: 15px; height: 15px; }

/* ===== Toasts ===== */
.toasts { position: fixed; z-index: 999; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.toast {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-radius: var(--r-md);
  background: rgba(22, 18, 45, .95); border: 1px solid var(--line-2); color: var(--platinum);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8); font-size: .92rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: toastIn .35s var(--ease);
}
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--accent); box-shadow: 0 0 10px currentColor; }
.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ===== Forms (admin) ===== */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--platinum); }
.field small { color: var(--dim); font-size: .78rem; }
.input {
  width: 100%; height: 46px; padding: 0 1rem; border-radius: var(--r-sm);
  background: rgba(14, 11, 30, .8); border: 1px solid var(--line-2); outline: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--dim); }
.input:disabled { opacity: .6; }
textarea.input { height: auto; min-height: 96px; padding: .75rem 1rem; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 2rem; }
select.input option { background: var(--card-solid); }
.input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--primary-ring); }

.switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; user-select: none; font-weight: 500; font-size: .92rem; }
.switch input { display: none; }
.switch i { position: relative; width: 44px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: .2s; flex-shrink: 0; }
.switch i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s var(--ease); }
.switch input:checked + i { background: var(--accent-2); box-shadow: 0 0 14px -2px var(--accent-2); }
.switch input:checked + i::after { right: 23px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .pd-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .pd-art { position: relative; top: 0; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .nav-menu { display: none; }
  .nav-links .btn span { display: none; }
  .nav-links .btn { width: 44px; padding: 0; }
  .account-btn span { display: none; }
  .account-btn, [dir=rtl] .account-btn { padding: 0 4px; }
  .hero { padding-top: 32px; }
  .services { margin-top: 32px; }
  .cats, .banners { grid-template-columns: 1fr; gap: 16px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .search { max-width: none; }
  .prose { padding: 1.3rem; }
  .section { padding-top: 64px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
