/* ==========================================================================
   PurrCine Premium — cinematic design layer
   Loaded last so it can refine every earlier stylesheet without removing any
   feature. Focus: rich charcoal canvas, one vibrant accent, glassmorphism,
   tactile cards, cinematic hero and fully responsive layouts.
   ========================================================================== */

:root {
    --pc-accent: #ff2d55;
    --pc-accent-2: #7c5cff;
    --pc-cyan: #22d3ee;
    --pc-ink: #07070c;
    --pc-ink-2: #0c0c14;
    --pc-glass: rgba(18, 18, 28, 0.62);
    --pc-glass-strong: rgba(12, 12, 20, 0.86);
    --pc-line: rgba(255, 255, 255, 0.10);
    --pc-line-soft: rgba(255, 255, 255, 0.06);
    --pc-text: #f7f4ef;
    --pc-muted: #a7a2b4;
    --pc-radius: 16px;
    --pc-radius-sm: 12px;
    --pc-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
    --pc-grad: linear-gradient(120deg, #ff2d55 0%, #ff5f7a 42%, #7c5cff 100%);
    --pc-grad-soft: linear-gradient(120deg, rgba(255, 45, 85, 0.18), rgba(124, 92, 255, 0.18));
    --pc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- canvas */
html { scroll-behavior: smooth; }
body {
    /* theme-aware canvas: falls back to the premium charcoal for the default theme */
    background:
        radial-gradient(75rem 39rem at 12% -8%, var(--theme-glow, rgba(255, 45, 85, 0.14)), transparent 60%),
        radial-gradient(62rem 35rem at 92% 4%, color-mix(in srgb, var(--theme-accent-2, #7c5cff) 14%, transparent), transparent 62%),
        var(--theme-bg, var(--pc-ink)) !important;
    color: var(--pc-text);
    letter-spacing: 0.005em;
}

::selection { background: rgba(255, 45, 85, 0.35); color: #fff; }

/* ------------------------------------------------------------- header */
.site-header {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    transition: background 0.35s var(--pc-ease), border-color 0.35s var(--pc-ease),
                backdrop-filter 0.35s var(--pc-ease), box-shadow 0.35s var(--pc-ease);
}
.site-header.is-scrolled {
    background: rgba(9, 9, 15, 0.72) !important;
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    backdrop-filter: blur(15px) saturate(150%);
    border-bottom-color: var(--pc-line) !important;
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}
.site-header .brand-word span,
.site-header .brand-word { letter-spacing: -0.02em; }
.main-nav a {
    position: relative;
    transition: color 0.2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--pc-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--pc-ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

/* --------------------------------------------------------------- hero */
.hero-v3 {
    position: relative;
    isolation: isolate;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
}
.hero-v3-slide { min-height: clamp(440px, 66vh, 720px); }
.hero-v3-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 12, 0.94) 0%, rgba(7, 7, 12, 0.72) 38%, rgba(7, 7, 12, 0.18) 68%, rgba(7, 7, 12, 0.55) 100%),
        linear-gradient(0deg, var(--pc-ink) 2%, transparent 42%);
    pointer-events: none;
}
.hero-v3-poster-card {
    border-radius: 18px;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.5s var(--pc-ease), box-shadow 0.5s var(--pc-ease);
}
.hero-v3-poster-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 60px 110px -40px rgba(255, 45, 85, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}
.hero-v3-poster-glow {
    filter: blur(46px);
    opacity: 0.75;
    animation: pc-breathe 7s ease-in-out infinite;
}
@keyframes pc-breathe {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.12); opacity: 0.85; }
}
.hero-v3-title {
    font-family: var(--display, "Fraunces", serif);
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-wrap: balance;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.hero-v3-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 45, 85, 0.14);
    border: 1px solid rgba(255, 45, 85, 0.35);
    color: #ffd7e0;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}
.hero-v3-actions .btn { transition: transform 0.25s var(--pc-ease), box-shadow 0.25s var(--pc-ease); }
.hero-v3-actions .btn-primary {
    background: var(--pc-grad);
    border: 0;
    color: #fff;
    box-shadow: 0 18px 40px -18px rgba(255, 45, 85, 0.75);
}
.hero-v3-actions .btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 24px 50px -18px rgba(255, 45, 85, 0.9);
}

/* --------------------------------------------------------------- buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.22s var(--pc-ease), box-shadow 0.22s var(--pc-ease),
                background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn-primary {
    background: var(--pc-grad) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 16px 34px -18px rgba(255, 45, 85, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(255, 45, 85, 0.9); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--pc-line) !important;
    color: var(--pc-text) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10) !important; border-color: rgba(255, 255, 255, 0.22) !important; }

/* --------------------------------------------------------------- sections */
.section-title {
    font-family: var(--display, "Fraunces", serif);
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.eyebrow {
    color: var(--pc-accent);
    letter-spacing: 0.16em;
    font-weight: 700;
}
.section-link { color: var(--pc-muted); transition: color 0.2s ease, gap 0.2s ease; }
.section-link:hover { color: #fff; }

/* --------------------------------------------------------------- cards */
.movie-row {
    gap: 14px;
    padding: 6px 2px 18px;
    scroll-padding-left: 2px;
}
.movie-card {
    border-radius: var(--pc-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--pc-line-soft);
    overflow: visible;
    transition: transform 0.32s var(--pc-ease), box-shadow 0.32s var(--pc-ease),
                border-color 0.32s ease;
    will-change: transform;
}
.movie-card .card-poster {
    border-radius: var(--pc-radius) var(--pc-radius) 0 0;
    overflow: hidden;
    display: block;
}
.movie-card .card-poster img {
    transition: transform 0.55s var(--pc-ease), filter 0.4s ease;
}
.movie-card:hover,
.movie-card:focus-within {
    transform: translateY(-8px) scale(1.06);
    z-index: 12;
    border-color: rgba(255, 45, 85, 0.45);
    box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 45, 85, 0.25);
}
.movie-card:hover .card-poster img,
.movie-card:focus-within .card-poster img {
    transform: scale(1.08);
    filter: saturate(1.12) brightness(0.82);
}
.movie-card .card-shade {
    background: linear-gradient(0deg, rgba(5, 5, 10, 0.9), transparent 55%);
}
.movie-card .card-play {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.28s ease, transform 0.32s var(--pc-ease);
    background: var(--pc-grad);
    box-shadow: 0 14px 30px -12px rgba(255, 45, 85, 0.8);
}
.movie-card:hover .card-play,
.movie-card:focus-within .card-play { opacity: 1; transform: scale(1); }
.movie-card .card-body { padding: 11px 12px 13px; }
.movie-card h3 { font-size: 0.92rem; letter-spacing: -0.01em; }
.rating-pill {
    background: rgba(255, 45, 85, 0.16) !important;
    color: #ffd0da !important;
    border: 1px solid rgba(255, 45, 85, 0.3);
}
.watchlist-mini {
    border-radius: 10px;
    transition: transform 0.2s var(--pc-ease), background 0.2s ease;
}
.watchlist-mini:hover { transform: scale(1.12); background: var(--pc-grad); color: #fff; }

/* Hover action row injected by premium.js */
.card-hover-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.3s var(--pc-ease);
    z-index: 4;
}
.movie-card:hover .card-hover-actions,
.movie-card:focus-within .card-hover-actions { opacity: 1; transform: translateY(0); }
.card-hover-actions .cha-play,
.card-hover-actions .cha-list {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 10, 16, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.card-hover-actions .cha-play { background: var(--pc-grad); border: 0; }
.card-hover-actions .cha-play:hover,
.card-hover-actions .cha-list:hover { filter: brightness(1.12); }
.card-hover-actions .cha-list.is-saved { background: rgba(94, 224, 160, 0.22); border-color: rgba(94, 224, 160, 0.5); }

/* --------------------------------------------------------------- brand rail */
.brand-hub-section { margin-top: 8px; }
.brand-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
    padding: 0.25rem 0 0.75rem;
}
/* On narrow screens the rail becomes a swipeable strip so every brand is reachable */
@media (max-width: 760px) {
    .brand-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(8.75rem, 42vw);
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    .brand-rail::-webkit-scrollbar { display: none; }
}
.brand-chip { cursor: pointer; }
.brand-chip {
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 84px;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--pc-line-soft);
    overflow: hidden;
    transition: transform 0.3s var(--pc-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.brand-chip::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(50% 60% at 30% 30%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.brand-chip:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 60%, transparent);
    box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--brand) 70%, transparent);
}
.brand-chip:hover::before { opacity: 0.9; }
.brand-chip-mark {
    position: relative;
    font-family: var(--display, "Fraunces", serif);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    color: var(--brand);
    text-shadow: 0 2px 20px color-mix(in srgb, var(--brand) 45%, transparent);
}
.brand-chip-sub {
    position: relative;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------- continue watching */
.continue-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--pc-line-soft);
    background: var(--pc-ink-2);
    transition: transform 0.3s var(--pc-ease), border-color 0.3s ease;
}
.continue-card:hover { transform: translateY(-5px); border-color: rgba(255, 45, 85, 0.4); }
.continue-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}
.continue-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pc-grad);
    box-shadow: 0 0 12px rgba(255, 45, 85, 0.6);
}

/* --------------------------------------------------------------- ad-free note */
.ad-free-clarify {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 22px 0 8px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(124, 92, 255, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.22);
}
.ad-free-clarify-icon { font-size: 20px; line-height: 1; }
.ad-free-clarify strong { display: block; margin-bottom: 4px; }
.ad-free-clarify p { margin: 0; color: var(--pc-muted); font-size: 13.5px; line-height: 1.55; }

/* --------------------------------------------------------------- support tickets */
.support-page .section-head { align-items: flex-start; }
.support-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.support-threads { display: grid; gap: 18px; }
.support-thread {
    border-radius: 16px;
    border: 1px solid var(--pc-line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    padding: 18px 20px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.support-thread.is-focused { border-color: rgba(255, 45, 85, 0.5); box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.18); }
.support-thread.is-closed { opacity: 0.78; }
.support-thread-title strong { font-size: 1.02rem; }
.ticket-code-wrap { white-space: nowrap; }
.ticket-code {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 45, 85, 0.14);
    border: 1px solid rgba(255, 45, 85, 0.3);
    color: #ffd0da;
    font-size: 11.5px;
    letter-spacing: 0.08em;
}
.support-bubbles { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.thread-bubble {
    max-width: 86%;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid var(--pc-line-soft);
    background: rgba(255, 255, 255, 0.04);
}
.thread-bubble p { margin: 4px 0 6px; line-height: 1.55; font-size: 14px; }
.thread-bubble small { color: var(--pc-muted); font-size: 11px; }
.thread-who { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--pc-muted); }
.thread-bubble.thread-user { align-self: flex-start; border-bottom-left-radius: 4px; }
.thread-bubble.thread-admin {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.14), rgba(124, 92, 255, 0.14));
    border-color: rgba(255, 45, 85, 0.3);
}
.thread-bubble.thread-admin .thread-who { color: #ffb9c7; }
.support-reply { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--pc-line-soft); }
.support-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ticket-closed-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--pc-line);
    font-size: 13px;
    color: var(--pc-muted);
}
.ticket-closed-note strong { color: var(--pc-text); }
.support-empty {
    max-width: 560px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--pc-line-soft);
}
.support-empty h2 { margin: 8px 0; }
.support-empty p { color: var(--pc-muted); }
.ticket-lookup {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px 0;
}
.ticket-lookup .field { min-width: 220px; text-align: left; }
.ticket-lookup--inline { justify-content: flex-start; margin: 0 0 16px; }
.support-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ticket-success p { margin: 6px 0; }
.ticket-success-code { font-size: 14px; }
.ticket-success-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.status-pill.status-closed { background: rgba(255, 255, 255, 0.08); color: var(--pc-muted); border-color: var(--pc-line); }

/* --------------------------------------------------------------- server rescue */
.server-rescue {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(255, 45, 85, 0.10), rgba(124, 92, 255, 0.10));
    border: 1px solid rgba(255, 45, 85, 0.24);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.server-rescue p { margin: 0; flex: 1; min-width: 200px; font-size: 13px; color: var(--pc-muted); }
.server-rescue p strong { color: var(--pc-text); }
.server-rescue-ico { font-size: 18px; }
.server-rescue.is-alert {
    border-color: rgba(255, 45, 85, 0.7);
    box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.25), 0 18px 40px -26px rgba(255, 45, 85, 0.8);
    animation: pc-rescue-pulse 2.2s ease-in-out infinite;
}
@keyframes pc-rescue-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.2), 0 18px 40px -26px rgba(255, 45, 85, 0.6); }
    50% { box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.10), 0 18px 44px -24px rgba(255, 45, 85, 0.9); }
}

/* --------------------------------------------------------------- ads */
.ad-slot { border-radius: 14px; overflow: hidden; }
.ad-slot .ad-label { opacity: 0.55; }
.ad-frame { border-radius: 12px; background: transparent !important; }

/* --------------------------------------------------------------- AI drama fixes */
.drama-detail { padding-top: calc(var(--header-h, 64px) + 24px) !important; }
.drama-player {
    border-radius: 18px;
    border: 1px solid var(--pc-line);
    box-shadow: var(--pc-shadow);
}
.drama-watch-layout { gap: 20px; }
.drama-episode-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.drama-episode { border-radius: 12px; }
.drama-now { gap: 10px; }
.drama-now-copy strong { font-size: 1.05rem; }

/* Reels feed: robust on every viewport */
.drama-feed-shell {
    max-width: 1180px;
    min-height: 0 !important;
    padding: calc(var(--header-h, 64px) + 18px) clamp(12px, 2vw, 24px) 28px !important;
    align-items: start;
}
.drama-feed-shell .drama-reels {
    width: 100%;
    max-width: 430px;
    height: min(calc(100dvh - var(--header-h, 64px) - 60px), 820px);
    margin: 0 auto;
    border-radius: 20px;
    overscroll-behavior-y: contain;
}
.drama-feed-shell .drama-reel { min-height: 100%; }
.drama-reel-info { padding-bottom: clamp(84px, 12vh, 110px) !important; }
.drama-reel-transport { padding-bottom: 8px; }
.drama-reel-side { bottom: clamp(150px, 24vh, 210px); }
.drama-reel-title { font-size: clamp(1.35rem, 4vw, 2.2rem); }

@media (max-width: 1024px) {
    .drama-feed-shell { grid-template-columns: 1fr; padding-top: calc(var(--header-h, 64px) + 14px) !important; }
    .drama-feed-rail { grid-template-columns: 96px minmax(0, 1fr); }
    .drama-feed-shell .drama-reels { max-width: 100%; height: min(calc(100dvh - var(--header-h, 64px) - 40px), 760px); }
}
@media (max-width: 760px) {
    .drama-feed-shell { display: block; padding: 0 !important; }
    .drama-feed-rail { display: none; }
    .drama-feed-shell .drama-reels {
        height: calc(100dvh - var(--header-h, 64px));
        max-width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin-top: var(--header-h, 64px);
    }
    .drama-reel-info { padding-bottom: 96px !important; }
    .drama-reel-side { bottom: 168px; gap: 10px; }
    .reel-side-btn { width: 42px; height: 42px; }
    .drama-reel-sub { display: none; }
    .drama-player { border-radius: 14px; }
    .drama-episode-grid { grid-template-columns: 1fr; }
    .drama-now { flex-direction: column; align-items: flex-start; }
    .drama-now-actions { width: 100%; }
    .drama-now-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 520px) {
    .drama-reel-title { font-size: 1.4rem; }
    .drama-reel-meta { gap: 6px; }
    .drama-reel-meta span { font-size: 10px; padding: 4px 8px; }
}

/* --------------------------------------------------------------- watch page */
.watch-layout { gap: 20px; }
.player-card {
    border-radius: 18px !important;
    border: 1px solid var(--pc-line);
    box-shadow: var(--pc-shadow);
    overflow: hidden;
}
.player-toolbar { border-top: 1px solid var(--pc-line-soft); }
.sheet-card { border-radius: 20px 20px 0 0; }

/* --------------------------------------------------------------- misc polish */
.content-card, .panel, .page-hero, .form-stack, .payment-box, .voucher-box {
    border-radius: var(--pc-radius);
}
.flash { border-radius: 12px; }
.site-footer { border-top: 1px solid var(--pc-line-soft); }
.mobile-dock { border-top: 1px solid var(--pc-line); }

/* Reveal animation (progressive enhancement, JS-gated so content is never lost) */
@media (prefers-reduced-motion: no-preference) {
    body.pc-js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s var(--pc-ease), transform 0.7s var(--pc-ease);
        will-change: opacity, transform;
    }
    body.pc-js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Drag-to-scroll rails — .is-dragging is only added after real movement, so a
   plain click always reaches the link underneath. */
.brand-rail, .movie-row, .rail { scroll-behavior: smooth; }
.brand-rail.is-dragging, .movie-row.is-dragging, .rail.is-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}
.brand-rail.is-dragging .brand-chip, .movie-row.is-dragging .movie-card { cursor: grabbing; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .hero-v3-slide { min-height: 520px; }
    .hero-v3-media::after {
        background:
            linear-gradient(0deg, var(--pc-ink) 6%, rgba(7, 7, 12, 0.55) 55%, rgba(7, 7, 12, 0.25) 100%);
    }
    .hero-v3-poster-card { display: none; }
    .ad-free-clarify { flex-direction: column; }
}
@media (max-width: 640px) {
    .hero-v3-slide { min-height: 470px; }
    .hero-v3-title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
    .hero-v3-actions .btn { flex: 1 1 auto; justify-content: center; }
    .movie-row { gap: 10px; }
    .movie-card:hover, .movie-card:focus-within { transform: translateY(-4px) scale(1.03); }
    .card-hover-actions { display: none; }
    .support-thread { padding: 14px; }
    .thread-bubble { max-width: 94%; }
    .server-rescue { padding: 10px 12px; }
    .server-rescue .btn { width: 100%; justify-content: center; }
}
@media (hover: none) {
    .movie-card:hover, .movie-card:focus-within { transform: none; }
}

/* Print friendliness */
@media print {
    .purr-seasonal, .mobile-dock { display: none !important; }
    body { background: #fff !important; color: #111 !important; }
}

/* --------------------------------------------------------------- top 10 chart */
.top10-row { align-items: flex-end; }
.top10-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-left: 34px;
    flex: 0 0 auto;
}
.top10-item .movie-card { width: 100%; }
.top10-rank {
    position: absolute;
    left: -4px;
    bottom: 34px;
    font-family: var(--display, "Fraunces", serif);
    font-size: clamp(58px, 6vw, 92px);
    font-weight: 800;
    line-height: 0.72;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
    text-shadow: 0 12px 40px rgba(255, 45, 85, 0.35);
    pointer-events: none;
    z-index: 2;
}
.top10-item:nth-child(1) .top10-rank { -webkit-text-stroke-color: var(--pc-accent); }
.top10-item:nth-child(2) .top10-rank { -webkit-text-stroke-color: #ffb84d; }
.top10-item:nth-child(3) .top10-rank { -webkit-text-stroke-color: var(--pc-cyan); }
@media (max-width: 640px) {
    .top10-item { padding-left: 24px; }
    .top10-rank { bottom: 30px; font-size: 52px; -webkit-text-stroke-width: 1.5px; }
}

/* --------------------------------------------------------------- mobile menu */
.mobile-nav {
    max-height: calc(100dvh - var(--header-h, 4.25rem) - 1.5rem);
    overflow: hidden;
    padding: 0.5rem;
}
.mobile-nav.open { display: block !important; }
.mn-scroll {
    display: grid;
    gap: 0.15rem;
    max-height: calc(100dvh - var(--header-h, 4.25rem) - 2.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    padding-right: 0.25rem;
}
.mn-scroll::-webkit-scrollbar { width: 6px; }
.mn-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
.mobile-nav .mn-group {
    margin: 0.6rem 0 0.2rem;
    padding: 0 0.75rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pc-muted, rgba(244, 245, 249, 0.5));
}
.mobile-nav .mn-group:first-child { margin-top: 0.1rem; }
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.75rem;
}
.mobile-nav .mn-tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    color: var(--pc-accent, #00f0ff);
    background: color-mix(in srgb, var(--pc-accent, #00f0ff) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--pc-accent, #00f0ff) 35%, transparent);
}
.mobile-nav .mn-admin { color: var(--pc-accent, #00f0ff); }
.mobile-nav .mn-signout { margin: 0.35rem 0 0.15rem; }
.mobile-nav .mn-signout button {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid var(--pc-line, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.04);
    color: #ff7a90;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.mobile-nav .mn-signout button:hover { background: rgba(255, 60, 90, 0.12); }
body.nav-open { overflow: hidden; }
@media (max-width: 400px) {
    .mobile-nav { width: calc(100% - 1rem); right: 0.5rem; }
}

/* ------------------------------------------------------------------
 * Support tickets — "new reply" cues
 * ------------------------------------------------------------------ */
.support-thread-pills {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.support-new-reply {
    background: color-mix(in srgb, var(--theme-accent, #00f0ff) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent, #00f0ff) 45%, transparent);
    color: var(--theme-accent, #00f0ff);
    font-weight: 700;
    animation: support-pill-pulse 2.4s ease-in-out infinite;
}
@keyframes support-pill-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .62; }
}
.support-unread-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .55rem 0 0;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--theme-accent, #00f0ff);
    background: color-mix(in srgb, var(--theme-accent, #00f0ff) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent, #00f0ff) 32%, transparent);
}
.support-unread-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--theme-accent, #00f0ff);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--theme-accent, #00f0ff) 22%, transparent);
}
@media (prefers-reduced-motion: reduce) {
    .support-new-reply { animation: none; }
}

/* Messages badge in the account menu */
.menu-unread-dot {
    margin-left: auto;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    color: #0b0d12;
    background: var(--theme-accent, #00f0ff);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--theme-accent, #00f0ff) 20%, transparent);
}
.user-dropdown a:has(.menu-unread-dot) { display: flex; align-items: center; gap: .5rem; }

/* =========================================================================
   ROUND 4 — Support inbox rebuild
   Organised, tactile ticket threads with universal cross-device behaviour.
   Everything is sized with rem/clamp so 320px phones and 8K walls both work.
   ========================================================================= */

.support-page {
    --sp-gap: clamp(0.75rem, 1.6vw, 1.35rem);
    --sp-pad: clamp(0.9rem, 2.1vw, 1.5rem);
    --sp-radius: clamp(14px, 1.6vw, 20px);
    --sp-bubble: clamp(13px, 1.05vw, 15px);
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 3vw, 2rem);
}

/* ---- hero ------------------------------------------------------------- */
.support-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-gap);
    flex-wrap: wrap;
    padding: var(--sp-pad) clamp(1rem, 2.4vw, 1.75rem);
    margin-bottom: var(--sp-gap);
    border-radius: var(--sp-radius);
    border: 1px solid var(--pc-line-soft);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
        radial-gradient(120% 160% at 100% 0%, rgba(124, 92, 255, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    position: relative;
    overflow: hidden;
}
.support-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% auto;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.18), transparent 70%);
    pointer-events: none;
}
.support-hero-copy { min-width: 0; flex: 1 1 22rem; position: relative; z-index: 1; }
.support-hero h1 { margin: 0.25rem 0 0.4rem; font-size: clamp(1.5rem, 3.4vw, 2.35rem); line-height: 1.12; }
.support-hero .section-sub { margin: 0; max-width: 56ch; color: var(--pc-muted); font-size: clamp(0.86rem, 1.1vw, 0.98rem); line-height: 1.6; }
.support-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.support-head-actions .btn { white-space: nowrap; }

.support-unread-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 45, 85, 0.14);
    border: 1px solid rgba(255, 45, 85, 0.32);
    color: #ffd3dd;
    font-size: clamp(0.72rem, 0.95vw, 0.8rem);
    font-weight: 600;
}
.support-unread-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #ff2d55;
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.6);
    animation: support-pill-pulse 2s ease-out infinite;
    flex: none;
}

/* ---- jump chips ------------------------------------------------------- */
.support-jump {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 var(--sp-gap);
    padding-bottom: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.support-jump::-webkit-scrollbar { height: 5px; }
.support-jump::-webkit-scrollbar-thumb { background: var(--pc-line); border-radius: 99px; }
.support-jump-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    max-width: min(72vw, 20rem);
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--pc-line-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--pc-text);
    font-size: clamp(0.72rem, 0.95vw, 0.82rem);
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.support-jump-chip:hover,
.support-jump-chip:focus-visible {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-1px);
}
.support-jump-chip.has-unread { border-color: rgba(255, 45, 85, 0.42); }
.support-jump-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-jump-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; background: var(--pc-muted); }
.support-jump-dot.status-new { background: #ffb020; }
.support-jump-dot.status-replied { background: #2ecc71; }
.support-jump-dot.status-approved { background: #2ecc71; }
.support-jump-dot.status-closed { background: #7a7f8c; }
.support-jump-new {
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffd3dd;
    background: rgba(255, 45, 85, 0.24);
    padding: 0.1rem 0.34rem;
    border-radius: 5px;
}

/* ---- thread card ------------------------------------------------------ */
.support-threads { display: grid; gap: var(--sp-gap); }
.support-thread {
    border-radius: var(--sp-radius);
    border: 1px solid var(--pc-line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    padding: var(--sp-pad);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    scroll-margin-top: 5.5rem;
    overflow: hidden;
}
.support-thread.is-unread { border-color: rgba(255, 45, 85, 0.34); box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.12); }
.support-thread.is-focused { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18); }
.support-thread.is-closed { opacity: 0.82; }

.support-thread-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--pc-line-soft);
}
.support-thread-avatar {
    display: grid;
    place-items: center;
    width: clamp(2.1rem, 3.2vw, 2.6rem);
    aspect-ratio: 1;
    border-radius: 50%;
    font-weight: 800;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #06121a;
    background: linear-gradient(135deg, #22d3ee, #7c5cff);
    flex: none;
}
.support-thread-title { min-width: 0; }
.support-thread-title h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(0.98rem, 1.5vw, 1.15rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.support-thread-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.support-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--pc-line-soft);
    color: var(--pc-muted);
    font-size: clamp(0.64rem, 0.9vw, 0.72rem);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.support-meta-code { color: #ffd0da; border-color: rgba(255, 45, 85, 0.3); background: rgba(255, 45, 85, 0.12); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.support-thread-pills { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---- bubbles ---------------------------------------------------------- */
.support-bubbles { display: flex; flex-direction: column; gap: 0.7rem; margin: 0.95rem 0 0.2rem; }
.thread-row { display: flex; gap: 0.55rem; align-items: flex-end; min-width: 0; }
.thread-row-user { flex-direction: row; }
.thread-row-admin { flex-direction: row-reverse; }
.thread-avatar {
    display: grid;
    place-items: center;
    width: clamp(1.6rem, 2.4vw, 2rem);
    aspect-ratio: 1;
    border-radius: 50%;
    flex: none;
    font-size: clamp(0.62rem, 0.9vw, 0.72rem);
    font-weight: 800;
    color: var(--pc-muted);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--pc-line-soft);
}
.thread-avatar.is-admin { color: #06121a; background: linear-gradient(135deg, #ff2d55, #7c5cff); border-color: transparent; }
.thread-bubble {
    max-width: min(86%, 46rem);
    min-width: 0;
    padding: clamp(0.6rem, 1.1vw, 0.85rem) clamp(0.75rem, 1.4vw, 1.05rem);
    border-radius: 14px;
    border: 1px solid var(--pc-line-soft);
    background: rgba(255, 255, 255, 0.045);
    overflow-wrap: anywhere;
}
.thread-bubble p { margin: 0.28rem 0 0.4rem; line-height: 1.6; font-size: var(--sp-bubble); }
.thread-bubble small { display: block; color: var(--pc-muted); font-size: clamp(0.62rem, 0.85vw, 0.7rem); }
.thread-who {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: clamp(0.62rem, 0.85vw, 0.7rem);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--pc-muted);
}
.thread-tag {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    padding: 0.08rem 0.36rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--pc-muted);
    text-transform: none;
    font-weight: 700;
}
.thread-tag-admin { background: rgba(255, 45, 85, 0.2); color: #ffd0da; }
.thread-bubble.thread-user { border-bottom-left-radius: 4px; }
.thread-bubble.thread-admin {
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.15), rgba(124, 92, 255, 0.15));
    border-color: rgba(255, 45, 85, 0.3);
}
.thread-bubble.thread-admin .thread-who { color: #ffb9c7; }

/* ---- attachments ------------------------------------------------------ */
.ticket-attach-thumb {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.5rem 0 0.35rem;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--pc-line-soft);
    background: rgba(0, 0, 0, 0.28);
    max-width: 100%;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ticket-attach-thumb:hover,
.ticket-attach-thumb:focus-visible { border-color: rgba(34, 211, 238, 0.5); transform: translateY(-1px); }
.ticket-attach-thumb img {
    display: block;
    width: auto;
    max-width: min(100%, 20rem);
    max-height: 12rem;
    border-radius: 9px;
    object-fit: cover;
}
.ticket-attach-file { padding: 0.5rem 0.7rem; font-size: 0.82rem; color: var(--pc-text); }
.ticket-attach-open { font-size: clamp(0.6rem, 0.85vw, 0.68rem); color: var(--pc-muted); letter-spacing: 0.04em; }

/* ---- reply form ------------------------------------------------------- */
.support-reply { margin-top: 0.95rem; padding-top: 0.95rem; border-top: 1px dashed var(--pc-line-soft); }
.support-reply-field textarea {
    width: 100%;
    min-height: 4.6rem;
    resize: vertical;
    font-size: 16px !important; /* 16px stops iOS zoom-on-focus */
    line-height: 1.55;
}
@media (min-width: 900px) {
    .support-reply-field textarea { font-size: 15px !important; }
}
.support-reply-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}
.support-reply-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-left: auto; }
.support-reply-actions .muted { font-size: clamp(0.68rem, 0.9vw, 0.76rem); }

/* ---- attach drop (shared with contact.php) ---------------------------- */
.attach-drop {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px dashed var(--pc-line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-width: 0;
    flex: 1 1 15rem;
}
.attach-drop:hover,
.attach-drop.is-drag { border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.08); }
.attach-drop.has-file { border-style: solid; border-color: rgba(46, 204, 113, 0.45); background: rgba(46, 204, 113, 0.07); }
.attach-drop input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.attach-drop:focus-within { outline: 2px solid rgba(34, 211, 238, 0.6); outline-offset: 2px; }
.attach-drop > svg,
.attach-drop-icon {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: none;
    border-radius: 9px;
    background: rgba(34, 211, 238, 0.12);
    color: #7fe8f7;
}
.attach-drop-icon svg { width: 1.05rem; height: 1.05rem; }
.attach-copy { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.attach-copy strong { font-size: clamp(0.76rem, 1vw, 0.84rem); font-weight: 700; color: var(--pc-text); }
.attach-copy small { font-size: clamp(0.64rem, 0.85vw, 0.72rem); color: var(--pc-muted); }
.optional-tag {
    font-style: normal;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--pc-muted);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 0.08rem 0.32rem;
    width: fit-content;
}
.attach-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--pc-line-soft);
    min-width: 0;
    flex-wrap: wrap;
}
.attach-preview[hidden] { display: none !important; }
.attach-preview img {
    width: 3rem;
    height: 3rem;
    border-radius: 7px;
    object-fit: cover;
    flex: none;
}
.attach-preview-meta {
    font-size: clamp(0.62rem, 0.85vw, 0.7rem);
    color: var(--pc-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 6rem;
}
.attach-remove {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--pc-line);
    background: rgba(255, 45, 85, 0.16);
    color: #ffd0da;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.attach-remove:hover { background: rgba(255, 45, 85, 0.3); }
/* when the preview lives inside the drop, stack it under the copy */
.attach-drop .attach-preview { flex-basis: 100%; }

/* ---- gate (contact.php) ---------------------------------------------- */
.ticket-gate {
    max-width: 34rem;
    margin: 1.5rem auto;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: var(--sp-radius, 18px);
    text-align: center;
    border: 1px solid var(--pc-line-soft);
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.ticket-gate-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 92, 255, 0.22));
    border: 1px solid rgba(34, 211, 238, 0.3);
}
.ticket-gate h3 { margin: 0 0 0.5rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.ticket-gate p { margin: 0 0 0.9rem; color: var(--pc-muted); font-size: clamp(0.84rem, 1.05vw, 0.92rem); line-height: 1.6; }
.ticket-gate-list {
    list-style: none;
    margin: 0 auto 1.1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    max-width: 24rem;
    text-align: left;
}
.ticket-gate-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(0.8rem, 1vw, 0.88rem);
    color: var(--pc-text);
}
.ticket-gate-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71;
    font-weight: 800;
}
.ticket-gate-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.ticket-gate-foot { margin: 1rem 0 0 !important; font-size: clamp(0.7rem, 0.9vw, 0.78rem) !important; }
.ticket-gate-foot a { color: #7fe8f7; }

/* ---- empty state ------------------------------------------------------ */
.support-empty-icon { display: block; font-size: 2rem; margin-bottom: 0.4rem; opacity: 0.9; }
.support-empty { padding: clamp(1.3rem, 3vw, 2rem); }
.support-empty h2 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

/* ---- badges in the chrome -------------------------------------------- */
.support-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.3rem;
    border-radius: 50%;
    background: #ff2d55;
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.65);
    animation: support-pill-pulse 2s ease-out infinite;
    vertical-align: middle;
}
.menu-unread-dot {
    display: inline-grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: auto;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ff2d55;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}
.user-dropdown a:has(.menu-unread-dot) { font-weight: 700; }
.mn-tag-alert { background: rgba(255, 45, 85, 0.28) !important; color: #ffd3dd !important; }
.admin-nav-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.4rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ff2d55;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 720px) {
    .support-hero { align-items: flex-start; }
    .support-head-actions { width: 100%; }
    .support-head-actions .btn { flex: 1 1 auto; text-align: center; }
    .support-thread-head { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.5rem; }
    .support-thread-pills { grid-column: 1 / -1; justify-content: flex-start; }
    .thread-bubble { max-width: calc(100% - 2.2rem); }
    .support-reply-foot { flex-direction: column; align-items: stretch; }
    .support-reply-actions { margin-left: 0; justify-content: space-between; }
    .support-reply-actions .btn { flex: 1 1 auto; }
    .attach-drop { flex: 1 1 100%; }
}
@media (max-width: 420px) {
    .support-page { padding-inline: 0.6rem; }
    .support-thread { padding: 0.85rem; }
    .thread-avatar { display: none; }
    .thread-bubble { max-width: 100%; }
    .thread-row-admin { flex-direction: row; }
    .support-meta-chip { font-size: 0.62rem; }
    .support-hero h1 { font-size: 1.35rem; }
    .ticket-attach-thumb img { max-height: 9rem; }
}
@media (max-width: 340px) {
    .support-thread-pills .status-pill { font-size: 0.6rem; padding: 0.12rem 0.4rem; }
    .support-jump-chip { max-width: 84vw; }
}
@media (min-width: 1600px) {
    .support-page { max-width: 1180px; }
    .thread-bubble p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .support-dot, .support-unread-dot { animation: none; }
    .support-jump-chip:hover, .ticket-attach-thumb:hover { transform: none; }
}

/* ---------------------------------------------------- click-ad fallback card */
.purr-clickad-card {
    position: fixed;
    z-index: 9998;
    right: clamp(0.6rem, 2vw, 1.4rem);
    bottom: clamp(0.6rem, 2vw, 1.4rem);
    width: min(22rem, calc(100vw - 1.2rem));
    padding: clamp(0.85rem, 2vw, 1.1rem);
    border-radius: 16px;
    border: 1px solid var(--pc-line);
    background: linear-gradient(180deg, rgba(18, 20, 28, 0.97), rgba(10, 11, 16, 0.97));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    color: var(--pc-text);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.6rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(10px);
}
.purr-clickad-card.is-in { opacity: 1; transform: translateY(0); }
.purr-clickad-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffd3dd;
    background: rgba(255, 45, 85, 0.18);
    border-radius: 5px;
    padding: 0.12rem 0.4rem;
    justify-self: start;
}
.purr-clickad-close {
    grid-column: 2;
    grid-row: 1;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--pc-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--pc-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.purr-clickad-close:hover { background: rgba(255, 45, 85, 0.24); color: #fff; }
.purr-clickad-card p {
    grid-column: 1 / -1;
    margin: 0.1rem 0 0.2rem;
    font-size: clamp(0.78rem, 1vw, 0.86rem);
    line-height: 1.5;
    color: var(--pc-muted);
}
.purr-clickad-open {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.2rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #7c5cff);
    color: #06121a;
    font-size: clamp(0.74rem, 0.95vw, 0.82rem);
    font-weight: 800;
    text-decoration: none;
}
.purr-clickad-open:hover { filter: brightness(1.08); }
@media (max-width: 480px) {
    .purr-clickad-card { left: 0.6rem; right: 0.6rem; width: auto; bottom: 5.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .purr-clickad-card { transition: none; }
}
