@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Geist:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --brand-red: #E52D2D;
    --brand-red-hover: #CC2424;
    --brand-red-rgb: 229, 45, 45;
    --brand-white: #EFEFF0;
    --brand-black: #0C0B0E;
    --brand-gray: #161418;
    --brand-gray-light: #221F26;
    --accent-secondary: #3DD8D8;
    --accent-secondary-rgb: 61, 216, 216;
    --accent-terminal: #39FF14;
    --text-primary: rgba(239, 239, 240, 0.95);
    --text-secondary: rgba(239, 239, 240, 0.65);
    --text-muted: rgba(239, 239, 240, 0.38);
    --border: rgba(239, 239, 240, 0.06);
    --surface: rgba(255, 255, 255, 0.025);
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --color-success: #22c55e;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Geist', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --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;
}

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

body {
    background-color: var(--brand-black);
    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(--brand-gray);
}

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

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

.rc-container {
    max-width: 1400px;
    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;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
}

.rc-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.4);
    transition: width 0.4s ease;
}

.rc-btn:hover::before {
    width: 100%;
}

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

.rc-btn-primary:hover {
    background: var(--brand-red-hover);
    box-shadow: 0 4px 24px rgba(var(--brand-red-rgb), 0.35);
}

.rc-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(239, 239, 240, 0.14);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.rc-btn-secondary:hover {
    color: var(--brand-white);
    border-color: rgba(var(--brand-red-rgb), 0.55);
    background: linear-gradient(180deg, rgba(var(--brand-red-rgb), 0.10), rgba(var(--brand-red-rgb), 0.03));
    transform: translateY(-1px);
}

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

.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: 0.9rem;
    margin-bottom: 1.5rem;
}

.rc-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.rc-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.rc-alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

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

.rc-tag-esx {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.rc-tag-qbcore {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.rc-tag-standalone {
    background: rgba(168, 85, 247, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

@keyframes rc-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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: 0.58rem; 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 rgba(239,239,240,0.04); }

.df-hero { margin: 0 0 1.75rem; border-radius: 2px; 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: 2px; 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: 2px; 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: 0.84rem; color: rgba(239,239,240,0.7); 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: 0.84rem; color: rgba(239,239,240,0.7); line-height: 1.5; }
.df-install li::marker { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }

.df-reqs { font-family: var(--font-mono); font-size: 0.76rem; }
.df-req { color: rgba(239,239,240,0.6); 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 rgba(239,239,240,0.04); overflow: hidden; border-left: 2px solid transparent; transition: border-left-color 0.15s; }
.rc-faq-item:first-child { border-top: none; }
.rc-faq-item.active { border-left-color: var(--brand-red); }
.rc-faq-question { padding: 0.5rem 0.4rem; font-size: 0.84rem; 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: 0.42rem; flex-shrink: 0; transition: transform 0.2s; }
.rc-faq-item.active .rc-faq-icon { transform: rotate(180deg); color: var(--brand-red); }
.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: 0.82rem; 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 rgba(239, 239, 240, 0.06);
    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-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.rc-partners-label::before {
    content: '//';
    color: var(--brand-red);
    margin-right: 0.4rem;
}

.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: var(--radius-md);
    transition: all 0.25s ease;
}

.rc-partner-card:hover {
    border-color: rgba(var(--brand-red-rgb), 0.2);
    background: rgba(var(--brand-red-rgb), 0.02);
    transform: translateY(-2px);
}

.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: 0.85rem;
    font-weight: 700;
    color: var(--brand-white);
    font-family: var(--font-display);
}

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

.rc-partner-card-link {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--brand-red);
    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: 0.5rem;
}

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

/* Legacy classes (keep for compat) */
.rc-partners-logos { display: none; }
.rc-partner-link { display: none; }

.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: linear-gradient(90deg, transparent, var(--border), transparent);
}

.rc-partner-swiper-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.rc-partner-swiper-label {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(239, 239, 240, 0.15);
}

.rc-partner-row {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(239, 239, 240, 0.04);
}

.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 rgba(239, 239, 240, 0.04);
    border-radius: 3px;
}

.rc-partner-logo-link {
    display: block;
    transition: all 0.2s ease;
}

.rc-partner-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 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: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border: 1px solid rgba(239, 239, 240, 0.06);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.2s ease;
}

.rc-partner-visit:hover {
    color: var(--brand-white);
    border-color: rgba(var(--brand-red-rgb), 0.3);
    background: rgba(var(--brand-red-rgb), 0.05);
}

.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: 3px;
    color: var(--text-muted);
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-swiper-btn-prev:hover,
.rc-swiper-btn-next:hover {
    background: rgba(var(--brand-red-rgb), 0.15);
    border-color: rgba(var(--brand-red-rgb), 0.3);
    color: var(--brand-red);
}

.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: all 0.3s ease;
    height: auto;
}

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

.rc-pkg-card {
    display: block;
    border: 1px solid rgba(239, 239, 240, 0.05);
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.25s ease;
    height: 100%;
}

.rc-pkg-card:hover {
    border-color: rgba(var(--brand-red-rgb), 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.rc-pkg-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--brand-gray);
}

.rc-pkg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9) saturate(0.95);
}

.rc-pkg-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(239, 239, 240, 0.1);
    font-size: 1.2rem;
}

.rc-pkg-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.7rem 0.65rem;
}

.rc-pkg-name {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rc-pkg-desc {
    font-size: 0.66rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.85em;
}

.rc-pkg-price {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-white);
    margin-top: 0.15rem;
}

.rc-pkg-card:hover .rc-pkg-img img {
    filter: brightness(1) saturate(1);
}

.rc-pkg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 11, 14, 0.6), transparent 50%);
    pointer-events: none;
}

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

.rc-announce-bar {
    background: var(--brand-red);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    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::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.06) 2px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
}

.rc-announce-bar a {
    color: #fff;
    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: var(--radius-sm);
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rc-announce-bar-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem;
    transition: color 0.15s;
}

.rc-announce-bar-close:hover {
    color: #fff;
}

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

.rc-header {
    background: rgba(12, 11, 14, 0.94);
    border-bottom: 1px solid rgba(var(--brand-red-rgb), 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rc-header-inner {
    max-width: 1200px;
    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: 1.3rem;
    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: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

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

.rc-header-chevron {
    font-size: 0.5rem;
    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(--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), 0 0 0 1px rgba(0,0,0,0.3);
    padding: 0.4rem;
    z-index: 50;
}

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

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

.rc-header-dropdown a:hover {
    background: rgba(var(--brand-red-rgb), 0.1);
    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: #ef4444 !important;
}

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

.rc-header-icon-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    padding: 0.4rem 0.6rem;
    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: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    font-family: var(--font-display);
}

.rc-user-name {
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

.rc-header-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 239, 240, 0.06);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.rc-header-cart-btn:hover {
    background: rgba(239, 239, 240, 0.1);
    color: var(--brand-white);
    border-color: rgba(239, 239, 240, 0.1);
}

.rc-header-cart-count {
    background: var(--brand-red);
    color: #fff;
    border-radius: var(--radius-sm);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    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-display);
    font-size: 0.9rem;
}

.rc-header-cart-badge {
    font-size: 0.7rem;
    background: var(--brand-red);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    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 rgba(239, 239, 240, 0.05);
}

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

.rc-header-cart-item-img {
    width: 36px;
    height: 28px;
    border-radius: 3px;
    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: 0.8rem;
    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: 0.75rem;
    color: var(--brand-red);
    font-weight: 600;
}

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

.rc-header-cart-item-remove:hover {
    color: #ef4444;
    opacity: 1;
}

.rc-header-cart-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(239, 239, 240, 0.06);
}

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

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

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

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

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

.rc-header-cart-empty i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
    display: block;
}

.rc-header-cart-empty p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

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

.rc-mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(239, 239, 240, 0.06);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.rc-mobile-toggle:hover {
    background: rgba(239, 239, 240, 0.1);
    color: var(--brand-white);
}

.rc-mobile-nav {
    border-top: 1px solid rgba(239, 239, 240, 0.06);
    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 rgba(239, 239, 240, 0.08);
    border-radius: var(--radius-sm);
    color: var(--brand-white);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.rc-mobile-nav-input:focus {
    outline: none;
    border-color: rgba(var(--brand-red-rgb), 0.4);
}

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

.rc-mobile-nav-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
}

.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-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    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: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

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

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

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

.rc-mobile-nav-divider {
    border-top: 1px solid rgba(239, 239, 240, 0.06);
    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 rgba(239, 239, 240, 0.06);
    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 rgba(239, 239, 240, 0.06);
}

.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 rgba(239, 239, 240, 0.06);
}

.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(--brand-gray);
    border-top: 1px solid rgba(var(--brand-red-rgb), 0.06);
    padding: 2.5rem 2rem 2rem;
    margin-top: 4rem;
}

.rc-footer-inner {
    max-width: 900px;
    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: 0.58rem;
    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: 0.8rem;
    transition: color 0.15s;
}

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

.rc-footer-discord {
    color: #7289da !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rc-footer-discord:hover {
    color: #fff !important;
}

.rc-footer-copy {
    text-align: left;
    font-size: 0.72rem;
    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);
    transition: color 0.15s;
}

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

@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 ===== */

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

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes terminalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes borderSweep {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes glitchFlicker {
    0%, 100% { opacity: 1; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-1px, 1px); }
    40% { opacity: 1; transform: translate(1px, -1px); }
    60% { opacity: 0.9; transform: translate(-1px, 0); }
    80% { opacity: 1; transform: translate(0); }
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--brand-black);
}

/* ── Canvas layers ── */
.hero-particles { position: absolute; inset: 0; z-index: 0; }
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ── Parallax glow ── */
.hero-glow-track {
    position: fixed; width: 600px; height: 600px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.08) 0%, transparent 65%);
    transition: left 1s ease-out, top 1s ease-out; z-index: 1;
}

/* ── Gradient top strip ── */
.hero-grad-strip {
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, var(--brand-red), #ff5722, var(--brand-red));
    background-size: 200% 100%; animation: heroGradShift 3s ease-in-out infinite;
}
@keyframes heroGradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ── Click burst layer ── */
.hero-burst-layer { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.hero-burst-ring {
    position: absolute; width: 80px; height: 80px; border-radius: 50%;
    border: 2px solid var(--brand-red); animation: heroBurst 0.7s ease-out forwards;
}
.hero-burst-dot {
    position: absolute; border-radius: 50%;
    animation: heroBurstDot 0.7s ease-out forwards;
}
@keyframes heroBurst { 0% { transform: scale(0); opacity: 0.7; } 100% { transform: scale(1); opacity: 0; } }
@keyframes heroBurstDot {
    0% { opacity: 0.9; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--ex), var(--ey)) scale(0); }
}

/* ── Centered content ── */
.hero-center {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    padding: 0 3.5rem; width: 100%; max-width: 1200px;
}

/* ── Eyebrow ── */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.9rem; animation: heroSlideUp 0.5s ease-out;
}
.hero-eyebrow-bar { display: block; width: 24px; height: 2px; background: var(--brand-red); border-radius: 1px; }
.hero-eyebrow-text {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted);
}

/* ── Title ── */
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 3.5rem);
    font-weight: 700; line-height: 1.08; margin-bottom: 0.8rem; text-align: center;
    color: var(--brand-white); animation: heroSlideUp 0.5s ease-out;
}
.hero-title-accent {
    background: linear-gradient(135deg, var(--brand-red), #ff7043);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--brand-red);
}

.hero-sub {
    font-size: 0.95rem; color: var(--text-muted); max-width: 460px; text-align: center;
    margin-bottom: 2rem; line-height: 1.6; animation: heroSlideUp 0.5s ease-out;
}

/* ── Product cards ── */
.hero-products {
    display: flex; gap: 20px; justify-content: center;
    margin-bottom: 1.75rem; animation: heroSlideUp 0.6s ease-out 0.2s both;
}

.hero-pcard {
    width: 300px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    padding: 16px; cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    animation: heroSlideUp 0.6s ease-out both;
}
.hero-pcard:nth-child(2) { animation-delay: 0.1s; }
.hero-pcard:nth-child(3) { animation-delay: 0.2s; }
.hero-pcard:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(var(--brand-red-rgb), 0.2);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 50px rgba(var(--brand-red-rgb), 0.07);
}

.hero-pcard-img {
    height: 130px; border-radius: 10px; overflow: hidden; position: relative;
    background: linear-gradient(135deg, rgba(var(--brand-red-rgb), 0.08), rgba(255,255,255,0.01));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; transition: background 0.35s;
}
.hero-pcard:hover .hero-pcard-img {
    background: linear-gradient(135deg, rgba(var(--brand-red-rgb), 0.16), rgba(255,255,255,0.01));
}
.hero-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.hero-pcard-imgtitle {
    font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.06em; opacity: 0.5; text-transform: uppercase;
}

.hero-pcard-scanline {
    position: absolute; width: 100%; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-red-rgb), 0.45), transparent);
    opacity: 0;
}
.hero-pcard:hover .hero-pcard-scanline { opacity: 1; animation: heroScanline 1.5s linear infinite; }
@keyframes heroScanline { 0% { top: -10%; } 100% { top: 200%; } }

.hero-pcard-body { padding-top: 2px; }
.hero-pcard-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--brand-white); margin-bottom: 0.35rem; }
.hero-pcard-row { display: flex; justify-content: space-between; align-items: center; }
.hero-pcard-price { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--brand-red); }
.hero-pcard-arrow {
    width: 32px; height: 32px; border-radius: 7px;
    background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: var(--brand-white); transition: background 0.3s;
}
.hero-pcard:hover .hero-pcard-arrow { background: var(--brand-red); }

/* Skeleton */
.hero-pcard--skeleton .hero-pcard-img,
.hero-pcard--skeleton .hero-pcard-name {
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 100%);
    background-size: 200% 100%; animation: heroShimmer 1.4s linear infinite; color: transparent;
}
.hero-pcard--skeleton .hero-pcard-price { color: rgba(239,239,240,0.15); }
@keyframes heroShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── CTA ── */
.hero-cta { display: flex; gap: 14px; animation: heroSlideUp 0.8s ease-out 0.3s both; }
.hero-btn-primary {
    background: var(--brand-red); border: none; color: #fff;
    padding: 0.9rem 1.9rem; border-radius: 10px; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; letter-spacing: 0.04em;
    font-family: var(--font-body); display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 8px 28px rgba(var(--brand-red-rgb), 0.4); }
.hero-btn-secondary {
    background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #fff;
    padding: 0.9rem 1.6rem; border-radius: 10px; font-size: 0.88rem; font-weight: 500;
    cursor: pointer; transition: border-color 0.2s; font-family: var(--font-body);
    display: inline-flex; align-items: center;
}
.hero-btn-secondary:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

/* ── Trust bar ── */
.hero-trust {
    display: flex; justify-content: center; gap: 2.5rem; padding: 1.1rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em;
}
.hero-trust-item i { font-size: 0.85rem; color: var(--brand-red); }

/* ── 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: linear-gradient(135deg, rgba(var(--brand-red-rgb), 0.1), rgba(255,255,255,0.02));
    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: 14px; 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: 3px; }
.pkg-skeleton-thumbs { display: flex; gap: 3px; }
.pkg-skeleton-info { display: flex; flex-direction: column; }

.skel-bar, .skel-block {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: skelShimmer 1.4s linear infinite;
    border-radius: 4px;
}
.skel-bar { height: 14px; }
.skel-block { min-height: 40px; }
@keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@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: 1080px) {
    .hero-products { flex-wrap: wrap; }
    .hero-pcard { width: calc(50% - 10px); }
    .hero-title { font-size: clamp(2.2rem, 4.5vw, 3rem); }
}
@media (max-width: 720px) {
    .hero-products { flex-direction: column; align-items: center; }
    .hero-pcard { width: 100%; max-width: 340px; }
    .hero-title { font-size: 2.2rem; }
    .hero-center { padding: 0 1.5rem; }
    .hero-trust { flex-wrap: wrap; gap: 0.75rem 2rem; padding: 1rem 1.5rem; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 340px; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
}

/* ─── Legacy hero classes (unused) ─── */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(var(--brand-red-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(var(--brand-red-rgb), 0.04) 0%, transparent 40%);
}

/* Noise texture overlay via SVG data URI */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    opacity: 0.5;
    pointer-events: none;
}

/* Scanline CRT effect */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(var(--brand-red-rgb), 0.015) 0px, rgba(var(--brand-red-rgb), 0.015) 1px, transparent 1px, transparent 100px),
        repeating-linear-gradient(90deg, rgba(var(--brand-red-rgb), 0.015) 0px, rgba(var(--brand-red-rgb), 0.015) 1px, transparent 1px, transparent 100px);
    pointer-events: none;
}

.hero-grid-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--brand-black) 0%, transparent 20%, transparent 80%, var(--brand-black) 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
    padding: 5rem 0 3rem;
}

/* -- Left column: copy -- */

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: heroFadeUp 0.6s ease both;
    padding-bottom: 0;
}

.hero-section-label {
    display: none;
}

.hero-frameworks {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hero-fw {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(var(--brand-red-rgb), 0.3);
    letter-spacing: 0.03em;
}

.hero-fw i {
    font-size: 0.55rem;
    color: var(--brand-red);
    opacity: 0.6;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    animation: heroFadeUp 0.6s ease both;
}

.hero-kicker-dash {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--brand-red);
    border-radius: 1px;
}

.hero-kicker-text {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--brand-red);
}

.hero-title {
    position: relative;
    font-size: clamp(2.6rem, 5vw, 3.9rem);
    font-weight: 800;
    line-height: 0.98;
    color: var(--brand-white);
    letter-spacing: -0.035em;
    animation: heroFadeUp 0.6s 0.1s ease both;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.hero-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.18em;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-red) 0%, rgba(var(--brand-red-rgb), 0.15) 100%);
    border-radius: 2px;
}

.hero-title-accent {
    display: block;
    font-weight: 900;
    letter-spacing: -0.045em;
    background: linear-gradient(100deg, #FF5A63 0%, var(--brand-red) 45%, #8a1118 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-red);
}

.hero-title-main { display: block; }

.hero-sub {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 460px;
    margin-top: 0.2rem;
    animation: heroFadeUp 0.6s 0.18s ease both;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    animation: heroFadeUp 0.6s 0.26s ease both;
}

.hero-proof {
    display: none;
}

/* -- Right column: showcase cards -- */

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes heroFloatBack {
    0%, 100% { transform: translateY(0) rotate(3deg) translate(20px, -20px); }
    50% { transform: translateY(-8px) rotate(3deg) translate(20px, -20px); }
}

.hero-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    animation: heroSlideIn 0.7s 0.2s ease both;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.hero-showcase-glow { display: none; }

.hero-showcase::after {
    display: none;
}

.hero-card-back {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
    animation: heroFloatBack 6s ease-in-out infinite;
    filter: brightness(0.5) saturate(0.3);
    max-width: 340px;
}

.hero-card-back .hero-card-body {
    display: none;
}

.hero-card-front {
    position: relative;
    z-index: 2;
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-card {
    position: relative;
    z-index: 1;
    background: rgba(22, 20, 24, 0.9);
    border: 1px solid rgba(var(--brand-red-rgb), 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    backdrop-filter: blur(8px);
    will-change: transform;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    width: 100%;
    max-width: 420px;
}

.hero-card:hover {
    border-color: rgba(var(--brand-red-rgb), 0.3);
    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(var(--brand-red-rgb), 0.06);
    transform: translateY(-4px);
}

.hero-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--brand-gray);
}

.hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: saturate(0.7) brightness(0.9);
}

.hero-card:hover .hero-card-img img {
    transform: scale(1.05);
    filter: saturate(1) brightness(1);
}

.hero-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(22, 20, 24, 0.5) 100%);
    pointer-events: none;
}

.hero-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(var(--brand-red-rgb), 0.15);
}

.hero-card-discount {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--brand-red);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

.hero-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(var(--brand-red-rgb), 0.08);
}

.hero-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-red);
    font-family: var(--font-mono);
    width: fit-content;
}

.hero-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-white);
    line-height: 1.2;
    font-family: var(--font-display);
}

.hero-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.hero-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-card-price {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-white);
}

.hero-card-price--free {
    color: var(--color-success);
}

.hero-card-price-old {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.hero-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
    transition: gap 0.2s;
}

.hero-card-link:hover {
    gap: 0.6rem;
}

.hero-card-link i {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.hero-card-link:hover i {
    transform: translateX(3px);
}

/* -- Hero Slider (Tebex headless) -- */

.hero-slider {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    animation: heroSlideIn 0.7s 0.2s ease both;
}

.hero-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding: 0 0.15rem;
}

.hero-slider-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-red);
}
.hero-slider-eyebrow i { font-size: 0.55rem; }

.hero-slider-nav {
    display: inline-flex;
    gap: 0.3rem;
}

.hero-swiper {
    position: relative;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    margin-left: auto;
    margin-right: 0;
    overflow: hidden;
    padding: 0 0 1.5rem;
    border-radius: 12px;
}

.hero-swiper .swiper-wrapper {
    box-sizing: content-box;
    align-items: stretch;
}

.hero-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    background: #121214;
}

.hero-slide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #131316;
    border: 1px solid rgba(239, 239, 240, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    height: 100%;
    color: inherit;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    isolation: isolate;
}

.hero-slide-card:hover {
    border-color: rgba(239, 239, 240, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.hero-slide-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--brand-gray);
}

.hero-slide-img img { object-fit: cover; }

.hero-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.3s ease;
    filter: brightness(0.92);
}

.hero-slide-card:hover .hero-slide-img img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.hero-slide-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(239, 239, 240, 0.1);
    font-size: 1.4rem;
}

.hero-slide-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.95rem 1.1rem 1.05rem;
}

.hero-slide-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-white);
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hero-slide-price {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-white);
    letter-spacing: -0.01em;
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-white);
    background: transparent;
    border: 1px solid rgba(239, 239, 240, 0.14);
    border-radius: 6px;
    transition: background 200ms ease, border-color 200ms ease;
}

.hero-slide-cta i { font-size: 0.6rem; }
.hero-slide-card:hover .hero-slide-cta {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.hero-slide-card--skeleton { pointer-events: none; }
.hero-slide-card--skeleton .hero-slide-img,
.hero-slide-card--skeleton .hero-slide-name {
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 100%);
    background-size: 200% 100%;
    animation: heroShimmer 1.4s linear infinite;
    color: transparent;
}
.hero-slide-card--skeleton .hero-slide-price { color: rgba(239,239,240,0.15); }
@keyframes heroShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hero-swiper-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(239, 239, 240, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-swiper-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.hero-swiper-btn.swiper-button-disabled { opacity: 0.3; pointer-events: none; }

.hero-swiper-pagination {
    position: absolute;
    bottom: 0.35rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    z-index: 2;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 16px;
    height: 2px;
    border-radius: 0;
    background: rgba(239, 239, 240, 0.18);
    opacity: 1;
    transition: background 0.2s, width 0.2s;
    cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--brand-red);
    width: 28px;
}

@media (max-width: 768px) {
}

/* -- Hero Microcopy -- */

.hero-microcopy {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: heroFadeUp 0.6s 0.34s ease both;
}

.hero-microcopy span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero-microcopy i {
    font-size: 0.55rem;
    color: var(--accent-secondary);
}

/* -- Large CTA variant -- */

.rc-btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.92rem;
}

/* -- Hero Stats Row -- */

.hero-stats {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(239, 239, 240, 0.05);
    border-bottom: 1px solid rgba(239, 239, 240, 0.05);
    background: rgba(255, 255, 255, 0.008);
}

.hero-stats-inner {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: 1rem 0;
    opacity: 0.68;
    transition: opacity 0.25s ease;
}

.hero-stats-inner:hover { opacity: 1; }

.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.hero-stat-icon {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.85;
}

.hero-stat-text {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-stat-divider { display: none; }

/* -- Terminal (hidden, replaced by microcopy) -- */

.hero-terminal { display: none; }
.hero-terminal-line { display: none; }
.hero-terminal-prompt { display: none; }
.hero-terminal-cursor { display: none; }
.hero-terminal-highlight { display: none; }

/* -- Marquee ticker -- */

.hero-ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid rgba(var(--brand-red-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--brand-red-rgb), 0.1);
    background: rgba(var(--brand-red-rgb), 0.03);
    padding: 0.6rem 0;
}

.hero-ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.hero-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.hero-ticker-item .ticker-dot {
    width: 4px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 1px;
    flex-shrink: 0;
}

.hero-ticker-item .ticker-accent {
    color: var(--brand-red);
}

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

.idx-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
}

.idx-categories-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.idx-categories-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
    margin-bottom: 0;
}

.idx-categories-title::before {
    content: '//';
    color: var(--brand-red);
    margin-right: 0.5rem;
}

.idx-categories-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--brand-red-rgb), 0.2), transparent);
}

.idx-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.idx-category-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    background: var(--brand-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.idx-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 100%, rgba(var(--brand-red-rgb), 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.idx-category-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(var(--brand-red-rgb), 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--brand-red-rgb), 0.05);
}

.idx-category-card:hover::before {
    opacity: 1;
}

.idx-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-red-rgb), 0.08);
    border: 1px solid rgba(var(--brand-red-rgb), 0.12);
    border-radius: var(--radius-sm);
    color: var(--brand-red);
    font-size: 1rem;
    flex-shrink: 0;
}

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

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

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

.idx-category-cta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-red);
    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: 0.55rem;
    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);
    padding: 3rem 2rem;
    position: relative;
}

.idx-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-red-rgb), 0.15), transparent);
}

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

.idx-faq-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}

.idx-faq-title::before {
    content: '//';
    color: var(--brand-red);
    margin-right: 0.5rem;
}

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

.idx-faq-item {
    border: 1px solid rgba(239, 239, 240, 0.04);
    border-left: 2px solid rgba(var(--brand-red-rgb), 0.15);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all 0.25s ease;
}

.idx-faq-item:hover {
    border-left-color: var(--brand-red);
    background: rgba(var(--brand-red-rgb), 0.02);
}

.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: 0.85rem;
    font-weight: 600;
    color: var(--brand-white);
    margin: 0;
    font-family: var(--font-body);
}

.idx-faq-btn i {
    color: rgba(var(--brand-red-rgb), 0.5);
    font-size: 0.6rem;
    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: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* -- FAQ Discord CTA -- */

.idx-faq-discord {
    max-width: 720px;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.12);
    border-radius: var(--radius-md);
}

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

.idx-faq-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: var(--radius-sm);
    color: #7289da;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-display);
    transition: all 0.2s;
}

.idx-faq-discord-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.4);
    color: #fff;
}

/* ===== PRE-FOOTER CTA ===== */

.idx-prefooter {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(var(--brand-red-rgb), 0.06) 0%, transparent 60%),
        var(--brand-gray);
    border-top: 1px solid var(--border);
}

.idx-prefooter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.idx-prefooter-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--brand-white);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.idx-prefooter-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.cat-page { min-height: 100vh; padding: 0 0 4rem; }

.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: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--brand-white); line-height: 1.15; letter-spacing: -0.02em; font-family: var(--font-display); }
.cat-count { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; color: var(--text-muted); padding: 0.1rem 0.4rem; border: 1px solid var(--border); border-radius: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.cat-card { display: flex; flex-direction: column; background: var(--brand-gray); overflow: hidden; border: 1px solid var(--border); border-radius: 2px; transition: border-color 0.15s; }
.cat-card:hover { border-color: rgba(var(--brand-red-rgb), 0.25); }

.cat-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--brand-black); }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.2s; }
.cat-card:hover .cat-card-img img { filter: brightness(1.06); }
.cat-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(239,239,240,0.06); font-size: 1.2rem; }
.cat-card-sale { position: absolute; top: 0.5rem; left: 0.5rem; background: var(--brand-red); color: #fff; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 2px; z-index: 2; }

.cat-card-body { padding: 0.65rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.cat-card-name { font-size: 0.82rem; font-weight: 700; color: var(--brand-white); line-height: 1.3; 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.35rem; margin-top: 0.1rem; }
.cat-card-current { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 800; color: var(--brand-white); }
.cat-card-old { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-decoration: line-through; }
.cat-card-free { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--color-success); }

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

@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .cat-title { font-size: 1.2rem; }
}

/* ===== 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.3; filter: blur(18px) saturate(0.65); }
.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; background: radial-gradient(ellipse at 50% 0%, rgba(233,37,47,0.05), transparent 60%); }

.pkg-bg-svg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.pkg-bg-layer { will-change: transform; transform-origin: 50% 50%; }

.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: 0.58rem; 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: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Two-column layout: media left, info right */
.pkg-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }

/* Media viewer: thumbs + screen */
.pkg-viewer { display: grid; grid-template-columns: 68px 1fr; gap: 4px; }

.pkg-thumbcol { display: flex; flex-direction: column; gap: 3px; max-height: 400px; overflow-y: auto; scrollbar-width: none; }
.pkg-thumbcol::-webkit-scrollbar { display: none; }

.pkg-thumb { width: 68px; height: 46px; flex-shrink: 0; overflow: hidden; cursor: pointer; background: var(--brand-gray); position: relative; border: none; border-left: 2px solid transparent; opacity: 0.35; transition: opacity 0.12s; }
.pkg-thumb:hover { opacity: 0.7; }
.pkg-thumb.active { opacity: 1; border-left-color: var(--brand-red); }
.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: #fff; font-size: 0.7rem; background: radial-gradient(ellipse at center, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 70%, transparent 100%); pointer-events: none; }
.pkg-thumb-play--lg { font-size: 1.6rem; background: radial-gradient(ellipse at center, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.25) 60%, transparent 100%); }
.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 { aspect-ratio: 16/9; overflow: hidden; background: var(--brand-gray); border: 1px solid rgba(239,239,240,0.04); border-radius: 2px; }
.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: rgba(239,239,240,0.05); font-size: 2rem; }

/* Info panel — right side */
.pkg-info { display: flex; flex-direction: column; }

.pkg-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.12rem 0.35rem; border-radius: 2px; margin-bottom: 0.35rem; width: fit-content; }
.pkg-badge--free { color: var(--text-muted); border: 1px solid rgba(239,239,240,0.06); }
.pkg-badge--premium { color: var(--brand-red); border-left: 3px solid var(--brand-red); padding-left: 0.3rem; }
.pkg-badge--bundle { color: #c084fc; border: 1px solid rgba(168,85,247,0.2); position: relative; overflow: hidden; }
.pkg-badge--bundle > span { position: relative; z-index: 1; }
.pkg-badge--bundle::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(168,85,247,0.12), rgba(96,165,250,0.08), transparent); background-size: 300% 100%; animation: pkg-shimmer 4s linear infinite; }
@keyframes pkg-shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

.pkg-h1 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; color: var(--brand-white); line-height: 1.2; letter-spacing: -0.02em; font-family: var(--font-display); margin: 0 0 0.2rem; }

.pkg-summary { display: none; font-size: 0.78rem; 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; border-top: 1px solid var(--border); }
.pkg-off { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; color: var(--brand-red); }
.pkg-price { font-family: var(--font-mono); font-size: 2rem; font-weight: 900; color: var(--brand-white); line-height: 1; letter-spacing: -0.03em; }
.pkg-price--free { color: var(--color-success); }
.pkg-oldprice { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); position: relative; }
.pkg-oldprice::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: var(--brand-red); transform: rotate(-12deg); }

.pkg-buybtn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.65rem 1.5rem; font-size: 0.82rem; font-weight: 700; font-family: var(--font-body); background: var(--brand-red); color: #fff; border: none; border-radius: 2px; cursor: pointer; transition: background 0.15s; margin-bottom: 0.3rem; }
.pkg-buybtn:hover { background: var(--brand-red-hover); color: #fff; }
.pkg-buybtn--rm { background: none; color: #ef4444; border: 1px solid rgba(239,68,68,0.12); }
.pkg-buybtn--rm:hover { background: rgba(239,68,68,0.05); }
.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: 0.55rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.pkg-sublink:hover { color: var(--brand-red); }
.pkg-sublink.disabled { opacity: 0.3; pointer-events: none; }

.pkg-trust { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-secondary); margin-top: 0.4rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }

/* Description */
.pkg-lower { max-width: 1100px; margin: 2rem auto 0; padding: 0 2rem; position: relative; z-index: 3; }

.pkg-desc { color: var(--text-primary); line-height: 1.7; font-size: 0.95rem; word-break: break-word; background: var(--brand-black); }
.pkg-desc p { margin-bottom: 1rem; }
.pkg-desc img { max-width: 100%; display: block; border-radius: 2px; }

/* Sticky buy */
.pkg-sticky { position: fixed; z-index: 900; bottom: 1.5rem; right: 1.5rem; display: flex; align-items: center; gap: 0.85rem; background: rgba(18,18,22,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-left: 3px solid #22D3EE; border-top: 1px solid rgba(34,211,238,0.18); border-right: 1px solid rgba(34,211,238,0.18); border-bottom: 1px solid rgba(34,211,238,0.18); padding: 0.7rem 1rem; border-radius: 4px; box-shadow: 0 10px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(34,211,238,0.08); 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: 1.05rem; 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: 0.8rem; font-weight: 700; font-family: var(--font-body); background: #22D3EE; color: #06202A; border: none; border-radius: 3px; cursor: pointer; transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; white-space: nowrap; box-shadow: 0 4px 14px rgba(34,211,238,0.35); }
.pkg-sticky-b:hover { background: #67E8F9; color: #06202A; box-shadow: 0 6px 20px rgba(34,211,238,0.5); transform: translateY(-1px); }
.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; }
    .pkg-viewer { grid-template-columns: 1fr; }
    .pkg-thumbcol { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 3px; margin-top: 4px; padding: 0 1.25rem; }
    .pkg-thumb { width: 72px; height: 44px; border-left: none; border-bottom: 2px solid transparent; }
    .pkg-thumb.active { border-left-color: transparent; border-bottom-color: var(--brand-red); }
    .pkg-screen-inner { border-radius: 0; border-left: none; border-right: none; }
    .pkg-info { padding: 0.75rem 1.25rem 0; border-top: none; }
    .pkg-path { padding: 0.35rem 1.25rem; }
    .pkg-lower { padding: 0 1.25rem; }

    .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: 0.52rem; }
    .pkg-info { padding: 0.6rem 1rem 0; }
    .pkg-lower { padding: 0 1rem; }
    .pkg-h1 { font-size: 1.1rem; }
    .pkg-price { font-size: 1.6rem; }
}

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

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

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

.chk-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--brand-red-rgb), 0.04) 0%, transparent 70%);
    pointer-events: none;
}

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

.chk-order {
    background: rgba(22, 20, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    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: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--border);
}

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

.chk-order-title::before {
    content: '//';
    color: var(--brand-red);
    margin-right: 0.4rem;
}

.chk-order-count {
    background: rgba(var(--brand-red-rgb), 0.1);
    color: var(--brand-red);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.62rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border: 1px solid rgba(var(--brand-red-rgb), 0.15);
    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: rgba(var(--brand-red-rgb), 0.015);
}

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

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

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

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

.chk-item-name {
    font-size: 0.88rem;
    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: 0.82rem;
    color: var(--brand-red);
    font-weight: 700;
    font-family: var(--font-mono);
}

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

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

.chk-item-remove:hover {
    opacity: 1;
    color: #ef4444;
}

.chk-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(var(--brand-red-rgb), 0.03);
    border-top: 1px solid rgba(var(--brand-red-rgb), 0.1);
}

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

.chk-total-price {
    font-size: 1.35rem;
    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: 0.85rem;
}

.chk-section {
    background: rgba(22, 20, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.chk-section-title::before {
    content: '//';
    color: var(--brand-red);
    margin-right: 0.4rem;
}

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

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

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

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

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

.chk-promo-btn:hover {
    background: rgba(var(--brand-red-rgb), 0.15);
    border-color: rgba(var(--brand-red-rgb), 0.35);
}

/* -- 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: var(--radius-sm);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-display);
    box-shadow: 0 4px 20px rgba(var(--brand-red-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.chk-submit::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.3);
    transition: width 0.4s ease;
}

.chk-submit:hover::before {
    width: 100%;
}

.chk-submit:hover {
    background: var(--brand-red-hover);
    box-shadow: 0 6px 28px rgba(var(--brand-red-rgb), 0.35);
    color: #fff;
}

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

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

.chk-security i {
    color: var(--accent-terminal);
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

.chk-no-gateway {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-left: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    color: #ffc107;
    text-align: center;
    font-size: 0.85rem;
}

@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: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    color: var(--brand-white);
    margin-bottom: 0.5rem;
}

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

.opt-card {
    background: rgba(22, 20, 24, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.opt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-red);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.opt-label {
    display: block;
    color: var(--brand-white);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

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

.opt-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--brand-white);
    font-size: 0.95rem;
    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='%23EFEFF0' 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: #2a2a2a;
    color: var(--brand-white);
}

.opt-discord {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-lg);
    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: rgba(88, 101, 242, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 1.25rem;
}

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

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

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

.opt-discord-input input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(42, 42, 42, 0.8);
    border: none;
    color: var(--brand-white);
    font-size: 0.9rem;
    font-family: inherit;
}

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

.opt-discord-btn {
    background: #5865f2;
    color: #fff;
    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: 0.85rem;
}

.opt-discord-btn:hover {
    background: #4752c4;
    color: #fff;
}

.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: var(--radius-md);
    transition: all 0.2s;
}

.opt-back:hover {
    color: var(--brand-white);
    background: rgba(239, 239, 240, 0.05);
}

.opt-submit {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.opt-submit:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
}

.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: rgba(12, 11, 14, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

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

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

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

.login-card input[name="ign"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--brand-red-rgb), 0.12);
    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: var(--radius-md);
    background: var(--brand-red);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    background: var(--brand-red-hover);
    box-shadow: 0 8px 24px rgba(233, 37, 47, 0.28);
    color: #fff;
}

.login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 37, 47, 0.35);
}

.login-btn i {
    font-size: 1rem;
}

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

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

.login-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

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

.cms-title {
    font-size: 2rem;
    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);
}

.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);
    font-size: 2rem;
    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);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

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

.discord-notif {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 320px;
    background: var(--brand-gray);
    border: 1px solid rgba(var(--brand-red-rgb), 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    animation: rc-slideInNotif 0.4s ease 2s forwards;
}

@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: 0.75rem;
    transition: color 0.2s;
}

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

.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: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.discord-notif-icon i {
    font-size: 1.4rem;
    color: #5865f2;
}

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

.discord-notif-text {
    font-size: 0.75rem;
    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: #5865f2;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    margin-top: 0.75rem;
}

.discord-notif-btn:hover {
    background: #4752c4;
    color: #fff;
}

.discord-notif-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(var(--brand-red-rgb), 0.3);
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
}

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

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

.discord-code-copy:hover {
    background: rgba(var(--brand-red-rgb), 0.2);
}

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

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 0 2.5rem;
        align-items: start;
    }

    .hero-showcase {
        justify-content: center;
        min-height: 280px;
    }

    .hero-card {
        max-width: 340px;
    }

    .hero-card-back {
        max-width: 300px;
    }

    .hero-stats-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        flex: 0 0 auto;
        padding: 0 1rem;
    }

    .idx-categories-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .idx-category-card {
        flex-direction: row;
        align-items: center;
        padding: 1.25rem 1.5rem;
    }

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

    .rc-announce-bar {
        font-size: 0.65rem;
    }

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

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

    .hero-container {
        width: 92%;
        padding: 3rem 0 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

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

    .hero-cta .rc-btn {
        text-align: center;
    }

    .hero-microcopy {
        flex-direction: column;
        gap: 0.4rem;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero-card-back {
        display: none;
    }

    .hero-showcase-glow {
        display: none;
    }

    .hero-card-front {
        animation: none;
    }

    .hero-card-img {
        aspect-ratio: 16/9;
    }

    .hero-stats-inner {
        padding: 1rem 0;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .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: 0.8rem;
    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: 0.6rem;
    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: rgba(22, 20, 24, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.rc-status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.rc-status-icon-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.rc-status-icon-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.rc-status-icon-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.rc-status-icon-warning {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.rc-status-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    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-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-white);
    margin-bottom: var(--space-sm);
}

.rc-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--brand-white);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.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-info-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

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

.rc-info-table td:first-child {
    font-weight: 600;
    color: var(--brand-white);
    white-space: nowrap;
}

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

.rc-sidebar-nav {
    background: rgba(22, 20, 24, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

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

.rc-sidebar-nav a:hover {
    background: rgba(var(--brand-red-rgb), 0.05);
    color: var(--brand-white);
}

@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 ===== */

.rc-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rc-reveal.rc-visible {
    opacity: 1;
    transform: translateY(0);
}

.rc-reveal-delay-1 { transition-delay: 0.1s; }
.rc-reveal-delay-2 { transition-delay: 0.2s; }
.rc-reveal-delay-3 { transition-delay: 0.3s; }

/* ===== CARD MICRO-INTERACTIONS ===== */

.idx-category-card,
.rc-pkg-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rc-pkg-img img {
    filter: saturate(0.65) brightness(0.85);
    transition: all 0.4s ease;
}

.rc-pkg-card:hover .rc-pkg-img img {
    filter: saturate(1) brightness(1);
}


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

    .rc-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── 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
*/

:root {
    --pkg-desc-gap:        1.1rem;
    --pkg-desc-lead-size:  1.05rem;
    --pkg-desc-body-size:  0.9rem;
    --pkg-desc-note-bg:    rgba(229, 45, 45, 0.05);
    --pkg-desc-note-border:rgba(229, 45, 45, 0.35);
    --pkg-desc-code-bg:    rgba(239, 239, 240, 0.06);
    --pkg-desc-code-border:rgba(239, 239, 240, 0.1);
    --pkg-desc-th-bg:      rgba(229, 45, 45, 0.08);
    --pkg-desc-row-alt:    rgba(255, 255, 255, 0.015);
    --pkg-desc-row-hover:  rgba(229, 45, 45, 0.03);
}

/* ── 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;
}

/* ── Links ── */
.pkg-desc a {
    color: var(--brand-red);
    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-hover);
    font-weight: 700;
    text-decoration-color: var(--brand-red-hover);
}

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

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

.pkg-desc-h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.08em;
    bottom: 0.1em;
    width: 3px;
    background: var(--brand-red);
    border-radius: 2px;
}

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

.pkg-desc-h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 2px;
    background: rgba(229, 45, 45, 0.45);
    border-radius: 1px;
}

/* ── 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: rgba(229, 45, 45, 0.6);
    border-radius: 1px;
    transform: rotate(45deg);
}

/* ── Table ── */
.pkg-desc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    border: 1px solid rgba(239, 239, 240, 0.06);
    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: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand-red);
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(229, 45, 45, 0.15);
    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 rgba(239, 239, 240, 0.04);
    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 rgba(239, 239, 240, 0.06);
        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 rgba(239, 239, 240, 0.03);
        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: 0.55rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--brand-red);
        margin-bottom: 0.2rem;
    }
}

/* ── Note / callout aside ── */
.pkg-desc-note {
    background: var(--pkg-desc-note-bg);
    border-left: 3px solid var(--pkg-desc-note-border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    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: linear-gradient(135deg, rgba(229, 45, 45, 0.08), rgba(229, 45, 45, 0.02));
    border: 1px solid rgba(229, 45, 45, 0.25);
    border-radius: var(--radius-md);
    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: var(--radius-sm);
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(229, 45, 45, 0.25);
}

.pkg-desc .pkg-desc-cta-btn:hover,
.pkg-desc a.pkg-desc-cta-btn:hover {
    background: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 45, 45, 0.4);
}

.pkg-desc .pkg-desc-cta-btn:focus-visible,
.pkg-desc a.pkg-desc-cta-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.pkg-desc-cta-btn i {
    font-size: 0.82rem;
    transition: transform 0.2s;
}

.pkg-desc-cta-btn:hover i {
    transform: translate(3px, -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).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Chip palette */
    --chip-fw-bg:       rgba(59, 130, 246, 0.12);
    --chip-fw-color:    #93c5fd;
    --chip-fw-border:   rgba(59, 130, 246, 0.25);

    --chip-inv-bg:      rgba(168, 85, 247, 0.12);
    --chip-inv-color:   #d8b4fe;
    --chip-inv-border:  rgba(168, 85, 247, 0.25);

    --chip-tgt-bg:      rgba(251, 146, 60, 0.12);
    --chip-tgt-color:   #fdba74;
    --chip-tgt-border:  rgba(251, 146, 60, 0.25);

    --chip-bridge-bg:   rgba(229, 45, 45, 0.1);
    --chip-bridge-color:var(--brand-red);
    --chip-bridge-border:rgba(229, 45, 45, 0.3);

    --chip-more-bg:     rgba(239, 239, 240, 0.06);
    --chip-more-color:  var(--text-muted);
    --chip-more-border: rgba(239, 239, 240, 0.1);

    /* Meta section spacing */
    --meta-section-gap: 2rem;
    --meta-card-bg:     rgba(255, 255, 255, 0.025);
    --meta-card-border: rgba(239, 239, 240, 0.06);

    /* Table */
    --table-head-bg:    rgba(255, 255, 255, 0.02);
    --table-row-hover:  rgba(229, 45, 45, 0.03);
    --table-border:     rgba(239, 239, 240, 0.05);

    /* Sidebar tokens — kept dormant for future use */
    --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(229, 45, 45, 0.15);
    --filter-chip-active-border: rgba(229, 45, 45, 0.45);
}

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

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

.rc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.rc-chip i { font-size: 0.55rem; }

/* Framework chips */
.rc-chip--fw {
    background: var(--chip-fw-bg);
    color: var(--chip-fw-color);
    border-color: var(--chip-fw-border);
}

/* Inventory chips */
.rc-chip--inv {
    background: var(--chip-inv-bg);
    color: var(--chip-inv-color);
    border-color: var(--chip-inv-border);
}

/* Target chips */
.rc-chip--tgt {
    background: var(--chip-tgt-bg);
    color: var(--chip-tgt-color);
    border-color: var(--chip-tgt-border);
}

/* Bridge chips */
.rc-chip--bridge {
    background: var(--chip-bridge-bg);
    color: var(--chip-bridge-color);
    border-color: var(--chip-bridge-border);
    font-weight: 700;
}

/* Overflow "+N more" chip */
.rc-chip--more {
    background: var(--chip-more-bg);
    color: var(--chip-more-color);
    border-color: var(--chip-more-border);
}

/* ── 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: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--brand-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.pkg-meta-tagline {
    font-size: 0.92rem;
    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: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.pkg-meta-badge i { font-size: 0.52rem; }

.pkg-meta-badge--free      { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.25); }
.pkg-meta-badge--new       { background: rgba(59,130,246,0.12); color: #93c5fd; border-color: rgba(59,130,246,0.25); }
.pkg-meta-badge--updated   { background: rgba(251,146,60,0.12); color: #fdba74; border-color: rgba(251,146,60,0.25); }
.pkg-meta-badge--featured  { background: rgba(234,179,8,0.12); color: #fde047; border-color: rgba(234,179,8,0.25); }
.pkg-meta-badge--beta      { background: rgba(168,85,247,0.12); color: #d8b4fe; border-color: rgba(168,85,247,0.25); }
.pkg-meta-badge--legacy    { background: rgba(239,239,240,0.05); color: var(--text-muted); border-color: var(--meta-card-border); }

.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: rgba(239,239,240,0.05); color: var(--text-secondary); border-color: var(--meta-card-border); }
.pkg-meta-badge--perf      { background: rgba(34,197,94,0.08); color: rgba(74,222,128,0.8); border-color: rgba(34,197,94,0.15); }
.pkg-meta-badge--version   { background: transparent; color: var(--text-muted); border-color: var(--meta-card-border); }
.pkg-meta-badge--status-beta        { background: rgba(168,85,247,0.12); color: #d8b4fe; border-color: rgba(168,85,247,0.25); }
.pkg-meta-badge--status-deprecated  { background: rgba(239,68,68,0.08); color: #f87171; border-color: rgba(239,68,68,0.15); }

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

.pkg-meta-section-label::before {
    content: '//';
    color: var(--brand-red);
    margin-right: 0.35rem;
}

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

.pkg-meta-section-head {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    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: 0.58rem;
    color: var(--brand-red);
    opacity: 0.7;
}

/* 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: 0.58rem;
    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: 0.52rem; }

/* Summary block */
.pkg-meta-summary {
    font-size: 0.9rem;
    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: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pkg-meta-feat-icon {
    color: var(--brand-red);
    font-size: 0.6rem;
    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--required {
    border-left: 2px solid rgba(229, 45, 45, 0.4);
}

.pkg-meta-deps-card--optional {
    border-left: 2px solid rgba(239, 239, 240, 0.12);
}

.pkg-meta-deps-card-head {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    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: 0.52rem; }
.pkg-meta-deps-card--required .pkg-meta-deps-card-head i { color: var(--brand-red); }

.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: 0.72rem;
    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: 0.8rem;
}

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

.pkg-meta-table th {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    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: 0.72rem;
    background: rgba(239, 239, 240, 0.05);
    border: 1px solid rgba(239, 239, 240, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.1rem 0.35rem;
    color: var(--brand-white);
    white-space: nowrap;
}

.pkg-meta-code--perm {
    background: rgba(229, 45, 45, 0.08);
    border-color: rgba(229, 45, 45, 0.15);
    color: rgba(229, 45, 45, 0.85);
}

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

/* Side chips (server/client) */
.pkg-meta-side-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    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: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.2);
}

.pkg-meta-side-chip--client {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.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: 0.82rem;
    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: 0.65rem;
    font-weight: 700;
    background: rgba(239, 239, 240, 0.08);
    border: 1px solid rgba(239, 239, 240, 0.15);
    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: 0.78rem;
    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: 2px; }

.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(229, 45, 45, 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: #fff;
    font-size: 1.4rem;
    transition: background 0.15s;
    pointer-events: none;
}

.pkg-meta-media-item--video:hover .pkg-meta-media-play {
    background: rgba(229, 45, 45, 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: 1.5rem;
}

/* 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: rgba(239, 239, 240, 0.06);
    border: 1px solid rgba(239, 239, 240, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.pkg-meta-lightbox-close:hover { background: rgba(229, 45, 45, 0.2); color: #fff; }
.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);
    border-left: 2px solid transparent;
    transition: border-left-color 0.15s;
    overflow: hidden;
}

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

.pkg-meta-faq-item.active {
    border-left-color: var(--brand-red);
}

.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: 0.86rem;
    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: 0.45rem;
    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);
}

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

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

.pkg-meta-faq-answer p {
    font-size: 0.82rem;
    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: linear-gradient(135deg, rgba(229, 45, 45, 0.08), rgba(229, 45, 45, 0.02));
    border: 1px solid rgba(229, 45, 45, 0.25);
    border-radius: var(--radius-md);
    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: var(--radius-sm);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(229, 45, 45, 0.25);
}

.pkg-meta-docs-btn:hover {
    background: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 45, 45, 0.4);
}

.pkg-meta-docs-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.pkg-meta-docs-arrow {
    font-size: 0.75rem;
    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-*
*/

:root {
    --pkg-lb-backdrop:  rgba(0, 0, 0, 0.92);
    --pkg-lb-ctrl-size: 44px;
    --pkg-lb-ctrl-bg:   rgba(239, 239, 240, 0.07);
    --pkg-lb-ctrl-hover:rgba(229, 45, 45, 0.25);
    --pkg-lb-transition:150ms ease;
}

/* Backdrop overlay */
.pkg-lb {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: var(--pkg-lb-backdrop);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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: var(--radius-sm);
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.pkg-lb-media iframe,
.pkg-lb-media video {
    width: min(85vw, 960px);
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* 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 rgba(239, 239, 240, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--pkg-lb-transition), color var(--pkg-lb-transition), border-color var(--pkg-lb-transition), transform var(--pkg-lb-transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
}

.pkg-lb-close:hover,
.pkg-lb-prev:hover,
.pkg-lb-next:hover {
    background: var(--pkg-lb-ctrl-hover);
    border-color: rgba(229, 45, 45, 0.35);
    color: #fff;
}

.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: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    background: rgba(12, 11, 14, 0.7);
    border: 1px solid rgba(239, 239, 240, 0.08);
    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: 0.68rem;
    color: var(--text-muted);
    line-height: 1.4;
    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.15rem;
}

.cat-card-badge {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    border: 1px solid transparent;
}

.cat-card-badge--new      { background: rgba(59,130,246,0.12); color: #93c5fd; border-color: rgba(59,130,246,0.2); }
.cat-card-badge--updated  { background: rgba(251,146,60,0.12); color: #fdba74; border-color: rgba(251,146,60,0.2); }
.cat-card-badge--featured { background: rgba(234,179,8,0.12); color: #fde047; border-color: rgba(234,179,8,0.2); }
.cat-card-badge--beta     { background: rgba(168,85,247,0.12); color: #d8b4fe; border-color: rgba(168,85,247,0.2); }
.cat-card-badge--legacy   { background: rgba(239,239,240,0.05); color: var(--text-muted); border-color: var(--border); }

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

/* Icon-only compact chips used on cards */
.cat-card-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.5rem;
}

.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: 0.48rem; font-weight: 700; width: auto; padding: 0 0.3rem; }

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

.cat-card-bridge-dot--kq {
    background: rgba(229, 45, 45, 0.85);
    color: #fff;
    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: 0.75rem;
    }
}

@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: 1100px;
    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 3.5rem;
    padding: 0;
}

.pkg-meta-specbar-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    padding-left: 0.05rem;
}

.pkg-meta-specbar-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    border: 1px solid rgba(229, 45, 45, 0.22);
    background:
        linear-gradient(180deg, rgba(229, 45, 45, 0.05), rgba(229, 45, 45, 0.01)),
        rgba(16, 16, 18, 0.85);
    box-shadow: 0 1px 0 rgba(229, 45, 45, 0.08) inset;
}

.pkg-meta-specbar-cell {
    padding: 1.25rem 1.4rem;
    border-right: 1px solid rgba(229, 45, 45, 0.16);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    position: relative;
    transition: background 0.18s;
}

.pkg-meta-specbar-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 1px;
    background: var(--brand-red);
}

.pkg-meta-specbar-cell:hover {
    background: rgba(229, 45, 45, 0.04);
}

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

.pkg-meta-specbar-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(229, 45, 45, 0.85);
    text-transform: uppercase;
}

.pkg-meta-specbar-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--brand-white);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.pkg-meta-container .pkg-meta-section {
    position: relative;
    margin: 0 0 3rem;
    padding: 2rem 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: linear-gradient(90deg,
        var(--brand-red) 0%,
        var(--brand-red) 88px,
        rgba(229, 45, 45, 0.18) 88px,
        rgba(229, 45, 45, 0.18) 100%);
}

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

.pkg-meta-section-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    flex-shrink: 0;
    min-width: 72px;
    color: var(--brand-red);
    background: none;
    -webkit-text-fill-color: var(--brand-red);
}

.pkg-meta-section-mono {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.26em;
    color: rgba(229, 45, 45, 0.95);
    text-transform: uppercase;
}

.pkg-meta-container .pkg-meta-section-h2 {
    margin: 0 0 1.5rem 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--brand-white);
    letter-spacing: -0.018em;
    line-height: 1.2;
    padding-left: calc(72px + 1.25rem);
}

.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(280px, 1fr));
    gap: 1.5rem;
    padding-left: calc(72px + 1.25rem);
}

.pkg-meta-container .pkg-meta-compat-group {
    padding: 1.25rem 1.4rem;
    background: rgba(20, 20, 23, 0.6);
    border: 1px solid rgba(239, 239, 240, 0.05);
    border-top: 2px solid rgba(229, 45, 45, 0.4);
    border-radius: 0;
    transition: border-color 0.2s, background 0.2s;
}

.pkg-meta-container .pkg-meta-compat-group:hover {
    border-color: rgba(229, 45, 45, 0.25);
    border-top-color: var(--brand-red);
    background: rgba(20, 20, 23, 0.9);
}

.pkg-meta-container .pkg-meta-compat-group-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(229, 45, 45, 0.9);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    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.4rem 0.7rem;
    background: rgba(239, 239, 240, 0.04);
    border: 1px solid rgba(239, 239, 240, 0.08);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: border-color 0.15s, background 0.15s;
}

.pkg-meta-container .rc-chip:hover {
    border-color: rgba(229, 45, 45, 0.35);
    background: rgba(229, 45, 45, 0.05);
}

.pkg-meta-container .rc-chip i {
    font-size: 10px;
    color: rgba(229, 45, 45, 0.85);
}

.pkg-meta-container .rc-chip--bridge {
    border-color: rgba(229, 45, 45, 0.35);
    background: rgba(229, 45, 45, 0.06);
    color: #ffb3b8;
}

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

.pkg-meta-container .pkg-meta-deps-card {
    background: rgba(20, 20, 23, 0.6);
    border: 1px solid rgba(239, 239, 240, 0.05);
    border-radius: 0;
    padding: 1.4rem 1.6rem;
    position: relative;
}

.pkg-meta-container .pkg-meta-deps-card--required { border-left: 3px solid var(--brand-red); }
.pkg-meta-container .pkg-meta-deps-card--optional { border-left: 3px solid rgba(229, 45, 45, 0.25); }

.pkg-meta-container .pkg-meta-deps-card-head {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--brand-white);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(239, 239, 240, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pkg-meta-container .pkg-meta-deps-card-head i { color: var(--brand-red); font-size: 10px; }

.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: 12px;
    color: var(--text-primary);
    padding: 0.35rem 0 0.35rem 1.1rem;
    position: relative;
    line-height: 1.55;
    border-bottom: 1px dashed rgba(239, 239, 240, 0.04);
}

.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);
    font-weight: 700;
}

.pkg-meta-container .pkg-meta-table-wrap,
.pkg-meta-container .pkg-meta-deflist,
.pkg-meta-container .pkg-meta-keybinds {
    padding-left: calc(72px + 1.25rem);
}

.pkg-meta-container .pkg-meta-table {
    border: 1px solid rgba(229, 45, 45, 0.15);
    background: rgba(20, 20, 23, 0.55);
    border-radius: 0;
}

.pkg-meta-container .pkg-meta-table thead tr {
    background: rgba(229, 45, 45, 0.06);
}

.pkg-meta-container .pkg-meta-table th {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(229, 45, 45, 0.95);
    text-transform: uppercase;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(229, 45, 45, 0.25);
}

.pkg-meta-container .pkg-meta-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(239, 239, 240, 0.04);
    font-size: 13px;
    color: var(--text-primary);
}

.pkg-meta-container .pkg-meta-code {
    font-family: var(--font-mono);
    background: rgba(229, 45, 45, 0.08);
    color: #ffb3b8;
    padding: 0.15rem 0.45rem;
    border-radius: 0;
    border: 1px solid rgba(229, 45, 45, 0.15);
    font-size: 12px;
    font-weight: 600;
}

.pkg-meta-container .pkg-meta-faq {
    padding-left: calc(72px + 1.25rem);
    border-top: 1px solid rgba(239, 239, 240, 0.05);
}

.pkg-meta-container .pkg-meta-faq-item {
    border-bottom: 1px solid rgba(239, 239, 240, 0.05);
    transition: background 0.18s;
}

.pkg-meta-container .pkg-meta-faq-item:hover { background: rgba(229, 45, 45, 0.03); }
.pkg-meta-container .pkg-meta-faq-item.active { background: rgba(229, 45, 45, 0.04); }

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

.pkg-meta-container .pkg-meta-faq-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--brand-red);
    transition: height 0.2s ease;
}

.pkg-meta-container .pkg-meta-faq-item:hover .pkg-meta-faq-btn::before,
.pkg-meta-container .pkg-meta-faq-item.active .pkg-meta-faq-btn::before {
    height: 60%;
}

.pkg-meta-container .pkg-meta-faq-btn:hover { color: #fff; }

.pkg-meta-container .pkg-meta-faq-chevron {
    color: var(--brand-red);
    font-size: 0.8rem;
    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 0.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

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

@media (max-width: 768px) {
    .pkg-meta-container .pkg-meta-section-num {
        font-size: 2rem;
        min-width: 56px;
    }
    .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;
    }
    .pkg-meta-container .pkg-meta-section-h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .pkg-meta-container {
        margin: 3rem auto 4rem;
    }
    .pkg-meta-container .pkg-meta-section {
        margin-bottom: 3.5rem;
    }
    .pkg-meta-container .pkg-meta-section-num {
        font-size: 1.75rem;
        min-width: 42px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   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 ─────────────────────────────────────────────── */

:root {
    /* Surface tiers — warm dark, elevated in steps */
    --bg:          #0B0A0D;
    --surface-1:   #111018;
    --surface-2:   #18161E;
    --surface-3:   #201D27;
    --surface-4:   #272430;

    /* Border tiers */
    --border-1:    rgba(255,255,255,0.04);
    --border-2:    rgba(255,255,255,0.08);
    --border-3:    rgba(255,255,255,0.13);

    /* Accent */
    --accent:           #E52D2D;
    --accent-rgb:       229, 45, 45;
    --accent-soft:      rgba(229, 45, 45, 0.10);
    --accent-glow:      rgba(229, 45, 45, 0.22);
    --accent-hover:     #CC2424;

    /* Spacing scale — fluid */
    --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;

    /* Type scale — fluid via clamp */
    --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);

    /* Radius — rounder, more premium */
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   16px;
    --r-pill: 999px;

    /* Section label pattern */
    --section-label-size:    0.65rem;
    --section-label-spacing: 0.18em;
}

/* ── 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(--accent);
    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 img {
    opacity: 0.18;
    filter: blur(32px) saturate(0.5);
}

.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%);
}

.pkg-bg-scrim {
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb),0.07), transparent 55%);
}

/* Breadcrumb */
.pkg-path {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    padding: 0.6rem 2rem;
    opacity: 0.72;
}

/* Hero layout — 2-col, media left, buy panel sticky right */
.pkg-upper {
    padding: 0 2rem;
    max-width: 1240px;
}

.pkg-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

/* Media screen — larger, less boxy */
.pkg-screen-inner {
    aspect-ratio: 16/9;
    border-radius: var(--r-md);
    border: 1px solid var(--border-2);
    background: var(--surface-2);
    overflow: hidden;
}

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

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

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

/* 3b. Buy panel — sticky, premium composition */

.pkg-info {
    position: sticky;
    top: 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 1.6rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

/* Badge */
.pkg-badge {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-pill);
    margin-bottom: 0.85rem;
}

.pkg-badge--free    { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.22); border: 1px solid rgba(34,197,94,0.22); }
.pkg-badge--premium { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),0.3); border-left: none; padding-left: 0.6rem; }
.pkg-badge--bundle  { border-radius: var(--r-pill); }

/* Package title */
.pkg-h1 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    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: 0.84rem;
    line-height: 1.6;
    color: rgba(239,239,240,0.62);
    margin: 0 0 0.65rem;
}

/* Tags row */
.pkg-h1-tags {
    margin-bottom: 1rem;
    gap: 0.3rem;
}

/* Pricing row */
.pkg-pricing {
    padding: 1rem 0 0.9rem;
    border-top: 1px solid var(--border-1);
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.pkg-price {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--brand-white);
}

.pkg-price--free { color: #4ade80; }

.pkg-oldprice {
    font-size: 0.88rem;
    color: rgba(239,239,240,0.38);
}

.pkg-off {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(var(--accent-rgb),0.15);
    color: var(--accent);
    padding: 0.15rem 0.45rem;
    border-radius: var(--r-pill);
    border: none;
}

/* CTA button — larger, more confident */
.pkg-buybtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(var(--accent-rgb),0.28);
}

.pkg-buybtn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(var(--accent-rgb),0.4);
}

.pkg-buybtn--rm {
    background: none;
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.15);
    box-shadow: none;
}

.pkg-buybtn--rm:hover {
    background: rgba(239,68,68,0.06);
    transform: none;
    box-shadow: none;
}

/* Trust microcopy */
.pkg-trust {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(239,239,240,0.42);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-1);
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* 3c. Sticky mobile purchase bar — replace cyan with brand red */

.pkg-sticky {
    background: rgba(18,16,22,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-2);
    border-top: 2px solid var(--accent);
    border-radius: 0;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.5);
    /* override cyan border-left */
    border-left: 1px solid var(--border-2);
    border-right: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
    /* position */
    right: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
}

.pkg-sticky-p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    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.65rem 1.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(var(--accent-rgb),0.3);
}

.pkg-sticky-b:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 5px 18px rgba(var(--accent-rgb),0.45);
    transform: translateY(-1px);
}

/* 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-top: 2px solid var(--accent);
        border-radius: var(--r-md);
        padding: 0.7rem 1.1rem;
        gap: 1rem;
        box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(var(--accent-rgb),0.08);
    }
}

/* 3d. Description area */

.pkg-lower {
    max-width: 760px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
}

.pkg-desc {
    font-size: var(--t-base);
    line-height: 1.8;
    color: rgba(239,239,240,0.72);
}

.pkg-desc p {
    font-size: var(--t-base);
    line-height: 1.8;
}

/* 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: separate;
    border-spacing: 0 0.4rem;
    border: none;
    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;
}

/* Each table row becomes a card */
.pkg-desc-table tbody tr {
    display: grid;
    grid-template-columns: minmax(120px, 1.1fr) 2.6fr;
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}

.pkg-desc-table tbody tr:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
    background: var(--surface-3);
}

/* Left cell — label */
.pkg-desc-table tbody td:first-child {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(239,239,240,0.5);
    background: var(--surface-3);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: none;
    border-right: 1px solid var(--border-1);
}

/* Right cell — value */
.pkg-desc-table tbody td:last-child {
    font-size: 0.88rem;
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: none;
    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(110px, 1fr) 2fr;
        background: var(--surface-2);
        border: 1px solid var(--border-1);
        border-radius: var(--r-md);
        margin-bottom: 0.5rem;
        overflow: hidden;
    }

    .pkg-desc-table tbody td {
        display: flex;
        align-items: center;
        border-bottom: none;
    }
}

/* 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. Spec bar — clean information ribbon, no industrial vibe */

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

.pkg-meta-specbar-tag {
    display: block;
    font-family: var(--font-body);
    font-size: var(--section-label-size);
    font-weight: 600;
    letter-spacing: var(--section-label-spacing);
    text-transform: uppercase;
    color: rgba(var(--accent-rgb), 0.75);
    margin-bottom: 0.65rem;
}

.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);
    box-shadow: none;
    overflow: hidden;
}

.pkg-meta-specbar-cell {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--border-1);
    gap: 0.3rem;
}

.pkg-meta-specbar-cell::before {
    display: none;
}

.pkg-meta-specbar-label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(239,239,240,0.38);
    text-transform: uppercase;
}

.pkg-meta-specbar-value {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-white);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    letter-spacing: -0.01em;
}

/* 3g. Metadata section headers — quiet, editorial */
/*
   Replace: "02  COMPATIBILITY" (giant red numeral + mono label)
   With:    small uppercase eyebrow + clean H2
*/

.pkg-meta-container .pkg-meta-section {
    margin: 0 0 2.5rem;
    padding: 1.75rem 0 0;
}

.pkg-meta-section::before {
    height: 1px;
    background: var(--border-2);
}

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

/* Hide giant numerals */
.pkg-meta-section-num {
    display: none;
}

/* Mono label becomes the eyebrow */
.pkg-meta-section-mono {
    font-family: var(--font-body);
    font-size: var(--section-label-size);
    font-weight: 600;
    letter-spacing: var(--section-label-spacing);
    color: rgba(var(--accent-rgb), 0.75);
    text-transform: uppercase;
}

/* Section H2 — no more padding-left offset (numeral gone) */
.pkg-meta-container .pkg-meta-section-h2 {
    padding-left: 0;
    font-size: var(--t-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--brand-white);
}

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

/* Compat group cards — rounder, warmer */
.pkg-meta-container .pkg-meta-compat-group {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-top: 2px solid rgba(var(--accent-rgb),0.35);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
}

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

/* Group label */
.pkg-meta-container .pkg-meta-compat-group-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: rgba(239,239,240,0.42);
    margin-bottom: 0.7rem;
}

/* Chips in meta container — rounder */
.pkg-meta-container .rc-chip {
    border-radius: var(--r-sm);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
}

/* Deps — no left offset */
.pkg-meta-container .pkg-meta-deps-row {
    padding-left: 0;
    gap: 1rem;
}

.pkg-meta-container .pkg-meta-deps-card {
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border-2);
}

/* Table / deflist / keybinds — no left offset */
.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-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border-2);
}

/* FAQ — no left offset, cleaner */
.pkg-meta-container .pkg-meta-faq {
    padding-left: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border-1);
}

.pkg-meta-container .pkg-meta-faq-btn {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.pkg-meta-container .pkg-meta-faq-btn::before {
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    width: 2px;
    transform: none;
}

.pkg-meta-container .pkg-meta-faq-item:hover .pkg-meta-faq-btn::before,
.pkg-meta-container .pkg-meta-faq-item.active .pkg-meta-faq-btn::before {
    height: auto;
}

.pkg-meta-container .pkg-meta-faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.88rem;
}

/* ── 4. CATEGORY PAGE — premium card grid ────────────────────────────────── */

.cat-page { background: var(--bg); }

/* Header */
.cat-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--brand-white);
}

.cat-count {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    border-radius: var(--r-pill);
    padding: 0.15rem 0.6rem;
}

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

@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); }
}

/* Card */
.cat-card {
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    border-color: rgba(var(--accent-rgb),0.28);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--accent-rgb),0.08);
}

/* Image — with gradient fade at bottom */
.cat-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-1);
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.25s ease;
    filter: brightness(0.92) saturate(0.9);
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.04);
    filter: brightness(1.05) saturate(1.05);
}

/* Gradient fade over image bottom */
.cat-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24,22,30,0.65) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

/* Body */
.cat-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

/* Title */
.cat-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-white);
    line-height: 1.25;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tagline */
.cat-card-tagline.populated {
    font-size: 0.75rem;
    color: rgba(239,239,240,0.5);
    line-height: 1.45;
}

/* Price row */
.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: 0.95rem;
    font-weight: 800;
    color: var(--brand-white);
}

.cat-card-free {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #4ade80;
}

.cat-card-old {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(239,239,240,0.35);
    text-decoration: line-through;
}

/* Sale badge */
.cat-card-sale {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: var(--r-pill);
    z-index: 2;
    letter-spacing: 0.04em;
}

/* Bridge dot */
.cat-card-bridge-dot {
    bottom: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 2;
}

/* Chips row */
.cat-card-chips {
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.cat-card-chip {
    width: 22px;
    height: 22px;
    border-radius: var(--r-sm);
    font-size: 0.52rem;
}

/* Badges */
.cat-card-badges { margin-bottom: 0.2rem; }

.cat-card-badge {
    border-radius: var(--r-pill);
    font-size: 0.52rem;
    padding: 0.12rem 0.4rem;
}

/* ── 5. INDEX PAGE ────────────────────────────────────────────────────────── */

/* Hero trust bar — remove bleed position, keep inline */
.hero-trust {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    border-top: none;
    border-radius: var(--r-md);
    background: var(--surface-1);
    border: 1px solid var(--border-1);
    margin: 1.5rem auto 0;
    max-width: 640px;
    padding: 0.9rem 1.5rem;
    gap: 2rem;
    justify-content: center;
}

.hero-trust-item {
    font-size: 0.75rem;
    color: rgba(239,239,240,0.55);
}

.hero-trust-item i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Category section on homepage */
.idx-categories-title {
    font-family: var(--font-body);
    font-size: var(--section-label-size);
    font-weight: 600;
    letter-spacing: var(--section-label-spacing);
    color: rgba(var(--accent-rgb),0.8);
    text-transform: uppercase;
}

.idx-categories-title::before {
    content: none;
}

.idx-category-card {
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    padding: 1.5rem;
    gap: 0.85rem;
}

.idx-category-icon {
    background: var(--accent-soft);
    border: 1px solid rgba(var(--accent-rgb),0.15);
    border-radius: var(--r-sm);
    width: 42px;
    height: 42px;
}

/* FAQ section */
.idx-faq-title {
    font-family: var(--font-body);
    font-size: var(--section-label-size);
    font-weight: 600;
    letter-spacing: var(--section-label-spacing);
    color: rgba(var(--accent-rgb),0.8);
    text-transform: uppercase;
}

.idx-faq-title::before {
    content: none;
}

.idx-faq-item {
    border-radius: var(--r-sm);
    border-left: none;
    border: 1px solid var(--border-1);
    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 h3 {
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Pre-footer */
.idx-prefooter {
    border-radius: var(--r-lg);
    margin: 3rem 2rem;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
}

@media (max-width: 768px) {
    .idx-prefooter {
        margin: 2rem 1rem;
    }
}

/* ── 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: 1.2rem; }
    .pkg-price { font-size: 1.8rem; }
    .pkg-info { margin: 0 1rem; padding: 1rem; }
    .pkg-lower { padding: 0 1rem; }
}

/* ── 7. HEADER / FOOTER SURFACE UPGRADE ──────────────────────────────────── */

.rc-header {
    background: rgba(11,10,13,0.95);
    border-bottom-color: var(--border-1);
}

.rc-header-dropdown {
    background: var(--surface-2);
    border-color: var(--border-2);
    border-radius: var(--r-md);
}

.rc-footer {
    background: var(--surface-1);
    border-top-color: var(--border-1);
}

/* ── 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 — hero trust inline ─────────────────────────────────── */

@media (max-width: 720px) {
    .hero-trust {
        margin: 1rem auto 0;
        padding: 0.7rem 1rem;
        gap: 1.25rem;
        flex-wrap: wrap;
        max-width: none;
        border-radius: var(--r-sm);
    }

    .hero-trust-item {
        font-size: 0.72rem;
    }
}

/* ── 10. DESCRIPTION LEAD TEXT ───────────────────────────────────────────── */

.pkg-desc-lead {
    font-size: 1rem !important;
    color: rgba(239,239,240,0.82) !important;
    line-height: 1.7;
}

.pkg-desc-h2 {
    font-size: 1.15rem;
    padding-left: 0.9rem;
}

.pkg-desc-h3 {
    font-size: 0.9rem;
}

/* ── END PREMIUM REDESIGN LAYER ──────────────────────────────────────────── */
