/* Fonts loaded via <link> in layout.html head (WS7) — no @import chain. */

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — single source of truth (WS1, v2 modernization).
   Canonical scales for new work: --s-* spacing, --t-* type, --r-* radius.
   Legacy scales (--space-*, --radius-*) remain for existing rules only.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* ── Brand ── */
    --brand-red: #E52D2D;
    --brand-red-hover: #CC2424;
    --brand-red-rgb: 229, 45, 45;
    --brand-white: #ECE7DD;      /* warm bone, not clinical white */
    --brand-red-bright: #F25555; /* hover state — lighter, not darker */
    --brand-black: #0C0B0E;
    --brand-gray: #161418;
    --brand-gray-light: #221F26;
    --white: #fff;

    /* Accent aliases (redesign-layer names — same red) */
    --accent: var(--brand-red);
    --accent-rgb: var(--brand-red-rgb);
    --accent-hover: var(--brand-red-hover);
    --accent-terminal: var(--color-success); /* compat alias — checkout/coupons.twig */

    /* ── Status ── */
    --color-success: #56D6A6;               /* warm mint — text on dark */
    --color-success-rgb: 86, 214, 166;
    --color-success-deep-rgb: 34, 197, 94;  /* deep green — tinted bg/border */
    --color-danger: #ef4444;
    --color-danger-rgb: 239, 68, 68;
    --color-discord: #5865f2;
    --color-discord-rgb: 88, 101, 242;

    /* ── Surfaces ── */
    --bg: #0B0A0D;
    --surface-1: #111018;
    --surface-2: #18161E;
    --surface-3: #201D27;
    --surface-4: #272430;
    --surface: rgba(255, 255, 255, 0.025);

    /* ── Text — warm bone scale (solid tones, real hierarchy) ── */
    --text-primary: #ECE7DD;
    --text-body: #C9C4B9;        /* reading text — prose, answers, feature copy */
    --text-secondary: #ABA79C;
    --text-muted: #8F8B81;
    --ink: #0A0A0B;               /* dark ink for text ON red/green blocks */

    /* ── Borders — hairlines as structure ── */
    --border: rgba(236, 231, 221, 0.08);
    --border-1: rgba(236, 231, 221, 0.09);
    --border-2: rgba(236, 231, 221, 0.18);
    --border-3: rgba(236, 231, 221, 0.30);

    /* ── Radius — zero structural radii (showroom-v8 canon); --r-pill kept defined but unused ── */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --r-sm: 0;
    --r-md: 0;
    --r-lg: 0;
    --r-pill: 999px;

    /* ── Fonts ── */
    --font-display: 'Big Shoulders Display', 'Arial Narrow', system-ui, sans-serif;
    --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace; /* real mono — prices, labels, data */

    /* ── Type scale — canonical --t-* ── */
    --t-xs: 0.7rem;
    --t-sm: 0.8rem;
    --t-base: 0.9rem;
    --t-md: 1rem;
    --t-lg: 1.15rem;
    --t-xl: clamp(1.2rem, 2.2vw, 1.5rem);
    --t-2xl: clamp(1.5rem, 3vw, 2rem);
    --t-3xl: clamp(1.9rem, 4vw, 2.6rem);
    --t-4xl: clamp(2.4rem, 5vw, 3.4rem);
    --section-label-size: var(--t-xs);
    --section-label-spacing: 0.18em;

    /* ── Layout ── */
    --container: 1200px;

    /* ── Spacing — legacy --space-* + canonical --s-* ── */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;

    /* ── Chips (metadata pipeline) — hairline outline register, no tints ── */
    --chip-fw-bg: transparent;
    --chip-fw-color: var(--text-secondary);
    --chip-fw-border: var(--border-2);
    --chip-inv-bg: transparent;
    --chip-inv-color: var(--text-secondary);
    --chip-inv-border: var(--border-2);
    --chip-tgt-bg: transparent;
    --chip-tgt-color: var(--text-secondary);
    --chip-tgt-border: var(--border-2);
    --chip-bridge-bg: transparent;
    --chip-bridge-color: var(--brand-red-bright);
    --chip-bridge-border: var(--border-2);
    --chip-more-bg: transparent;
    --chip-more-color: var(--text-muted);
    --chip-more-border: var(--border-2);

    /* ── Meta sections / tables ── */
    --meta-section-gap: 2rem;
    --meta-card-bg: rgba(255, 255, 255, 0.025);
    --meta-card-border: var(--border-1);
    --table-head-bg: rgba(255, 255, 255, 0.02);
    --table-row-hover: var(--surface-1);
    --table-border: var(--border-1);

    /* ── Package description body ── */
    --pkg-desc-gap: 1.1rem;
    --pkg-desc-lead-size: var(--t-md);
    --pkg-desc-body-size: var(--t-base);
    --pkg-desc-note-bg: var(--surface-1);
    --pkg-desc-note-border: var(--border-2);
    --pkg-desc-code-bg: var(--surface-2);
    --pkg-desc-code-border: var(--border-1);
    --pkg-desc-th-bg: var(--surface-2);
    --pkg-desc-row-alt: rgba(255, 255, 255, 0.015);
    --pkg-desc-row-hover: var(--surface-1);

    /* ── Package lightbox ── */
    --pkg-lb-backdrop: rgba(0, 0, 0, 0.92);
    --pkg-lb-ctrl-size: 44px;
    --pkg-lb-ctrl-bg: #161419;
    --pkg-lb-ctrl-hover: var(--brand-red);
    --pkg-lb-transition: 150ms ease;

    /* ── Sidebar / filters — dormant, planned revival in WS8 ── */
    --sidebar-width: 240px;
    --sidebar-bg: rgba(22, 20, 24, 0.7);
    --filter-chip-bg: rgba(255, 255, 255, 0.04);
    --filter-chip-active-bg: rgba(var(--brand-red-rgb), 0.15);
    --filter-chip-active-border: rgba(var(--brand-red-rgb), 0.45);
}

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

body {
    background-color: var(--bg);
    color: var(--brand-white);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-1);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red-hover);
}

.rc-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .rc-container {
        padding: 0 1rem;
    }
}

.rc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    min-height: 44px;
    font-size: var(--t-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-mono);
}

.rc-btn-primary {
    background: var(--brand-red);
    color: var(--ink);
}

.rc-btn-primary:hover {
    background: var(--brand-red-bright);
    color: var(--ink);
}

.rc-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-2);
}

.rc-btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-3);
    background: transparent;
}

::selection { background: rgba(var(--brand-red-rgb), 0.85); color: var(--ink); }
::-moz-selection { background: rgba(var(--brand-red-rgb), 0.85); color: var(--ink); }

.rc-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rc-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: var(--t-base);
    margin-bottom: 1.5rem;
}

.rc-alert-success {
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-left: 1px solid var(--color-success);
    color: var(--color-success);
}

.rc-alert-error {
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-left: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.rc-alert-info {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--text-primary);
}

.rc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0;
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-mono);
}

.rc-tag-esx,
.rc-tag-qbcore,
.rc-tag-standalone {
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-2);
}

@keyframes rc-spin {
    to { transform: rotate(360deg); }
}

/* ===== DESCRIPTION FORMATTER ===== */

.rc-product-content { width: 100%; }

.df-section { margin: 0 0 2.25rem; }
.df-head { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.55rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); }

.df-hero { margin: 0 0 1.75rem; border-radius: 0; overflow: hidden; }
.df-hero img { width: 100%; height: auto; display: block; }

.df-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; margin: 0 0 1.75rem; }
.df-gal-item { overflow: hidden; aspect-ratio: 16/10; border-radius: 0; cursor: pointer; }
.df-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.df-video { position: relative; width: 100%; padding-bottom: 56.25%; margin: 0 0 1.75rem; background: #000; border-radius: 0; overflow: hidden; }
.df-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.df-feats { columns: 2; column-gap: 1.5rem; }
.df-feat { padding: 0.25rem 0; font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.5; break-inside: avoid; }
.df-feat::before { content: '—'; color: rgba(var(--brand-red-rgb),0.4); margin-right: 0.4rem; }

.df-install { padding-left: 1.2rem; margin: 0; }
.df-install li { padding: 0.25rem 0; font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.5; }
.df-install li::marker { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--t-xs); }

.df-reqs { font-family: var(--font-mono); font-size: var(--t-xs); }
.df-req { color: var(--text-secondary); padding: 0.2rem 0; line-height: 1.5; }
.df-req::before { content: '- '; color: var(--text-muted); }

.df-faq { display: flex; flex-direction: column; }
.rc-faq-item { border-top: 1px solid var(--border); overflow: hidden; }
.rc-faq-item:first-child { border-top: none; }
.rc-faq-question { padding: 0.5rem 0.4rem; font-size: var(--t-sm); font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.rc-faq-question span { flex: 1; }
.rc-faq-icon { color: var(--text-muted); font-size: var(--t-xs); flex-shrink: 0; transition: transform 0.2s; }
.rc-faq-item.active .rc-faq-icon { transform: rotate(180deg); color: var(--brand-red-bright); }
.rc-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.rc-faq-item.active .rc-faq-answer { max-height: 600px; }
.rc-faq-answer p { font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.65; margin: 0; padding: 0 0.4rem 0.55rem; }

@media (max-width: 768px) {
    .df-feats { columns: 1; }
    .df-gallery { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .df-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .rc-faq-answer, .rc-faq-icon, .rc-faq-item { transition: none; }
}

.rc-partners {
    background: var(--brand-black);
    border-top: 1px solid var(--border);
    padding: 2.25rem 2rem;
}

.rc-partners-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.rc-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 700px;
}

.rc-partner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 0;
    transition: border-color 0.25s ease;
}

.rc-partner-card:hover {
    border-color: var(--border-3);
}

.rc-partner-card-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0.9);
    transition: filter 0.2s;
}

.rc-partner-card:hover .rc-partner-card-logo {
    filter: brightness(1.1);
}

.rc-partner-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rc-partner-card-name {
    font-size: var(--t-sm);
    font-weight: 700;
    color: var(--brand-white);
    font-family: var(--font-display);
}

.rc-partner-card-desc {
    font-size: var(--t-xs);
    color: var(--text-muted);
}

.rc-partner-card-link {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--brand-red-bright);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}

.rc-partner-card-link i {
    font-size: var(--t-xs);
}

.rc-partner-card:hover .rc-partner-card-link {
    gap: 0.5rem;
}

.rc-partner-swiper-section {
    background: var(--brand-black);
    padding: 0.4rem 1.25rem 0.5rem;
    position: relative;
}

.rc-partner-swiper-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.rc-partner-swiper-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.rc-partner-swiper-header {
    margin-bottom: 0.5rem;
}

.rc-partner-swiper-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.rc-partner-row {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.rc-partner-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rc-partner-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 0;
}

.rc-partner-logo-link {
    display: block;
}

.rc-partner-logo-text {
    display: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--t-base);
    color: var(--brand-white);
    letter-spacing: 0.02em;
}

.rc-partner-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.rc-partner-logo-link:hover .rc-partner-logo {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.rc-partner-visit {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border: 1px solid var(--border-1);
    border-radius: 0;
    background: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.rc-partner-visit:hover {
    color: var(--brand-white);
    border-color: var(--border-3);
}

.rc-partner-visit:hover i {
    transform: translateX(3px);
}

.rc-partner-swiper-wrapper {
    position: relative;
}

.rc-partner-swiper-wrapper .swiper {
    overflow-y: visible !important;
    overflow-x: clip;
    padding: 0.5rem 1rem;
    margin: -0.5rem -1rem;
}

.rc-swiper-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: space-between;
}

.rc-swiper-btn-prev,
.rc-swiper-btn-next {
    pointer-events: all;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 11, 14, 0.9);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-muted);
    font-size: var(--t-xs);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rc-swiper-btn-prev:hover,
.rc-swiper-btn-next:hover {
    background: var(--surface-2);
    border-color: var(--border-3);
    color: var(--brand-red-bright);
}

.rc-swiper-btn-prev.swiper-button-disabled,
.rc-swiper-btn-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.rc-swiper-btn-prev {
    margin-left: -0.5rem;
}

.rc-swiper-btn-next {
    margin-right: -0.5rem;
}

.swiper-slide {
    transition: transform 0.3s ease;
    height: auto;
}

.swiper-slide:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* .rc-pkg-* partner cards — replaced by .cat-card / .cat-card--partner (WS3). */
.cat-card--partner .cat-card-body { padding: 0.55rem 0.7rem 0.65rem; gap: 0.2rem; }
.cat-card--partner .cat-card-name { font-size: var(--t-sm); -webkit-line-clamp: 1; }
.cat-card--partner .cat-card-tagline.populated { font-size: var(--t-xs); min-height: 1.85em; }
.cat-card--partner .cat-card-price { padding-top: 0.15rem; }
.cat-card--partner .cat-card-current, .cat-card--partner .cat-card-free { font-size: var(--t-sm); }
.cat-card--partner:hover { transform: none; }  /* .swiper-slide:hover already scales */

/* ===== ANNOUNCEMENT BAR ===== */

.rc-announce-bar {
    background: var(--brand-red);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 41;
}

.rc-announce-bar a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.rc-announce-bar-label {
    background: rgba(0,0,0,0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    font-weight: 700;
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rc-announce-bar-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--ink);
    opacity: 0.65;
    cursor: pointer;
    font-size: var(--t-xs);
    padding: 0.25rem;
    transition: opacity 0.15s;
}

.rc-announce-bar-close:hover {
    opacity: 1;
}

/* ===== HEADER ===== */

.rc-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.rc-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

.rc-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.rc-header-logo img {
    height: 36px;
    width: auto;
}

.rc-header-logo span {
    font-family: var(--font-display);
    font-size: var(--t-xl);
    font-weight: 800;
    color: var(--brand-white);
}

.rc-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rc-header-nav-item {
    position: relative;
}

.rc-header-nav-link {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: var(--t-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
}

.rc-header-nav-link:hover {
    color: var(--brand-white);
}

.rc-header-nav-link--icon i { font-size: var(--t-lg); }

.rc-header-chevron {
    font-size: var(--t-xs);
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.rc-header-chevron-open {
    transform: rotate(180deg);
}

.rc-header-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 0.4rem;
    z-index: 50;
}

.rc-header-dropdown-right {
    left: auto;
    right: 0;
}

.rc-header-dropdown a {
    display: block;
    padding: 0.75rem 0.85rem;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 0;
    transition: background 0.12s ease, color 0.12s ease;
}

.rc-header-dropdown a:hover {
    background: var(--surface-3);
    color: var(--brand-white);
}

.rc-header-dropdown-user {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
}

.rc-header-dropdown-danger {
    color: var(--color-danger) !important;
}

.rc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rc-header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    padding: 0.4rem 0.6rem;
    min-height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    transition: color 0.15s;
}

.rc-header-icon-btn:hover {
    color: var(--brand-white);
}

.rc-user-avatar {
    width: 28px;
    height: 28px;
    background: var(--brand-red);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-weight: 700;
    font-size: var(--t-xs);
    font-family: var(--font-mono);
}

.rc-user-name {
    font-size: var(--t-sm);
    font-weight: 600;
}

.rc-header-sign-in {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 0;
    color: var(--brand-red-bright);
    font-weight: 700;
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rc-header-sign-in:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--ink);
}

.rc-header-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-3);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--t-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.rc-header-cart-btn:hover {
    background: var(--surface-4);
    color: var(--brand-white);
    border-color: var(--border-1);
}

.rc-header-cart-count {
    background: var(--brand-red);
    color: var(--ink);
    border-radius: 0;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--t-xs);
    font-weight: 800;
    padding: 0 0.3rem;
    font-family: var(--font-mono);
}

.rc-mobile-cart-toggle {
    display: none !important;
}

.rc-header-cart-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 340px;
    background: var(--brand-gray);
    border: 1px solid rgba(var(--brand-red-rgb), 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    padding: 1.25rem;
    z-index: 50;
}

.rc-header-cart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: var(--t-base);
}

.rc-header-cart-badge {
    font-size: var(--t-xs);
    background: var(--brand-red);
    color: var(--ink);
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    font-weight: 700;
}

.rc-header-cart-items {
    max-height: 240px;
    overflow-y: auto;
}

.rc-header-cart-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.rc-header-cart-item:last-child {
    border-bottom: none;
}

.rc-header-cart-item-img {
    width: 36px;
    height: 28px;
    border-radius: 0;
    overflow: hidden;
    background: var(--brand-gray-light);
    flex-shrink: 0;
}

.rc-header-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.rc-header-cart-item-name {
    font-size: var(--t-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--brand-white);
}

.rc-header-cart-item-price {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    color: var(--brand-red-bright);
    font-weight: 600;
}

.rc-header-cart-item-remove {
    color: var(--text-muted);
    font-size: var(--t-xs);
    padding: 0.3rem;
    transition: color 0.15s;
    opacity: 0.6;
}

.rc-header-cart-item-remove:hover {
    color: var(--color-danger);
    opacity: 1;
}

.rc-header-cart-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.rc-header-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: var(--t-sm);
}

.rc-header-cart-total-price {
    color: var(--brand-red-bright);
    font-family: var(--font-mono);
    font-size: var(--t-md);
    font-weight: 700;
}

.rc-header-cart-checkout {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--brand-red);
    color: var(--ink);
    padding: 0.65rem;
    border-radius: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--t-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.15s;
}

.rc-header-cart-checkout:hover {
    background: var(--brand-red-bright);
    color: var(--ink);
}

.rc-header-cart-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
}

.rc-header-cart-empty i {
    font-size: var(--t-xl);
    margin-bottom: 0.5rem;
    opacity: 0.3;
    display: block;
}

.rc-header-cart-empty p {
    font-size: var(--t-sm);
    margin-bottom: 0.5rem;
}

.rc-header-cart-browse {
    color: var(--brand-red-bright);
    font-size: var(--t-sm);
    font-weight: 600;
}

.rc-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--t-base);
    transition: background 0.15s, color 0.15s;
}

.rc-mobile-toggle:hover {
    background: var(--surface-4);
    color: var(--brand-white);
}

.rc-mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--brand-gray);
    padding: 1.25rem 2rem 1.5rem;
}

.rc-mobile-nav-search {
    margin-bottom: 1rem;
    position: relative;
}

.rc-mobile-nav-input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-right: 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    color: var(--brand-white);
    font-size: var(--t-sm);
    font-family: var(--font-body);
}

.rc-mobile-nav-input:focus {
    border-color: var(--border-3);
}

.rc-mobile-nav-input:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.rc-mobile-nav-input::placeholder {
    color: var(--text-muted);
}

.rc-mobile-nav-search-btn {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--t-sm);
    min-width: 44px;
    min-height: 44px;
}

/* ── Header a11y / de-inlined utility classes (WS4) ── */
.rc-skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    background: var(--brand-red);
    color: var(--ink);
    font-weight: 700;
    font-size: var(--t-sm);
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-sm);
    transition: top 0.15s ease;
}
.rc-skip-link:focus { top: 1rem; outline: 2px solid var(--white); }

.rc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rc-locale-flag { width: 20px; height: 15px; border-radius: 0; }
.rc-locale-flag--sm { width: 16px; height: 12px; }
.rc-header-dropdown--locale { min-width: 160px; }
.rc-locale-option { display: flex; align-items: center; gap: 0.5rem; }

.rc-header-dropdown-user-label {
    font-size: var(--t-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}
.rc-header-dropdown-user-name { font-weight: 700; }

.rc-header-cart-item-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-header-cart-item-ph i { font-size: var(--t-xs); color: var(--text-muted); }

.rc-mobile-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
}
.rc-mobile-cart-heading { font-weight: 700; font-family: var(--font-display); }
.rc-mobile-cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--t-lg);
    padding: 0.25rem;
    min-width: 44px;
    min-height: 44px;
}
.rc-header-cart-empty--panel { padding: 3rem 0; }
.rc-header-cart-total--panel { margin-bottom: 0.75rem; }

.rc-mobile-nav-form { position: relative; }
.rc-user-avatar--sm { width: 24px; height: 24px; font-size: var(--t-xs); }
.rc-mobile-nav-user { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.rc-mobile-nav-user-name { font-weight: 600; }
.rc-mobile-nav-signout { color: var(--color-danger); font-size: var(--t-sm); }
.rc-mobile-nav-signout i { margin-right: 0.25rem; }
.rc-icon-gap { margin-right: 0.25rem; }

.rc-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--brand-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--t-base);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0.65rem 0;
}

.rc-mobile-nav-sub a {
    display: block;
    padding: 0.45rem 0 0.45rem 1rem;
    color: var(--text-muted);
    font-size: var(--t-sm);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.rc-mobile-nav-sub a:hover {
    color: var(--brand-red-bright);
}

.rc-mobile-nav-link {
    display: block;
    padding: 0.65rem 0;
    color: var(--brand-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--t-base);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rc-mobile-nav-link:hover {
    color: var(--brand-red-bright);
}

.rc-mobile-nav-divider {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.rc-mobile-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 360px;
    background: var(--brand-gray);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.6);
    z-index: 51;
    display: flex;
    flex-direction: column;
}

.rc-mobile-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.rc-mobile-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1.25rem;
}

.rc-mobile-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.rc-slide-enter {
    transition: transform 0.3s ease;
}

.rc-slide-leave {
    transition: transform 0.2s ease;
}

@media (max-width: 1023px) {
    .rc-header-nav,
    .rc-header-actions .rc-desktop-only {
        display: none;
    }

    .rc-mobile-toggle {
        display: flex;
    }

    .rc-mobile-cart-toggle {
        display: flex !important;
    }

    .rc-header-inner {
        padding: 0 1rem;
    }

    .rc-mobile-nav {
        padding: 1rem 1.25rem 1.25rem;
    }
}

/* ===== FOOTER ===== */

.rc-footer {
    background: var(--surface-1);
    border-top: 1px solid var(--border-1);
    padding: 2.5rem 2rem 2rem;
    margin-top: 4rem;
}

.rc-footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.rc-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.rc-footer-links {
    display: flex;
    gap: 3rem;
}

.rc-footer-links ul {
    list-style: none;
}

.rc-footer-col-title {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.rc-footer-links li {
    margin-bottom: 0.4rem;
}

.rc-footer-links a {
    color: var(--text-secondary);
    font-size: var(--t-sm);
    transition: color 0.15s;
}

.rc-footer-links a:hover {
    color: var(--brand-red-bright);
}

.rc-footer-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rc-footer-discord i {
    color: var(--color-discord);
}

.rc-footer-copy {
    text-align: left;
    font-size: var(--t-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rc-footer-copy a {
    color: var(--brand-red-bright);
    transition: color 0.15s;
}

.rc-footer-copy a:hover {
    color: var(--brand-white);
}

@media (max-width: 768px) {
    .rc-footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .rc-footer-links {
        flex-direction: column;
        gap: 1.25rem;
    }

    .rc-footer-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .rc-footer {
        padding: 2rem 1.25rem 1.5rem;
    }
}

/* ===== HERO ===== */

/* ═══════════ HERO — industrial type-poster + catalog index ═══════════ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--brand-black);
    padding: 5.5rem 0 0;
}
/* ── Featured video background (muted, full-bleed) ── */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--brand-black); }
.hero-video iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw;            /* 16:9 by width */
    min-width: 177.78vh; min-height: 100%;     /* cover by height */
    transform: translate(-50%, -50%) scale(1.35);  /* zoom past YouTube's title/control chrome */
    border: 0; pointer-events: none;
    opacity: 0; transition: opacity 0.8s ease;
}
.hero-video--on iframe { opacity: 1; }
/* flat dark veil for legibility — no gradient */
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(8,7,10,0.5); }

/* fine film grain — texture, no gradients anywhere in this hero */
.hero-grain {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ── Masthead — headline UP & dominant, supporting band drops below ── */
.hero-masthead {
    position: relative; z-index: 3;
    width: 92%; max-width: var(--container); margin: 0 auto;
    flex: 1; min-height: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(1.4rem, 4vh, 3rem) 0 clamp(1.6rem, 4vh, 3rem);
}
.hero-headline {
    position: relative; margin: 0; display: flex; flex-direction: column;
    font-family: var(--font-display); font-weight: 800;
    line-height: 0.78; letter-spacing: 0.004em; text-transform: uppercase;
    color: var(--brand-white);
}
/* brand tied to the statement, not a separate stamp */
.hero-headline::before {
    content: "RobiCore —";
    display: inline-flex; align-items: center; width: max-content;
    font-family: var(--font-body); font-weight: 800;
    font-size: clamp(0.78rem, 1vw, 0.95rem); letter-spacing: 0.42em; text-transform: uppercase;
    color: var(--brand-red-bright); margin-bottom: 1.15rem;
    animation: heroLineUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
.hero-line {
    display: block; font-size: clamp(3.4rem, 13.5vw, 12rem);
    animation: heroLineUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-line:nth-child(1) { animation-delay: 0.32s; }
.hero-line:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(3) { animation-delay: 0.48s; }
.hero-line--accent { color: var(--brand-red); width: max-content; }

/* supporting band, sits low under the headline */
.hero-lower {
    display: grid; grid-template-columns: 1fr minmax(300px, 0.46fr);
    align-items: end; gap: 2rem 3.5rem;
    animation: heroLineUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
}
.hero-pitch { display: flex; flex-direction: column; gap: 1.4rem; max-width: 40rem; }
.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-sub { font-family: var(--font-body); font-size: var(--t-md); line-height: 1.55; color: var(--text-secondary); max-width: 34rem; margin: 0; }

/* latest-release — compact featured mini-card → newest script */
.hero-latest {
    position: relative; display: flex; align-items: center; gap: 0.9rem;
    padding: 0.6rem 0.9rem 0.6rem 0.65rem; text-decoration: none; cursor: pointer;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: 0;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.hero-latest:hover { background: rgba(8,7,10,0.78); border-color: var(--brand-red); transform: translateY(-2px); }
.hero-latest-media {
    width: 60px; height: 46px; flex-shrink: 0; overflow: hidden;
    border-radius: 0; background: var(--surface-3); display: block;
}
.hero-latest-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-latest-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.hero-latest-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-red-bright);
}
.hero-latest-name {
    font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; color: var(--brand-white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-latest-price { font-family: var(--font-body); font-size: var(--t-sm); font-weight: 600; color: var(--text-secondary); }
.hero-latest-go {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border-2); color: var(--brand-red-bright); font-size: var(--t-xs);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.hero-latest:hover .hero-latest-go { background: var(--brand-red); border-color: var(--brand-red); color: var(--ink); transform: translateX(2px); }
.hero-latest--skeleton { pointer-events: none; }
.hero-latest--skeleton .hero-latest-media,
.hero-latest--skeleton .hero-latest-tag,
.hero-latest--skeleton .hero-latest-name,
.hero-latest--skeleton .hero-latest-price { animation: heroPulse 1.3s ease-in-out infinite; }
.hero-latest--skeleton .hero-latest-name,
.hero-latest--skeleton .hero-latest-price { color: var(--text-muted); }

.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--brand-red); color: var(--ink); border: none; cursor: pointer;
    padding: 0.9rem 1.5rem; border-radius: 0;
    font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase;
    transition: background 0.2s ease;
}
.hero-btn-primary:hover { background: var(--brand-red-bright); color: var(--ink); }
.hero-btn-primary i { transition: transform 0.2s ease; }
.hero-btn-primary:hover i { transform: translateX(3px); }
.hero-btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-2); cursor: pointer;
    padding: 0.9rem 1.3rem; border-radius: 0;
    font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero-btn-secondary:hover { border-color: var(--border-3); color: var(--text-primary); }
.hero-btn-secondary i { color: var(--brand-red-bright); }

.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; }
.hero-facts li {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted);
}
.hero-facts i { color: var(--brand-red-bright); font-size: var(--t-xs); }

/* ── Catalog index strip ── */
.hero-index {
    position: relative; z-index: 3; width: 100%;
    border-top: 1px solid var(--border-2); background: var(--brand-black);
    animation: heroLineUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero-index-head {
    width: 92%; max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0 0.25rem;
    font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.hero-index-title { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-index-title i { color: var(--brand-red-bright); }
.hero-index-count { color: var(--brand-red-bright); }

.hero-entries { width: 100%; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-entry {
    position: relative; display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr) auto auto; align-items: center; gap: 1rem;
    padding: 1.3rem 1.4rem; text-decoration: none; cursor: pointer;
    border-left: 1px solid var(--border-1);
    transition: background 0.22s ease;
}
.hero-entry:first-child { border-left: none; }
.hero-entry:hover { background: var(--brand-red); }
.hero-entry-num {
    font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 500; line-height: 1;
    letter-spacing: 0.08em; color: var(--text-muted);
    transition: color 0.22s ease;
}
.hero-entry:hover .hero-entry-num { color: var(--brand-black); }
.hero-entry-thumb { width: 56px; height: 40px; overflow: hidden; background: var(--surface-2); border-radius: 0; flex-shrink: 0; display: block; }
.hero-entry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) brightness(0.85); transition: filter 0.22s ease; }
.hero-entry:hover .hero-entry-thumb img { filter: grayscale(0) brightness(1); }
.hero-entry-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.hero-entry-name { font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; color: var(--brand-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.22s ease; }
.hero-entry:hover .hero-entry-name { color: var(--brand-black); }
.hero-entry-fw { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); transition: color 0.22s ease; }
.hero-entry:hover .hero-entry-fw { color: rgba(12,11,14,0.7); }
.hero-entry-price { font-family: var(--font-mono); font-size: var(--t-base); color: var(--brand-red-bright); white-space: nowrap; transition: color 0.22s ease; }
.hero-entry:hover .hero-entry-price { color: var(--brand-black); }
.hero-entry-go { color: var(--text-muted); font-size: var(--t-sm); transition: color 0.22s ease, transform 0.22s ease; }
.hero-entry:hover .hero-entry-go { color: var(--brand-black); transform: translateX(3px); }

/* skeleton — flat opacity pulse, no gradient */
.hero-entry--skeleton { pointer-events: none; }
.hero-entry--skeleton .hero-entry-thumb { animation: heroPulse 1.3s ease-in-out infinite; }
.hero-entry--skeleton .hero-entry-name,
.hero-entry--skeleton .hero-entry-fw,
.hero-entry--skeleton .hero-entry-price { color: var(--text-muted); animation: heroPulse 1.3s ease-in-out infinite; }

@keyframes heroLineUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.85; } }

/* ── Shared element expand ── */
.hero-expand-overlay { position: fixed; inset: 0; z-index: 200; pointer-events: auto; }
.hero-expand-card { position: fixed; z-index: 201; background: var(--brand-black); overflow: hidden; }

.hero-expand-phase1 {
    width: 100%; height: 100%;
    background: var(--brand-black);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s ease;
}
.hero-expand-name {
    font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; font-size: var(--t-base); opacity: 0.5;
    transition: font-size 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-expand-phase2 {
    position: absolute; inset: 0;
    transition: opacity 0.25s ease;
}

/* ── Shared skeleton (used in hero expand + package page) ── */
.pkg-skeleton {
    background: var(--brand-black);
    padding-top: 2rem;
}
.pkg-skeleton--page {
    position: fixed; inset: 0; z-index: 100;
    padding-top: 5rem;
}
.pkg-skeleton-path {
    max-width: 1200px; margin: 0 auto; padding: 0.5rem 2rem 1rem;
}
.pkg-skeleton-layout {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start;
}
.pkg-skeleton-viewer { display: flex; flex-direction: column; gap: 0.5rem; }
.pkg-skeleton-screen { width: 100%; aspect-ratio: 16/9; border-radius: 0; }
.pkg-skeleton-thumbs { display: flex; gap: 3px; }
.pkg-skeleton-info { display: flex; flex-direction: column; }

.skel-bar, .skel-block {
    background: rgba(255,255,255,0.05);
    animation: heroPulse 1.3s ease-in-out infinite;
    border-radius: 0;
}
.skel-bar { height: 14px; }
.skel-block { min-height: 40px; }

@media (max-width: 1024px) {
    .pkg-skeleton-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .pkg-skeleton--page { padding-top: 3.5rem; }
    .pkg-skeleton-layout { padding: 0 1.25rem; }
}

/* ── Animations ── */
@keyframes heroSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero { min-height: auto; padding: 5rem 0 0; }
    .hero-masthead { padding: 2rem 0 2.4rem; gap: 2rem; }
    .hero-line { font-size: clamp(3rem, 18vw, 7rem); }
    .hero-lower { grid-template-columns: 1fr; align-items: start; gap: 1.6rem; }
    .hero-entries { grid-template-columns: 1fr; }
    .hero-entry { border-left: none; border-top: 1px solid var(--border-1); }
}
@media (max-width: 560px) {
    .hero-cta { width: 100%; }
    .hero-btn-primary, .hero-btn-secondary { flex: 1; justify-content: center; }
    .hero-entry { grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 0.8rem; padding: 1.1rem 0.2rem; }
    .hero-entry-go { display: none; }
}

/* ===== CATEGORIES ===== */

.idx-categories {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
}

.idx-categories-header {
    margin-bottom: 1.75rem;
}

.idx-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
}

.idx-category-card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-6) var(--s-5);
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.idx-category-card:first-child {
    border-left: none;
}

.idx-category-card:hover {
    background: var(--surface-1);
    border-left-color: var(--brand-red);
}

.idx-category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.idx-category-name {
    font-size: var(--t-md);
    font-weight: 700;
    color: var(--brand-white);
    font-family: var(--font-display);
}

.idx-category-desc {
    font-size: var(--t-sm);
    color: var(--text-muted);
    line-height: 1.4;
}

.idx-category-cta {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--brand-red-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}

.idx-category-cta i {
    font-size: var(--t-xs);
    transition: transform 0.2s;
}

.idx-category-card:hover .idx-category-cta {
    gap: 0.6rem;
}

.idx-category-card:hover .idx-category-cta i {
    transform: translateX(3px);
}

.idx-category-arrow {
    display: none;
}


.rotate-180 {
    transform: rotate(180deg);
}

.idx-faq {
    background: var(--brand-black);
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

.idx-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.idx-faq-header {
    max-width: 720px;
    margin: 0 0 1.75rem;
    text-align: left;
}

.idx-faq-list {
    max-width: 720px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.idx-faq-item {
    border: 1px solid var(--border-1);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.idx-faq-item:hover {
    border-color: rgba(var(--accent-rgb), 0.2);
    background: var(--surface-3);
}

.idx-faq-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: background 0.2s ease;
    font-family: inherit;
    color: inherit;
}

.idx-faq-btn:hover {
    background: rgba(var(--brand-red-rgb), 0.03);
}

.idx-faq-btn h3 {
    font-size: var(--t-base);
    font-weight: 600;
    color: var(--brand-white);
    margin: 0;
    line-height: 1.4;
    font-family: var(--font-body);
}

.idx-faq-btn i {
    color: var(--text-muted);
    font-size: var(--t-xs);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.idx-faq-answer {
    padding: 0 1rem 0.9rem;
}

.idx-faq-answer-inner {
    border-left: none;
    padding-left: 0;
}

.idx-faq-answer p {
    font-size: var(--t-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* -- FAQ Discord CTA -- */

.idx-faq-discord {
    max-width: 720px;
    margin: 1.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0;
}

.idx-faq-discord span {
    font-size: var(--t-sm);
    color: var(--text-secondary);
}

.idx-faq-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 0;
    color: var(--text-primary);
    font-size: var(--t-xs);
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.idx-faq-discord-btn i {
    color: var(--color-discord);
}

.idx-faq-discord-btn:hover {
    border-color: var(--border-3);
    color: var(--text-primary);
}

/* ===== FEATURED PACKAGE MODULE (module.featuredpackage.html) =====
   Canon: hairline frame, mono eyebrow, display name, ink-on-red discount. */

.idx-featured {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) 2rem;
}

.idx-featured-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    border: 1px solid var(--border-2);
    background: var(--surface-1);
}

.idx-featured-media {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-right: 1px solid var(--border-1);
}

.idx-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-featured-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
}

.idx-featured-noimg i {
    font-size: var(--t-3xl);
    color: var(--surface-4);
}

.idx-featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-5) var(--s-6);
}

.idx-featured-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--section-label-spacing);
    color: var(--brand-red-bright);
}

.idx-featured-name {
    font-family: var(--font-display);
    font-size: var(--t-2xl);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.idx-featured-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.idx-featured-price {
    font-family: var(--font-mono);
    font-size: var(--t-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-white);
}

.idx-featured-price--free { color: var(--color-success); }

.idx-featured-price-old {
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.idx-featured-discount {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    background: var(--brand-red);
    color: var(--ink);
    padding: 0.15rem 0.4rem;
    border-radius: 0;
}

@media (max-width: 768px) {
    .idx-featured-inner { grid-template-columns: 1fr; }

    .idx-featured-media {
        border-right: none;
        border-bottom: 1px solid var(--border-1);
        min-height: 180px;
    }

    .idx-featured-content { padding: var(--s-5); }
}

/* ===== PRE-FOOTER CTA — full-bleed ink-on-red block ===== */

.idx-prefooter {
    padding: var(--s-9) var(--s-6);
    text-align: left;
    position: relative;
    background: var(--brand-red);
}

.idx-prefooter-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
}

.idx-prefooter-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink);
    opacity: 0.72;
}

.idx-prefooter-title {
    font-family: var(--font-display);
    font-size: var(--t-4xl);
    font-weight: 800;
    color: var(--ink);
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    max-width: 22ch;
}

.idx-prefooter-sub {
    font-family: var(--font-body);
    font-size: var(--t-base);
    color: var(--ink);
    opacity: 0.72;
    margin: 0 0 var(--s-3);
}

.idx-prefooter-inner .rc-btn {
    background: var(--ink);
    color: var(--brand-red);
    border: none;
    border-radius: 0;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: none;
}

.idx-prefooter-inner .rc-btn:hover {
    background: var(--surface-4);
    color: var(--brand-red);
    box-shadow: none;
}

/* ===== CATEGORY PAGE ===== */

.cat-page { min-height: 100vh; padding: 0 0 4rem; background: var(--bg); }

.cat-header { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.cat-title { font-size: var(--t-2xl); font-weight: 800; color: var(--brand-white); line-height: 1.15; letter-spacing: -0.025em; font-family: var(--font-display); }
.cat-count { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 600; color: var(--text-muted); padding: 0.15rem 0.6rem; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

.cat-card { display: flex; flex-direction: column; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border-1); border-radius: 0; transition: border-color 0.22s ease; }
.cat-card:hover { border-color: var(--brand-red); }

.cat-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-1); border-bottom: 1px solid var(--border-1); }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease, filter 0.25s ease; filter: saturate(0.8); }
.cat-card:hover .cat-card-img img { transform: scale(1.04); filter: saturate(1); }
.cat-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--surface-4); font-size: var(--t-xl); }
.cat-card-sale { position: absolute; top: 0.5rem; left: 0.5rem; background: var(--accent); color: var(--ink); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 0; z-index: 2; letter-spacing: 0.04em; }

.cat-card-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.cat-card-name { font-size: var(--t-md); font-weight: 700; color: var(--brand-white); line-height: 1.25; letter-spacing: -0.01em; font-family: var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-price { display: flex; align-items: baseline; gap: 0.4rem; margin-top: auto; padding-top: 0.55rem; }
.cat-card-current { font-family: var(--font-mono); font-size: var(--t-lg); font-weight: 800; color: var(--brand-white); }
.cat-card-old { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); text-decoration: line-through; }
.cat-card-free { font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 700; color: var(--color-success); }
.cat-card-view { margin-left: auto; font-size: var(--t-xs); font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.3rem; opacity: 0; transform: translateX(-4px); transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease; }
.cat-card:hover .cat-card-view { opacity: 1; transform: translateX(0); color: var(--brand-red-bright); }
@media (hover: none) { .cat-card-view { opacity: 1; transform: none; } }

.cat-empty { text-align: center; padding: 4rem 2rem; color: var(--text-primary); font-size: var(--t-base); }
.cat-empty a { color: var(--brand-red-bright); margin-top: 0.5rem; display: inline-block; }

@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (max-width: 580px) {
    .cat-grid { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ===== PRODUCT DETAIL PAGE ===== */

.pkg { min-height: 100vh; position: relative; padding-top: 2rem; padding-bottom: 4rem; margin-top: 0; }

.pkg-bg { position: absolute; top: 0; left: 0; width: 100%; height: 720px; z-index: 0; overflow: hidden; pointer-events: none; will-change: transform; }
.pkg-bg img { width: 100%; height: 110%; object-fit: cover; opacity: 0.25; filter: grayscale(1); }
.pkg-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.92) 85%, var(--brand-black) 100%); }
.pkg-bg-scrim { position: absolute; top: 0; left: 0; width: 100%; height: 720px; z-index: 0; pointer-events: none; }

/* Red geometry SVG retired (package redesign) — bg is grayscale art + hard scrim, no tint. */

.pkg-path, .pkg-upper, .pkg-lower { position: relative; z-index: 2; }

.pkg-path { max-width: 1200px; margin: 0 auto; padding: 0.4rem 2rem; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.04em; color: var(--text-muted); }
.pkg-path a { color: var(--text-muted); }
.pkg-path a:hover { color: var(--brand-white); }
.pkg-path span { color: var(--text-secondary); }

.pkg-upper { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* Two-column layout: media left, info right — grid defined in the redesign layer below */

/* Media viewer: thumbs + screen */
.pkg-viewer { display: flex; flex-direction: column; gap: 0.6rem; }

/* Filmstrip — horizontal thumbnail row under the screen */
.pkg-filmstrip { display: flex; flex-direction: row; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.pkg-filmstrip::-webkit-scrollbar { display: none; }

.pkg-thumb { width: 128px; height: 72px; flex-shrink: 0; overflow: hidden; cursor: pointer; background: var(--brand-gray); position: relative; opacity: 0.35; transition: opacity 0.12s; }
.pkg-thumb:hover { opacity: 0.7; }
.pkg-thumb.active { opacity: 1; }
.pkg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: var(--t-xs); background: rgba(10,10,10,0.45); pointer-events: none; }
.pkg-thumb-play--lg { font-size: var(--t-2xl); background: rgba(10,10,10,0.5); }
.pkg-main-video { position: relative; width: 100%; height: 100%; cursor: pointer; }
.pkg-main-video img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pkg-screen { position: relative; }
.pkg-screen-inner img, .pkg-screen-inner iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: none; }
.pkg-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--surface-4); font-size: var(--t-2xl); }

.pkg-summary { display: none; font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.5; margin: 0 0 0.4rem; }

.pkg-h1-tags { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-bottom: 0.75rem; }

.pkg-pricing { display: flex; align-items: baseline; gap: 0.45rem; margin-bottom: 0.6rem; padding-top: 0.6rem; }

.pkg-buybtn.disabled { opacity: 0.2; pointer-events: none; cursor: not-allowed; }

.pkg-sublink { display: block; text-align: center; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); margin-bottom: 0.3rem; }
.pkg-sublink:hover { color: var(--brand-red-bright); }
.pkg-sublink.disabled { opacity: 0.3; pointer-events: none; }

/* .pkg-trust retired — guarantees list (.pkg-guarantees) replaced it. */

/* Description */
.pkg-lower { max-width: var(--container); margin: 2.5rem auto 0; padding: 0 2rem; position: relative; z-index: 3; }

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

/* Sticky buy — base layout; visual skin (colors/border) owned by the
   "3c. Sticky mobile purchase bar" override further down. No blur, no halo. */
.pkg-sticky { position: fixed; z-index: 900; bottom: 1.5rem; right: 1.5rem; display: flex; align-items: center; gap: 0.85rem; background: var(--surface-2); border: 1px solid var(--border-2); padding: 0.7rem 1rem; border-radius: 0; transform: translateY(calc(100% + 3rem)); transition: transform 0.25s ease; pointer-events: none; }
.pkg-sticky.visible { transform: translateY(0); pointer-events: auto; }
.pkg-sticky-p { font-family: var(--font-mono); font-size: var(--t-md); font-weight: 900; color: var(--brand-white); letter-spacing: -0.01em; }
.pkg-sticky-b { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.15rem; font-size: var(--t-sm); font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; background: var(--brand-red); color: var(--ink); border: none; border-radius: 0; cursor: pointer; transition: background 0.15s ease; white-space: nowrap; }
.pkg-sticky-b:hover { background: var(--brand-red-bright); color: var(--ink); }
.pkg-sticky-b.disabled { opacity: 0.3; pointer-events: none; }

/* Responsive */
@media (max-width: 1024px) {
    .pkg-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .pkg-info { border-top: 1px solid var(--border); padding-top: 1rem; }
    .pkg-buybtn { width: auto; display: inline-flex; }
    .pkg-sublink { display: inline; margin-left: 0.5rem; }
}

@media (max-width: 768px) {
    .pkg-upper { padding: 0 1.25rem; }
    .pkg-filmstrip { gap: 0.4rem; }
    .pkg-screen-inner { border-radius: var(--r-sm); }
    .pkg-info { padding: 1rem 1.25rem; border-top: none; }
    .pkg-path { padding: 0.35rem 0; }
    .pkg-lower { padding: 0 1.25rem; }
    .pkg-head .pkg-h1 { font-size: var(--t-2xl); }

    .pkg-sticky { right: 0; left: 0; bottom: 0; border-radius: 0; border-left: none; border-right: none; border-bottom: none; justify-content: space-between; padding: 0.5rem 1.25rem; transform: translateY(100%); }
    .pkg-sticky.visible { transform: translateY(0); }
}

@media (max-width: 480px) {
    .pkg-path { padding: 0.25rem 1rem; font-size: var(--t-xs); }
    .pkg-info { padding: 0.6rem 1rem 0; }
    .pkg-lower { padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pkg-sticky { transition: none; }
    .pkg-thumb { transition: none; }
}

/* ===== CHECKOUT PAGE ===== */

.chk-container {
    background: var(--brand-black);
    min-height: 100vh;
    position: relative;
}

.chk-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    position: relative;
}

.chk-order {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.chk-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--table-head-bg);
    border-bottom: 1px solid var(--border);
}

.chk-order-title {
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.chk-order-count {
    background: none;
    color: var(--text-secondary);
    padding: 0.2rem 0.55rem;
    border-radius: 0;
    font-size: var(--t-xs);
    font-weight: 700;
    font-family: var(--font-mono);
    border: 1px solid var(--border-2);
    letter-spacing: 0.04em;
}

.chk-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background 0.15s;
}

.chk-item:hover {
    background: var(--surface-1);
}

.chk-item:last-child {
    border-bottom: none;
}

.chk-item-img {
    width: 52px;
    height: 40px;
    border-radius: 0;
    overflow: hidden;
    background: var(--brand-gray-light);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.chk-item-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.chk-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.chk-item-name {
    font-size: var(--t-base);
    font-weight: 600;
    color: var(--brand-white);
    margin-bottom: 0.2rem;
    word-wrap: break-word;
    font-family: var(--font-display);
}

.chk-item-price {
    font-size: var(--t-sm);
    color: var(--brand-red-bright);
    font-weight: 700;
    font-family: var(--font-mono);
}

.chk-item-meta {
    font-size: var(--t-xs);
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-family: var(--font-mono);
}

.chk-item-remove {
    color: var(--text-muted);
    font-size: var(--t-xs);
    padding: 0.35rem;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
    flex-shrink: 0;
}

.chk-item-remove:hover {
    opacity: 1;
    color: var(--color-danger);
}

.chk-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--surface-1);
    border-top: 1px solid var(--border-2);
}

.chk-total-label {
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chk-total-price {
    font-size: var(--t-xl);
    font-weight: 900;
    color: var(--brand-white);
    font-family: var(--font-mono);
}

.chk-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    font-size: var(--t-sm);
}

.chk-empty-icon {
    display: block;
    font-size: var(--t-2xl);
    margin-bottom: 0.75rem;
    color: var(--surface-4);
}

.chk-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chk-section-title {
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chk-promo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: end;
}

.chk-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--brand-white);
    font-size: var(--t-sm);
    font-family: var(--font-mono);
    transition: border-color 0.2s;
}

.chk-input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.chk-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-body);
}

.chk-promo-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: 1px solid var(--border-2);
    border-radius: 0;
    color: var(--brand-red-bright);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chk-promo-btn:hover {
    border-color: var(--border-3);
}

/* -- Checkout Action -- */

.chk-action {
    text-align: center;
    margin-top: 2rem;
}

.chk-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--brand-red);
    border: none;
    border-radius: 0;
    color: var(--ink);
    font-size: var(--t-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: var(--font-mono);
}

.chk-submit:hover {
    background: var(--brand-red-bright);
    color: var(--ink);
}

.chk-submit.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.chk-security {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: var(--t-xs);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.chk-security i {
    color: var(--color-success);
    margin-right: 0.3rem;
    font-size: var(--t-xs);
}

.chk-no-gateway {
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    font-size: var(--t-sm);
}

.chk-no-gateway a { color: var(--brand-red-bright); }

@media (max-width: 768px) {
    .chk-wrapper {
        padding: 1.5rem 1rem 3rem;
    }

    .chk-item {
        padding: 0.85rem 1rem;
    }

    .chk-order-header {
        padding: 0.85rem 1rem;
    }

    .chk-total {
        padding: 1rem;
    }

    .chk-section {
        padding: 1.25rem;
    }

    .chk-promo {
        grid-template-columns: 1fr;
    }
}

.opt-container {
    background: var(--brand-black);
    min-height: 100vh;
    padding: 2rem 0;
}

.opt-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.opt-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.opt-title {
    font-size: var(--t-2xl);
    font-weight: 900;
    color: var(--brand-white);
    margin-bottom: 0.5rem;
}

.opt-subtitle {
    color: var(--text-secondary);
    font-size: var(--t-md);
}

.opt-card {
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 2.5rem;
    position: relative;
}

.opt-field {
    margin-bottom: 1.5rem;
}

.opt-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.opt-label i { color: var(--brand-red-bright); }

.opt-description {
    color: var(--text-secondary);
    font-size: var(--t-sm);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.opt-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0;
    color: var(--brand-white);
    font-size: var(--t-base);
    font-family: inherit;
    transition: border-color 0.2s;
}

.opt-input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.opt-input::placeholder {
    color: var(--text-muted);
}

.opt-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ECE7DD' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.opt-select option {
    background: var(--surface-3);
    color: var(--brand-white);
}

.opt-discord {
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.opt-discord-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opt-discord-avatar {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-discord);
    font-size: var(--t-xl);
}

.opt-discord-tag {
    font-weight: 600;
    color: var(--brand-white);
}

.opt-discord-text {
    color: var(--text-secondary);
    font-size: var(--t-sm);
}

.opt-discord-input {
    display: flex;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-2);
}

.opt-discord-input input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border: none;
    color: var(--brand-white);
    font-size: var(--t-base);
    font-family: inherit;
}

.opt-discord-input input:focus {
    outline: none;
}

.opt-discord-btn {
    background: var(--color-discord);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: var(--t-sm);
}

.opt-discord-btn:hover {
    background: var(--color-discord);
    filter: brightness(1.12);
    color: var(--white);
}

.opt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.opt-back {
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
}

.opt-back:hover {
    color: var(--brand-white);
    background: var(--surface-2);
}

.opt-submit {
    background: var(--brand-red);
    color: var(--ink);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 700;
    font-size: var(--t-sm);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.opt-submit:hover {
    background: var(--brand-red-bright);
}

.opt-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .opt-wrapper {
        padding: 2rem 1rem;
    }

    .opt-card {
        padding: 1.5rem;
    }

    .opt-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .opt-submit {
        width: 100%;
        text-align: center;
    }

    .opt-discord-input {
        flex-direction: column;
    }

    .opt-discord-btn {
        justify-content: center;
    }
}

.login-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 2rem;
}

.login-title {
    color: var(--brand-white);
    font-size: var(--t-2xl);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: var(--t-base);
    margin-bottom: 1rem;
}

.login-card input[name="ign"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border: 1px solid var(--border-2);
    background: var(--bg);
    color: var(--brand-white);
    margin-bottom: 0.75rem;
    font-size: var(--t-md);
    font-family: inherit;
}

.login-card input[name="ign"]:focus {
    outline: none;
    border-color: var(--brand-red);
    background: var(--brand-gray);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 0;
    background: var(--brand-red);
    color: var(--ink);
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: var(--t-sm);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background: var(--brand-red-bright);
    color: var(--ink);
}

.login-btn:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.login-btn i {
    font-size: var(--t-md);
}

.login-hint {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: var(--t-sm);
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.cms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.cms-title {
    font-size: var(--t-2xl);
    font-weight: 800;
    color: var(--brand-white);
    margin-bottom: 1.5rem;
}

.cms-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.cms-content a {
    color: var(--brand-red-bright);
}

.cms-content h2,
.cms-content h3 {
    color: var(--brand-white);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.about-heading h2 {
    color: var(--brand-red-bright);
    font-size: var(--t-2xl);
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-heading p {
    color: var(--text-secondary);
}

.about-bios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-bio {
    background: var(--brand-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.about-bio img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--brand-black);
}

.about-bio h2 {
    color: var(--brand-red-bright);
    font-size: var(--t-xl);
    margin-bottom: 0.75rem;
}

.about-bio p {
    color: var(--text-secondary);
    font-size: var(--t-base);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-bios {
        grid-template-columns: 1fr;
    }
}

.discord-notif {
    position: fixed;
    bottom: 2rem;
    left: 2rem;   /* left side — the right corner belongs to the package sticky buy bar */
    width: 320px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 1.25rem;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    animation: rc-slideInNotif 0.4s ease 2s forwards;
}

/* Suppress the popup while the header's mobile menu / cart panel is open
   (m8: header stamps .rc-menu-open via Alpine; :has() is the simplest bridge) */
body:has(.rc-header.rc-menu-open) .discord-notif {
    display: none;
}

@keyframes rc-slideInNotif {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discord-notif.hidden {
    animation: rc-slideOutNotif 0.3s ease forwards;
}

@keyframes rc-slideOutNotif {
    to {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
}

.discord-notif-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--t-xs);
    transition: color 0.2s;
}

.discord-notif-close:hover {
    color: var(--brand-red-bright);
}

.discord-notif-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.discord-notif-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.discord-notif-icon i {
    font-size: var(--t-2xl);
    color: var(--color-discord);
}

.discord-notif-title {
    font-size: var(--t-base);
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: 0.2rem;
}

.discord-notif-text {
    font-size: var(--t-xs);
    color: var(--text-muted);
}

.discord-notif-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 0.75rem;
}

.discord-notif-btn i {
    color: var(--color-discord);
}

.discord-notif-btn:hover {
    border-color: var(--border-3);
    color: var(--text-primary);
}

.discord-notif-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: var(--surface-1);
    border: 1px dashed var(--border-2);
    border-radius: 0;
    margin-top: 0.75rem;
}

.discord-code-text {
    font-size: var(--t-md);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--brand-red-bright);
    letter-spacing: 0.1em;
}

.discord-code-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--brand-red);
    border-radius: 0;
    color: var(--brand-red-bright);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.discord-code-copy:hover {
    background: var(--brand-red);
    color: var(--ink);
}

@media (max-width: 768px) {
    .discord-notif {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    .idx-categories-grid {
        grid-template-columns: 1fr;
    }

    .idx-category-card {
        flex-direction: row;
        align-items: center;
        gap: var(--s-4);
        padding: var(--s-4) var(--s-5);
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .idx-category-card:first-child {
        border-top: none;
    }

    .idx-category-card:hover {
        border-top-color: var(--brand-red);
    }

    .idx-category-desc {
        display: none;
    }

    .rc-announce-bar {
        font-size: var(--t-xs);
    }

    .idx-faq-discord {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

    .idx-prefooter {
        padding: 3rem 1.5rem;
    }

    .idx-faq {
        padding: 1.5rem 1rem;
    }

    .rc-partners {
        padding: 1.25rem 1rem;
    }

    .rc-partners-inner {
        align-items: flex-start;
    }

    .rc-partners-logos {
        gap: 1.5rem;
    }

    .rc-partner-link img {
        height: 28px;
    }

    .rc-partner-swiper-section {
        padding: 1rem 1rem 1.25rem;
    }

    .rc-partner-showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .rc-partner-logo {
        height: 32px;
    }

    .rc-partner-visit {
        width: 100%;
        justify-content: center;
    }
}

h1, h2, h3, .pkg-title, .cat-title, .hero-title,
.chk-order-title, .opt-title, .login-title, .cms-title,
.about-heading h2, .hero-card-name, .pkg-section-title {
    font-family: var(--font-display);
}

.pkg-price, .pkg-sticky-p, .cat-card-current, .hero-card-price,
.chk-total-price, .rc-cart-total-price, .rc-cart-item-price,
.chk-item-price, .item-price {
    font-family: var(--font-mono);
}

.rc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: var(--t-sm);
    color: var(--text-muted);
}

.rc-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.rc-breadcrumb a:hover {
    color: var(--brand-red);
}

.rc-breadcrumb-sep {
    font-size: var(--t-xs);
    opacity: 0.5;
}

.rc-breadcrumb-current {
    color: var(--text-secondary);
}

.rc-status-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
}

.rc-status-card {
    width: 100%;
    max-width: 600px;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: var(--space-2xl);
    text-align: center;
}

/* Status page variants — order lookup / billing agreement forms */
.rc-status-page--top { align-items: flex-start; padding-top: var(--space-2xl); }
.rc-status-card--wide { max-width: 700px; text-align: left; }
.rc-status-card--md { max-width: 650px; }
.rc-status-title--center { text-align: center; }
.rc-status-text--center { text-align: center; }
.rc-status-text--spaced { margin-top: var(--space-xl); }

/* Status icon — solid ink-on-color block (v8 badge register, no tints) */
.rc-status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: var(--t-xl);
}

.rc-status-icon-success {
    background: var(--color-success);
    color: var(--ink);
}

.rc-status-icon-pending {
    background: var(--brand-white);
    color: var(--ink);
}

.rc-status-icon-info {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-2);
}

.rc-status-icon-warning {
    background: var(--color-danger);
    color: var(--ink);
}

.rc-status-title {
    font-family: var(--font-display);
    font-size: var(--t-xl);
    font-weight: 800;
    color: var(--brand-white);
    margin-bottom: var(--space-md);
}

.rc-status-text {
    color: var(--text-secondary);
    font-size: var(--t-base);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.rc-status-text:last-child {
    margin-bottom: 0;
}

.rc-status-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.rc-form-group {
    margin-bottom: var(--space-lg);
    text-align: left;
}

.rc-form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.rc-form-label i {
    margin-right: 0.35rem;
    color: var(--brand-red-bright);
}

.rc-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0;
    color: var(--brand-white);
    font-size: var(--t-sm);
    font-family: var(--font-mono);
    transition: border-color 0.2s;
}

.rc-form-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-body);
}

.rc-form-input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.rc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.rc-form-actions {
    display: flex;
    justify-content: flex-end;
}

.rc-info-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    border: 1px solid var(--border-2);
    margin: var(--space-lg) 0;
}

.rc-info-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-1);
    font-size: var(--t-base);
    color: var(--text-primary);
}

.rc-info-table td:first-child {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
}

.rc-info-table tr:last-child td {
    border-bottom: none;
}

/* Payment group header row — mono caps, red text on dark, hairline rule */
.rc-info-table td.rc-info-table-head {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-red-bright);
    background: var(--table-head-bg);
    border-bottom: 1px solid var(--border-2);
    white-space: normal;
}

.rc-sidebar-nav {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
}

.rc-sidebar-nav a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: var(--t-base);
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}

.rc-sidebar-nav a:last-child {
    border-bottom: none;
}

.rc-sidebar-nav a:hover {
    background: var(--surface-1);
    color: var(--brand-white);
}

/* Destructive action button — solid danger fill, ink text (v8 block register) */
.rc-btn-danger {
    background: var(--color-danger);
    color: var(--ink);
}

.rc-btn-danger:hover {
    background: var(--brand-red-bright);
    color: var(--ink);
}

/* ── Tebex sidebar modules — de-inlined layout hooks ── */
.goal-img {
    width: 190px;
    height: 165px;
}

.giftcardbalance .input-group { position: relative; }

.giftcardbalance .input-group-append {
    position: absolute;
    right: 0;
}

.textbox-body { height: 100%; }

.textbox-media {
    max-width: 100%;
    max-height: 100%;
}

.textbox-media img {
    max-width: 100%;
    max-height: 100%;
}

/* ── gifting.twig — gift checkbox + recipient field (basket flow) ── */
.gifting label { display: inline-block; }

.gifting input[type="text"] { width: 100%; }

@media (max-width: 768px) {
    .rc-form-row {
        grid-template-columns: 1fr;
    }

    .rc-status-card {
        padding: var(--space-lg);
    }

    .rc-status-actions {
        flex-direction: column;
    }
}

/* ===== SCROLL REVEAL — removed (m7): no section entrance animations ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Package description body — universal structure ───────────────────────── */
/*
   .pkg-desc            Root wrapper — apply around package.description|raw
   .pkg-desc-lead       Opening paragraph (larger, lighter weight)
   .pkg-desc-h2         Section heading with left accent bar
   .pkg-desc-h3         Sub-section heading
   .pkg-desc-list       Bulleted list with red dot markers
   .pkg-desc-table      Styled data table, striped rows, red header
   .pkg-desc-note       Callout / aside with left brand-red border
   .pkg-desc-cta        CTA container box
   .pkg-desc-cta-btn    Primary CTA button (red, large, matches docs btn)
   Inline: <a>, <strong>, <code> get automatic treatment inside .pkg-desc
*/

/* --pkg-desc-* tokens live in the canonical :root at the top of this file. */

/* ── Root wrapper ── */
.pkg-desc {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: var(--pkg-desc-body-size);
    line-height: 1.75;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: var(--pkg-desc-gap);
}

/* ── Base paragraph inside wrapper ── */
.pkg-desc p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--pkg-desc-body-size);
    line-height: 1.75;
}

/* ── Lead paragraph ── */
.pkg-desc-lead {
    font-size: var(--pkg-desc-lead-size) !important;
    font-weight: 400;
    color: var(--text-primary) !important;
    line-height: 1.65;
    letter-spacing: -0.005em;
}

/* ── Inline strong ── */
.pkg-desc strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ── Inline code ── */
.pkg-desc code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--pkg-desc-code-bg);
    border: 1px solid var(--pkg-desc-code-border);
    border-radius: var(--radius-sm);
    padding: 0.1em 0.38em;
    color: var(--brand-white);
    white-space: nowrap;
    vertical-align: baseline;
}

/* Block code. A description pasted into Tebex inside ``` fences arrives as
   <pre><code>, which inherits the nowrap above: the <code> then measures its
   whole body on a single line (10,548px on the addon listing) and any
   multi-column child such as .df-feats (columns: 2) paints its overflow
   straight across the next column, so the feature text renders on top of
   itself. Unsetting it here makes a bad paste degrade to wrapped text
   instead of breaking the page. */
.pkg-desc pre {
    max-width: 100%;
    overflow-x: auto;
}
.pkg-desc pre code {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: none;
    border: 0;
    padding: 0;
}

/* ── Links ── */
.pkg-desc a {
    color: var(--brand-red-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 500;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.pkg-desc a:hover {
    color: var(--brand-red-bright);
    font-weight: 700;
    text-decoration-color: var(--brand-red-bright);
}

.pkg-desc a:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
    border-radius: 0;
}

/* ── Section heading h2 ── */
.pkg-desc-h2 {
    font-family: var(--font-display);
    font-size: var(--t-lg);
    font-weight: 800;
    color: var(--brand-white);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0.35rem 0 0;
}

/* ── Sub-section heading h3 ── */
.pkg-desc-h3 {
    font-family: var(--font-display);
    font-size: var(--t-base);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0.2rem 0 0;
}

/* ── Bulleted list ── */
.pkg-desc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pkg-desc-list li {
    padding-left: 1.15rem;
    position: relative;
    font-size: var(--pkg-desc-body-size);
    color: var(--text-secondary);
    line-height: 1.65;
}

.pkg-desc-list li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.62em;
    width: 5px;
    height: 5px;
    background: var(--brand-red);
    border-radius: 0;
    transform: rotate(45deg);
}

/* ── Table ── */
.pkg-desc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pkg-desc-table thead tr {
    background: var(--pkg-desc-th-bg);
}

.pkg-desc-table th {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand-red-bright);
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-2);
    white-space: nowrap;
}

.pkg-desc-table tbody tr:nth-child(even) td {
    background: var(--pkg-desc-row-alt);
}

.pkg-desc-table tbody tr:hover td {
    background: var(--pkg-desc-row-hover);
}

.pkg-desc-table td {
    padding: 0.55rem 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

.pkg-desc-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Mobile table stacking ── */
@media (max-width: 768px) {
    .pkg-desc-table,
    .pkg-desc-table thead,
    .pkg-desc-table tbody,
    .pkg-desc-table tr,
    .pkg-desc-table th,
    .pkg-desc-table td {
        display: block;
    }

    .pkg-desc-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .pkg-desc-table tbody tr {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.015);
    }

    .pkg-desc-table td {
        padding: 0.45rem 0.75rem;
        border-bottom: 1px solid var(--border);
        position: relative;
    }

    .pkg-desc-table td:last-child {
        border-bottom: none;
    }

    .pkg-desc-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-mono);
        font-size: var(--t-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--brand-red-bright);
        margin-bottom: 0.2rem;
    }
}

/* ── Note / callout aside ── */
.pkg-desc-note {
    background: var(--pkg-desc-note-bg);
    border: 1px solid var(--pkg-desc-note-border);
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: var(--t-sm);
    color: var(--text-secondary);
    line-height: 1.65;
}

.pkg-desc-note strong {
    color: var(--brand-white);
}

/* ── CTA box ── */
.pkg-desc-cta {
    margin-top: 0.5rem;
    padding: 1.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    text-align: center;
}

.pkg-desc .pkg-desc-cta-btn,
.pkg-desc a.pkg-desc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    border-radius: 0;
    color: var(--ink) !important;
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pkg-desc .pkg-desc-cta-btn:hover,
.pkg-desc a.pkg-desc-cta-btn:hover {
    background: var(--brand-red-bright);
    border-color: var(--brand-red-bright);
    color: var(--ink) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pkg-desc .pkg-desc-cta-btn:focus-visible,
.pkg-desc a.pkg-desc-cta-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.pkg-desc-cta-btn i {
    font-size: var(--t-sm);
    transition: transform 0.2s;
}

.pkg-desc-cta-btn:hover i {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .pkg-desc-cta-btn { transition: none; }
    .pkg-desc a { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STRUCTURED METADATA PIPELINE — new tokens and components
   Added for the JSON metadata rendering pipeline (package.html, category.html,
   product-card.twig, chips.twig, pkg-meta.twig).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Chip / meta / table / sidebar tokens live in the canonical :root at the top of this file. */

/* ── rc-chips — compatibility chip rows ──────────────────────────────────── */

.rc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

/* Chips — square mono outlines, one neutral register (v8 .panel-fw) */
.rc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-2);
    color: var(--text-secondary);
    background: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.rc-chip i { font-size: var(--t-xs); }

/* Framework chips */
/* Family variants share the neutral register; only the bridge reads red. */
.rc-chip--fw i, .rc-chip--inv i, .rc-chip--tgt i { color: var(--text-muted); }

.rc-chip--bridge {
    color: var(--brand-red);
    border-color: rgba(var(--brand-red-rgb), 0.45);
    font-weight: 600;
}
.rc-chip--bridge i { color: var(--brand-red); }

.rc-chip--more { color: var(--text-muted); }

/* ── pkg-meta — product detail structured layout ─────────────────────────── */

.pkg-meta-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--meta-section-gap);
}

/* Hero strip */
.pkg-meta-hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--meta-card-border);
}

.pkg-meta-title {
    font-family: var(--font-display);
    font-size: var(--t-2xl);
    font-weight: 800;
    color: var(--brand-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.pkg-meta-tagline {
    font-size: var(--t-base);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.pkg-meta-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

/* Hero badges */
.pkg-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.pkg-meta-badge i { font-size: var(--t-xs); }

.pkg-meta-badge--free      { background: none; color: var(--color-success); border-color: var(--border-2); }
.pkg-meta-badge--new       { background: none; color: var(--text-primary); border-color: var(--border-3); }
.pkg-meta-badge--updated   { background: none; color: var(--text-primary); border-color: var(--border-3); }
.pkg-meta-badge--featured  { background: none; color: var(--text-primary); border-color: var(--border-3); }
.pkg-meta-badge--beta      { background: none; color: var(--text-secondary); border-color: var(--border-2); }
.pkg-meta-badge--legacy    { background: none; color: var(--text-muted); border-color: var(--border-2); }

.pkg-meta-badge--bridge    { background: var(--chip-bridge-bg); color: var(--chip-bridge-color); border-color: var(--chip-bridge-border); font-weight: 700; }
.pkg-meta-badge--setup     { background: none; color: var(--text-secondary); border-color: var(--border-2); }
.pkg-meta-badge--perf      { background: none; color: var(--color-success); border-color: var(--border-2); }
.pkg-meta-badge--version   { background: transparent; color: var(--text-muted); border-color: var(--border-2); }
.pkg-meta-badge--status-beta        { background: none; color: var(--text-secondary); border-color: var(--border-2); }
.pkg-meta-badge--status-deprecated  { background: none; color: var(--color-danger); border-color: var(--border-2); }

/* Section label / section head */
.pkg-meta-section-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.pkg-meta-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pkg-meta-section-head {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--meta-card-border);
}

.pkg-meta-section-head i {
    font-size: var(--t-xs);
    color: var(--brand-red-bright);
}

/* Compatibility row */
.pkg-meta-compat {
    background: var(--meta-card-bg);
    border: 1px solid var(--meta-card-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.pkg-meta-compat-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pkg-meta-compat-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pkg-meta-compat-group-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pkg-meta-compat-group-label i { font-size: var(--t-xs); }

/* Summary block */
.pkg-meta-summary {
    font-size: var(--t-base);
    color: var(--text-secondary);
    line-height: 1.65;
}

.pkg-meta-summary p { margin: 0; }

/* Features grid */
.pkg-meta-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.5rem;
    margin: 0;
    padding: 0;
}

.pkg-meta-feat {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--t-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.pkg-meta-feat-icon {
    color: var(--brand-red);
    font-size: var(--t-xs);
    margin-top: 0.28rem;
    flex-shrink: 0;
}

/* Dependencies row */
.pkg-meta-deps-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pkg-meta-deps-card {
    background: var(--meta-card-bg);
    border: 1px solid var(--meta-card-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pkg-meta-deps-card-head {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pkg-meta-deps-card-head i { font-size: var(--t-xs); }
.pkg-meta-deps-card--required .pkg-meta-deps-card-head { color: var(--brand-red-bright); }
.pkg-meta-deps-card--required .pkg-meta-deps-card-head i { color: var(--brand-red-bright); }

.pkg-meta-deps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pkg-meta-deps-list li {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    color: var(--text-secondary);
    line-height: 1.45;
    padding-left: 0.6rem;
    position: relative;
}

.pkg-meta-deps-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Tables */
.pkg-meta-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--table-border);
    border-radius: var(--radius-md);
}

.pkg-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-sm);
}

.pkg-meta-table thead tr {
    background: var(--table-head-bg);
}

.pkg-meta-table th {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.55rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--table-border);
    white-space: nowrap;
}

.pkg-meta-table td {
    padding: 0.55rem 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--table-border);
    vertical-align: top;
    line-height: 1.5;
}

.pkg-meta-table tbody tr:last-child td {
    border-bottom: none;
}

.pkg-meta-table tbody tr:hover td {
    background: var(--table-row-hover);
}

/* Code elements */
.pkg-meta-code {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    padding: 0.1rem 0.35rem;
    color: var(--brand-white);
    white-space: nowrap;
}

.pkg-meta-code--perm {
    background: none;
    border-color: var(--border-2);
    color: var(--brand-red-bright);
}

.pkg-meta-muted {
    color: var(--text-muted);
    font-size: var(--t-xs);
}

/* Side chips (server/client) */
.pkg-meta-side-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.pkg-meta-side-chip--server {
    background: none;
    color: var(--text-secondary);
    border-color: var(--border-2);
}

.pkg-meta-side-chip--client {
    background: none;
    color: var(--text-secondary);
    border-color: var(--border-2);
}

/* Definition list */
.pkg-meta-deflist {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    margin: 0;
    align-items: baseline;
}

.pkg-meta-deflist dt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.pkg-meta-deflist dd {
    font-size: var(--t-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Keybinds */
.pkg-meta-keybinds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pkg-meta-keybind {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: var(--meta-card-bg);
    border: 1px solid var(--meta-card-border);
    border-radius: var(--radius-sm);
}

.pkg-meta-kbd {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.45rem;
    color: var(--brand-white);
    white-space: nowrap;
}

.pkg-meta-keybind-action {
    font-size: var(--t-sm);
    color: var(--text-secondary);
}

/* Media carousel */
.pkg-meta-media-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-red) var(--brand-gray);
}

.pkg-meta-media-scroll::-webkit-scrollbar { height: 4px; }
.pkg-meta-media-scroll::-webkit-scrollbar-track { background: var(--brand-gray); }
.pkg-meta-media-scroll::-webkit-scrollbar-thumb { background: var(--brand-red); border-radius: 0; }

.pkg-meta-media-item {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--brand-gray);
    border: 1px solid var(--meta-card-border);
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.15s, transform 0.15s;
}

.pkg-meta-media-item:hover,
.pkg-meta-media-item:focus {
    border-color: rgba(var(--brand-red-rgb), 0.4);
    transform: scale(1.02);
    outline: none;
}

.pkg-meta-media-item:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.pkg-meta-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pkg-meta-media-item--video .pkg-meta-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    font-size: var(--t-xl);
    transition: background 0.15s;
    pointer-events: none;
}

.pkg-meta-media-item--video:hover .pkg-meta-media-play {
    background: rgba(var(--brand-red-rgb), 0.55);
}

.pkg-meta-media-video-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gray-light);
    color: var(--text-muted);
    font-size: var(--t-xl);
}

/* Lightbox */
.pkg-meta-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pkg-meta-lightbox[hidden] { display: none; }

.pkg-meta-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface-3);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--t-base);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pkg-meta-lightbox-close:hover { background: var(--brand-red); color: var(--ink); }
.pkg-meta-lightbox-close:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }

.pkg-meta-lightbox-content {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-meta-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.pkg-meta-lightbox-content iframe,
.pkg-meta-lightbox-content video {
    width: min(80vw, 900px);
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius-sm);
}

/* FAQ accordion */
.pkg-meta-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pkg-meta-faq-item {
    border-top: 1px solid var(--meta-card-border);
    overflow: hidden;
}

.pkg-meta-faq-item:first-child { border-top: none; }

.pkg-meta-faq-btn {
    width: 100%;
    padding: 0.65rem 0.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 0.85rem;
    font-family: var(--font-body);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.15s;
}

.pkg-meta-faq-btn:hover { color: var(--brand-white); }

.pkg-meta-faq-btn:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: -2px;
}

.pkg-meta-faq-chevron {
    color: var(--text-muted);
    font-size: var(--t-xs);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.15s;
}

.pkg-meta-faq-chevron.rotated,
.pkg-meta-faq-item.active .pkg-meta-faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-red-bright);
}

.pkg-meta-faq-answer {
    overflow: hidden;
}

.pkg-meta-faq-answer[hidden] { display: none; }

.pkg-meta-faq-answer p {
    font-size: var(--t-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    padding: 0 0.5rem 0.65rem;
}

/* Alpine.js x-transition classes for FAQ */
.faq-enter { transition: max-height 0.3s ease, opacity 0.3s ease; }
.faq-enter-start { max-height: 0; opacity: 0; }
.faq-enter-end   { max-height: 600px; opacity: 1; }
.faq-leave { transition: max-height 0.2s ease, opacity 0.2s ease; }
.faq-leave-start { max-height: 600px; opacity: 1; }
.faq-leave-end   { max-height: 0; opacity: 0; }

/* Docs link — promoted to a primary CTA so it doesn't get lost at the bottom */
.pkg-meta-docs {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    text-align: center;
}

.pkg-meta-docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2rem;
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pkg-meta-docs-btn:hover {
    background: var(--brand-red-bright);
    border-color: var(--brand-red-bright);
    color: var(--ink);
}

.pkg-meta-docs-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.pkg-meta-docs-arrow {
    font-size: var(--t-xs);
    opacity: 0.85;
    transition: opacity 0.15s, transform 0.15s;
}

.pkg-meta-docs-btn:hover .pkg-meta-docs-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* ── pkg-lb — package gallery full-screen lightbox ──────────────────────── */
/*
   Activated by the vanilla JS block (pkgGalleryLightbox) in package.html.
   Covers both the main screen viewer (#mainImage / #pkgMainVideo) and the
   thumb column (#thumbs). Prefix: pkg-lb-*
*/

/* --pkg-lb-* tokens live in the canonical :root at the top of this file. */

/* Backdrop overlay */
.pkg-lb {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: var(--pkg-lb-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--pkg-lb-transition);
}

.pkg-lb.pkg-lb--open {
    opacity: 1;
    pointer-events: auto;
}

/* Media frame (the click-safe area around the media) */
.pkg-lb-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    width: 100%;
}

/* Media content */
.pkg-lb-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    transition: opacity var(--pkg-lb-transition), transform var(--pkg-lb-transition);
}

.pkg-lb-media img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.pkg-lb-media iframe,
.pkg-lb-media video {
    width: min(85vw, 960px);
    aspect-ratio: 16/9;
    border: none;
    border-radius: 0;
}

/* Control buttons shared styles */
.pkg-lb-close,
.pkg-lb-prev,
.pkg-lb-next {
    position: absolute;
    width: var(--pkg-lb-ctrl-size);
    height: var(--pkg-lb-ctrl-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pkg-lb-ctrl-bg);
    border: 1px solid var(--border-1);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: var(--t-base);
    cursor: pointer;
    transition: background var(--pkg-lb-transition), color var(--pkg-lb-transition), border-color var(--pkg-lb-transition), transform var(--pkg-lb-transition);
    z-index: 10;
}

.pkg-lb-close:hover,
.pkg-lb-prev:hover,
.pkg-lb-next:hover {
    background: var(--pkg-lb-ctrl-hover);
    border-color: var(--brand-red);
    color: var(--ink);
}

.pkg-lb-close:focus-visible,
.pkg-lb-prev:focus-visible,
.pkg-lb-next:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* Close — top-right of viewport */
.pkg-lb-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9110;
}

/* Prev / Next — centered vertically beside the frame */
.pkg-lb-prev,
.pkg-lb-next {
    top: 50%;
    transform: translateY(-50%);
}

.pkg-lb-prev {
    left: -3.5rem;
}

.pkg-lb-next {
    right: -3.5rem;
}

.pkg-lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.pkg-lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* Counter badge */
.pkg-lb-counter {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    background: rgba(12, 11, 14, 0.7);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.65rem;
    z-index: 9110;
    pointer-events: none;
}

/* Cursor affordance on main screen when media available */
.pkg-screen-inner--clickable {
    cursor: zoom-in;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pkg-lb {
        padding: 1rem;
    }

    .pkg-lb-prev {
        left: 0.25rem;
        bottom: 4.5rem;
        top: auto;
        transform: none;
    }

    .pkg-lb-next {
        right: 0.25rem;
        bottom: 4.5rem;
        top: auto;
        transform: none;
    }

    .pkg-lb-prev:hover { transform: none; }
    .pkg-lb-next:hover { transform: none; }

    .pkg-lb-media img {
        max-width: 98vw;
        max-height: 75vh;
    }

    .pkg-lb-media iframe,
    .pkg-lb-media video {
        width: 98vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pkg-lb,
    .pkg-lb-media,
    .pkg-lb-close,
    .pkg-lb-prev,
    .pkg-lb-next {
        transition: none;
    }
}

/* ── Category page layout (sidebar removed) ──────────────────────────────── */

.cat-main {
    min-width: 0;
    width: 100%;
}

.cat-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ── product-card.twig additions ─────────────────────────────────────────── */

.cat-card-wrap {
    /* transparent wrapper for data-meta; cat-card is the visible element */
    display: flex;
    flex-direction: column;
}

.cat-card-wrap .cat-card {
    flex: 1;
    width: 100%;
}

.cat-card-tagline {
    /* hidden by default; JS sets display:-webkit-box when populated */
    display: none;
    font-size: var(--t-xs);
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.cat-card-tagline.populated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.2rem;
}

.cat-card-badge {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.4rem;
    border-radius: 0;
    background: transparent;
    border: 1px solid transparent;
}

.cat-card-badge--new      { color: var(--text-primary); border-color: var(--border-3); }
.cat-card-badge--updated  { color: var(--text-primary); border-color: var(--border-3); }
.cat-card-badge--featured { color: var(--text-primary); border-color: var(--border-3); }
.cat-card-badge--beta     { color: var(--text-secondary); border-color: var(--border-2); }
.cat-card-badge--legacy   { color: var(--text-muted); border-color: var(--border-2); }

.cat-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

/* Icon-only compact chips used on cards — hairline outline, mono, no tint */
.cat-card-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 0;
    border: 1px solid var(--border-2);
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    color: var(--text-secondary);
    background: none;
}

.cat-card-chip--fw     { background: var(--chip-fw-bg); color: var(--chip-fw-color); border-color: var(--chip-fw-border); }
.cat-card-chip--more   { background: var(--chip-more-bg); color: var(--chip-more-color); border-color: var(--chip-more-border);
                         font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700; width: auto; padding: 0 0.3rem; }

/* Bridge dot overlay on card image */
.cat-card-bridge-dot {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--t-xs);
    z-index: 2;
    border: 1px solid transparent;
}

.cat-card-bridge-dot--kq {
    background: rgba(var(--brand-red-rgb), 0.85);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */

/* cat-layout responsive — sidebar gone, grid fills full width */
@media (max-width: 1024px) {
    .cat-main { width: 100%; }
}

@media (max-width: 768px) {
    .pkg-meta-features {
        grid-template-columns: 1fr;
    }

    .pkg-meta-deps-row {
        grid-template-columns: 1fr;
    }

    .pkg-meta-deflist {
        grid-template-columns: 1fr;
    }

    .pkg-meta-deflist dt {
        margin-top: 0.5rem;
    }

    .pkg-meta-deflist dt:first-child {
        margin-top: 0;
    }

    .pkg-meta-media-item {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .pkg-meta-hero-chips {
        gap: 0.25rem;
    }

    .pkg-meta-media-item {
        width: 200px;
    }

    .pkg-meta-table th,
    .pkg-meta-table td {
        padding: 0.4rem 0.6rem;
        font-size: var(--t-xs);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pkg-meta-media-item { transition: none; }
    .pkg-meta-docs-btn { transition: none; }
    .pkg-meta-faq-chevron { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PKG-META — Technical Spec Sheet aesthetic (overrides — 2026-05-24)
   --------------------------------------------------------------------------
   Each JSON-driven section presents like a numbered chapter in an
   engineering data sheet. Monumental section numerals, mono micro-labels,
   sharp hairline dividers, generous whitespace, square corners.
   ═══════════════════════════════════════════════════════════════════════════ */

.pkg-meta-container {
    max-width: var(--container);
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.pkg-meta-container .pkg-meta-hero,
.pkg-meta-container .pkg-meta-title,
.pkg-meta-container .pkg-meta-tagline,
.pkg-meta-container .pkg-meta-hero-chips:not(.pkg-meta-hero-chips--standalone),
.pkg-meta-container .pkg-meta-summary,
.pkg-meta-container .pkg-meta-features,
.pkg-meta-container .pkg-meta-docs {
    display: none !important;
}

.pkg-meta-specbar {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 0;
}

.pkg-meta-specbar-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--section-label-size);
    letter-spacing: var(--section-label-spacing);
    color: var(--brand-red-bright);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    padding-left: 0.05rem;
}

.pkg-meta-specbar-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    background: var(--surface-2);
    overflow: hidden;
}

.pkg-meta-specbar-cell {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--border-1);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    position: relative;
    transition: background 0.18s;
}

.pkg-meta-specbar-cell:hover {
    background: var(--surface-3);
}

.pkg-meta-specbar-cell:last-child { border-right: 0; }

.pkg-meta-specbar-label {
    font-family: var(--font-body);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pkg-meta-specbar-value {
    font-family: var(--font-display);
    font-size: var(--t-base);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--brand-white);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .pkg-meta-specbar-cell {
        border-right: 0;
        border-bottom: 1px solid var(--border-1);
    }
    .pkg-meta-specbar-cell:last-child { border-bottom: 0; }
}

.pkg-meta-container .pkg-meta-section {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 1.75rem 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.pkg-meta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-2);
}

.pkg-meta-section-marker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

/* Chapter bar before the mono label (v8 .panel-ch) */
.pkg-meta-section-marker::before {
    content: '';
    width: 42px;
    height: 1px;
    background: var(--brand-red);
    flex-shrink: 0;
}

/* Section numerals retired by the redesign — markup still emits them (WS5 removes) */
.pkg-meta-section-num {
    display: none;
}

.pkg-meta-section-mono {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.26em;
    color: var(--brand-red-bright);
    text-transform: uppercase;
}

.pkg-meta-container .pkg-meta-section-h2 {
    margin: 0 0 1.5rem 0;
    font-family: var(--font-display);
    font-size: var(--t-2xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 0.92;
    padding-left: 0;
}

.pkg-meta-container .pkg-meta-section-h2 i { display: none; }

.pkg-meta-container .pkg-meta-section-head { display: none; }

.pkg-meta-container .pkg-meta-compat-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding-left: 0;
}

.pkg-meta-container .pkg-meta-compat-group {
    padding: 1rem 1.25rem;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    transition: border-color 0.2s, background 0.2s;
}

.pkg-meta-container .pkg-meta-compat-group:hover {
    border-color: var(--border-3);
    background: var(--surface-3);
}

.pkg-meta-container .pkg-meta-compat-group-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pkg-meta-container .rc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pkg-meta-container .rc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: none;
    border: 1px solid var(--border-2);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    transition: border-color 0.15s, background 0.15s;
}

.pkg-meta-container .rc-chip:hover {
    border-color: var(--border-3);
    background: none;
}

.pkg-meta-container .rc-chip i {
    font-size: var(--t-xs);
    color: var(--brand-red-bright);
}

.pkg-meta-container .rc-chip--bridge {
    border-color: var(--border-2);
    background: none;
    color: var(--brand-red-bright);
}

.pkg-meta-container .pkg-meta-deps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    padding-left: 0;
}

.pkg-meta-container .pkg-meta-deps-card {
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 1.4rem 1.6rem;
    position: relative;
}

/* REQUIRED vs OPTIONAL — signalled by mono label color, not stripes (M2) */
.pkg-meta-container .pkg-meta-deps-card-head {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pkg-meta-container .pkg-meta-deps-card--required .pkg-meta-deps-card-head { color: var(--brand-red-bright); }
.pkg-meta-container .pkg-meta-deps-card-head i { color: inherit; font-size: var(--t-xs); }

.pkg-meta-container .pkg-meta-deps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pkg-meta-container .pkg-meta-deps-list li {
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    color: var(--text-primary);
    padding: 0.35rem 0 0.35rem 1.1rem;
    position: relative;
    line-height: 1.55;
    border-bottom: 1px dashed var(--border);
}

.pkg-meta-container .pkg-meta-deps-list li:last-child { border-bottom: 0; }

.pkg-meta-container .pkg-meta-deps-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--brand-red-bright);
    font-weight: 700;
}

.pkg-meta-container .pkg-meta-table-wrap,
.pkg-meta-container .pkg-meta-deflist,
.pkg-meta-container .pkg-meta-keybinds {
    padding-left: 0;
}

.pkg-meta-container .pkg-meta-table {
    border: 1px solid var(--border-2);
    background: rgba(20, 20, 23, 0.55);
    border-radius: var(--r-md);
    overflow: hidden;
}

.pkg-meta-container .pkg-meta-table thead tr {
    background: var(--surface-2);
}

.pkg-meta-container .pkg-meta-table th {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--brand-red-bright);
    text-transform: uppercase;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-2);
}

.pkg-meta-container .pkg-meta-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--t-sm);
    color: var(--text-primary);
}

.pkg-meta-container .pkg-meta-code {
    font-family: var(--font-mono);
    background: var(--surface-2);
    color: var(--text-primary);
    padding: 0.15rem 0.45rem;
    border-radius: 0;
    border: 1px solid var(--border-1);
    font-size: var(--t-xs);
    font-weight: 600;
}

.pkg-meta-container .pkg-meta-faq {
    padding-left: 0;
    border: 1px solid var(--border-1);
    border-radius: 0;
    overflow: hidden;
}

.pkg-meta-container .pkg-meta-faq-item {
    border-bottom: 1px solid var(--border);
    transition: background 0.18s;
}

.pkg-meta-container .pkg-meta-faq-item:hover { background: var(--surface-1); }
.pkg-meta-container .pkg-meta-faq-item.active { background: var(--surface-1); }

.pkg-meta-container .pkg-meta-faq-btn {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--t-base);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
}

.pkg-meta-container .pkg-meta-faq-btn:hover { color: var(--white); }

.pkg-meta-container .pkg-meta-faq-chevron {
    color: var(--text-muted);
    font-size: var(--t-sm);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.pkg-meta-container .pkg-meta-faq-item.active .pkg-meta-faq-chevron {
    transform: rotate(180deg);
}

.pkg-meta-container .pkg-meta-faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-body);
    font-size: var(--t-base);
    line-height: 1.65;
}

.pkg-meta-container .pkg-meta-faq-answer p { margin: 0; }

@media (max-width: 480px) {
    .pkg-meta-container {
        margin: 3rem auto 4rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM REDESIGN LAYER — 2026-05-24
   Design goal: stop reading as "Tebex template with custom colors."
   Start reading as a custom-built premium FiveM marketplace.

   Approach: append + override. Nothing above is deleted. This layer wins via
   specificity or explicit override where needed.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 0. EXTENDED TOKEN SYSTEM — moved to the canonical :root at the top of this file. ── */

/* ── 1. GLOBAL BODY / SCROLLBAR upgrade ──────────────────────────────────── */

body {
    background-color: var(--bg);
}

::-webkit-scrollbar-track {
    background: var(--surface-1);
}

/* ── 2. SECTION LABEL PATTERN — replaces "01 // SECTION" engineering vibe ── */
/*
   Usage: <span class="rc-section-eyebrow">Label</span>
          <h2 class="rc-section-title">The Heading</h2>
*/

.rc-section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--section-label-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--section-label-spacing);
    color: var(--brand-red-bright);
    margin-bottom: 0.35rem;
}

.rc-section-title-lg {
    font-family: var(--font-display);
    font-size: var(--t-2xl);
    font-weight: 800;
    color: var(--brand-white);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

/* ── 3. PACKAGE PAGE OVERHAUL ─────────────────────────────────────────────── */

/* 3a. Hero band — immersive backdrop, no hard card edges */

.pkg {
    background: var(--bg);
    padding-bottom: 6rem;
}

.pkg-bg::after {
    background: linear-gradient(180deg,
        rgba(11,10,13,0.2) 0%,
        rgba(11,10,13,0.55) 38%,
        rgba(11,10,13,0.88) 72%,
        var(--bg) 100%);
}

/* Breadcrumb */
.pkg-path {
    font-size: var(--t-xs);
    letter-spacing: 0.01em;
    padding: 0.6rem 2rem;
    opacity: 0.72;
}

/* Hero layout — 2-col, media left, buy panel sticky right */
.pkg-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

/* Media screen — square, hairline frame */
.pkg-screen-inner {
    aspect-ratio: 16/9;
    border-radius: 0;
    border: 1px solid var(--border-2);
    background: var(--surface-1);
    overflow: hidden;
}

/* Thumb column — cleaner */
.pkg-thumb {
    border-radius: 0;
    border: 1px solid var(--border-1);
    opacity: 0.42;
    transition: opacity 0.15s, border-color 0.15s;
}

.pkg-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

.pkg-thumb:hover { opacity: 0.75; }

/* ── Package title row (full-width, above the layout) ── */
.pkg-head {
    margin: 0.75rem 0 1.75rem;
    padding: 1.5rem 1.75rem 1.75rem;
    border: 1px solid var(--border-2);
    background: var(--surface-1);
}

.pkg-head-badges {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.pkg-head-badges .pkg-badge { margin-bottom: 0; }

/* Meta badges — square mono blocks, no tinted pills */
.pkg-badge--meta {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 0.25rem 0.55rem;
    border-radius: 0;
    border: 1px solid var(--border-2);
    color: var(--text-secondary);
    background: none;
}
.pkg-badge--meta.pkg-badge--updated,
.pkg-badge--meta.pkg-badge--new { color: var(--text-primary); border-color: var(--border-3); }

.pkg-head .pkg-h1 {
    font-size: var(--t-4xl);
    line-height: 0.9;
    margin: 0 0 0.6rem;
}

.pkg-head .pkg-summary {
    font-size: var(--t-md);
    color: var(--text-body);
    max-width: 58ch;
    margin: 0 0 0.9rem;
}

.pkg-head-chips { display: flex; align-items: center; }

/* ── Buy box assurances — mono-caps micro-label grid (M6) ── */
.pkg-assure {
    margin-top: 0.85rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--border-1);
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
}

.pkg-assure li {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Spec strip — one hairline box under the media, internal dividers ── */
.pkg-specstrip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border: 1px solid var(--border-2);
    background: var(--surface-1);
}

.pkg-specstrip-cell {
    padding: 0.8rem 1.1rem;
    border-left: 1px solid var(--border-1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.pkg-specstrip-cell:first-child { border-left: none; }

.pkg-specstrip-label {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red-bright);
}

.pkg-specstrip-value {
    font-size: var(--t-base);
    font-weight: 700;
    color: var(--text-primary);
}

.pkg-buy-docs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-2);
    transition: color 0.15s, border-color 0.15s;
}

.pkg-buy-docs:hover { color: var(--text-primary); border-color: var(--brand-red); }

/* ── Sticky section nav — mono index tabs, red underline (no pill) ── */
.pkg-sectionnav {
    position: sticky;
    top: 56px;
    z-index: 20;
    display: flex;
    gap: 1.4rem;
    max-width: var(--container);
    margin: 2.25rem auto 0;
    padding: 0 2rem;
    background: rgba(11,10,13,0.94);
    border-bottom: 1px solid var(--border-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.pkg-sectionnav::-webkit-scrollbar { display: none; }

.pkg-sectionnav a {
    padding: 0.7rem 0.1rem;
    font-family: var(--font-body);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.pkg-sectionnav a:hover { color: var(--text-primary); }

.pkg-sectionnav a.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-red);
}

/* ── Features — one shared box, hairline internal grid, mono index (v8 .specs) ── */
.pkg-feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border-2);
}

.pkg-feat-card {
    padding: 1.5rem 1.4rem;
    border-left: 1px solid var(--border-1);
    border-top: 1px solid var(--border-1);
}

.pkg-feat-card:nth-child(-n+2) { border-top: none; }
.pkg-feat-card:nth-child(odd)  { border-left: none; }

.pkg-feat-num {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--brand-red);
    margin-bottom: 0.7rem;
}

.pkg-feat-title {
    font-family: var(--font-display);
    font-size: var(--t-lg);
    font-weight: 700;
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.pkg-feat-text {
    font-size: var(--t-base);
    line-height: 1.6;
    color: var(--text-body);
}

.pkg-feat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}

.pkg-feat-list li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    font-size: var(--t-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}

.pkg-feat-list li i { color: var(--color-success); font-size: var(--t-xs); flex-shrink: 0; }

@media (max-width: 768px) {
    .pkg-feat-grid, .pkg-feat-list { grid-template-columns: 1fr; }
    .pkg-feat-card { border-left: none; }
    .pkg-feat-card:nth-child(2) { border-top: 1px solid var(--border-1); }
    .pkg-thumb { width: 104px; height: 60px; }
}

/* 3b. Buy panel — sticky, premium composition */

.pkg-info {
    position: sticky;
    top: 1.25rem;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 1.5rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge — solid ink-on-color block (v8 hero-tag register) */
.pkg-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.32rem 0.7rem;
    border-radius: 0;
    margin-bottom: 0;
}

.pkg-badge--free    { background: var(--color-success); color: var(--ink); }
.pkg-badge--premium { background: var(--brand-red); color: var(--ink); }
.pkg-badge--bundle  { background: var(--brand-white); color: var(--ink); border-radius: 0; }

/* Package title */
.pkg-h1 {
    font-size: var(--t-xl);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--brand-white);
}

/* Summary paragraph */
.pkg-summary {
    font-size: var(--t-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 0.65rem;
}

/* Tags row */
.pkg-h1-tags {
    margin-bottom: 1rem;
    gap: 0.3rem;
}

/* Pricing row — mono, data-like */
.pkg-pricing {
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.pkg-price {
    font-family: var(--font-mono);
    font-size: var(--t-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-white);
}

.pkg-price--free { color: var(--color-success); }

.pkg-oldprice {
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.pkg-off {
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    font-weight: 700;
    background: var(--brand-red);
    color: var(--ink);
    padding: 0.15rem 0.4rem;
    border-radius: 0;
    border: none;
}

/* CTA — square, mono, red block with dark ink text */
.pkg-buybtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: var(--t-sm);
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--brand-red);
    color: var(--ink);
    border: 1px solid var(--brand-red);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    margin-bottom: 0.5rem;
}

.pkg-buybtn:hover {
    background: var(--brand-red-bright);
    border-color: var(--brand-red-bright);
    color: var(--ink);
}

.pkg-buybtn--rm {
    background: none;
    color: var(--color-danger);
    border: 1px solid rgba(var(--color-danger-rgb),0.15);
    box-shadow: none;
}

.pkg-buybtn--rm:hover {
    background: rgba(var(--color-danger-rgb),0.06);
    transform: none;
    box-shadow: none;
}

/* Trust microcopy retired — see .pkg-guarantees. */

/* 3c. Sticky mobile purchase bar — hairline frame, brighter surface, no halo */

.pkg-sticky {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0;
    padding: 0.6rem 1.25rem;
    /* position */
    right: 0;
    left: 0;
    bottom: 0;
}

.pkg-sticky-p {
    font-family: var(--font-mono);
    font-size: var(--t-lg);
    font-weight: 900;
    color: var(--brand-white);
    letter-spacing: -0.02em;
}

.pkg-sticky-b {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    font-size: var(--t-xs);
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--brand-red);
    color: var(--ink);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.pkg-sticky-b:hover {
    background: var(--brand-red-bright);
    color: var(--ink);
}

/* Desktop sticky: float bottom-right instead of full-width bar */
@media (min-width: 769px) {
    .pkg-sticky {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        width: auto;
        border: 1px solid var(--border-2);
        border-radius: 0;
        padding: 0.7rem 1.1rem;
        gap: 1rem;
    }
}

/* 3d. Description area — container width, prose capped at a readable measure (M7) */

.pkg-desc {
    font-size: var(--t-base);
    line-height: 1.8;
    color: var(--text-body);
}

.pkg-desc p {
    font-size: var(--t-base);
    line-height: 1.8;
    color: var(--text-body);
}

/* Prose measure — tables, galleries and video embeds stay full-width */
.pkg-desc p,
.pkg-desc-lead,
.pkg-desc-h2,
.pkg-desc-h3,
.pkg-desc-list,
.pkg-desc-note,
.df-feats,
.df-reqs {
    max-width: 72ch;
}

/* 3e. pkg-desc-table — feature comparison grid aesthetic */

/*
   Target: <table class="pkg-desc-table">
   We keep the <table><tr><td> markup intact (buyers write this in Tebex).
   CSS morphs it into a premium card-grid appearance:
   - Hide the thead visually (accessible via position:absolute trick).
   - tbody rows become elevated cards with left-column label treatment.
*/

.pkg-desc-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-2);
    border-radius: 0;
    background: transparent;
}

/* Hide table header visually — keep accessible */
.pkg-desc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.pkg-desc-table tbody tr {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) 2.6fr;
    border-top: 1px solid var(--border-1);
    transition: background 0.15s;
}

.pkg-desc-table tbody tr:first-child {
    border-top: none;
}

.pkg-desc-table tbody tr:hover {
    background: var(--surface-1);
}

/* Left cell — label */
.pkg-desc-table tbody td:first-child {
    font-family: var(--font-mono);
    font-size: var(--t-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-1);
}

/* Right cell — value */
.pkg-desc-table tbody td:last-child {
    font-size: var(--t-base);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    line-height: 1.55;
}

/* Override old 768px display:block — restore grid layout on tablet too */
@media (max-width: 768px) {
    .pkg-desc-table,
    .pkg-desc-table tbody {
        display: block;
        width: 100%;
    }

    .pkg-desc-table thead {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
    }

    .pkg-desc-table tbody tr {
        display: grid;
        grid-template-columns: minmax(120px, 1fr) 2fr;
        border-top: 1px solid var(--border-1);
    }

    .pkg-desc-table tbody tr:first-child {
        border-top: none;
    }

    .pkg-desc-table tbody td {
        display: flex;
        align-items: center;
    }
}

/* Mobile: stack vertically */
@media (max-width: 580px) {
    .pkg-desc-table tbody tr {
        grid-template-columns: 1fr;
    }
    .pkg-desc-table tbody td:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-1);
        padding: 0.55rem 0.9rem;
    }
    .pkg-desc-table tbody td:last-child {
        padding: 0.6rem 0.9rem 0.85rem;
    }
}

/* 3f/3g. Spec bar + metadata section styling — folded into the PKG-META
   spec-sheet section above (WS2 de-layering). */
/* ── 4. CATEGORY PAGE — folded into the CATEGORY PAGE section above (WS2 de-layering). ── */

/* ── 5. INDEX PAGE ────────────────────────────────────────────────────────── */

/* Section heads use the shared grammar: .rc-section-eyebrow + .rc-section-title-lg
   (C1) — the old kicker-sized .idx-categories-title / .idx-faq-title overrides
   and the dead .hero-trust rules were removed in the hallmark de-layer pass. */

/* ── 6. PACKAGE PAGE RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pkg-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pkg-info {
        position: relative;
        top: auto;
        border-radius: var(--r-md);
    }

    .pkg-buybtn {
        width: auto;
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .pkg-upper { padding: 0; }
    .pkg-lower { padding: 0 1.25rem; max-width: none; }

    .pkg-info {
        margin: 0 1.25rem;
        padding: 1.25rem;
    }

    .pkg-screen-inner { border-radius: 0; border-left: none; border-right: none; }

    .pkg-meta-specbar-row { border-radius: 0; }

    .pkg-meta-container .pkg-meta-section-h2,
    .pkg-meta-container .pkg-meta-compat-groups,
    .pkg-meta-container .pkg-meta-deps-row,
    .pkg-meta-container .pkg-meta-table-wrap,
    .pkg-meta-container .pkg-meta-deflist,
    .pkg-meta-container .pkg-meta-keybinds,
    .pkg-meta-container .pkg-meta-faq {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .pkg-h1 { font-size: var(--t-xl); }
    .pkg-price { font-size: var(--t-2xl); }
    .pkg-info { margin: 0 1rem; padding: 1rem; }
    .pkg-lower { padding: 0 1rem; }
}

/* ── 7. HEADER / FOOTER SURFACE UPGRADE — folded into the base header/footer
   sections above (hallmark de-layer pass). ── */

/* ── 8. ACCESSIBILITY / FOCUS RING ───────────────────────────────────────── */

.pkg-buybtn:focus-visible,
.pkg-sticky-b:focus-visible,
.cat-card:focus-visible,
.idx-faq-btn:focus-visible,
.pkg-meta-faq-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── 9. MOBILE INDEX — dead .hero-trust rules removed (hallmark de-layer). ── */

/* ── 10. DESCRIPTION LEAD TEXT ───────────────────────────────────────────── */

.pkg-desc-lead {
    font-size: var(--t-md) !important;
    color: var(--text-primary) !important;
    line-height: 1.7;
}

.pkg-desc-h2 {
    font-size: var(--t-lg);
}

.pkg-desc-h3 {
    font-size: var(--t-base);
}

/* ── END PREMIUM REDESIGN LAYER ──────────────────────────────────────────── */
