
.maintenance-bar{
  display:flex;          /* <-- change to none to hide the bar */
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:9995;
  align-items:center;justify-content:center;gap:.7rem;
  padding:.6rem 2.6rem .6rem 1rem;
  background:linear-gradient(135deg,#7c2d12,#b45309);
  border-top:1px solid rgba(253,224,71,.45);
  box-shadow:0 -4px 18px rgba(0,0,0,.35);
  color:#fff7ed;
}
.maintenance-inner{
  display:flex;align-items:center;justify-content:center;gap:.7rem;
  text-align:center;flex-wrap:wrap;
}
.maintenance-icon{color:#fde047;font-size:1.1rem;line-height:1;}
.maintenance-text{display:flex;flex-direction:column;gap:.15rem;}
.maintenance-text strong{font-size:.95rem;letter-spacing:.02em;}
.maintenance-text span{font-size:.83rem;opacity:.92;}
.maintenance-close{
  position:absolute;top:50%;right:10px;transform:translateY(-50%);
  width:28px;height:28px;padding:0;line-height:1;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);
  color:#fff;border-radius:50%;font-size:17px;cursor:pointer;
  transition:background .2s,transform .2s;
}
.maintenance-close:hover{background:rgba(255,255,255,.32);transform:translateY(-50%) scale(1.1);}
@media (max-width:600px){
  .maintenance-bar{padding:.55rem 2.4rem .55rem .8rem;}
  .maintenance-text strong{font-size:.86rem;}
  .maintenance-text span{font-size:.75rem;}
}


    /* ===== DUAL-GPU LAUNCH BANNER ===== */
    .gpu-launch-banner {
        position: relative;
        background:
            linear-gradient(135deg, #050214 0%, #0d0628 30%, #1a0b3d 65%, #050214 100%);
        color: #fff;
        padding: clamp(16px, 3.2vw, 26px) clamp(12px, 3vw, 24px);
        box-shadow:
            0 6px 32px rgba(0,0,0,0.55),
            inset 0 1px 0 rgba(251,191,36,0.25),
            inset 0 -1px 0 rgba(251,191,36,0.25);
        z-index: 9000;
        overflow: hidden;
        font-family: inherit;
    }
    .gpu-launch-banner::before {
        content: ""; position: absolute; inset: 0;
        background:
            radial-gradient(circle at 18% 25%, rgba(251,191,36,0.18), transparent 45%),
            radial-gradient(circle at 82% 75%, rgba(245,158,11,0.14), transparent 45%);
        pointer-events: none;
    }
    .gpu-launch-banner::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
        background: linear-gradient(90deg, transparent, #fbbf24 30%, #f59e0b 50%, #fbbf24 70%, transparent);
        opacity: 0.6;
        pointer-events: none;
    }
    .gpu-banner-inner {
        position: relative; max-width: 1200px; margin: 0 auto;
        display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2vw, 14px);
        text-align: center;
    }
    .gpu-banner-close {
        position: absolute; top: -6px; right: -6px;
        background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
        color: #fff; width: 32px; height: 32px; min-width: 32px; min-height: 32px;
        padding: 0; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
        display: flex; align-items: center; justify-content: center;
        transition: background 0.2s, transform 0.2s;
        touch-action: manipulation;
    }
    .gpu-banner-close:hover, .gpu-banner-close:active { background: rgba(255,255,255,0.25); transform: scale(1.08); }
    /* Expand tap target without growing visual */
    .gpu-banner-close::after { content: ""; position: absolute; inset: -8px; }

    .gpu-headline {
        display: inline-flex; align-items: center; gap: 10px;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-size: clamp(1.05rem, 4.2vw, 1.7rem);
        line-height: 1;
        background: linear-gradient(180deg, #ffffff 0%, #fde68a 55%, #fbbf24 100%);
        -webkit-background-clip: text; background-clip: text;
        color: transparent; -webkit-text-fill-color: transparent;
        text-shadow: 0 0 24px rgba(251,191,36,0.35);
        filter: drop-shadow(0 2px 0 rgba(0,0,0,0.35));
    }
    .gpu-spark {
        font-size: 1.1em;
        filter: drop-shadow(0 0 10px #fbbf24) drop-shadow(0 0 18px rgba(251,191,36,0.5));
        -webkit-text-fill-color: initial;
    }
    .gpu-tagline {
        font-weight: 800;
        font-size: clamp(0.85rem, 2.9vw, 1.1rem);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #fde68a;
        text-shadow: 0 0 12px rgba(251,191,36,0.45);
        padding: 4px 14px;
        border-top: 1px solid rgba(251,191,36,0.35);
        border-bottom: 1px solid rgba(251,191,36,0.35);
        background: linear-gradient(90deg, transparent, rgba(251,191,36,0.08), transparent);
    }
    .gpu-subline {
        font-size: clamp(0.78rem, 2.6vw, 0.95rem);
        opacity: 0.78; font-weight: 600;
        letter-spacing: 0.04em;
    }
    .gpu-countdown {
        display: flex; align-items: flex-end; justify-content: center;
        gap: clamp(4px, 1.5vw, 10px);
        margin-top: 4px;
    }
    .gpu-cd-cell {
        display: flex; flex-direction: column; align-items: center;
        background: linear-gradient(180deg, rgba(15,8,40,0.85) 0%, rgba(5,2,20,0.95) 100%);
        border: 1px solid rgba(251,191,36,0.3);
        border-radius: 8px;
        padding: clamp(8px, 1.8vw, 14px) clamp(10px, 2.4vw, 18px);
        min-width: clamp(54px, 13vw, 84px);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.1),
            inset 0 -1px 0 rgba(0,0,0,0.4),
            0 4px 16px rgba(0,0,0,0.45),
            0 0 24px rgba(251,191,36,0.15);
    }
    .gpu-cd-num {
        font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
        font-size: clamp(1.9rem, 9vw, 3.1rem);
        font-weight: 900;
        line-height: 1;
        color: #fff;
        background: linear-gradient(180deg, #ffffff 0%, #fde68a 50%, #f59e0b 100%);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
        text-shadow: 0 0 18px rgba(251,191,36,0.6);
        filter: drop-shadow(0 2px 0 rgba(0,0,0,0.6));
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.02em;
    }
    .gpu-cd-lbl {
        font-size: clamp(0.58rem, 1.8vw, 0.72rem);
        letter-spacing: 0.2em;
        opacity: 0.78;
        margin-top: 6px;
        font-weight: 800;
        color: #fde68a;
        text-transform: uppercase;
    }
    .gpu-cd-sep {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        font-weight: 900;
        color: #fbbf24;
        opacity: 0.55;
        align-self: center;
        margin-bottom: clamp(14px, 3vw, 22px);
        text-shadow: 0 0 12px rgba(251,191,36,0.5);
    }
    @keyframes gpuCdPulse {
        0%, 100% { filter: drop-shadow(0 2px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 8px rgba(251,191,36,0.5)); }
        50% { filter: drop-shadow(0 2px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 18px rgba(251,191,36,0.95)); }
    }
    .gpu-cd-pulse { animation: gpuCdPulse 1s ease-in-out infinite; }

    .gpu-reactions {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
        gap: clamp(6px, 2vw, 12px);
        margin-top: 4px;
    }
    .gpu-reactions-prompt {
        font-size: clamp(0.78rem, 2.4vw, 0.9rem);
        opacity: 0.85; font-weight: 600;
    }
    .gpu-reaction-row {
        display: flex; flex-wrap: wrap; gap: clamp(6px, 1.6vw, 10px); justify-content: center;
    }
    .gpu-reaction-btn {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.16);
        color: #fff;
        border-radius: 999px;
        padding: 6px 12px;
        min-width: 44px; min-height: 44px;
        display: inline-flex; align-items: center; gap: 6px;
        cursor: pointer;
        font-size: clamp(1rem, 3.5vw, 1.15rem);
        transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
        touch-action: manipulation;
        user-select: none;
    }
    .gpu-reaction-btn:hover { background: rgba(255,255,255,0.15); }
    .gpu-reaction-btn:active { transform: scale(0.92); }
    .gpu-reaction-btn.gpu-selected {
        background: rgba(251,191,36,0.22);
        border-color: rgba(251,191,36,0.6);
        box-shadow: 0 0 12px rgba(251,191,36,0.35);
    }
    .gpu-emoji { font-size: 1.15em; line-height: 1; }
    .gpu-count {
        font-size: 0.78em;
        opacity: 0.85;
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        min-width: 1.2ch; text-align: left;
    }

    @media (max-width: 600px) {
        .gpu-banner-inner { gap: 8px; }
        .gpu-subline { display: none; }
        .gpu-banner-close { top: 4px; right: 4px; }
    }
    @media (max-width: 380px) {
        .gpu-reaction-btn { padding: 6px 9px; min-width: 40px; min-height: 40px; }
        .gpu-cd-cell { padding: 6px 8px; min-width: 42px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .gpu-cd-pulse { animation: none; }
        .gpu-reaction-btn { transition: none; }
    }


    /* Announcement Banner Styles */
    .announcement-banner {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 14px 20px;
        position: relative;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        z-index: 9999;
    }

    .announcement-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding-right: 40px;
        flex-wrap: wrap;
    }

    .announcement-icon {
        font-size: 1.2em;
    }

    .announcement-text {
        font-size: 15px;
        font-weight: 500;
        text-align: center;
    }

    .announcement-close {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        padding: 0;
        line-height: 1;
    }

    .announcement-close:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: translateY(-50%) scale(1.1);
    }

    .announcement-close:focus {
        outline: 2px solid white;
        outline-offset: 2px;
    }

    @media (max-width: 600px) {
        .announcement-content {
            padding-right: 50px;
        }

        .announcement-text {
            font-size: 13px;
        }
    }

    /* ===== Enhance Prompt Button ===== */
    .prompt-actions-row {
        display: flex;
        gap: 0.75rem;
        margin-top: 0.75rem;
        position: relative;
    }
    .enhance-prompt-btn {
        background: rgba(99, 102, 241, 0.1);
        border: 1.5px solid rgba(99, 102, 241, 0.3);
        color: #6366f1;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    .enhance-prompt-btn:hover {
        background: rgba(99, 102, 241, 0.2);
        border-color: #4f46e5;
        color: #4f46e5;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    .enhance-prompt-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    }
    .enhance-prompt-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .enhance-prompt-btn.loading i { animation: spin 1s linear infinite; }
    .enhance-prompt-btn i {
        font-size: 1rem;
    }
    @keyframes enhancePulse {
        0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
        50% { box-shadow: 0 0 12px 4px rgba(139,92,246,0.5); }
        100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
    }
    .enhance-prompt-btn.attention {
        animation: enhancePulse 1.2s ease-in-out 3;
    }
    .enhance-prompt-tooltip {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 0;
        background: #1e1b4b;
        color: #c7d2fe;
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity 0.3s, transform 0.3s;
        pointer-events: none;
        z-index: 10;
    }
    .enhance-prompt-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 16px;
        border: 6px solid transparent;
        border-top-color: #1e1b4b;
    }
    .enhance-prompt-tooltip.show {
        opacity: 1;
        transform: translateY(0);
    }
    /* AI border animation during prompt enhancement */
    @property --ai-angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }
    @keyframes aiBorderRotate {
        0% { --ai-angle: 0deg; }
        100% { --ai-angle: 360deg; }
    }
    @keyframes aiBorderFallback {
        0% { border-color: #4285F4; box-shadow: 0 0 8px rgba(66,133,244,0.5); }
        25% { border-color: #EA4335; box-shadow: 0 0 8px rgba(234,67,53,0.5); }
        50% { border-color: #FBBC05; box-shadow: 0 0 8px rgba(251,188,5,0.5); }
        75% { border-color: #34A853; box-shadow: 0 0 8px rgba(52,168,83,0.5); }
        100% { border-color: #4285F4; box-shadow: 0 0 8px rgba(66,133,244,0.5); }
    }
    .textarea-container.ai-enhancing {
        border-radius: 14px;
        padding: 2px;
        background: conic-gradient(from var(--ai-angle), #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
        animation: aiBorderRotate 2s linear infinite;
    }
    .textarea-container.ai-enhancing .prompt-textarea {
        border: none !important;
        outline: none !important;
    }
    .textarea-container.ai-enhancing .prompt-actions-row {
        background: var(--card-bg, #1a1a2e);
        border-radius: 0 0 12px 12px;
        padding: 0.75rem;
        margin: 0 -2px -2px -2px;
    }
    /* Fallback for browsers that don't support @property (Firefox) */
    @supports not (background: conic-gradient(from 0deg, red, red)) {
        .textarea-container.ai-enhancing {
            background: none;
            animation: none;
            padding: 0;
        }
        .textarea-container.ai-enhancing .prompt-textarea {
            border: 2px solid #6366f1 !important;
            animation: aiBorderFallback 2s linear infinite !important;
        }
    }
    @media (max-width: 768px) {
        .prompt-actions-row {
            gap: 0.5rem;
        }
        .enhance-prompt-tooltip {
            white-space: normal;
            max-width: 220px;
            left: -4px;
            font-size: 0.7rem;
            text-align: center;
        }
        .enhance-prompt-tooltip::after {
            left: 12px;
        }
        .enhance-prompt-btn {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
        }
    }
    .enhance-badge {
        background: rgba(99, 102, 241, 0.2);
        color: #6366f1;
        padding: 1px 7px;
        border-radius: 10px;
        font-size: 0.72rem;
        font-weight: 700;
    }

    /* ===== Floating Chatbot ===== */
    .chatbot-fab {
        position: fixed;
        bottom: 50px;
        left: 24px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 20px rgba(99,102,241,0.4);
        z-index: 9990;
        transition: all 0.3s ease;
    }
    .chatbot-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(99,102,241,0.5); }
    .chatbot-fab .unread-dot {
        position: absolute; top: -2px; right: -2px;
        width: 14px; height: 14px; background: #ef4444;
        border-radius: 50%; border: 2px solid #1a1a2e;
        display: none;
    }

    .chatbot-window {
        display: none;
        position: fixed;
        bottom: 90px;
        left: 24px;
        width: 380px;
        height: 520px;
        background: #1a1a2e;
        border: 1px solid rgba(99,102,241,0.3);
        border-radius: 16px;
        z-index: 9991;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    }
    .chatbot-window.open { display: flex; }

    .chatbot-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: #fff;
    }
    .chatbot-header-title { font-weight: 700; font-size: 0.95rem; }
    .chatbot-header-sub { font-size: 0.72rem; opacity: 0.8; }
    .chatbot-close {
        background: rgba(255,255,255,0.2);
        border: none; color: #fff;
        width: 30px; height: 30px; border-radius: 50%;
        cursor: pointer; font-size: 1rem;
        display: flex; align-items: center; justify-content: center;
    }
    .chatbot-close:hover { background: rgba(255,255,255,0.35); }

    .chatbot-messages {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .chat-msg {
        max-width: 85%;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 0.88rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
    .chat-msg.user {
        align-self: flex-end;
        background: #6366f1;
        color: #fff;
        border-bottom-right-radius: 4px;
    }
    .chat-msg.bot {
        align-self: flex-start;
        background: #2a2a4a;
        color: #e0e0e0;
        border-bottom-left-radius: 4px;
    }
    .chat-msg.bot.typing { opacity: 0.7; }
    .chat-msg.bot code { background: rgba(255,255,255,0.1); padding: 1px 5px; border-radius: 4px; font-size: 0.82rem; }
    .chat-msg.bot pre { background: rgba(0,0,0,0.3); padding: 8px 10px; border-radius: 8px; overflow-x: auto; margin: 6px 0; }
    .chat-msg.bot pre code { background: none; padding: 0; }
    .chat-msg.bot li { margin: 2px 0; }

    .chatbot-input-row {
        display: flex;
        padding: 12px;
        gap: 8px;
        border-top: 1px solid rgba(255,255,255,0.1);
        background: #151528;
    }
    .chatbot-input {
        flex: 1;
        background: #2a2a4a;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 10px;
        padding: 10px 14px;
        color: #fff;
        font-size: 0.88rem;
        outline: none;
        resize: none;
    }
    .chatbot-input:focus { border-color: #6366f1; }
    .chatbot-send {
        background: #6366f1;
        border: none;
        color: #fff;
        width: 42px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1rem;
        transition: background 0.2s;
    }
    .chatbot-send:hover { background: #5558e6; }
    .chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }

    /* Mobile fullscreen */
    @media (max-width: 640px) {
        .chatbot-window {
            bottom: 0; left: 0; right: 0; top: 0;
            width: 100%; height: 100%;
            border-radius: 0;
        }
        .chatbot-fab { bottom: 50px; left: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
    }

    @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


                .hourly-activity-chart {
                    position: relative;
                    display: grid;
                    grid-template-columns: 22px 1fr;
                    grid-template-rows: 1fr 14px;
                    gap: 2px;
                    width: 240px;
                    height: 56px;
                    font-size: 9px;
                    font-family: ui-monospace, SFMono-Regular, monospace;
                    color: rgba(255,255,255,0.55);
                }
                .ha-y-axis {
                    position: relative;
                    border-right: 1px solid rgba(255,255,255,0.12);
                }
                .ha-y-axis span {
                    position: absolute;
                    right: 3px;
                    transform: translateY(-50%);
                    line-height: 1;
                }
                .ha-y-axis span.top { top: 0; }
                .ha-y-axis span.mid { top: 50%; }
                .ha-y-axis span.bot { top: 100%; }
                .ha-bars {
                    position: relative;
                    display: flex;
                    align-items: flex-end;
                    gap: 1px;
                    border-bottom: 1px solid rgba(255,255,255,0.12);
                    border-left: 1px solid rgba(255,255,255,0.12);
                }
                .ha-bar {
                    flex: 1;
                    min-height: 1px;
                    background: #374151;
                    border-radius: 1px 1px 0 0;
                    cursor: pointer;
                    transition: filter 0.15s, transform 0.15s;
                }
                .ha-bar:hover { filter: brightness(1.4); transform: scaleY(1.05); transform-origin: bottom; }
                .ha-bar.lvl-low { background: #10b981; }
                .ha-bar.lvl-med { background: #f59e0b; }
                .ha-bar.lvl-high { background: #ef4444; }
                .ha-bar.current {
                    outline: 1px solid rgba(255,255,255,0.6);
                    animation: ha-blink 1.4s ease-in-out infinite;
                }
                @keyframes ha-blink {
                    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); filter: brightness(1.0); }
                    50%      { box-shadow: 0 0 6px 1px rgba(255,255,255,0.55); filter: brightness(1.6); }
                }
                .ha-x-spacer {}
                .ha-x-axis {
                    position: relative;
                    height: 14px;
                }
                .ha-x-axis span {
                    position: absolute;
                    transform: translateX(-50%);
                    top: 1px;
                    line-height: 1;
                    white-space: nowrap;
                }
                .hourly-activity-tooltip {
                    position: fixed;
                    pointer-events: none;
                    background: rgba(15, 23, 42, 0.96);
                    color: #f8fafc;
                    border: 1px solid rgba(255,255,255,0.15);
                    border-radius: 6px;
                    padding: 6px 9px;
                    font-size: 11px;
                    line-height: 1.4;
                    white-space: nowrap;
                    z-index: 10000;
                    opacity: 0;
                    transition: opacity 0.12s;
                    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
                }
                .hourly-activity-tooltip.show { opacity: 1; }
                .hourly-activity-tooltip strong { color: #fbbf24; }

                /* ---- Admin detailed metrics board (enhanced) ---- */
                /* "Show / Hide details" toggle row — sits at the top, right-aligned.
                   Hidden by default; JS reveals it once admin_board data exists. */
                .adm-toggle-row {
                    flex-basis: 100%;
                    order: -1;                 /* always above the stat items */
                    display: none;             /* revealed by JS when data is available */
                    justify-content: flex-end;
                    align-items: center;
                }
                .adm-toggle {
                    display: inline-flex;
                    align-items: center;
                    gap: 7px;
                    padding: 6px 13px;
                    font-family: inherit;
                    font-size: 0.72rem;
                    font-weight: 700;
                    letter-spacing: 0.04em;
                    text-transform: uppercase;
                    color: rgba(255,255,255,0.82);
                    background: rgba(255,255,255,0.06);
                    border: 1px solid rgba(255,255,255,0.14);
                    border-radius: 999px;
                    cursor: pointer;
                    -webkit-tap-highlight-color: transparent;
                    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
                }
                .adm-toggle:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }
                .adm-toggle:active { transform: scale(0.97); }
                .adm-toggle .adm-toggle-chev { font-size: 0.7rem; transition: transform 0.2s ease; }
                .adm-toggle.open { background: rgba(16,185,129,0.14); border-color: rgba(16,185,129,0.40); color: #d1fae5; }
                .adm-toggle.open .adm-toggle-chev { transform: rotate(180deg); }

                .admin-detail-grid {
                    flex-basis: 100%;
                    width: 100%;
                    margin-top: 14px;
                    padding-top: 14px;
                    border-top: 1px solid rgba(255,255,255,0.08);
                    /* base = mobile; auto-fill keeps 2 columns on a ~360px screen */
                    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                    gap: 10px;
                }
                /* section header (full-width row inside the grid) */
                .adm-head {
                    grid-column: 1 / -1;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 10px;
                    margin-bottom: 2px;
                }
                .adm-head-title {
                    display: flex; align-items: center; gap: 8px;
                    font-size: 0.72rem; font-weight: 700;
                    letter-spacing: 0.08em; text-transform: uppercase;
                    color: rgba(255,255,255,0.75);
                }
                .adm-head-sub {
                    display: flex; align-items: center; gap: 5px;
                    font-size: 0.6rem; color: rgba(255,255,255,0.4);
                }
                .adm-head-sub i { animation: adm-spin 3.5s linear infinite; }
                @keyframes adm-spin { to { transform: rotate(360deg); } }
                .adm-live-dot {
                    width: 8px; height: 8px; border-radius: 50%;
                    background: #10b981; animation: adm-pulse 1.8s ease-out infinite;
                }
                @keyframes adm-pulse {
                    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
                    70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
                    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
                }

                .adm-card {
                    --adm-accent: #94a3b8;
                    position: relative;
                    overflow: hidden;
                    display: flex;
                    align-items: flex-start;
                    gap: 11px;
                    padding: 12px 13px;
                    border-radius: 12px;
                    background: linear-gradient(150deg, rgba(255,255,255,0.065), rgba(255,255,255,0.02));
                    border: 1px solid rgba(255,255,255,0.08);
                    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
                    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
                }
                .adm-card::after {        /* soft accent glow in the corner */
                    content: "";
                    position: absolute; top: 0; right: 0;
                    width: 88px; height: 88px;
                    background: radial-gradient(circle at top right, var(--adm-accent), transparent 68%);
                    opacity: 0.15; pointer-events: none;
                }
                .adm-card:hover {
                    transform: translateY(-3px);
                    border-color: rgba(255,255,255,0.20);
                    box-shadow: 0 10px 24px rgba(0,0,0,0.38);
                }
                .adm-ico {                /* icon chip, tinted by the card accent */
                    flex: 0 0 auto;
                    width: 36px; height: 36px;
                    display: grid; place-items: center;
                    border-radius: 10px;
                    font-size: 0.92rem;
                    color: var(--adm-accent);
                    background: rgba(255,255,255,0.06);
                    background: color-mix(in srgb, var(--adm-accent) 18%, transparent);
                    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
                    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--adm-accent) 34%, transparent);
                }
                .adm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
                .adm-card .adm-label {
                    font-size: 0.63rem; letter-spacing: 0.04em;
                    text-transform: uppercase; color: rgba(255,255,255,0.5);
                    line-height: 1.25;
                }
                .adm-card .adm-value {
                    font-size: 1.32rem; font-weight: 800; line-height: 1.15;
                    color: #f8fafc; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
                }
                .adm-card .adm-sub {
                    font-size: 0.6rem; font-weight: 600;
                    color: rgba(255,255,255,0.55);
                    color: color-mix(in srgb, var(--adm-accent) 65%, #ffffff);
                }
                /* accent palette drives icon chip + corner glow */
                .adm-card.accent-pro  { --adm-accent: #fbbf24; }
                .adm-card.accent-free { --adm-accent: #10b981; }
                .adm-card.accent-img  { --adm-accent: #60a5fa; }
                .adm-card.accent-vid  { --adm-accent: #a78bfa; }
                .adm-card.accent-wait { --adm-accent: #ef4444; }
                .adm-value.warn { color: #fbbf24; }
                .adm-value.crit { color: #ef4444; }

                /* larger screens: a little more breathing room */
                @media (min-width: 640px) {
                    .admin-detail-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
                    .adm-card .adm-value { font-size: 1.4rem; }
                }
            

            /* ===== Workflow rail + 30/70 generation layout (redesign) ===== */
            .gen-layout {
                display: grid;
                grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
                gap: 28px;
                align-items: start;
            }
            @media (min-width: 901px) {
                .gen-workflow-col { position: sticky; top: 90px; }
                .gen-workflow-col .form-group { margin-bottom: 0; }
            }
            @media (max-width: 900px) {
                .gen-layout { grid-template-columns: 1fr; gap: 22px; }
                .gen-workflow-col { position: static !important; }
            }
            .gen-workflow-col, .gen-fields-col { min-width: 0; }

            /* grid/list toggle is irrelevant in the rail */
            .gen-workflow-col .view-toggle-buttons { display: none; }

            /* Category pill bar */
            .wf-cat-tabs {
                display: block; gap: 8px; overflow-x: auto;
                padding: 12px 2px 14px; scrollbar-width: none;
            }
            .wf-cat-tabs::-webkit-scrollbar { display: none; }
            .wf-cat {
                flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; margin:3px;
                font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
                padding: 8px 14px; border-radius: 999px; color: var(--gray-light);
                background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.12);
                transition: all .2s ease;
            }
            .wf-cat i { font-size: 11px; }
            .wf-cat:hover { color: var(--text-color); border-color: rgba(111,180,255,0.5); }
            .wf-cat.active { color: #04121f; background: var(--accent-color); border-color: var(--accent-color); }
            .wf-cat[data-cat="trending"].active {
                background: linear-gradient(135deg, #fb923c, #f59e0b);
                border-color: #fb923c; color: #1c1209;
            }

            /* Turn the workflow grid into a clean vertical card list inside the rail */
            .gen-workflow-col .workflow-grid,
            .gen-workflow-col .workflow-grid.list-view {
                display: flex; flex-direction: column; gap: 10px; margin-top: 0;
                max-height: 62vh; overflow-y: auto; padding-right: 6px;
            }
            .gen-workflow-col .workflow-grid::-webkit-scrollbar { width: 6px; }
            .gen-workflow-col .workflow-grid::-webkit-scrollbar-thumb {
                background: rgba(255,255,255,0.14); border-radius: 3px;
            }
            .gen-workflow-col .workflow-category-header { display: none !important; }
            .gen-workflow-col .model-tile {
                flex-direction: column; gap: 7px; padding: 13px 15px; border-radius: 14px; min-height: 90px;
            }
            .gen-workflow-col .model-avatar {
                width: 38px; height: 38px; border-radius: 11px; font-size: 13px; margin-bottom: 0;
            }
            .gen-workflow-col .model-tile-name { font-size: 13.5px; }
            .gen-workflow-col .model-tile-desc {
                display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
                font-size: 11px; line-height: 1.45;
            }
            .gen-workflow-col .model-tile-meta { display: none; }
            #wfCatEmpty { padding: 26px 8px; text-align: center; color: var(--gray-light); font-size: 12px; }
            

                        /* Output Dimension selector styles */
                        .output-dimension-options {
                            display: flex;
                            flex-direction: column;
                            gap: 0.5rem;
                            margin-top: 0.5rem;
                        }
                        .dimension-option {
                            display: flex;
                            align-items: center;
                            gap: 0.5rem;
                            padding: 0.5rem 0.75rem;
                            border-radius: 8px;
                            border: 1px solid var(--border-color);
                            cursor: pointer;
                            font-size: 0.95rem;
                            color: var(--text-primary);
                            transition: background 0.2s, border-color 0.2s;
                        }
                        .dimension-option:hover {
                            background: var(--card-hover);
                            border-color: var(--accent-primary);
                        }
                        .dimension-option input[type="radio"] {
                            accent-color: var(--accent-primary);
                        }
                        .dimension-option small {
                            color: var(--text-muted);
                            font-size: 0.82rem;
                        }
                    

                        /* Animated shine effect for queue loading state */
                        @keyframes shimmer {
                            0% {
                                left: -100%;
                            }

                            100% {
                                left: 100%;
                            }
                        }

                        .progress-bar-loading {
                            animation: shimmer 2s infinite;
                        }

                        /* Style for PRO options - Golden/Premium look */
                        #steps option[data-pro="true"],
                        #aspectRatio option[data-pro="true"] {

                            color: #fbbf24;
                            font-weight: 600;
                            position: relative;
                        }

                        /* Disabled PRO options - Greyed out but still golden hint */
                        #steps option[data-pro="true"]:disabled,
                        #aspectRatio option[data-pro="true"]:disabled {
                            color: #9ca3af;
                            opacity: 0.6;
                        }

                        /* Free tier options - Normal styling */
                        #aspectRatio option:not([data-pro="true"]) {
                            color: var(--text-color);
                        }

                        /* Firefox specific styling for select options */
                        @-moz-document url-prefix() {

                            #steps option[data-pro="true"],
                            #aspectRatio option[data-pro="true"] {
                                color: #fbbf24 !important;
                            }

                            #steps option[data-pro="true"]:disabled,
                            #aspectRatio option[data-pro="true"]:disabled {
                                color: #9ca3af !important;
                            }
                        }

                        /* Chrome/Safari/Edge specific styling */
                        @supports (-webkit-appearance: none) {

                            #steps option[data-pro="true"]::before,
                            #aspectRatio option[data-pro="true"]::before {
                                content: "✨ ";
                            }
                        }

                        /* Optgroup labels styling */
                        #aspectRatio optgroup[label*="PRO"] {
                            color: #fbbf24;
                            font-weight: 700;
                            font-style: normal;
                        }

                        #aspectRatio optgroup[label*="Free"] {
                            color: var(--accent);
                            font-weight: 600;
                            font-style: normal;
                        }

                        /* Safari touch compatibility for generate button */
                        #generateBtn {
                            -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
                            -webkit-touch-callout: none;
                            -webkit-user-select: none;
                            user-select: none;
                            touch-action: manipulation;
                            cursor: pointer;
                        }

                        #generateBtn:active {
                            transform: scale(0.98);
                        }

                        /* Ensure button is always clickable/touchable */
                        #generateBtn:not(:disabled) {
                            pointer-events: auto !important;
                        }

                        /* LORA UI Styles */
                        .toggle-switch {
                            position: relative;
                            display: inline-block;
                            width: 50px;
                            height: 24px;
                        }

                        .toggle-switch input {
                            opacity: 0;
                            width: 0;
                            height: 0;
                        }

                        .toggle-slider {
                            position: absolute;
                            cursor: pointer;
                            top: 0;
                            left: 0;
                            right: 0;
                            bottom: 0;
                            background-color: #4b5563;
                            transition: .4s;
                            border-radius: 24px;
                        }

                        .toggle-slider:before {
                            position: absolute;
                            content: "";
                            height: 18px;
                            width: 18px;
                            left: 3px;
                            bottom: 3px;
                            background-color: white;
                            transition: .4s;
                            border-radius: 50%;
                        }

                        input:checked+.toggle-slider {
                            background-color: #6366f1;
                        }

                        input:checked+.toggle-slider:before {
                            transform: translateX(26px);
                        }

                        .selected-lora-card {
                            display: flex;
                            align-items: center;
                            gap: 12px;
                            padding: 12px;
                            background: rgba(99, 102, 241, 0.1);
                            border-radius: 8px;
                            margin-bottom: 8px;
                            border: 1px solid rgba(99, 102, 241, 0.3);
                        }

                        .selected-lora-card img {
                            width: 50px;
                            height: 50px;
                            object-fit: cover;
                            border-radius: 4px;
                            background: var(--dark);
                        }

                        .selected-lora-card .lora-info {
                            flex: 1;
                        }

                        .selected-lora-card .lora-info h4 {
                            margin: 0 0 4px 0;
                            font-size: 14px;
                            color: var(--light);
                        }

                        .selected-lora-card .strength-control {
                            display: flex;
                            align-items: center;
                            margin-top: 4px;
                        }

                        .selected-lora-card .strength-control input[type="number"] {
                            width: 70px;
                            padding: 4px 8px;
                            border: 1px solid var(--glass-border);
                            border-radius: 4px;
                            background: var(--card-bg);
                            color: var(--light);
                            font-size: 12px;
                            text-align: center;
                        }

                        .selected-lora-card .strength-control input[type="number"]:focus {
                            outline: none;
                            border-color: var(--primary);
                            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
                        }

                        .selected-lora-card .btn-remove {
                            background: #ef4444;
                            color: white;
                            border: none;
                            padding: 6px 10px;
                            border-radius: 4px;
                            cursor: pointer;
                            transition: all 0.2s;
                        }

                        .selected-lora-card .btn-remove:hover {
                            background: #dc2626;
                        }

                        .lora-browser-card {
                            background: var(--darker);
                            border: 2px solid rgba(99, 102, 241, 0.3);
                            border-radius: 8px;
                            overflow: hidden;
                            transition: all 0.2s;
                            cursor: pointer;
                        }

                        .lora-browser-card:hover {
                            border-color: #6366f1;
                            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
                        }

                        .lora-browser-card.selected {
                            border-color: #10b981;
                            background: rgba(16, 185, 129, 0.1);
                        }

                        .lora-browser-card .lora-thumbnail {
                            position: relative;
                            height: 150px;
                            background: var(--dark);
                        }

                        .lora-browser-card .lora-thumbnail img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }

                        .lora-description {
                            position: relative;
                        }

                        .lora-description .description-text {
                            display: -webkit-box;
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            line-height: 1.4;
                            margin: 0;
                        }

                        .lora-description.expanded .description-text {
                            display: block;
                            -webkit-line-clamp: unset;
                        }

                        .see-more-btn {
                            background: none;
                            border: none;
                            color: #6366f1;
                            cursor: pointer;
                            font-size: 12px;
                            padding: 2px 0;
                            text-decoration: underline;
                            margin-top: 4px;
                        }

                        .see-more-btn:hover {
                            color: #4f46e5;
                        }

                        .lora-description {
                            position: relative;
                        }

                        .lora-description .description-text {
                            display: -webkit-box;
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            line-height: 1.4;
                            margin: 0 0 8px 0;
                        }

                        .lora-description.expanded .description-text {
                            display: block;
                            -webkit-line-clamp: unset;
                        }

                        .civitai-loading {
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            color: #6366f1;
                            font-size: 16px;
                        }

                        .lora-browser-card .lora-info {
                            padding: 12px;
                        }

                        .lora-browser-card .lora-info h4 {
                            margin: 0 0 8px 0;
                            font-size: 15px;
                            color: var(--light);
                        }

                        .lora-browser-card .lora-info p {
                            margin: 0 0 8px 0;
                            font-size: 13px;
                            color: #6b7280;
                            line-height: 1.4;
                        }

                        .lora-browser-card .lora-stats {
                            display: flex;
                            gap: 12px;
                            font-size: 12px;
                            color: #9ca3af;
                            margin-top: 8px;
                        }

                        .lora-browser-card button {
                            width: 100%;
                            margin-top: 10px;
                        }

                        .lora-browser-card button.disabled {
                            background: #9ca3af;
                            cursor: not-allowed;
                        }
                    

                        /* Spinner Styles */
                        .spinner {
                            width: 60px;
                            height: 60px;
                            border: 4px solid rgba(255, 255, 255, 0.1);
                            border-left: 4px solid var(--accent-color);
                            border-radius: 50%;
                            animation: spin 1s linear infinite;
                            margin: 0 auto 1.5rem;
                        }

                        /* Spinning Icon Styles */
                        .spin-icon {
                            display: inline-block;
                            /* animation: spin 2s linear infinite; */
                        }

                        @keyframes spin {
                            0% {
                                transform: rotate(0deg);
                            }

                            100% {
                                transform: rotate(360deg);
                            }
                        }

                        @keyframes pulse-glow {

                            0%,
                            100% {
                                box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
                            }

                            50% {
                                box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.6);
                            }
                        }

                        @keyframes blink-text {

                            0%,
                            100% {
                                opacity: 1;
                            }

                            50% {
                                opacity: 0.3;
                            }
                        }

                        /* NEW Badge for Workflow Cards */
                        .workflow-new-badge {
                            position: absolute;
                            top: 8px;
                            /* right: 8px; */
                            background: linear-gradient(135deg, #4CAF50, #45a049);
                            color: white;
                            padding: 4px 10px;
                            border-radius: 12px;
                            font-size: 0.7rem;
                            font-weight: bold;
                            animation: pulse-glow 2s ease-in-out infinite, blink-text 1.5s ease-in-out infinite;
                            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
                            z-index: 10;
                        }

                        .workflow-beta-badge {
                            position: absolute;
                            top: 8px;
                            /* right: 8px; */
                            background: linear-gradient(135deg, #FF9800, #F57C00);
                            color: white;
                            padding: 4px 10px;
                            border-radius: 12px;
                            font-size: 0.7rem;
                            font-weight: bold;
                            animation: pulse-glow 2s ease-in-out infinite;
                            box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
                            z-index: 10;
                        }

                        /* Disabled Workflow Overlay */
                        .workflow-disabled-overlay {
                            position: absolute;
                            /* top: 0; */
                            left: 0;
                            right: 0;
                            bottom: 0;
                            background: rgba(0, 0, 0, 0.2);
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 12px;
                            z-index: 5;
                            /* backdrop-filter: blur(2px); */
                        }

                        .workflow-disabled-text {
                            color: #17ff00;
                            font-size: 0.6rem;
                            font-weight: 600;
                            /* background: linear-gradient(135deg, #ff9800, #f57c00); */
                            padding: 6px 12px;
                            border-radius: 8px;
                            /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
                            animation: pulse-slow 3s ease-in-out infinite;
                        }

                        @keyframes pulse-slow {

                            0%,
                            100% {
                                transform: scale(1);
                                opacity: 1;
                            }

                            50% {
                                transform: scale(1.05);
                                opacity: 0.9;
                            }
                        }

                        .model-tile.workflow-disabled:hover {
                            transform: none !important;
                            box-shadow: none !important;
                        }

                        .model-tile {
                            position: relative;
                        }

                        /* Floating Generate Button Styles */
                        .floating-generate-btn {
                            position: fixed;
                            bottom: 50px;
                            right: 20px;
                            z-index: 1000;
                        }

                        .generate-btn-circle {
                            width: 60px;
                            height: 60px;
                            border-radius: 50%;
                            background: linear-gradient(135deg, var(--accent-color), var(--secondary));
                            border: none;
                            color: white;
                            font-size: 24px;
                            cursor: pointer;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
                            transition: all 0.3s ease;
                            position: relative;
                            overflow: hidden;
                        }

                        .generate-btn-circle:hover {
                            transform: scale(1.1);
                            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
                        }

                        .generate-btn-circle:active {
                            transform: scale(0.95);
                        }

                        .generate-btn-circle:disabled {
                            background: var(--gray);
                            cursor: not-allowed;
                            transform: none;
                            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
                        }

                        .generate-btn-circle:disabled:hover {
                            transform: none;
                            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
                        }

                        .generate-tooltip {
                            position: absolute;
                            right: 70px;
                            top: 50%;
                            transform: translateY(-50%);
                            background: var(--dark);
                            color: var(--light);
                            padding: 8px 12px;
                            border-radius: 6px;
                            font-size: 14px;
                            white-space: nowrap;
                            opacity: 0;
                            visibility: hidden;
                            transition: all 0.3s ease;
                            pointer-events: none;
                            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
                        }

                        .generate-btn-circle:hover .generate-tooltip {
                            opacity: 1;
                            visibility: visible;
                        }

                        .generate-btn-circle i {
                            transition: transform 0.3s ease;
                        }

                        .generate-btn-circle:hover .generate-icon {
                            transform: rotate(360deg);
                        }

                        .generate-btn-circle .generate-icon {
                            display: inline-block;
                        }

                        .generate-btn-circle .loader-spinner {
                            display: none;
                        }

                        .generate-btn-circle:disabled .generate-icon {
                            display: none;
                        }

                        .generate-btn-circle:disabled.generating .loader-spinner {
                            display: block;
                        }

                        .generate-btn-circle:disabled.requirements-not-met .generate-icon {
                            display: block;
                        }

                        .generate-btn-circle:disabled.requirements-not-met .generate-icon:before {
                            content: "\f071";
                            /* warning/exclamation icon */
                            font-family: "Font Awesome 6 Free";
                            font-weight: 900;
                            color: #ff6b35;
                            /* orange warning color */
                        }

                        /* Mobile responsiveness */
                        @media (max-width: 768px) {
                            .floating-generate-btn {
                                bottom: 50px;
                                right: 15px;
                            }

                            .generate-btn-circle {
                                width: 50px;
                                height: 50px;
                                font-size: 20px;
                            }

                            .generate-tooltip {
                                display: none;
                                /* Hide tooltip on mobile */
                            }
                        }
                    

                        /* Notification Banner Styles */
                        #notification-permission-banner {
                            position: fixed;
                            bottom: 20px;
                            left: 20px;
                            right: 20px;
                            z-index: 10001;
                            background: #1f2937;
                            color: #fff;
                            padding: 16px 20px;
                            border-radius: 12px;
                            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            gap: 12px;
                            font-family: inherit;
                            max-width: 600px;
                            margin: 0 auto;
                            border: 3px solid #ef4444;
                            font-weight: 500;
                        }

                        .notification-banner-message {
                            font-size: 15px;
                            line-height: 1.4;
                            flex: 1;
                            font-weight: 500;
                        }

                        .notification-banner-actions {
                            display: flex;
                            gap: 8px;
                        }

                        .notification-banner-enable-btn {
                            background: #ef4444;
                            color: #fff;
                            border: none;
                            padding: 8px 16px;
                            border-radius: 8px;
                            cursor: pointer;
                            font-size: 14px;
                            font-weight: 600;
                            transition: background 0.2s;
                            white-space: nowrap;
                        }

                        .notification-banner-enable-btn:hover {
                            background: #dc2626;
                        }

                        .notification-banner-dismiss-btn {
                            background: transparent;
                            color: #9ca3af;
                            border: 1px solid #374151;
                            padding: 6px 12px;
                            border-radius: 6px;
                            cursor: pointer;
                            font-size: 14px;
                            transition: background 0.2s;
                            white-space: nowrap;
                        }

                        .notification-banner-dismiss-btn:hover {
                            background: #374151;
                        }

                        /* Mobile responsiveness */
                        @media (max-width: 768px) {
                            #notification-permission-banner {
                                flex-direction: column;
                                align-items: stretch;
                                text-align: center;
                                padding: 16px;
                                left: 10px;
                                right: 10px;
                                bottom: 10px;
                            }

                            .notification-banner-message {
                                margin-bottom: 12px;
                            }

                            .notification-banner-actions {
                                flex-direction: column;
                                gap: 8px;
                            }

                            .notification-banner-enable-btn,
                            .notification-banner-dismiss-btn {
                                width: 100%;
                                padding: 12px 16px;
                            }
                        }
                    

                        /* Holiday Coupon Box Styles */
                        .holiday-coupon-box {
                            position: fixed;
                            top: 100px;
                            left: 20px;
                            z-index: 1000;
                            animation: couponSlideUp 0.5s ease-out;
                        }

                        @keyframes couponSlideUp {
                            from {
                                transform: translateY(100px);
                                opacity: 0;
                            }

                            to {
                                transform: translateY(0);
                                opacity: 1;
                            }
                        }

                        .coupon-box-content {
                            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                            border-radius: 12px;
                            padding: 15px 20px;
                            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
                            cursor: pointer;
                            transition: all 0.3s ease;
                            position: relative;
                            min-width: 250px;
                            text-align: center;
                        }

                        .coupon-box-content:hover {
                            transform: translateY(-3px);
                            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
                        }

                        .coupon-box-close {
                            position: absolute;
                            top: -20px;
                            right: -20px;
                            background: #e74c3c;
                            border: 2px solid white;
                            border-radius: 50%;
                            width: 24px;
                            height: 24px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            cursor: pointer;
                            color: white;
                            font-size: 12px;
                            transition: all 0.3s ease;
                            z-index: 10;
                        }

                        .coupon-box-close:hover {
                            background: #c0392b;
                            transform: scale(1.1);
                        }

                        .coupon-box-text {
                            color: white;
                            font-weight: bold;
                            font-size: 14px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            gap: 8px;
                            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
                        }

                        .coupon-image {
                            width: 160px;
                            object-fit: contain;
                            cursor: pointer;
                            border-radius: 12px;
                            transition: all 0.3s ease;
                            animation: imageBounce 2s ease-in-out infinite;
                        }

                        .coupon-image:hover {
                            transform: scale(1.05);
                        }

                        @keyframes imageBounce {

                            0%,
                            100% {
                                transform: scale(1);
                            }

                            50% {
                                transform: scale(1.2);
                            }
                        }

                        /* Qwen Workflow Info Styles */
                        .qwen-workflow-header {
                            display: flex;
                            align-items: center;
                            gap: 0.5rem;
                            margin-bottom: 0.5rem;
                            color: var(--accent-secondary);
                        }

                        .qwen-workflow-header i {
                            color: var(--accent-secondary);
                            font-size: 1.1rem;
                        }

                        .qwen-workflow-text {
                            color: var(--text-color);
                            line-height: 1.6;
                            margin: 0;
                        }

                        .qwen-workflow-details {
                            color: var(--text-secondary);
                            font-size: 0.9rem;
                            line-height: 1.5;
                        }
                    

                    @keyframes sampleCtaPulse {
                        0%,100% { transform:scale(1); box-shadow:0 0 0 0 rgba(251,191,36,0.45); border-color:rgba(251,191,36,0.45); }
                        50%     { transform:scale(1); box-shadow:0 0 16px 3px rgba(251,191,36,0.55); border-color:rgba(251,191,36,0.95); }
                    }
                    .sample-cta-pulse { animation:sampleCtaPulse 1.8s ease-in-out infinite; }
                    .sample-cta-pulse:hover { animation-play-state:paused; transform:scale(1.07); }
                

                .jt-spot {
                    position: fixed; z-index: 100000; border-radius: 16px; pointer-events: none;
                    box-shadow: 0 0 0 9999px rgba(3,5,9,0.74), 0 0 0 2px var(--accent-color), 0 0 30px 5px rgba(111,180,255,0.55);
                    transition: top .35s cubic-bezier(.4,0,.2,1), left .35s cubic-bezier(.4,0,.2,1), width .35s, height .35s;
                }
                .jt-card {
                    position: fixed; z-index: 100001; width: min(330px, calc(100vw - 28px));
                    background: #0e1116; border: 1px solid rgba(111,180,255,0.4); border-radius: 16px;
                    padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.6); color: #f8fafc;
                    font-family: 'Plus Jakarta Sans', sans-serif;
                    transition: top .35s cubic-bezier(.4,0,.2,1), left .35s cubic-bezier(.4,0,.2,1);
                }
                .jt-step { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent-color); text-transform: uppercase; }
                .jt-title { font-size: 17px; font-weight: 800; margin: 6px 0; }
                .jt-text { font-size: 13px; line-height: 1.55; color: var(--gray-light); margin: 0 0 16px; }
                .jt-actions { display: flex; align-items: center; gap: 8px; }
                .jt-skip { background: none; border: none; color: #7e828c; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 0; margin-right: auto; }
                .jt-skip:hover { color: var(--gray-light); }
                .jt-dots { display: flex; gap: 5px; align-items: center; }
                .jt-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all .2s; }
                .jt-dot.on { background: var(--accent-color); width: 16px; }
                .jt-btn { font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 9px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: #f8fafc; }
                .jt-btn.primary { border: none; color: #04121f; background: linear-gradient(135deg, #6fb4ff, #8ec5ff); }
                @media (max-width: 600px) {
                    .jt-card { left: 14px !important; right: 14px; width: auto; }
                }
            

            /* Error Message Close Button */

            .error-message-close {
                position: absolute;
                top: 5px;
                right: 5px;
                background: none;
                border: none;
                color: #fff;
                font-size: 25px;
                cursor: pointer;
                padding: 2px;
                line-height: 1;
                opacity: 0.7;
                transition: opacity 0.2s ease;
            }

            .error-message-close:hover {
                opacity: 1;
            }
        

            @keyframes spwShimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
            @keyframes spwGlow { 0%,100%{box-shadow:0 0 30px rgba(251,191,36,0.25),0 0 60px rgba(251,191,36,0.15);} 50%{box-shadow:0 0 45px rgba(251,191,36,0.45),0 0 90px rgba(251,191,36,0.25);} }
            @keyframes spwFadeIn { from{opacity:0;transform:scale(0.95) translateY(10px);} to{opacity:1;transform:scale(1) translateY(0);} }
            @keyframes spwPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.04);} }
            #smartPaywallModal .spw-gold-text { background:linear-gradient(90deg,#fde68a 0%,#fbbf24 25%,#f59e0b 50%,#fbbf24 75%,#fde68a 100%); background-size:200% auto; -webkit-background-clip:text; background-clip:text; color:transparent; animation:spwShimmer 4s linear infinite; }
            #smartPaywallModal .spw-card { animation:spwFadeIn 0.35s cubic-bezier(0.16,1,0.3,1); max-height: 95vh; overflow: auto;}
            #smartPaywallModal .spw-offer { animation:spwGlow 3s ease-in-out infinite; }
            #smartPaywallModal .spw-btn-gold { background:linear-gradient(135deg,#f59e0b 0%,#fbbf24 50%,#f59e0b 100%); color:#1c1917; font-weight:800; border:none; box-shadow:0 4px 14px rgba(251,191,36,0.5),inset 0 1px 0 rgba(255,255,255,0.3); transition:transform 0.15s, box-shadow 0.15s; }
            #smartPaywallModal .spw-btn-gold:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(251,191,36,0.65),inset 0 1px 0 rgba(255,255,255,0.4); }
            #smartPaywallModal .spw-crown { animation:spwPulse 2.5s ease-in-out infinite; display:inline-block; }
            #smartPaywallModal .spw-divider { background:linear-gradient(90deg,transparent,rgba(251,191,36,0.4),transparent); height:1px; margin:14px 0; }
            @keyframes spwSamplePulse {
                0%,100% { transform:scale(1); box-shadow:0 0 0 0 rgba(251,191,36,0.45); border-color:rgba(251,191,36,0.4); }
                50%     { transform:scale(1.06); box-shadow:0 0 18px 4px rgba(251,191,36,0.55); border-color:rgba(251,191,36,0.95); }
            }
            #smartPaywallModal .spw-sample-cta { animation:spwSamplePulse 1.8s ease-in-out infinite; transition:transform 0.15s; }
            #smartPaywallModal .spw-sample-cta:hover { transform:scale(1.08); animation-play-state:paused; }
        

            #socialProofToast{position:fixed;left:18px;bottom:18px;z-index:9998;max-width:300px;
                background:linear-gradient(160deg,#1c1917,#0c0a09);border:1px solid rgba(251,191,36,0.30);
                border-radius:14px;padding:13px 34px 13px 14px;color:#fafaf9;
                box-shadow:0 16px 44px rgba(0,0,0,0.55),0 0 0 1px rgba(251,191,36,0.08) inset;
                opacity:0;transform:translateY(120%);transition:opacity .45s ease,transform .55s cubic-bezier(0.16,1,0.3,1);
                pointer-events:none;}
            #socialProofToast.spt-show{opacity:1;transform:translateY(0);pointer-events:auto;cursor:pointer;}
            #socialProofToast.spt-show:hover{border-color:rgba(251,191,36,0.55);}
            #socialProofToast .spt-close{position:absolute;top:7px;right:9px;background:transparent;border:none;
                color:#a8a29e;font-size:17px;line-height:1;cursor:pointer;padding:2px;z-index:2;}
            #socialProofToast .spt-close:hover{color:#fff;}
            #socialProofToast .spt-crown{font-size:26px;line-height:1;filter:drop-shadow(0 0 10px rgba(251,191,36,0.5));}
            #socialProofToast .spt-l1{font-size:13px;font-weight:600;color:#fde68a;line-height:1.35;}
            #socialProofToast .spt-l2{font-size:12px;color:#d6d3d1;margin-top:2px;line-height:1.35;}
            @media (max-width:520px){ #socialProofToast{left:10px;right:10px;bottom:10px;max-width:none;} }
        