:root {
    --bg-deep: #080808;
    --bg-surface: #111111;
    --bg-elevated: #1a1a1a;
    --bg-hover: #222222;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);
    --text-primary: #f5f5f5;
    --text-secondary: #9a9a9a;
    --text-muted: #666;
    --accent: #e8e8e8;
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --danger: #c44;
    --success: #6a6;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h: 64px;
    --body-bg:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255,255,255,0.04) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(255,255,255,0.03) 0%, transparent 50%),
        linear-gradient(165deg, #0a0a0a 0%, #141414 35%, #0d0d0d 70%, #111 100%);
    --header-bg: rgba(10, 10, 10, 0.88);
    --header-mobile-nav-bg: rgba(10, 10, 10, 0.98);
    --card-bg: linear-gradient(160deg, rgba(26,26,26,0.9), rgba(14,14,14,0.95));
    --hero-visual-bg: linear-gradient(145deg, rgba(26,26,26,0.95), rgba(14,14,14,0.98));
    --modal-bg: linear-gradient(160deg, #1a1a1a, #111);
    --modal-overlay-bg: rgba(0, 0, 0, 0.75);
    --product-overlay-bg: rgba(0, 0, 0, 0.88);
    --input-bg: rgba(0, 0, 0, 0.35);
    --thumb-bg: rgba(0, 0, 0, 0.35);
    --viewer-bg: #0c0c0c;
    --viewer-toolbar-bg: rgba(10, 10, 10, 0.85);
    --btn-white-bg: linear-gradient(180deg, #fff, #ddd);
    --btn-white-text: #111;
    --btn-white-hover: linear-gradient(180deg, #fff, #eee);
    --cart-badge-bg: #f5f5f5;
    --cart-badge-text: #0a0a0a;
    --theme-color: #0a0a0a;
    --floating-btn-bg: rgba(20, 20, 20, 0.9);
}

[data-theme="light"] {
    --bg-deep: #f3f3f4;
    --bg-surface: #ffffff;
    --bg-elevated: #f0f0f2;
    --bg-hover: #e6e6ea;
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.14);
    --text-primary: #141414;
    --text-secondary: #5c5c5c;
    --text-muted: #888;
    --accent: #222;
    --gold-dim: rgba(184, 148, 31, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --body-bg:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0,0,0,0.03) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(0,0,0,0.02) 0%, transparent 50%),
        linear-gradient(165deg, #fafafa 0%, #f0f0f2 35%, #f5f5f7 70%, #ececef 100%);
    --header-bg: rgba(255, 255, 255, 0.88);
    --header-mobile-nav-bg: rgba(255, 255, 255, 0.98);
    --card-bg: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(245,245,247,0.98));
    --hero-visual-bg: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(240,240,242,0.98));
    --modal-bg: linear-gradient(160deg, #ffffff, #f5f5f7);
    --modal-overlay-bg: rgba(0, 0, 0, 0.4);
    --product-overlay-bg: rgba(255, 255, 255, 0.92);
    --input-bg: rgba(0, 0, 0, 0.04);
    --thumb-bg: rgba(0, 0, 0, 0.05);
    --viewer-bg: #e4e4e8;
    --viewer-toolbar-bg: rgba(255, 255, 255, 0.9);
    --btn-white-bg: linear-gradient(180deg, #222, #111);
    --btn-white-text: #fff;
    --btn-white-hover: linear-gradient(180deg, #333, #222);
    --cart-badge-bg: #141414;
    --cart-badge-text: #f5f5f5;
    --theme-color: #f3f3f4;
    --floating-btn-bg: rgba(255, 255, 255, 0.95);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--body-bg);
    background-attachment: fixed;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.35s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--header-h);
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease, border-color 0.25s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
}

.header-brand img,
.header-brand .brand-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.header-brand .brand-icon {
    color: var(--text-primary);
}

.header-brand .brand-icon-outline,
.header-brand .brand-icon-lines {
    stroke: currentColor;
}

.header-brand .brand-icon-core {
    fill: #111111;
}

.header-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 4px;
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.15s, background 0.15s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-extras {
    display: none;
}

.exe-plus-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: var(--gold-dim);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.exe-plus-badge:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.55);
}

.exe-plus-badge .crown { font-size: 0.85rem; }

.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.cart-btn .cart-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.cart-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-light);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--cart-badge-bg);
    color: var(--cart-badge-text);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.25s;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.04);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-light);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0,0,0,0.07);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    position: absolute;
    transition: opacity 0.25s ease, transform 0.35s ease;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-30deg) scale(0.7);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(30deg) scale(0.7);
}

.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

.admin-btn {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.admin-btn:hover { color: var(--text-secondary); }

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:hover { background: rgba(255,255,255,0.1); }

.btn:active { transform: scale(0.98); }

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-white {
    background: var(--btn-white-bg);
    color: var(--btn-white-text);
    border-color: transparent;
}

.btn-white:hover { background: var(--btn-white-hover); }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #111;
    border-color: transparent;
    font-weight: 600;
}

.btn-gold:hover { filter: brightness(1.08); }

.btn-danger {
    border-color: rgba(204, 68, 68, 0.4);
    color: #f88;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.92rem;
}

/* ── PAGES ── */
.page {
    display: none;
    animation: fadeIn 0.35s ease;
    width: 100%;
    max-width: 100%;
}

.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 640px;
}

/* ── HOME ── */
.hero {
    padding: 56px 24px 48px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-copy,
.hero-visual {
    min-width: 0;
    max-width: 100%;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-lead {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-copy,
.hero-visual {
    min-width: 0;
    max-width: 100%;
}

.hero-visual {
    position: relative;
    aspect-ratio: 4/3;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--hero-visual-bg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 55%);
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}

.hero-slide .hero-slide-thumb {
    width: min(100%, 420px);
    height: min(100%, 420px);
    aspect-ratio: 1;
    border: none;
    background: transparent;
}

.hero-slide .hero-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}

.hero-slide-placeholder {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-align: center;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
}

.slider-dot.active { background: var(--text-primary); }

.exe-plus-banner {
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.exe-plus-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(26,26,26,0.95));
    box-shadow: var(--shadow);
    min-width: 0;
}

.exe-plus-card > div {
    min-width: 0;
}

.exe-plus-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.exe-plus-card h3 .crown { color: var(--gold); }

.exe-plus-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.exe-plus-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

/* ── EXE-PLUS membership card (active modal) ── */
.exe-membership-wrap {
    width: 100%;
}

.exe-membership-card {
    position: relative;
    width: 100%;
    padding: 22px 26px 20px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 24%, rgba(12, 12, 12, 0.98) 52%, rgba(18, 14, 8, 0.98) 100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.exe-membership-card--admin {
    border-color: rgba(212, 175, 55, 0.58);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.1) 26%, rgba(14, 12, 8, 0.98) 54%, rgba(20, 16, 8, 0.98) 100%);
}

.exe-membership-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, 0.07) 46%, transparent 56%);
    pointer-events: none;
}

.exe-membership-card-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.exe-membership-card-row--top {
    align-items: flex-start;
}

.exe-membership-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.exe-membership-card-crown {
    font-size: 1.35rem;
    color: var(--gold);
    line-height: 1;
}

.exe-membership-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    white-space: nowrap;
}

.exe-membership-card-status {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(106, 170, 106, 0.18);
    border: 1px solid rgba(106, 170, 106, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fd48f;
}

.exe-membership-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.exe-membership-card-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.exe-membership-card-field {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.exe-membership-card-value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 4px;
}

.exe-membership-card-plan {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.35;
}

.exe-membership-card-meta {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.exe-membership-card-detail {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.exe-membership-card-perks {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.exe-membership-card-perks li {
    position: relative;
    padding-left: 22px;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-primary);
}

.exe-membership-card-perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
}

.exe-membership-card-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.exe-membership-card-mark {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(212, 175, 55, 0.8);
    text-transform: none;
}

.exe-plus-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.exe-plus-plans.exe-plus-plans--active {
    display: block;
    width: 100%;
}

.exe-plus-plan {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
    background: rgba(255,255,255,0.02);
}

.exe-plus-plan.featured {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.06);
}

.exe-plus-plan-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.exe-plus-plan-price {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.exe-plus-plan-term {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    min-height: 2.4em;
}

.exe-plus-plan .btn {
    width: 100%;
}

.exe-plus-modal--active .modal h2 {
    display: none;
}

.exe-plus-modal--active .modal-body {
    margin-bottom: 10px;
    width: 100%;
}

.exe-plus-modal--active .modal.modal-wide {
    width: 100%;
    max-width: 560px;
    padding: 22px 24px 18px;
}

.exe-plus-modal--active .exe-plus-modal-marketing,
.exe-plus-modal--active .exe-plus-modal-hint {
    display: none !important;
}

[data-theme="light"] .exe-membership-card {
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.07) 24%, rgba(255, 255, 255, 0.98) 52%, rgba(248, 246, 240, 0.98) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .exe-membership-card-perks {
    background: rgba(212, 175, 55, 0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 48px 0;
}

.info-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.info-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.info-card .icon {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    margin-top: 2px;
    opacity: 0.85;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 0;
    line-height: 1.25;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.featured-empty {
    grid-column: 1 / -1;
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.featured-empty strong {
    color: var(--text-primary);
    font-weight: 500;
}

.featured-carousel {
    position: relative;
    margin-top: 24px;
    padding: 0 48px;
}

.featured-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.featured-row::-webkit-scrollbar {
    display: none;
}

.featured-row > .product-card {
    flex: 1 0 calc((100% - 54px) / 4);
    scroll-snap-align: start;
    min-width: 0;
}

.featured-row .featured-empty {
    flex: 1 1 100%;
}

.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 15, 18, 0.82);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0 3px;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.featured-arrow:hover {
    background: rgba(42, 42, 50, 0.95);
}

.featured-arrow--prev {
    left: 4px;
}

.featured-arrow--next {
    right: 4px;
}

.featured-arrow[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .featured-row > .product-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 560px) {
    .featured-carousel {
        padding: 0 38px;
    }

    .featured-row > .product-card {
        flex-basis: 80%;
    }

    .featured-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.step-card {
    text-align: center;
    padding: 24px 16px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.step-card h4 {
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

/* ── PRODUCT CARDS ── */
.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card-bg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-thumb {
    aspect-ratio: 1;
    background: var(--thumb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb .placeholder {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.product-thumb .thumb-loading {
    opacity: 0.45;
    animation: thumbPulse 1.2s ease-in-out infinite;
}

@keyframes thumbPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}

.product-body {
    padding: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tag {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
}

.product-price .was,
.detail-price .was,
.cart-item-price .was,
.cart-row.total .was {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 6px;
}

.product-card-admin {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.product-card-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(6px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, border-color 0.15s;
}

.product-card-menu-btn:hover {
    background: rgba(20, 20, 20, 0.92);
    border-color: rgba(212, 175, 55, 0.35);
}

.product-card-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 132px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    z-index: 6;
}

.product-card-menu.open {
    display: block;
}

.product-card-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.84rem;
    cursor: pointer;
}

.product-card-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.product-card-menu button.danger {
    color: var(--danger);
}

.product-card-menu button.danger:hover {
    background: rgba(220, 80, 80, 0.12);
}

[data-theme="light"] .product-card-menu-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border);
}

[data-theme="light"] .product-card-menu button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.product-owned .owned-label,
.detail-owned-badge {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── SHOP LAYOUT ── */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.shop-layout > * {
    min-width: 0;
}

.shop-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.filter-group {
    margin-bottom: 22px;
}

.filter-group:last-child { margin-bottom: 0; }

.filter-group h4 {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-option input { accent-color: var(--text-primary); }

.filter-option:hover { color: var(--text-primary); }

.filter-select,
.filter-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.84rem;
}

.shop-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.cat-tab:hover,
.cat-tab.active {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: rgba(255,255,255,0.06);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.shop-filters-toggle {
    display: none;
}

/* ── PRODUCT DETAIL ── */
.product-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: var(--product-overlay-bg);
    backdrop-filter: blur(8px);
    display: none;
    overflow-y: auto;
}

.product-overlay.open { display: block; }

.product-detail {
    max-width: 1200px;
    margin: calc(var(--header-h) + 36px) auto 48px;
    padding: 0 24px;
}

.product-detail-close {
    position: fixed;
    top: calc(var(--header-h) + 14px);
    right: 20px;
    z-index: 401;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--floating-btn-bg);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.viewer-wrap {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--viewer-bg);
    overflow: hidden;
    touch-action: none;
}

#viewer-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.viewer-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    touch-action: none;
}

.viewer-toolbar {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.viewer-mode-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--viewer-toolbar-bg);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
}

.viewer-mode-btn.active {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
}

.texture-swatches {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
    flex-wrap: wrap;
    max-width: 160px;
    justify-content: flex-end;
}

.texture-swatch {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.texture-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texture-swatch::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.5rem;
    text-align: center;
    background: rgba(0,0,0,0.65);
    padding: 1px 0;
    letter-spacing: 0.3px;
}

.viewer-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    pointer-events: none;
}

.viewer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 3;
}

.viewer-loading.hidden { display: none; }

.viewer-load-panel {
    width: min(300px, 86%);
    text-align: center;
}

.viewer-load-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.viewer-load-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.viewer-load-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4af37, #f0d875);
    transition: width 0.12s ease;
}

.viewer-load-bar.is-indeterminate .viewer-load-bar-fill {
    width: 38% !important;
    animation: viewer-load-indeterminate 1.1s ease-in-out infinite;
}

@keyframes viewer-load-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.viewer-load-meta {
    margin-top: 8px;
    min-height: 1.1em;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.detail-info {
    padding: 8px 0;
}

.detail-info h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-item {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.stat-item .label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-item .value {
    font-size: 0.92rem;
    font-weight: 500;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-actions .btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.license-note {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── CART ── */
.cart-layout {
    max-width: 800px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease;
    min-width: 0;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .cart-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: var(--thumb-bg);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 600;
    flex-shrink: 0;
    text-align: right;
}

.cart-remove {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
}

.cart-remove:hover { color: var(--danger); }

.cart-summary {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.03);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    min-width: 0;
}

.cart-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cart-row.total {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
}

.cart-row.discount { color: var(--gold); }

.cart-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.cart-empty .cart-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.35;
    color: var(--text-secondary);
}

.cart-empty .cart-empty-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── CUSTOM PAGE ── */
.custom-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.custom-hero p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 12px;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.custom-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.custom-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.custom-card p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.custom-cta {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--hero-visual-bg);
}

.custom-email {
    font-size: 1.1rem;
    color: var(--accent);
    margin: 16px 0 24px;
    word-break: break-all;
}

/* ── MODALS ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(4px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--modal-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal.modal-wide { max-width: 640px; }

.admin-product-status {
    margin: 4px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.admin-product-status.is-info {
    color: var(--text-primary);
    border-color: var(--border-light);
}

.admin-product-status.is-error {
    color: #f88;
    border-color: rgba(204, 68, 68, 0.35);
    background: rgba(204, 68, 68, 0.08);
}

.admin-thumb-preview {
    aspect-ratio: 1;
    max-width: 220px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: #0c0c0c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.admin-thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-thumb-preview-placeholder {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    line-height: 1.45;
}

.admin-thumb-url-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.admin-thumb-url-row input {
    flex: 1;
    min-width: 0;
}

.admin-upload-progress {
    margin: 8px 0 12px;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

.admin-upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

#admin-upload-percent {
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.admin-upload-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.admin-upload-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4af37, #f0d875);
    transition: width 0.15s ease;
}

.admin-upload-progress.is-indeterminate .admin-upload-bar-fill {
    width: 35% !important;
    animation: admin-upload-indeterminate 1.1s ease-in-out infinite;
}

@keyframes admin-upload-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.admin-upload-detail {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
}

.modal.modal-xl {
    max-width: 820px;
    display: flex;
    flex-direction: column;
}

.modal.modal-xl .modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 8px;
    padding-top: 12px;
    background: var(--modal-bg);
    border-top: 1px solid var(--border);
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.modal-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
}

.form-group textarea { min-height: 90px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.genre-tag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
}

@media (max-width: 480px) {
    .genre-tag-grid { grid-template-columns: 1fr; }
}

.login-error {
    display: none;
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--danger);
}

.login-error.show { display: block; }

/* ── ADMIN PANEL ── */
.admin-bar {
    display: none;
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 8px 24px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-bar.visible { display: flex; }

.admin-bar span {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-right: 8px;
}

.admin-product-list {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.admin-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
}

.admin-product-row:last-child { border-bottom: none; }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(26,26,26,0.95);
    border: 1px solid var(--border-light);
    font-size: 0.84rem;
    z-index: 7000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.subscriber-crown {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--gold);
}

.subscriber-crown.visible { display: inline-flex; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .featured-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    :root {
        --app-pad-x: max(20px, env(safe-area-inset-left, 0px));
        --app-pad-x-end: max(20px, env(safe-area-inset-right, 0px));
    }

    html {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overscroll-behavior-x: none;
        background-attachment: scroll;
    }

    .app-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding-left: var(--app-pad-x);
        padding-right: var(--app-pad-x-end);
        box-sizing: border-box;
    }

    .app-shell .site-header,
    .app-shell .admin-bar,
    .app-shell .hero,
    .app-shell .exe-plus-banner,
    .app-shell .page-inner,
    .app-shell .page,
    .app-shell .shop-layout,
    .app-shell .cart-layout,
    .app-shell .custom-cta,
    .app-shell .exe-plus-card {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .site-header,
    .admin-bar,
    .page,
    .page-inner,
    .hero,
    .exe-plus-banner,
    .shop-layout,
    .shop-header,
    .product-grid,
    .featured-row,
    .category-tabs,
    .steps-row,
    .custom-grid,
    .cart-layout,
    .info-grid,
    .custom-cta,
    .product-overlay,
    .product-detail,
    .modal,
    .modal-body,
    .exe-plus-card,
    .cart-summary,
    .library-grid,
    .library-item,
    .detail-info,
    .detail-actions,
    .stats-grid,
    .license-note,
    .shop-sidebar,
    .product-card,
    .product-body,
    .hero-copy,
    .hero-visual,
    .cart-item,
    .cart-row,
    .app-shell {
        min-width: 0;
    }

    .app-shell > * {
        max-width: 100%;
    }

    .site-header,
    .admin-bar,
    .page,
    .page-inner,
    .hero,
    .exe-plus-banner,
    .shop-layout,
    .shop-header,
    .product-grid,
    .featured-row,
    .category-tabs,
    .steps-row,
    .custom-grid,
    .cart-layout,
    .info-grid,
    .custom-cta,
    .product-overlay,
    .product-detail,
    .modal,
    .modal-body,
    .exe-plus-card,
    .cart-summary,
    .library-grid,
    .library-item,
    .detail-info,
    .detail-actions,
    .stats-grid,
    .license-note,
    .shop-sidebar,
    .product-card,
    .product-body,
    .hero-copy,
    .hero-visual,
    .cart-item,
    .cart-row {
        max-width: 100%;
        box-sizing: border-box;
    }

    .page,
    .page-inner,
    .hero,
    .exe-plus-banner,
    .shop-layout,
    .cart-layout,
    .product-overlay,
    .app-shell {
        width: 100%;
    }

    .page-inner {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .product-overlay,
    .modal-overlay {
        padding-left: var(--app-pad-x);
        padding-right: var(--app-pad-x-end);
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .product-detail {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .btn,
    .nav-link,
    .cat-tab,
    .exe-plus-price,
    .cart-item-price,
    .product-name,
    .cart-item-name,
    .section-title,
    .hero h1,
    .detail-info h1 {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        position: relative;
        overflow: visible;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .header-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header-brand .brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.05rem;
        letter-spacing: 2px;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 4px;
        flex-shrink: 0;
        min-width: 0;
    }

    .header-nav {
        display: none;
        grid-column: 1 / -1;
    }

    .header-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: var(--header-mobile-nav-bg);
        border-bottom: 1px solid var(--border);
        padding: 12px var(--app-pad-x-end) 12px var(--app-pad-x);
        z-index: 299;
    }

    .header-nav-extras {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .header-actions .exe-plus-badge,
    .header-actions .subscriber-crown,
    .header-actions .admin-btn {
        display: none !important;
    }

    .header-actions .theme-toggle,
    .header-actions .cart-btn,
    .header-actions .mobile-menu-btn {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .admin-bar {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 32px;
        padding-bottom: 28px;
        gap: 24px;
    }

    .exe-plus-banner {
        padding-bottom: 32px;
    }

    .detail-info h1 {
        font-size: clamp(1.35rem, 6vw, 2rem);
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 4px;
        margin-bottom: 12px;
    }

    .cat-tab {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        border-radius: var(--radius);
        font-size: 0.82rem;
        font-weight: 500;
        line-height: 1.25;
    }

    .shop-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 16px;
        padding: 12px 14px;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-primary);
        font-family: inherit;
        font-size: 0.84rem;
        font-weight: 500;
        cursor: pointer;
    }

    .shop-filters-toggle[aria-expanded="true"] .shop-filters-toggle-icon {
        transform: rotate(180deg);
    }

    .shop-filters-toggle-icon {
        display: inline-block;
        transition: transform 0.2s ease;
        color: var(--text-muted);
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 0 !important;
    }

    .shop-sidebar {
        position: static;
        display: none;
        margin-bottom: 4px;
    }

    .shop-sidebar.mobile-open {
        display: block;
    }

    #genre-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2px;
    }

    #genre-filters .filter-option {
        padding: 10px 0;
    }

    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-header > * {
        min-width: 0;
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    }

    .featured-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-item-price {
        margin-left: auto;
    }

    .cart-row {
        gap: 12px;
        flex-wrap: wrap;
    }

    .exe-plus-card {
        padding: 22px 0;
        flex-direction: column;
        text-align: center;
    }

    .toast {
        left: var(--app-pad-x);
        right: var(--app-pad-x-end);
        width: auto;
        max-width: none;
        transform: translateY(80px);
        text-align: center;
    }

    .toast.show {
        transform: translateY(0);
    }

    .product-detail-close {
        right: var(--app-pad-x-end);
    }

    .product-overlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-detail {
        margin-top: calc(var(--header-h) + 16px);
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        min-width: 0;
    }

    .product-detail-grid > * {
        min-width: 0;
        max-width: 100%;
    }

    .viewer-wrap {
        width: 100%;
        min-width: 0;
    }

    #viewer-container canvas {
        max-width: 100% !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }

    .stat-item {
        min-width: 0;
        overflow: hidden;
    }

    .stat-item .value {
        overflow-wrap: anywhere;
    }

    .viewer-hint {
        left: 8px;
        right: 8px;
        transform: none;
        text-align: center;
        line-height: 1.35;
        font-size: 0.62rem;
    }

    .modal {
        max-width: 100%;
        padding: 24px 20px;
    }

    .modal-overlay {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .custom-grid { grid-template-columns: 1fr; }
    .exe-plus-price-sub { text-align: center; }
    .exe-plus-plans:not(.exe-plus-plans--active) { grid-template-columns: 1fr; }
    .exe-plus-modal--active .modal.modal-wide {
        max-width: 100%;
        padding: 18px 16px 14px;
    }
    .exe-membership-card {
        padding: 18px 18px 16px;
    }
    .exe-membership-card-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .exe-membership-card-value { font-size: 1.4rem; }
    .exe-membership-card-title { font-size: 1.2rem; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .header-brand .brand-text {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .featured-row { grid-template-columns: 1fr; }
    .library-item { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }

.library-lead {
    margin-bottom: 28px;
    color: var(--text-secondary);
}

.library-empty {
    text-align: center;
    padding: 72px 24px;
    color: var(--text-muted);
}

.library-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.library-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    min-width: 0;
}

.library-item-body {
    min-width: 0;
}

.library-item-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
}

.library-item-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.library-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.library-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.account-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.account-tab {
    flex: 1;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
}

.account-tab.active {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: rgba(255,255,255,0.04);
}

.account-email-line {
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.account-signed-actions {
    flex-direction: column;
    align-items: stretch;
}

.account-currency-block {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.account-currency-block label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.account-currency-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--input-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9rem;
}

.account-currency-hint {
    margin-top: 8px;
    margin-bottom: 0;
}

.modal.modal-analytics {
    max-width: 520px;
}

.analytics-panel {
    margin-bottom: 8px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.analytics-stat {
    text-align: center;
    padding: 18px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.06);
}

.analytics-stat--month {
    border-color: rgba(212, 175, 55, 0.32);
    background: rgba(212, 175, 55, 0.1);
}

.analytics-stat-value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 6px;
    word-break: break-word;
}

.analytics-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.35;
}

.analytics-stat-sub {
    margin-top: 6px;
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.analytics-hint {
    margin-top: 14px;
    text-align: center;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}
