:root {
    --bg: #09090b;
    --bg-elevated: #0e0e13;
    --surface: #111116;
    --surface-2: #171720;
    --surface-3: #20202b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #fafafa;
    --muted: #a1a1aa;
    --blurple: #6e8efb;
    --blurple-hover: #5b7cf7;
    --blurple-soft: rgba(110, 142, 251, 0.14);
    --accent-border: rgba(110, 142, 251, 0.34);
    --fuchsia: #a5b4fc;
    --green: #10b981;
    --green-bright: #34d399;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0 32px 90px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, .theme-section-title { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
    outline: 2px solid var(--blurple);
    outline-offset: 2px;
}

/* Restrained Obsidian Ambient Radial Glow */
.obsidian-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(920px 480px at 50% -10%, rgba(110, 142, 251, 0.14), transparent 70%),
        radial-gradient(640px 380px at 86% 12%, rgba(165, 180, 252, 0.06), transparent 65%);
}

.eco-bar, .navbar, .main-wrap, .site-footer, .worker-notice { position: relative; z-index: 1; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.9rem; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Notice Bar */
.worker-notice {
    background: rgba(245, 158, 11, 0.12);
    border-bottom: 1px solid rgba(245, 158, 11, 0.34);
    color: #fde68a;
    padding: 10px 0;
    font-size: 0.86rem;
    font-weight: 600;
}
.worker-notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

/* Ultra-Slim Ecosystem Bar */
.eco-bar {
    z-index: 41;
    background: rgba(9, 9, 11, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--muted);
}
.eco-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 7px;
    padding-bottom: 7px;
    flex-wrap: wrap;
}
.eco-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.eco-tag i { color: var(--blurple); }
.eco-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.eco-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}
.eco-links a:hover { color: var(--text); }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 9, 11, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 11px 0;
}
.nav-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(110, 142, 251, 0.22));
    transition: transform 0.16s ease;
}
.brand-logo-mobile {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.brand:hover .brand-logo-img { transform: scale(1.02); }

/* Search */
.search-wrap {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 5px 4px 14px;
    min-height: 44px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.search-wrap:focus-within {
    background: var(--surface-2);
    border-color: rgba(110, 142, 251, 0.55);
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.14);
}
.search-icon { color: var(--muted); font-size: 0.9rem; }
.search-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    padding: 7px 4px;
    outline: none;
    min-width: 0;
}
.search-wrap input::placeholder { color: #71717a; }
.search-kbd {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 7px;
    pointer-events: none;
}

.btn-icon-accent {
    background: rgba(110, 142, 251, 0.12);
    border: 1px solid rgba(110, 142, 251, 0.28);
    color: #dbe6ff;
    border-radius: 8px;
    padding: 7px 12px;
    min-height: 34px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.83rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-icon-accent:hover {
    background: var(--blurple);
    border-color: var(--blurple);
    color: #fff;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}
.nav-actions .btn-secondary:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
}

.pill-count {
    background: var(--blurple);
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 9px 15px;
    min-height: 40px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.89rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-sm { padding: 7px 11px; min-height: 36px; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { padding: 12px 20px; min-height: 46px; font-size: 0.96rem; border-radius: 12px; }
.btn-hero { padding: 11px 20px; min-height: 44px; font-size: 0.94rem; border-radius: 11px; }
.btn-full { width: 100%; }

.btn-primary {
    background: var(--blurple);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.25);
}
.btn-primary:hover {
    background: var(--blurple-hover);
    box-shadow: 0 8px 24px rgba(110, 142, 251, 0.36);
}
.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
}
.btn-danger-outline {
    background: transparent;
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.42);
}
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.12); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; }
.btn-google { background: #fff; color: #111; }
.btn-google:hover { background: #e4e4e7; }

/* Main & Editorial Style-A Hero */
.main-wrap { flex: 1; padding-top: 22px; padding-bottom: 72px; }

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 22, 31, 0.92) 0%, rgba(15, 16, 22, 0.96) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(290px, 0.85fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -90px;
    top: -150px;
    background: radial-gradient(circle, rgba(110, 142, 251, 0.18), transparent 68%);
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-top-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #e4e4e7;
    font-size: 0.8rem;
    font-weight: 700;
}
.shop-brand-pill img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.hero-copy h1 {
    margin: 16px 0 12px;
    font-size: clamp(1.75rem, 2.95vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    color: #ffffff;
}
.hero-copy p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 580px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: #b4b8c4;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-trust-row i { color: var(--blurple); font-size: 0.86rem; }
.trust-stat-chip strong {
    color: var(--text);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.top-sellers-section {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.top-sellers-head {
    border-bottom-color: rgba(245, 158, 11, 0.25);
}
.top-sellers-head .theme-section-title i { color: var(--amber); }
.top-sellers-head .top-sellers-pill {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.34);
    color: #fbbf24;
}
.top-sellers-sub {
    font-size: 0.8rem;
}
.sold-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.studio-share-btn {
    margin-top: 8px;
}

/* Right-Column Interactive Showcase Card */
.hero-showcase {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}
.hero-profile-trigger {
    width: 100%;
    max-width: 340px;
    padding: 0;
    text-align: left;
    font-family: inherit;
    color: var(--text);
    background: #14151c;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(110, 142, 251, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.hero-profile-trigger:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 142, 251, 0.45);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72), 0 0 32px rgba(110, 142, 251, 0.16);
}
.hero-profile-banner {
    height: 86px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1b2238 0%, #2b3a67 55%, #161822 100%);
    position: relative;
}
.hero-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e8ff;
    font-size: 0.72rem;
    font-weight: 700;
}
.hero-profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: -44px 0 8px 18px;
}
.hero-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, rgba(110, 142, 251, 0.85), rgba(226, 232, 255, 0.9), rgba(110, 142, 251, 0.25), rgba(110, 142, 251, 0.85));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: frostSpin 8s linear infinite;
}
@keyframes frostSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #000;
    border: 4px solid #14151c;
}
.hero-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    border: 3.5px solid #14151c;
}
.hero-profile-body {
    padding: 4px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hero-profile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hero-profile-name-row strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}
.hero-nitro-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--green-bright);
    font-size: 0.7rem;
    font-weight: 700;
}
.hero-profile-handle {
    font-size: 0.82rem;
    color: var(--muted);
}
.hero-profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 9px 0 7px;
}
.hero-profile-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd7ff;
}
.hero-profile-trigger:hover .hero-profile-hint i {
    transform: translateX(3px);
}
.hero-profile-hint i { transition: transform 0.18s ease; }

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-pill.online {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green-bright);
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.status-pill.online .dot {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 2.2s infinite;
}
.status-pill.offline {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.32);
}
.status-pill.offline .dot { background: var(--amber); }

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.58; transform: scale(1.22); }
}

.menu-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.menu-links:empty { display: none; }
.menu-links a {
    color: #d4d4d8;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.menu-links a:hover {
    background: rgba(110, 142, 251, 0.16);
    border-color: var(--accent-border);
    color: #fff;
}

/* Banners & Announcements */
.banners-area {
    position: relative;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(110, 142, 251, 0.14) 0%, #111116 60%, #15151e 100%);
    box-shadow: var(--shadow-card);
}
.banner-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    min-height: 112px;
    text-decoration: none;
    color: var(--text);
}
.banner-slide.active { display: flex; animation: fadeIn 0.25s ease; }
.banner-slide-body { flex: 1; min-width: 220px; }
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blurple-soft);
    border: 1px solid var(--accent-border);
    color: #dbe6ff;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.banner-slide h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.banner-slide p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.banner-slide-img {
    width: 220px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 0 10px;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background-color 0.2s ease;
}
.banner-dot.active { width: 22px; background: var(--blurple); }

.announcements-stack { margin-bottom: 16px; }
.announcement-card {
    background: rgba(110, 142, 251, 0.08);
    border: 1px solid rgba(110, 142, 251, 0.24);
    border-left: 3px solid var(--blurple);
    border-radius: 12px;
    padding: 11px 15px;
    margin-bottom: 10px;
    color: #e4e4e7;
    font-size: 0.88rem;
}

/* Filter Bar (Uncluttered Editorial Strip) */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.type-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 7px 14px;
    min-height: 38px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border-strong);
}
.chip.active {
    background: #fafafa;
    color: #09090b;
    border-color: #fafafa;
    font-weight: 700;
}
.filter-right { display: flex; gap: 8px; flex-wrap: wrap; }

select, input[type="email"], input[type="text"], input[type="password"], input[type="number"] {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    min-height: 40px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select:focus, input[type="email"]:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus {
    border-color: var(--blurple);
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.16);
}

.image-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(110, 142, 251, 0.1);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

/* Catalog Theme Sections (Editorial Section Headers — No Box Clutter) */
.catalog-sections {
    display: flex;
    flex-direction: column;
    gap: 34px;
}
.theme-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.theme-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--border);
}
.theme-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
}
.theme-section-title i { color: var(--blurple); }
.theme-section-head.is-new {
    border-bottom-color: rgba(52, 211, 153, 0.25);
}
.theme-section-head.is-new .theme-section-title i { color: var(--green-bright); }
.theme-new-pill {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--green-bright);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 9px;
    border-radius: 999px;
}
.theme-count-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product Showcase Grid & Restrained Obsidian Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    background: #14141b;
    border-color: rgba(110, 142, 251, 0.42);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}
.product-thumb-box {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 45%, #1d202d 0%, #0d0e13 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.product-thumb-box.is-frame-thumb {
    padding: 42px 14px 24px;
    align-items: flex-end;
}
.product-thumb-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.24s ease;
}
.product-card:hover .product-thumb-box img { transform: scale(1.05); }
.product-card:hover .product-thumb-box .pf-layer,
.product-card:hover .product-thumb-box .pf-layer img { transform: none; }

.type-tag {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 10;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #d4d4d8;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}
.discount-tag {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 10;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.42);
    color: var(--green-bright);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.product-title {
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.38;
    color: var(--text);
    overflow-wrap: anywhere;
}
.product-sub {
    color: var(--muted);
    font-size: 0.79rem;
    min-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: auto;
    font-variant-numeric: tabular-nums;
}
.product-price-row s {
    color: #71717a;
    font-size: 0.8rem;
    margin-right: 6px;
}
.product-price-row strong {
    font-size: 1.12rem;
    color: #fafafa;
    font-weight: 800;
}
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-actions-single { grid-template-columns: 1fr; }

/* Restrained Add-to-Cart CTA on Cards (No Cyan Spam) */
.product-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
}
.product-actions .btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
    color: #fff;
}
.product-actions .btn-primary {
    background: rgba(110, 142, 251, 0.12);
    border-color: rgba(110, 142, 251, 0.28);
    color: #dbe6ff;
    box-shadow: none;
}
.product-card:hover .product-actions .btn-primary {
    background: rgba(110, 142, 251, 0.22);
    border-color: rgba(110, 142, 251, 0.45);
}
.product-actions .btn-primary:hover {
    background: var(--blurple);
    border-color: var(--blurple);
    color: #fff;
    box-shadow: 0 6px 16px rgba(110, 142, 251, 0.35);
}

/* Skeleton Loader */
.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skeleton-box {
    border-radius: 12px;
    background: linear-gradient(90deg, #171720 25%, #222230 50%, #171720 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.catalog-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}
#catalogCountText { font-variant-numeric: tabular-nums; }

/* Minimal Obsidian Footer */
.site-footer {
    position: relative;
    background: #060608;
    border-top: 1px solid var(--border);
    padding: 36px 0 24px;
    margin-top: auto;
}
.footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.footer-brand-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-banner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(110, 142, 251, 0.2));
}
.footer-headline { display: block; font-size: 0.92rem; color: var(--text); }
.footer-subline { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.footer-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fpill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    min-height: 36px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #d4d4d8;
    cursor: pointer;
    transition: transform 0.14s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fpill:hover {
    transform: translateY(-2px);
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: #fff;
}
.fpill-line i { color: #34d399; }
.fpill-fb i { color: #60a5fa; }
.fpill-ig i { color: #f472b6; }
.fpill-mail i { color: var(--blurple); }
.fpill-orders i { color: #c4b5fd; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--muted);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 90;
    animation: fadeIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    width: 100%;
    max-width: 490px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-modal);
}
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 1080px; }

/* Profile Customizer Studio */
.studio-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}
.studio-controls {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}
.studio-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.studio-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.studio-group select,
.studio-group input[type="text"] {
    width: 100%;
    min-width: 0;
    background: var(--bg-elevated);
}
.studio-preview-col {
    min-width: 0;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    justify-items: center;
}
.studio-side-col {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.studio-card-col {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.studio-preview-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding-left: 2px;
}
.studio-card-frame-wrap {
    position: relative;
    width: 100%;
    max-width: 330px;
    padding: 12px;
    margin: 0 auto;
    overflow: visible;
    transition: padding 0.2s ease;
}
.studio-card-frame-wrap.has-profile-frame {
    padding: 78px 18px 54px;
}
.studio-card-frame-wrap.has-profile-frame.no-top-frame {
    padding-top: 18px;
}
.studio-card-frame-wrap.has-profile-frame.no-bottom-frame {
    padding-bottom: 18px;
}
.studio-card-frame-wrap .discord-profile-card {
    min-height: 460px;
}
.card-frame-overlay {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    object-fit: fill;
    pointer-events: none;
    z-index: 6;
}
@media (max-width: 960px) {
    .studio-preview-col { grid-template-columns: 1fr; }
    .studio-card-frame-wrap.has-profile-frame { padding: 66px 14px 48px; }
    .studio-card-frame-wrap .discord-profile-card { min-height: 380px; }
}
.chat-preview-card {
    background: #1a1b22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 13px 14px;
}
.chat-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.chat-avatar-stack {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.chat-base-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 1;
}
.chat-deco-overlay {
    width: 48px;
    height: 48px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}
.chat-msg-body { min-width: 0; flex: 1; }
.chat-msg-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.chat-msg-head strong { color: #f2f3f5; font-size: 0.92rem; }
.chat-time { color: #949ba4; font-size: 0.72rem; }
.chat-msg-text { color: #dbdee1; font-size: 0.84rem; line-height: 1.4; }
@media (max-width: 780px) {
    .studio-layout { grid-template-columns: 1fr; }
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.close-btn {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.close-btn:hover { color: var(--text); background: var(--surface-3); }

/* Live Avatar Preview */
.preview-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.discord-profile-card {
    position: relative;
    background: #111216;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    min-height: 310px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.preview-customizer {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}
.profile-effect-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
    z-index: 4;
}
.profile-effect-bg.is-static-fallback {
    opacity: 0.45;
    z-index: 0;
}
.profile-banner {
    height: 112px;
    background: linear-gradient(135deg, #273259 0%, #3d4f8f 55%, #191c2b 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    padding: 10px 12px;
}
.profile-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(9, 9, 11, 0.62);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
}
/* Discord official 1.2x decoration-to-avatar ratio: 108px frame over 90px avatar */
.avatar-stack {
    position: relative;
    z-index: 2;
    width: 108px;
    height: 108px;
    margin: -54px 0 6px 14px;
}
.base-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 9px;
    left: 9px;
    background: #111216;
    box-shadow: 0 0 0 5px #111216;
    z-index: 1;
}
.discord-status-dot {
    position: absolute;
    bottom: 11px;
    right: 11px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #23a55a;
    border: 4px solid #111216;
    z-index: 3;
}
.decoration-overlay {
    width: 108px;
    height: 108px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    object-fit: contain;
    z-index: 2;
}
.profile-meta {
    position: relative;
    z-index: 2;
    padding: 4px 18px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nameplate-preview-bar {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 4px 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.08rem;
}
.nameplate-mini-avatar-wrap, .nameplate-sub-status, .nameplate-scrim { display: none; }
.nameplate-preview-bar.has-nameplate {
    min-height: 50px;
    padding: 7px 12px;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    background: #1a1b1e;
    border-color: rgba(255, 255, 255, 0.12);
}
.nameplate-preview-bar.has-nameplate .nameplate-mini-avatar-wrap {
    display: block;
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.nameplate-mini-avatar-wrap img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.nameplate-mini-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #23a55a;
    border: 2.5px solid #1a1b1e;
}
.nameplate-text-col {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.nameplate-preview-bar.has-nameplate .nameplate-sub-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #949ba4;
    margin-top: 2px;
}
.nameplate-preview-bar.has-nameplate .nameplate-sub-status i { color: #23a55a; font-size: 0.68rem; }
.nameplate-preview-bar.has-nameplate .nameplate-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(17, 18, 20, 0.78) 0%, rgba(17, 18, 20, 0.35) 55%, rgba(17, 18, 20, 0.05) 100%);
    pointer-events: none;
}
.nameplate-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}
.nameplate-preview-bar strong {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.preview-name-edit { margin-top: 4px; }
.preview-name-edit input {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    padding: 7px 10px;
}
.upload-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.upload-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    min-height: 36px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.upload-avatar-btn:hover { background: var(--surface-3); border-color: var(--border-strong); }

.preview-info { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.preview-desc-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px;
}
.preview-desc-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}
.preview-desc-card p { margin: 0; line-height: 1.5; }
.price-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-variant-numeric: tabular-nums;
}
.price-box span { display: block; font-size: 0.78rem; color: var(--muted); }
.price-box-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
}
.price-summary-total {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.save-pill {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: var(--green-bright);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}
.price-big {
    font-size: 1.4rem;
    color: var(--green-bright);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Dropzone */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed rgba(110, 142, 251, 0.45);
    background: rgba(110, 142, 251, 0.06);
    border-radius: 14px;
    padding: 30px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover { background: rgba(110, 142, 251, 0.12); border-color: var(--blurple); }
.dropzone i { font-size: 2.2rem; color: var(--blurple); }
.search-thumb { max-width: 150px; max-height: 150px; margin: 14px auto 0; display: block; border-radius: 12px; border: 1px solid var(--border); }

/* Cart, Checkout & Gift Vault */
.cart-list, .inventory-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cart-row, .inv-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cart-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 220px;
}
.cart-item-thumb {
    width: 54px;
    height: 54px;
    border-radius: 11px;
    background: radial-gradient(circle at 50% 45%, #1d202d 0%, #0d0e13 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
.cart-item-thumb img { max-width: 84%; max-height: 84%; object-fit: contain; }
.cart-item-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; }
.cart-type-pill {
    background: var(--blurple-soft);
    color: #dbe6ff;
    border: 1px solid var(--accent-border);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.cart-line-total {
    color: var(--green-bright);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.cart-qty-num { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.offline-confirm {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 11px;
    padding: 11px 13px;
    margin: 10px 0;
    color: #fde68a;
    font-size: 0.86rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.form-row label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 5px; }
.form-row input { width: 100%; }

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}
.pay-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pay-option:has(input:checked) {
    border-color: var(--blurple);
    background: rgba(110, 142, 251, 0.14);
}
.checkout-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.qr-box {
    text-align: center;
    margin-top: 14px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.qr-box img { max-width: 220px; border-radius: 12px; background: #fff; padding: 8px; }

.gift-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gift-code {
    background: #0b0b0f;
    border: 1px solid rgba(110, 142, 251, 0.35);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.84rem;
    word-break: break-all;
}
.countdown-badge {
    background: var(--blurple-soft);
    color: #dbe6ff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.expired-badge {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
}

.oauth-stack, .stack-form { display: flex; flex-direction: column; gap: 9px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.reseller-tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.inapp-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
    font-size: 0.8rem;
    line-height: 1.4;
}
.inapp-notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.inapp-notice-text strong {
    color: #fde047;
    font-size: 0.84rem;
}
.inapp-copy-btn {
    flex-shrink: 0;
    background: #f59e0b;
    color: #09090b;
    border: none;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 8px;
}
.inapp-copy-btn:hover { background: #fbbf24; }

.member-auth-hint {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: #6ee7b7;
    font-size: 0.82rem;
    text-align: center;
}

.reseller-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    min-height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.reseller-accordion-btn:hover {
    border-color: var(--green-bright);
    background: var(--surface-3);
}
.reseller-chevron {
    color: var(--green-bright);
    transition: transform 0.2s ease;
}
.reseller-accordion-btn.open .reseller-chevron {
    transform: rotate(180deg);
}
.reseller-panel-wrap {
    margin-top: 12px;
}

.user-card-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.user-card-summary img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blurple); }
.balance-tag { color: var(--green-bright); margin-top: 4px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.announce-popup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 55vh;
    overflow-y: auto;
    margin-bottom: 16px;
}
.announce-popup-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blurple);
    border-radius: 12px;
    padding: 12px 14px;
}
.announce-popup-item strong { display: block; color: #fff; margin-bottom: 4px; }
.announce-popup-item p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.announce-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.announce-dismiss-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    color: var(--muted);
    cursor: pointer;
}

.toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #181a24;
    border: 1px solid var(--accent-border);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.turnstile-box {
    margin: 4px 0;
    min-height: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.turnstile-err-note {
    font-size: 12px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    width: 100%;
}

.replay-effect-btn {
    margin-left: auto;
    background: var(--blurple-soft);
    border: 1px solid var(--accent-border);
    color: #dbe6ff;
    border-radius: 999px;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.replay-effect-btn:hover { background: var(--blurple); color: #fff; }

.effect-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.effect-layer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.nameplate-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
    z-index: 0;
}
.nameplate-preview-bar.palette-white { border: 1px solid rgba(255, 255, 255, 0.45); }
.nameplate-preview-bar.palette-crimson { border: 1px solid rgba(244, 63, 94, 0.55); }
.nameplate-preview-bar.palette-berry { border: 1px solid rgba(217, 70, 239, 0.55); }
.nameplate-preview-bar.palette-sky { border: 1px solid rgba(56, 189, 248, 0.55); }
.nameplate-preview-bar.palette-cobalt { border: 1px solid rgba(88, 101, 242, 0.65); }
.nameplate-preview-bar.palette-violet { border: 1px solid rgba(168, 85, 247, 0.55); }
.nameplate-preview-bar.palette-clover { border: 1px solid rgba(34, 197, 94, 0.55); }
.nameplate-preview-bar.palette-lemon { border: 1px solid rgba(250, 204, 21, 0.55); }
.nameplate-preview-bar.palette-sunset { border: 1px solid rgba(249, 115, 22, 0.55); }
.nameplate-preview-bar.palette-teal { border: 1px solid rgba(20, 184, 166, 0.55); }

.card-hover-video, .card-effect-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}
.card-effect-hover { object-fit: contain; }
.anim-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(9, 9, 11, 0.82);
    color: #cbd7ff;
    border: 1px solid var(--accent-border);
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.bundle-studio-box {
    background: rgba(110, 142, 251, 0.1);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bundle-studio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.bundle-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #dbe6ff;
    margin-bottom: 2px;
}
.bundle-studio-head strong#studioBundleTitle {
    display: block;
    font-size: 0.94rem;
    color: var(--text);
}
.bundle-parts-row { display: flex; flex-wrap: wrap; gap: 5px; }
.bundle-part-chip {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
}

/* Profile Frames (Discord-accurate multi-layer staple / rail / border architecture) */
.pf-frame-anchor {
    position: relative;
    width: 100%;
    isolation: isolate;
    container-type: inline-size;
    --pf-inner-width: 1200;
    --pf-overflow-h: 56;
    --pf-overflow-t: 304;
    --pf-overflow-b: 212;
}
.pf-frame-anchor > .discord-profile-card,
.pf-frame-anchor > .pf-mini-card {
    position: relative;
    z-index: 2;
}
.pf-layers-host {
    --pf-unit: calc(100cqw / var(--pf-inner-width, 1200));
    --pf-ov-h: calc(var(--pf-overflow-h, 56) * var(--pf-unit));
    --pf-ov-t: calc(var(--pf-overflow-t, 304) * var(--pf-unit));
    --pf-ov-b: calc(var(--pf-overflow-b, 212) * var(--pf-unit));
    position: absolute;
    top: 0;
    left: calc(var(--pf-ov-h) * -1);
    width: calc(100% + var(--pf-ov-h) * 2);
    height: 100%;
    pointer-events: none;
}
.pf-frame-back { z-index: 1; }
.pf-frame-front { z-index: 6; }

.pf-layer {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none !important;
    max-height: none !important;
    pointer-events: none;
    animation: pfFadeIn 0.18s ease-out;
}
.pf-layer.pf-staple {
    height: auto;
    display: block;
    object-fit: initial;
}
.pf-layer.pf-staple.pf-top {
    top: calc(var(--pf-ov-t) * -1);
}
.pf-layer.pf-staple.pf-bottom {
    bottom: calc(var(--pf-ov-b) * -1);
}
.pf-layer.pf-rail {
    top: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% auto;
    overflow: hidden;
}
.pf-layer.pf-rail.pf-center { background-position: 50% 50%; }
.pf-layer.pf-rail.pf-top { background-position: 50% 0%; }
.pf-layer.pf-rail.pf-bottom { background-position: 50% 100%; }

.pf-layer.pf-border {
    top: 0;
    height: 100%;
    overflow: hidden;
}
.pf-layer.pf-border > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none !important;
    max-height: none !important;
    object-fit: initial;
}
@keyframes pfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Grid Miniature Card inside Profile Frame */
.pf-thumb-anchor {
    width: 56%;
    transition: transform 0.25s ease;
}
.product-card:hover .pf-thumb-anchor {
    transform: translateY(-2px) scale(1.045);
}
.pf-mini-card {
    width: 100%;
    aspect-ratio: 300 / 355;
    border-radius: 10px;
    background: linear-gradient(180deg, #1b1d24 0%, #111216 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
.pf-mini-banner {
    height: 29%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.35), rgba(55, 65, 115, 0.52));
}
.pf-mini-avatar {
    width: 28%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #2b2d31;
    border: 3px solid #14151a;
    margin: -14% 0 7% 10%;
    position: relative;
}
.pf-mini-lines {
    padding: 0 11%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pf-mini-lines span {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}
.pf-mini-lines span:first-child { width: 58%; background: rgba(255, 255, 255, 0.16); }
.pf-mini-lines span:last-child { width: 82%; opacity: 0.7; }

.pay-method-hint {
    margin: 8px 0 4px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    background: rgba(110, 142, 251, 0.09);
    border: 1px solid rgba(110, 142, 251, 0.25);
    color: #dbe6ff;
}
.pay-method-hint.warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        gap: 24px;
    }
    .hero-profile-trigger { max-width: 360px; }
}

@media (max-width: 780px) {
    .container { padding: 0 16px; }
    .preview-stage, .form-row, .payment-methods { grid-template-columns: 1fr; }
    .search-kbd { display: none; }
    .btn-label { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero-copy h1 { font-size: 1.62rem; }
}

@media (max-width: 520px) {
    .brand-logo-img { display: none; }
    .brand-logo-mobile { display: block; }
    .eco-inner { font-size: 0.72rem; }
    .search-wrap { min-width: 0; order: 3; flex: 1 1 100%; }
    .nav-inner { gap: 10px; }
    .nav-actions { margin-left: auto; gap: 6px; }
    .nav-actions .btn { padding: 8px 11px; min-height: 38px; font-size: 0.84rem; }
    .hero-card { padding: 20px 16px; border-radius: 18px; }
    .hero-cta-row .btn-hero { width: 100%; }
    .filter-bar { padding: 10px; }
    .filter-right { width: 100%; }
    .filter-right select { flex: 1; min-width: 0; font-size: 0.8rem; padding: 8px 10px; }
    .product-card { padding: 10px; border-radius: 14px; }
    .product-actions { grid-template-columns: 1fr; }
    .type-tag {
        top: 7px;
        left: 7px;
        max-width: calc(100% - 62px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.64rem;
        padding: 2px 7px;
    }
    .discount-tag {
        top: 7px;
        right: 7px;
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .sold-pill {
        font-size: 0.66rem;
        padding: 2px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .skeleton-box, .pf-layer, .hero-avatar-ring, .status-pill.online .dot, .banner-slide.active, .modal {
        animation: none !important;
    }
    .product-card:hover, .hero-profile-trigger:hover, .product-card:hover .pf-thumb-anchor {
        transform: none !important;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
