/* ============================================================
   CREWCORE ELITE THEME 2026
   "You're not just using a mod. You're part of the network."
   ============================================================ */

:root {
    --elite-cyan: #ef4444;
    --elite-cyan-glow: rgba(239, 68, 68, 0.4);
    --elite-purple: #7c3aed;
    --elite-purple-glow: rgba(124, 58, 237, 0.3);
    --elite-gold: #f59e0b;
    --elite-glass: rgba(15, 18, 25, 0.7);
    --elite-border: rgba(239, 68, 68, 0.15);
}

/* Global: disable all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* === NETWORK STATUS BAR (Top of page) === */
.network-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background:
        radial-gradient(ellipse 60% 120% at 50% 100%, rgba(239, 68, 68, 0.07) 0%, transparent 70%),
        linear-gradient(180deg, rgba(8, 3, 3, 0.97) 0%, rgba(5, 5, 5, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.12);
    padding: 0;
    box-shadow:
        0 1px 0 rgba(239, 68, 68, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 rgba(239, 68, 68, 0.04);
    transition: opacity 0.5s ease, transform 0.3s ease;
    isolation: isolate;
    will-change: transform;
}

.network-bar.net-degraded {
    opacity: 0.5;
}

.network-bar.net-degraded .net-pulse {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: netPulseWarn 1.2s ease-in-out infinite;
}

.network-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.network-bar-inner::-webkit-scrollbar {
    display: none;
}

.net-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.7rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: background 0.2s ease;
    cursor: default;
}

.net-stat:hover {
    background: rgba(255, 255, 255, 0.05);
}

.net-divider {
    width: 1px;
    height: 16px;
    background: linear-gradient(180deg, transparent, rgba(239, 68, 68, 0.15), transparent);
    flex-shrink: 0;
}

.net-pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981, 0 0 12px rgba(16, 185, 129, 0.3);
    animation: netPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
}

.net-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    animation: netPulseRing 2.5s ease-in-out infinite;
}

@keyframes netPulse {
    0%, 100% { box-shadow: 0 0 4px #10b981; }
    50% { box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.35); }
}

@keyframes netPulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.6); opacity: 0; }
}

@keyframes netPulseWarn {
    0%, 100% { box-shadow: 0 0 6px #f59e0b; opacity: 0.7; }
    50% { box-shadow: 0 0 10px #f59e0b; opacity: 1; }
}

.net-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.net-stat:hover .net-icon {
    opacity: 0.85;
}

.net-icon svg:not([fill]) {
    color: #ef4444;
}

.net-value {
    font-family: 'Space Mono', 'VT323', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.08);
    min-width: 20px;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Counter update flash effect */
.net-value.updated {
    color: var(--elite-cyan);
    text-shadow: 0 0 10px var(--elite-cyan-glow);
}

/* Skeleton shimmer while loading initial data */
.net-value.net-loading {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.04) 25%, rgba(239, 68, 68, 0.10) 50%, rgba(239, 68, 68, 0.04) 75%);
    background-size: 200% 100%;
    animation: netSkeleton 1.8s ease-in-out infinite;
    border-radius: 3px;
    color: transparent !important;
    text-shadow: none !important;
    min-width: 28px;
    min-height: 1em;
}

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

.net-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.net-stat:hover .net-label {
    color: rgba(255, 255, 255, 0.55);
}

/* Network bar user profile — absolute right so stats stay centered */
.net-user-profile {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}
.net-user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}
.net-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}
.net-user-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.3px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .net-user-name { display: none; }
}

/* Push body content down to avoid overlap with fixed network bar + sticky tab nav */
body {
    padding-top: 6.5rem !important;
}

/* Fix tab nav top for fixed network bar */
.cc-tab-nav {
    top: 2.5rem;
    background: linear-gradient(
        180deg,
        rgba(40, 10, 10, 0.85) 0%,
        rgba(15, 5, 5, 0.90) 50%,
        rgba(5, 5, 5, 0.93) 100%
    );
    border-bottom: 1px solid rgba(239, 68, 68, 0.20);
}

.cc-tab-btn.cc-tab-active {
    background: rgba(239, 68, 68, 0.10);
}

.cc-tab-btn.cc-tab-active::after {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 -2px 12px rgba(239, 68, 68, 0.4);
}

.cc-tab-btn.cc-tab-active svg {
    color: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

.cc-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* === HERO ELITE === */
.cc-hero-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(124, 58, 237, 0.08));
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--elite-cyan);
}

.cc-hero-accent {
    background: linear-gradient(135deg, var(--elite-cyan), var(--elite-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.25));
}

.cc-btn-primary {
    background: linear-gradient(135deg, var(--elite-cyan) 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 2px 15px rgba(239, 68, 68, 0.25);
}

.cc-btn-primary:hover {
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.4);
}

.cc-btn-secondary {
    border-color: rgba(239, 68, 68, 0.15);
}

.cc-btn-secondary:hover {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.06);
}

/* === DOWNLOAD TAB ELITE === */
.cc-download-logo {
    border-color: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.15);
}

.cc-version-tag {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(124, 58, 237, 0.1));
    color: var(--elite-cyan);
    border-color: rgba(239, 68, 68, 0.12);
}

.cc-download-steps {
    border-color: var(--elite-border);
    background: var(--elite-glass);
}

.cc-download-steps h3 {
    color: var(--elite-cyan);
}

.cc-step-num {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(124, 58, 237, 0.08));
    color: var(--elite-cyan);
    border-color: rgba(239, 68, 68, 0.1);
}

.cc-install-step {
    border-color: rgba(239, 68, 68, 0.04);
}

.cc-install-step:hover {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.1);
}

/* === TERMS TAB ELITE === */
.cc-terms-content {
    border-color: var(--elite-border);
    background: var(--elite-glass);
}

.cc-terms-block h3 {
    color: var(--elite-cyan);
}

.cc-terms-block a {
    color: var(--elite-cyan);
}

.cc-terms-block ul li::before {
    color: var(--elite-cyan);
}

/* (removed: .cc-portal-inner / .cc-portal-icon-wrap / .cc-portal-btn — portal refactored to subtle .cc-portal-link in style.css) */

.cc-panel-portal-link {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-color: rgba(239, 68, 68, 0.12);
    color: var(--elite-cyan);
}

.cc-panel-portal-link:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(124, 58, 237, 0.06) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

/* === HEADER ELITE GRADIENT === */
header h1 {
    background: linear-gradient(135deg,
            #ffffff 0%,
            var(--elite-cyan) 35%,
            #ffffff 50%,
            var(--elite-cyan) 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.2));
    animation: eliteShimmer 6s linear infinite;
    background-size: 200% auto;
}

@keyframes eliteShimmer {
    to { background-position: 200% center; }
}

/* === PREMIUM PLANS - ELITE GLASS STYLE === */
.premium-plan {
    background: rgba(15, 18, 25, 0.85);
    border: 1px solid var(--elite-border);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    position: relative;
}

.premium-plan::before {
    display: none;
}

/* Holographic shine on hover */
.premium-plan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(239, 68, 68, 0.05) 40%,
            rgba(124, 58, 237, 0.08) 50%,
            rgba(239, 68, 68, 0.05) 60%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: var(--shine-x, 50%) var(--shine-y, 50%);
}

.premium-plan:hover {
    border-color: var(--elite-cyan);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239, 68, 68, 0.15);
    z-index: 2;
}

/* Magnetic Button Base */
#btnOpenMethodMenu {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
    will-change: transform;
}

/* Plan badges */
.plan-best,
.plan-badge {
    background: linear-gradient(135deg, var(--elite-purple), #9333ea) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 2px 12px var(--elite-purple-glow);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.plan-price-value {
    color: var(--elite-cyan);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    font-weight: 700;
}

.plan-buy-btn {
    background: linear-gradient(135deg, var(--elite-cyan) 0%, #dc2626 100%);
    color: #fff;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.plan-buy-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.plan-buy-btn:active {
    transform: translateY(0);
}

/* Lifetime plan special */
.plan-lifetime {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(15, 18, 25, 0.9)) !important;
    border: 1px solid var(--elite-purple) !important;
}

.plan-lifetime:hover {
    box-shadow: 0 0 35px var(--elite-purple-glow) !important;
}

.plan-lifetime .plan-name {
    color: #a78bfa;
    text-shadow: 0 0 8px var(--elite-purple-glow);
}

/* Featured plan */
.plan-featured {
    border-color: var(--elite-cyan) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

/* === FOOTER ELITE === */
.site-footer {
    border-top: 1px solid var(--elite-border);
    padding-top: 2rem;
    position: relative;
}

/* === BUTTON TEXT WRAPPER === */
.button-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.button-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: normal;
}

/* === RESPONSIVE === */

/* Tablet — 768px first so 600px can override */
@media (max-width: 768px) {
    .cc-tab-nav {
        top: 2.25rem;
        padding: 8px 0;
    }

    .cc-tab-nav-inner {
        padding: 8px 0;
    }

    .cc-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .cc-tab-btn.cc-tab-active {
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.2), inset 0 0 6px rgba(139, 92, 246, 0.06);
    }

    .cc-tab-btn.cc-tab-active::after {
        box-shadow: 0 -2px 8px rgba(239, 68, 68, 0.4);
    }

    /* Hide uptime hours on tablet — redundant with uptime % */
    .net-stat[data-stat="uptime-hours"] {
        display: none;
    }
    .net-stat[data-stat="uptime-hours"] + .net-divider {
        display: none;
    }
}

/* Mobile — overrides 768px where needed */
@media (max-width: 600px) {
    .network-bar-inner {
        gap: 0;
        padding: 0.5rem 0.5rem;
    }

    .net-stat {
        padding: 0 0.4rem;
    }

    .net-label {
        display: none;
    }

    .net-value {
        font-size: 0.8rem;
    }

    body {
        padding-top: 5.5rem !important;
    }

    .cc-tab-nav {
        top: 2rem;
    }
}

@media (max-width: 380px) {
    .net-stat:nth-child(n+6),
    .net-divider:nth-child(n+6) {
        display: none;
    }
}

/* === IMPROVED COOLDOWN UX === */
.cooldown-section {
    margin-bottom: 1rem;
}

.cooldown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    background: var(--elite-glass);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
}

.cooldown-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.cooldown-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--elite-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.cooldown-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.cooldown-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.cooldown-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--elite-gold), #fbbf24);
    border-radius: 2px;
    transition: width 1s linear;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* === INLINE STYLE REPLACEMENTS === */
.twostep-turnstile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.turnstile-hint-text {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    text-align: center;
    transition: color 0.2s ease;
}

.turnstile-hint-text.hint-verified {
    color: #00ff88;
}

.key-limit-helper-text {
    font-size: 0.85em;
    margin-top: 0.5rem;
}

/* === KEY EMPTY STATE === */
.key-empty-state {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
}

/* Hide empty state when key is displayed */
.key-value.processing .key-empty-state,
.key-value.typing-cursor .key-empty-state {
    display: none;
}

/* === KEY VALUE LABEL FLEX === */
.key-value-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* === DELETE BUTTON CONFIRM STATE === */
.key-delete-btn.confirm-active {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    min-width: 80px;
    animation: confirmPulse 0.6s ease;
}

@keyframes confirmPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === DISABLED BUTTON FEEDBACK === */
#btnOpenMethodMenu:disabled {
    position: relative;
    cursor: not-allowed;
}

#btnOpenMethodMenu.shake {
    animation: shakeBtn 0.4s ease;
}

@keyframes shakeBtn {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

#btnOpenMethodMenu:disabled:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === COPY BUTTON PULSE HINT === */
.copy-button.pulse-hint {
    animation: copyPulse 1.5s ease 3;
    box-shadow: 0 0 0 0 var(--elite-cyan-glow);
}

@keyframes copyPulse {
    0% { box-shadow: 0 0 0 0 var(--elite-cyan-glow); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* === COPY BUTTON COPIED STATE === */
.copy-button.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

/* === MESSAGE TOAST IMPROVEMENTS === */
.message.show {
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === PREMIUM PLANS SCROLL HINT (mobile) === */
@media (max-width: 768px) {
    .premium-plans-compact {
        position: relative;
    }

    .premium-plans-compact::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(10, 10, 10, 0.8), transparent);
        pointer-events: none;
        z-index: 1;
    }
}

/* ============================================================
   PREMIUM SECTION — COMPARISON & SOCIAL PROOF
   ============================================================ */

/* Header */
.prem-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.prem-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--elite-cyan), var(--elite-purple));
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.prem-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem;
    background: linear-gradient(135deg, #fff 30%, var(--elite-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prem-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin: 0;
}

.prem-check {
    color: var(--elite-cyan);
    font-weight: 700;
    flex-shrink: 0;
}

@keyframes premDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* MOST POPULAR tag for plan */
.plan-popular-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--elite-cyan), #dc2626);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
    z-index: 2;
    white-space: nowrap;
}

@keyframes urgencyPulse {
    0%, 100% { border-color: rgba(245, 158, 11, 0.12); }
    50% { border-color: rgba(245, 158, 11, 0.3); }
}

/* Trust footer */
.prem-trust-footer {
    text-align: center;
    margin-top: 0.8rem;
}

/* Responsive comparison */
@media (max-width: 420px) {

    .prem-title {
        font-size: 1.2rem;
    }
}

/* Download modal styles live in style-download.css and load on demand.
   This eager guard prevents the global modal markup from flashing before the chunk arrives. */
.dl-overlay {
    display: none;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .net-pulse,
    header h1,
    .premium-plan:hover {
        animation: none;
        transform: none;
        transition: none;
    }

    .cooldown-progress-fill {
        transition: none;
    }

    .copy-button.pulse-hint {
        animation: none;
    }

    .key-delete-btn.confirm-active {
        animation: none;
    }

    .dl-station-wrap {
        animation: none;
    }

    .dl-logo-ring {
        animation: none;
    }

    .dl-platform-card:not(:disabled):hover .dl-arrow {
        animation: none;
    }

    .dl-close:hover {
        transform: none;
    }
}

/* ============================================================
   PHASE 3 — ELITE ADVANCED EFFECTS
   ============================================================ */
/* === AUTH SECTION ELITE (connected bottom card) === */
.auth-section {
    border-color: rgba(239, 68, 68, 0.15);
    border-top: 1px solid rgba(239, 68, 68, 0.06);
    background: rgba(10, 14, 22, 0.8);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.3);
}

.discord-auth-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow:
        0 4px 20px rgba(88, 101, 242, 0.2),
        0 0 0 1px rgba(88, 101, 242, 0.08);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.discord-auth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 35px rgba(88, 101, 242, 0.35),
        0 0 0 1px rgba(88, 101, 242, 0.2);
}

.discord-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.discord-auth-btn:hover .discord-icon-wrapper {
    background: rgba(255, 255, 255, 0.18);
}

/* === WELCOME FLOW ELITE === */
.welcome-flow {
    border: 1px solid var(--elite-border);
    background: rgba(15, 18, 25, 0.85);
}

.discord-btn-shine {
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 70%
    );
    animation: discordShine 4s ease-in-out infinite;
}

@keyframes discordShine {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(200%); }
}

/* === PROFILE MODAL ELITE === */
.profile-modal {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow:
        0 0 50px rgba(239, 68, 68, 0.12),
        0 25px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-header {
    background: linear-gradient(
        160deg,
        rgba(239, 68, 68, 0.1) 0%,
        rgba(124, 58, 237, 0.06) 50%,
        transparent 100%
    );
}
.stat-card {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.stat-value {
    color: var(--elite-cyan);
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* === KEY DISPLAY ELITE HOLOGRAPHIC === */
.key-display-area {
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.key-display-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(239, 68, 68, 0.04),
        rgba(124, 58, 237, 0.03),
        transparent
    );
    animation: keyHoloSweep 6s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

@keyframes keyHoloSweep {
    0%, 100% { transform: translateX(-150%); }
    50% { transform: translateX(250%); }
}

.key-value {
    font-family: 'Space Mono', monospace;
    color: var(--elite-cyan);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
    position: relative;
    z-index: 1;
}

.key-container.visible .key-value {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* === KEYS LIST ELITE === */
.keys-list-section h2 {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.keys-list-section ul {
    list-style: none;
    padding: 0;
}

.key-item {
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.02);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.key-item:hover {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
    transform: translateX(3px);
}

.keys-empty-icon {
    color: rgba(239, 68, 68, 0.2);
}

/* === PREMIUM USER PANEL ELITE === */
.premium-user-panel {
    border: 1px solid rgba(255, 215, 0, 0.15);
    background: linear-gradient(165deg, rgba(255, 215, 0, 0.03) 0%, rgba(15, 18, 25, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.premium-user-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 215, 0, 0.03) 45%,
        rgba(124, 58, 237, 0.04) 50%,
        rgba(255, 215, 0, 0.03) 55%,
        transparent 65%
    );
    animation: premPanelShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes premPanelShimmer {
    0% { transform: translateX(-30%) translateY(-30%) rotate(0deg); }
    100% { transform: translateX(30%) translateY(30%) rotate(360deg); }
}

.premium-panel-badge {
    background: linear-gradient(135deg, var(--elite-gold), #fbbf24);
    color: #0a0a0a;
    font-weight: 800;
    text-shadow: none;
}

/* === TOAST NOTIFICATIONS ELITE === */
.toast-container {
    z-index: 10001;
}

.toast {
    background: linear-gradient(165deg, rgba(15, 18, 25, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
    border: 1px solid var(--elite-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(239, 68, 68, 0.05);
}

.toast-success {
    border-left: 3px solid #10b981;
}

.toast-error {
    border-left: 3px solid #ef4444;
}

.toast-info {
    border-left: 3px solid var(--elite-cyan);
}

.toast-warning {
    border-left: 3px solid var(--elite-gold);
}

.toast-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.toast-progress {
    background: var(--elite-cyan);
    opacity: 0.6;
}

/* === SVG ICON ELITE TINTING === */
.icon {
    color: inherit;
    transition: color 0.2s ease;
}

.net-icon .icon {
    color: rgba(239, 68, 68, 0.6);
}

.keys-empty-icon .icon {
    color: rgba(239, 68, 68, 0.15);
}

.button-icon .icon {
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.2));
}

/* === SCROLL REVEAL ELITE TRANSITIONS === */
/* Override: intentionally different from style.css base for elite theme feel */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === RIPPLE EFFECT ELITE === */
.ripple {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
}

/* === GENERATE BUTTON ELITE GLOW === */
.generate-button:not([disabled]) {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.generate-button:not([disabled]):hover {
    box-shadow:
        0 0 30px rgba(239, 68, 68, 0.25),
        0 8px 30px rgba(0, 0, 0, 0.3);
}

/* === ACCESS GRANTED OVERLAY ELITE === */
.access-granted-overlay {
    background: radial-gradient(
        ellipse at center,
        rgba(239, 68, 68, 0.12) 0%,
        rgba(0, 0, 0, 0.95) 70%
    );
}

.access-granted-overlay .access-text {
    color: var(--elite-cyan);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    font-family: 'Space Mono', monospace;
}

/* === CHALLENGE MODAL ELITE === */
.challenge-modal-content {
    border: 1px solid var(--elite-border);
    background: linear-gradient(165deg, rgba(15, 18, 25, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
    box-shadow:
        0 0 60px rgba(239, 68, 68, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.6);
}

.challenge-timer {
    color: var(--elite-gold);
    font-family: 'Space Mono', monospace;
}

/* === ACHIEVEMENT POPUP ELITE === */
#achievementPopup {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(15, 18, 25, 0.97) 0%, rgba(10, 14, 22, 0.99) 100%);
    box-shadow:
        0 0 40px rgba(239, 68, 68, 0.15),
        0 15px 50px rgba(0, 0, 0, 0.5);
}

/* === TWO-STEP MODAL ELITE === */
.step-card {
    border: 1px solid var(--elite-border);
    background: var(--elite-glass);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    border-color: rgba(239, 68, 68, 0.2);
}

.step-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}

.step-btn {
    background: linear-gradient(135deg, var(--elite-cyan) 0%, #dc2626 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.step-btn:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}

.step-badge {
    background: linear-gradient(135deg, var(--elite-cyan), #dc2626);
    color: #fff;
    font-weight: 800;
}

/* === PREMIUM ACTIVE BANNER ELITE === */
.premium-active-banner {
    background: linear-gradient(165deg, rgba(255, 215, 0, 0.05) 0%, rgba(124, 58, 237, 0.03) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-active-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(255, 215, 0, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
    animation: premBannerGlow 6s ease-in-out 3 alternate;
}

@keyframes premBannerGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.premium-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--elite-gold), #fbbf24);
    color: #0a0a0a;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

/* === FOOTER ELITE ENHANCED === */
.site-footer a {
    color: var(--elite-cyan);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer a:hover {
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.footer-heart {
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
}

/* === PHASE 3 REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .premium-user-panel::before,
    .key-display-area::after,
    .discord-btn-shine,
    .premium-active-banner::before {
        animation: none;
    }

    .scroll-reveal {
        transition: none;
    }

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

/* ============================================================
   PREMIUM UPSELL BANNER (inside 2-step modal)
   ============================================================ */
.twostep-premium-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 1.5rem 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(124, 58, 237, 0.06) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    animation: premBannerPulse 3s ease-in-out infinite;
}

@keyframes premBannerPulse {
    0%, 100% { border-color: rgba(255, 215, 0, 0.2); }
    50% { border-color: rgba(255, 215, 0, 0.45); }
}

.twostep-prem-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.twostep-prem-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.twostep-prem-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.twostep-prem-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--crewmate-yellow);
    letter-spacing: 0.2px;
}

.twostep-prem-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twostep-prem-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(135deg, var(--crewmate-yellow) 0%, #ffaa00 100%);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.7rem;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--duration-normal) var(--ease-default);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twostep-prem-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
    filter: brightness(1.1);
}

.twostep-prem-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .twostep-premium-banner {
        flex-direction: column;
        align-items: stretch;
        margin: 1rem 1rem 0.5rem;
        gap: 0.5rem;
    }

    .twostep-prem-btn {
        justify-content: center;
        padding: 0.55rem 1rem;
    }

    .twostep-prem-desc {
        white-space: normal;
    }
}

/* ============================================================
   ACCESSIBILITY — FOCUS INDICATORS (WCAG 2.1 AA)
   Contrast fixes consolidated into original rule definitions above.
   ============================================================ */

/* Custom focus-visible indicator for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--elite-cyan);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--elite-cyan);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.cc-tab-btn:focus-visible {
    outline-offset: -2px;
}

.plan-buy-btn:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
}

/* S2-6: PC Only hero notice */
.cc-hero-platform-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

.cc-hero-platform-notice svg {
    color: var(--elite-cyan);
    flex-shrink: 0;
}

/* ============================================================
   DEEP SPACE ATMOSPHERE — CSS-Only Nebula Layers (GPU Composited)
   Zero JS overhead. Uses will-change: transform for GPU promotion.
   All layers are pointer-events: none and z-index: -1 (below content).
   ============================================================ */

/* Layer 1: Primary nebula — deep red/crimson glow, slow drift */
.space-nebula {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.space-nebula::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background:
        radial-gradient(ellipse 700px 500px at 15% 25%, rgba(180, 30, 30, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 80% 15%, rgba(139, 20, 20, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 450px 350px at 55% 70%, rgba(100, 10, 10, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 380px 380px at 8% 75%, rgba(80, 15, 15, 0.06) 0%, transparent 55%);
    animation: nebulaDrift 80s ease-in-out infinite alternate;
    will-change: transform;
}

/* Layer 2: Secondary nebula — offset timing for depth, dark purple accent */
.space-nebula::after {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    background:
        radial-gradient(ellipse 500px 400px at 75% 55%, rgba(80, 10, 30, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 550px 450px at 25% 65%, rgba(60, 5, 20, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 350px 350px at 60% 8%, rgba(100, 15, 35, 0.06) 0%, transparent 55%);
    animation: nebulaDrift2 110s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes nebulaDrift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2.5%, -1.5%) scale(1.015); }
    66% { transform: translate(-1.5%, 2%) scale(0.985); }
    100% { transform: translate(1%, -0.8%) scale(1.008); }
}

@keyframes nebulaDrift2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 1.5%) rotate(0.8deg); }
    100% { transform: translate(1.5%, -2%) rotate(-0.4deg); }
}

/* Layer 3: Ambient horizon glow at bottom (grounds the page) */
.space-horizon {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top,
        rgba(239, 68, 68, 0.03) 0%,
        rgba(124, 58, 237, 0.02) 30%,
        transparent 100%);
    opacity: 0.8;
}

/* Layer 4: Subtle vignette for depth */
.space-vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* Reduced motion: disable nebula drift but keep static glow */
@media (prefers-reduced-motion: reduce) {
    .space-nebula::before,
    .space-nebula::after {
        animation: none !important;
    }
}

/* ============================================================
   2026 DESIGN REFINEMENTS
   ============================================================ */

/* ===========================================
   2. SECTION SPACING & DIVIDERS
   =========================================== */
.cc-content-wrap {
    padding: 2.5rem 1.5rem;
}

.cc-trust-strip,
.cc-features-section,
.cc-how-section,
.cc-faq-section,
.cc-discord-section,
.cc-seo-article-content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.cc-trust-strip {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.cc-trust-strip,
.cc-features-section,
.cc-how-section,
.cc-faq-section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ===========================================
   3. HERO — First impression
   =========================================== */
.cc-hero {
    padding: 5rem 2rem 4rem;
    min-height: clamp(420px, 60vh, 700px);
    display: flex;
    align-items: center;
}

.cc-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.cc-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    max-width: 520px;
}

.cc-hero-badge {
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    padding: 7px 18px;
    margin-bottom: 1.75rem;
    animation: badgeFadeIn 0.6s ease 0.15s both;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA buttons — bigger touch targets */
.cc-btn-lg {
    padding: 1rem 2rem;
    font-size: 0.92rem;
    border-radius: 14px;
    min-height: 52px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cc-btn-primary {
    position: relative;
    overflow: hidden;
}

.cc-btn-primary:hover {
    transform: translateY(-2px);
}

.cc-btn-primary:active {
    transform: translateY(0) scale(0.97);
}

/* Shimmer sweep — transform only (compositor thread) */
.cc-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-150%);
    animation: btnShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShimmer {
    0%, 75%, 100% { transform: translateX(-150%); }
    35% { transform: translateX(300%); }
}

.cc-btn-secondary {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cc-btn-secondary:hover {
    transform: translateY(-2px);
}

/* ===========================================
   4. TAB NAVIGATION — Micro-feedback
   =========================================== */
.cc-tab-nav {
    padding: 10px 0;
}

.cc-tab-btn {
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    font-size: 0.88rem;
    gap: 0.55rem;
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.cc-tab-btn:hover:not(.cc-tab-active) {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.cc-tab-btn:active {
    transform: scale(0.96);
}

.cc-tab-btn.cc-tab-active::after {
    width: 60%;
    height: 3px;
    bottom: -2px;
    border-radius: 3px;
}

.cc-tab-btn svg {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cc-tab-btn:hover svg {
    opacity: 1;
    transform: scale(1.08);
}

/* ===========================================
   5. PREMIUM CARDS — Glow via opacity trick
   Instead of animating box-shadow (paint), we
   pre-render glow in ::after and fade opacity.
   =========================================== */
.premium-plan {
    border-radius: 20px;
    padding: 1.75rem 1.25rem 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
}

/* Override the existing ::after to be our glow layer */
.premium-plan::after {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(239, 68, 68, 0.12);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.premium-plan:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(239, 68, 68, 0.3);
}

.premium-plan:hover::after {
    opacity: 1;
}

/* Price hierarchy */
.plan-price {
    margin: 1rem 0;
}

.plan-price-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.plan-price-hint {
    font-size: 0.72rem;
    margin-top: 0.3rem;
    font-style: normal;
    opacity: 0.8;
}

.plan-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 1rem 0 0.4rem;
}

.plan-details {
    gap: 0.4rem;
    padding: 0.7rem 0.75rem;
    margin: 0.6rem 0;
    border-radius: 10px;
    font-size: 0.72rem;
}

.plan-details span {
    padding: 0.15rem 0;
}

/* Buy button — compositor-only transitions */
.plan-buy-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.88rem;
    border-radius: 12px;
    letter-spacing: 1.2px;
    margin-top: 0.75rem;
    min-height: 46px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.plan-buy-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.plan-buy-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

/* Featured plan */
.plan-featured {
    transform: scale(1.015);
}

.plan-featured:hover {
    transform: scale(1.03) translateY(-3px);
}

/* Lifetime */
.plan-lifetime {
    border-radius: 20px;
}

.plan-lifetime:hover {
    transform: scale(1.03) translateY(-3px);
}

/* Badges */
.plan-popular-tag,
.plan-popular,
.plan-best,
.plan-badge {
    padding: 4px 14px;
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    border-radius: 0 0 10px 10px;
}

/* ===========================================
   8. FAQ ACCORDION — Clean feedback
   =========================================== */
.cc-accordion-item {
    border-radius: 14px;
    transition: border-color 0.2s ease;
    margin-bottom: 0.5rem;
}

.cc-accordion-item:hover {
    border-color: rgba(239, 68, 68, 0.15);
}

.cc-accordion-item.open {
    border-color: rgba(239, 68, 68, 0.2);
}

.cc-accordion-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-radius: 14px;
}

/* ===========================================
   10. KEY DISPLAY
   =========================================== */
.key-container {
    border-radius: 16px;
}

/* ===========================================
   11. TOAST & SCROLLBAR & FOOTER
   =========================================== */
.toast-container {
    top: 5rem;
    max-width: min(380px, calc(100% - 2rem));
}

.toast {
    border-radius: 14px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(239, 68, 68, 0.15); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(239, 68, 68, 0.3); }

.site-footer {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(239, 68, 68, 0.08);
}

.cc-discord-section {
    border-radius: 20px;
    overflow: hidden;
}

/* ===========================================
   12. RESPONSIVE — 3 unified breakpoints
   =========================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
    .cc-content-wrap { padding: 2rem 1rem; }
    .cc-hero { padding: 3.5rem 1.5rem 3rem; min-height: auto; }
    .cc-hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }

    .cc-trust-strip,
    .cc-features-section,
    .cc-how-section,
    .cc-faq-section,
    .cc-discord-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .cc-trust-strip {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .premium-plan { padding: 1.25rem 1rem; }
}

/* Mobile (520px) */
@media (max-width: 520px) {
    .cc-content-wrap { padding: 1.5rem 0.75rem; }
    .cc-hero { padding: 2.5rem 1rem 2rem; }

    .cc-btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
        min-height: 48px;
    }

    .cc-hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cc-hero-cta .cc-btn-lg {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .cc-trust-strip,
    .cc-features-section,
    .cc-how-section,
    .cc-faq-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .cc-trust-strip {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .prem-header { margin-bottom: 1rem; }
    .prem-title { font-size: 1.3rem; }
    .premium-plan { padding: 1.25rem 1rem; border-radius: 16px; }
    .plan-buy-btn { min-height: 48px; font-size: 0.85rem; }

    /* Disable hover transforms on touch (no hover on mobile) */
    .premium-plan:hover {
        transform: none;
    }
}

/* Small (380px) */
@media (max-width: 380px) {
    .cc-hero-title { font-size: 1.6rem; }
    .cc-hero-badge { font-size: 0.6rem; padding: 5px 12px; }
    .plan-price-value { font-size: 1.4rem; }
}

/* ===========================================
   13. ACCESSIBILITY
   =========================================== */
.cc-tab-btn:focus-visible,
.plan-buy-btn:focus-visible,
.cc-btn-lg:focus-visible,
.cc-accordion-header:focus-visible {
    outline: 2px solid var(--elite-cyan);
    outline-offset: 3px;
}

::selection {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}


/* Download modal V2 styles moved to style-download.css. */

/* Premium V2 legacy styles removed after two-pass dead-code review.
   Current Premium tab styles live in style-premium.css. */

/* Premium V3 styles moved to style-premium.css and load on demand. */

@media (max-width: 640px) {
    html,
    body,
    .cc-main,
    .cc-tab-content,
    .cc-hero,
    .cc-hero-inner,
    .cc-hero-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .cc-main {
        min-width: 0;
    }

    .cc-hero {
        width: 100%;
        padding: 2rem 1rem 2.5rem;
    }

    .cc-hero-inner {
        width: 100%;
        min-width: 0;
        gap: 1.5rem;
    }

    .cc-hero-content {
        min-width: 0;
    }

    .cc-hero-badge,
    .cc-hero-platform-notice,
    .cc-hero-stats {
        max-width: 100%;
    }

    .cc-hero-badge,
    .cc-hero-platform-notice {
        white-space: normal;
        justify-content: center;
    }

    .cc-hero-title {
        max-width: 100%;
        overflow-wrap: break-word;
        letter-spacing: 0;
        font-size: clamp(1.75rem, 9vw, 2.2rem);
    }

    .cc-hero-subtitle {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .cc-hero-cta {
        width: 100%;
    }

    .cc-hero-cta .cc-btn-lg {
        width: 100%;
        max-width: 100%;
    }

    .cc-tab-nav {
        width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        padding: 6px 0;
    }

    .cc-tab-nav-inner {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
        justify-content: stretch;
        gap: 3px;
        padding: 6px 4px;
    }

    .cc-tab-btn {
        flex: initial;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 0.4rem 0.1rem;
        background: rgba(255, 255, 255, 0.035);
        color: rgba(255, 255, 255, 0.62);
        border-radius: 8px;
        font-size: 0.58rem;
        gap: 2px;
        letter-spacing: 0;
    }

    .cc-tab-btn span {
        position: static;
        width: auto;
        height: auto;
        max-width: 100%;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 0;
    }

    .cc-tab-btn span::after {
        content: attr(data-mobile-label);
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.5rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
    }

    .cc-tab-btn svg {
        width: 15px;
        height: 15px;
        opacity: 0.86;
    }

    .cc-tab-btn.cc-tab-active {
        width: 100%;
        padding: 0.4rem 0.1rem;
    }

    .cc-tab-btn.cc-tab-active::after {
        width: 58%;
        bottom: -1px;
    }
}
