/* VinnypuxVPN Support — Main Styles */

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-orange);
}

:root {
    --color-black: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-orange: #ff6b35;
    --color-orange-rgb: 255, 107, 53;
    --color-orange-light: #ff8c5a;
    --color-gold: #ffb800;
    --color-gold-rgb: 255, 184, 0;
    --color-white: #ffffff;
    --color-gray: #2a2a2a;
    --color-gray-light: #3a3a3a;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --bg-body: #0a0a0a;
    --bg-card: rgba(26, 26, 26, 0.65);
    --bg-card-hover: rgba(var(--color-orange-rgb), 0.06);
    --bg-header: rgba(10, 10, 10, 0.45);
    --bg-header-hover: rgba(10, 10, 10, 0.65);
    --bg-btn: rgba(255, 255, 255, 0.06);
    --bg-btn-hover: rgba(var(--color-orange-rgb), 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(var(--color-orange-rgb), 0.25);
    --border-btn: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-hint: rgba(255, 255, 255, 0.3);
    --icon-filter: brightness(0) invert(1);
    --icon-opacity: 0.6;
    --dots-bg: #0a0a0a;
}

[data-theme="light"] {
    --bg-body: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.55);
    --bg-card-hover: rgba(var(--color-orange-rgb), 0.06);
    --bg-header: rgba(255, 255, 255, 0.75);
    --bg-header-hover: rgba(255, 255, 255, 0.9);
    --bg-btn: rgba(0, 0, 0, 0.05);
    --bg-btn-hover: rgba(var(--color-orange-rgb), 0.08);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(var(--color-orange-rgb), 0.3);
    --border-btn: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
    --text-dim: rgba(0, 0, 0, 0.4);
    --text-hint: rgba(0, 0, 0, 0.25);
    --color-white: #1a1a1a;
    --color-black: #f5f5f7;
    --icon-filter: brightness(0);
    --icon-opacity: 0.5;
    --dots-bg: #f5f5f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--color-orange); text-decoration: none; }
a:hover { color: var(--color-orange-light); }

/* =============================================
   Header (identical to account-header pattern)
   ============================================= */
.sup-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-header);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    z-index: 100;
}

.sup-header-logo-link {
    position: absolute;
    left: 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.sup-header-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(var(--color-orange-rgb), 0.4)) drop-shadow(0 0 20px rgba(var(--color-orange-rgb), 0.2));
    transition: filter 0.3s, transform 0.3s;
}

.sup-header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(var(--color-orange-rgb), 0.6)) drop-shadow(0 0 28px rgba(var(--color-orange-rgb), 0.3));
}

.sup-header-spacer { display: none; }

/* Desktop nav — centered */
.sup-header-nav-desktop { display: flex; align-items: center; }

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

.sup-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sup-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .sup-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

.sup-nav-item.active {
    background: linear-gradient(135deg, rgba(var(--color-orange-rgb), 0.15), rgba(var(--color-gold-rgb), 0.08));
    color: var(--color-orange);
}

.sup-nav-icon {
    width: 20px; height: 20px;
    object-fit: contain;
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
    flex-shrink: 0;
}

/* On the active item: hide the <img> glyph and render a mask-coloured
   replacement via ::before. That's the only reliable way to tint an <img>
   with a dynamic brand accent — CSS filter's hue-rotate bakes in a fixed
   hue. --nav-icon-src is set inline on each anchor to its icon URL. */
.sup-nav-item.active .sup-nav-icon {
    display: none;
}
.sup-nav-item.active::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: var(--color-orange);
    -webkit-mask-image: var(--nav-icon-src);
            mask-image: var(--nav-icon-src);
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    pointer-events: none;
}

.sup-nav-label { font-size: inherit; }

/* Hamburger menu (3 bars) — right side */
.sup-header-menu-wrap {
    position: absolute;
    right: 1.25rem;
    flex-shrink: 0;
}

.sup-btn-header-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--bg-btn);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sup-btn-header-menu span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: background 0.2s;
}

.sup-btn-header-menu:hover {
    background: var(--bg-btn-hover);
    border-color: var(--border-hover);
}

.sup-btn-header-menu:hover span {
    background: var(--color-orange);
}

/* Dropdown */
.sup-header-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-header);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.sup-header-dropdown.open { display: block; }

.sup-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.sup-dropdown-item:hover { background: var(--bg-btn-hover); }

.sup-dropdown-item img {
    width: 16px; height: 16px;
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
}

/* Theme toggle labels */
.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }
[data-theme="light"] .theme-icon-light { display: block; }
[data-theme="light"] .theme-icon-dark { display: none; }
.theme-label-light { display: none; }
.theme-label-dark { display: inline; }
[data-theme="light"] .theme-label-light { display: inline; }
[data-theme="light"] .theme-label-dark { display: none; }

/* =============================================
   Mobile Bottom Nav (identical to account pattern)
   ============================================= */
.sup-mobile-nav-wrapper {
    display: none;
    position: relative;
    z-index: 100;
}

@media (max-width: 768px) {
    .sup-header-nav-desktop { display: none !important; }

    .sup-header-logo-link {
        left: 50%;
        transform: translateX(-50%);
    }

    .sup-mobile-nav-wrapper { display: block; }

    .sup-mobile-nav {
        position: fixed;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.6rem 0.25rem;
        background: var(--bg-header);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 22px;
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 0 0.5px rgba(255, 255, 255, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        z-index: 100;
    }

    .sup-mobile-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.4rem 0.75rem;
        border-radius: 12px;
        color: var(--text-dim);
        font-size: 0.65rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        justify-content: center;
    }

    .sup-mobile-item:hover { color: var(--text-primary); }
    .sup-mobile-item.active { background: rgba(var(--color-orange-rgb), 0.12); color: var(--color-orange); }

    .sup-mobile-icon {
        width: 22px; height: 22px;
        filter: var(--icon-filter);
        opacity: var(--icon-opacity);
    }

    /* Active mobile item: swap the <img> for a mask-painted ::before so the
       accent colour (CSS var) follows brand changes. See the desktop nav
       block above for the same pattern. */
    .sup-mobile-item.active .sup-mobile-icon { display: none; }
    .sup-mobile-item.active::before {
        content: '';
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        background-color: var(--color-orange);
        -webkit-mask-image: var(--nav-icon-src);
                mask-image: var(--nav-icon-src);
        -webkit-mask-size: contain;
                mask-size: contain;
        -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
        -webkit-mask-position: center;
                mask-position: center;
        pointer-events: none;
    }

    .sup-mobile-label { font-size: 0.65rem; font-weight: 500; }
}

/* =============================================
   Container
   ============================================= */
.sup-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 32px; /* top padding for fixed navbar */
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .sup-container {
        padding: 70px 16px 100px; /* bottom for mobile nav */
    }
}

/* =============================================
   Section headings
   ============================================= */
.sup-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sup-section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* =============================================
   Glass Card — main content wrapper
   ============================================= */
.sup-glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px 28px;
}

.sup-glass-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.sup-glass-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sup-glass-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Filters row (instructions platform filter) */
.sup-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* =============================================
   Content Cards (inside glass)
   ============================================= */
.sup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px 22px;
    transition: var(--transition);
    cursor: pointer;
}

.sup-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

[data-theme="light"] .sup-card {
    background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .sup-card:hover {
    background: rgba(var(--color-orange-rgb), 0.04);
}

.sup-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sup-card-meta {
    font-size: 13px;
    color: var(--text-dim);
}

/* =============================================
   Hero (FAQ + Instructions page headers)
   ============================================= */
.sup-hero {
    text-align: center;
    padding: 20px 0 12px;
    margin-bottom: 24px;
}

.sup-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.sup-hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 auto 22px;
    max-width: 520px;
}

/* =============================================
   Search bar (shared FAQ + Instructions)
   ============================================= */
.sup-search {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 4px 14px 4px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sup-search:focus-within {
    border-color: rgba(var(--color-orange-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--color-orange-rgb), 0.08);
}

.sup-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sup-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;            /* ≥16px: iOS doesn't auto-zoom on focus */
    font-family: inherit;
    padding: 14px 4px;
    -webkit-appearance: none;   /* kill macOS search-field styling */
}

.sup-search-input::placeholder {
    color: var(--text-hint);
}
.sup-search-input::-webkit-search-decoration,
.sup-search-input::-webkit-search-cancel-button,
.sup-search-input::-webkit-search-results-button,
.sup-search-input::-webkit-search-results-decoration {
    display: none;
}

.sup-search-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.sup-search-clear:hover {
    background: rgba(var(--color-orange-rgb), 0.2);
    color: #fff;
}

/* =============================================
   Filter chips (shared FAQ categories + Instructions platforms)
   ============================================= */
.sup-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.sup-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
}

.sup-chip:hover {
    border-color: rgba(var(--color-orange-rgb), 0.3);
    color: var(--text-secondary);
}

.sup-chip.active {
    background: rgba(var(--color-orange-rgb), 0.12);
    border-color: rgba(var(--color-orange-rgb), 0.45);
    color: var(--color-orange);
    font-weight: 600;
}

.sup-chip-count {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-weight: 500;
    line-height: 1;
}
.sup-chip.active .sup-chip-count {
    background: rgba(var(--color-orange-rgb), 0.2);
    color: var(--color-orange);
}

.sup-chip-icon {
    width: 16px;
    height: 16px;
    /* Platform icons stay white in both inactive and active states — their
       SVGs ship with black fills so we rely on the filter. Dropping the
       filter on active (like accent-coloured icons elsewhere) would expose
       the black fills. */
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
    flex-shrink: 0;
}
.sup-chip.active .sup-chip-icon {
    opacity: 1;
}

/* =============================================
   FAQ — flat Q&A list
   ============================================= */
.sup-qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
}

.sup-qa-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.sup-qa-item:hover {
    border-color: var(--border-hover);
}

.sup-qa-item.open {
    border-color: rgba(var(--color-orange-rgb), 0.4);
    background: rgba(var(--color-orange-rgb), 0.03);
}

.sup-qa-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
}

.sup-qa-q-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    min-width: 0;
}

.sup-qa-q-category {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(var(--color-orange-rgb), 0.1);
    color: var(--color-orange);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sup-qa-arrow {
    color: var(--text-dim);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.sup-qa-item.open .sup-qa-arrow {
    transform: rotate(180deg);
    color: var(--color-orange);
}

.sup-qa-a {
    max-height: 0;
    overflow: hidden;
    /* Keep horizontal padding constant so text doesn't slide sideways during
       the expand/collapse transition. Only vertical padding animates. */
    padding: 0 20px;
    transition: max-height 0.35s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
}

.sup-qa-item.open .sup-qa-a {
    max-height: 3000px;
    padding-bottom: 18px;
}

.sup-qa-a-inner {
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

/* =============================================
   Legacy FAQ classes (kept for admin preview)
   ============================================= */
.sup-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sup-faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
}
.sup-faq-item:hover { border-color: var(--border-hover); }
.sup-faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
}
.sup-faq-arrow { color: var(--text-dim); transition: var(--transition); font-size: 14px; }
.sup-faq-item.open .sup-faq-arrow { transform: rotate(180deg); }
.sup-faq-answer {
    padding: 0 20px 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.sup-faq-item.open .sup-faq-answer {
    max-height: 2000px;
    padding: 0 20px 20px 20px;
}

/* =============================================
   Editor.js rendered content
   ============================================= */
.ejs-content h1 { font-size: 24px; font-weight: 700; margin: 20px 0 10px; }
.ejs-content h2 { font-size: 20px; font-weight: 600; margin: 16px 0 8px; }
.ejs-content h3 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.ejs-content h4 { font-size: 15px; font-weight: 600; margin: 12px 0 6px; color: var(--text-secondary); }
.ejs-content p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.7; }
.ejs-content ul, .ejs-content ol { margin: 8px 0 12px 20px; color: var(--text-secondary); }
.ejs-content li { margin-bottom: 4px; }
.ejs-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.ejs-content figure { margin: 12px 0; text-align: center; }
.ejs-content figcaption { font-size: 13px; color: var(--text-hint); margin-top: 6px; text-align: center; }
.ejs-content .ejs-img-border img { border: 2px solid var(--border-subtle); }
.ejs-content .ejs-img-bg { background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; }
.ejs-content .ejs-img-stretched img { width: 100%; }
.ejs-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    margin: 12px 0;
}
.ejs-content code {
    background: rgba(var(--color-orange-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
}
.ejs-content .ejs-warning {
    background: rgba(var(--color-gold-rgb), 0.1);
    border-left: 3px solid var(--color-gold);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 12px 0;
}
.ejs-content .ejs-delimiter {
    text-align: center;
    padding: 16px 0;
    color: var(--text-hint);
    font-size: 24px;
    letter-spacing: 8px;
}

/* =============================================
   Instructions — icon-led cards
   ============================================= */
.sup-inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.sup-inst-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.sup-inst-card:hover,
.sup-inst-card:focus-visible {
    transform: translateY(-1px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    outline: none;
}

.sup-inst-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
}
[data-theme="light"] .sup-inst-icon { background: rgba(0, 0, 0, 0.03); }

.sup-inst-icon img {
    width: 26px;
    height: 26px;
    filter: var(--icon-filter);
    opacity: 0.85;
}
/* App icons ship with branded colours (Happ, Hiddify, etc) — skip the
   white-tint filter so users see the real app artwork. */
.sup-inst-icon.is-app img {
    filter: none;
    opacity: 1;
}

.sup-inst-icon-fallback {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

.sup-inst-body {
    flex: 1;
    min-width: 0;
}

.sup-inst-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sup-inst-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.sup-inst-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-hint);
    flex-shrink: 0;
}

.sup-inst-app {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.sup-inst-app-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 3px;
}

.sup-inst-arrow {
    color: var(--text-hint);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.sup-inst-card:hover .sup-inst-arrow {
    color: var(--color-orange);
    transform: translateX(2px);
}

/* Legacy classes kept for any remaining callers */
.sup-instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.sup-category-group { margin-bottom: 32px; }
.sup-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

/* =============================================
   Misc
   ============================================= */
.sup-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.sup-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-hint);
    font-size: 15px;
}

.sup-empty-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px dashed var(--border-subtle);
    border-radius: 14px;
}

.sup-empty-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    max-width: 480px;
}

.sup-empty-cta {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    border-radius: 10px;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(var(--color-orange-rgb), 0.25);
}
.sup-empty-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--color-orange-rgb), 0.35);
}

.sup-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.sup-back:hover { color: var(--color-orange); }

/* =============================================
   Mobile
   ============================================= */
@media (max-width: 768px) {
    .sup-section-title { font-size: 22px; }
    .sup-instructions-grid { grid-template-columns: 1fr; }
    .sup-inst-grid { grid-template-columns: 1fr; gap: 10px; }

    .sup-glass-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .sup-glass-header {
        flex-direction: column;
        gap: 12px;
    }

    .sup-glass-title { font-size: 19px; }

    .sup-filters {
        gap: 6px;
    }

    /* Hero */
    .sup-hero {
        padding: 10px 0 4px;
        margin-bottom: 18px;
    }
    .sup-hero-title { font-size: 28px; }
    .sup-hero-subtitle { font-size: 14px; margin-bottom: 18px; }

    /* Search */
    .sup-search {
        padding: 2px 10px 2px 10px;
        border-radius: 12px;
        gap: 4px;
    }
    .sup-search-icon { width: 18px; height: 18px; }
    .sup-search-input {
        font-size: 16px;        /* keep ≥16px to block iOS zoom */
        padding: 12px 4px;
    }

    /* Chips — horizontal scroll so many platforms don't force a wrap */
    .sup-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        /* Let the row bleed past the container padding so chips touch the edge */
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px 4px;
        scroll-padding-left: 16px;
    }
    .sup-chips::-webkit-scrollbar { display: none; }
    .sup-chip {
        flex-shrink: 0;
        font-size: 13px;
        padding: 7px 14px;
        gap: 6px;
    }
    .sup-chip-count { font-size: 11px; padding: 1px 6px; }

    /* Q&A */
    .sup-qa-q { padding: 14px 16px; gap: 10px; }
    .sup-qa-q-text { font-size: 14px; }
    .sup-qa-q-category { font-size: 10px; padding: 2px 6px; }
    .sup-qa-a { padding: 0 16px; }
    .sup-qa-item.open .sup-qa-a { padding-bottom: 16px; }

    /* Instructions */
    .sup-inst-card { padding: 12px 14px; gap: 12px; border-radius: 12px; }
    .sup-inst-icon { width: 42px; height: 42px; border-radius: 10px; }
    .sup-inst-icon img { width: 24px; height: 24px; }
    .sup-inst-title { font-size: 14px; }
    .sup-inst-meta { font-size: 11.5px; }

    /* Empty state */
    .sup-empty-block { padding: 36px 16px; }
    .sup-empty-text { font-size: 14px; }
}

@media (max-width: 380px) {
    .sup-glass-card {
        padding: 16px 12px;
        border-radius: 14px;
    }
    .sup-glass-title { font-size: 17px; }
    .sup-hero-title { font-size: 24px; }
    .sup-inst-icon { width: 38px; height: 38px; }
    .sup-inst-icon img { width: 22px; height: 22px; }
    .sup-qa-q { padding: 13px 14px; }
    .sup-qa-a { padding: 0 14px; }
    .sup-qa-item.open .sup-qa-a { padding-bottom: 14px; }
}

/* Auto-applied when brand.js detects that the uploaded logo has a
   non-transparent background (corner-pixel sampling). Turns a square-cropped
   artwork into a soft app-icon shape that integrates with dark UIs. */
img[data-brand="logo"].has-bg {
    border-radius: 22%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
