/* Explain: Global component styles including buttons, cards, AI chat panel, and the install prompt card. */
.site-header {
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.94), rgba(8, 8, 12, 0.76));
    border-bottom: 1px solid rgba(201, 169, 120, 0.16);
    backdrop-filter: saturate(160%) blur(28px);
    -webkit-backdrop-filter: saturate(160%) blur(28px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0.3rem;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.3s cubic-bezier(0.2, 1, 0.3, 1), transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.75rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color));
    content: "";
}

.glass-panel,
.class-card,
.booking-form,
.booking-overlay-panel {
    border: 1px solid rgba(201, 169, 120, 0.18);
    border-radius: 1.75rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 45%, rgba(0, 0, 0, 0.34));
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.glass-panel,
.class-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.glass-panel:hover,
.class-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--surface-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.arch-frame-large,
.arch-frame-medium {
    min-height: 480px;
}

.class-card {
    min-height: 320px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.6s ease;
}

.amenity-row:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -15px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.amenity-dot {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.amenity-dot::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-size: 0.9rem;
    font-weight: 900;
}

.booking-form,
.booking-overlay-panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }
.newsletter-status { min-height: 1.15rem; }

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    background: rgba(9, 9, 11, 0.9);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.booking-overlay.is-open {
    display: flex;
}

.booking-overlay-panel {
    width: min(100%, 40rem);
    margin: auto 0;
}

.partner-swiper {
    overflow: visible;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partner-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.btn {
    min-height: 3rem;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
    background-size: 200% 100%;
    background-position: 100% 0;
    z-index: -1;
    transition: background-position 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 32px rgba(244, 63, 94, 0.4), 0 0 20px rgba(244, 63, 94, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:hover::before {
    background-position: 0 0;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.input,
.textarea {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem !important;
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-color);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.input:focus,
.textarea:focus {
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(99, 102, 241, 0.2), 0 10px 20px -5px rgba(99, 102, 241, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.mobile-book-bar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 45;
}

footer {
    border-top: 1px solid var(--border-color);
    background: var(--footer-bg);
}

@media (max-width: 767px) {
    .section-kicker::before { width: 1.5rem; }
    .booking-overlay-panel { margin: 0; border-radius: var(--radius-md); }
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transition: opacity 1.2s cubic-bezier(0.2, 1, 0.2, 1), transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
    will-change: opacity, transform;
}
@starting-style {
    .reveal-on-scroll.reveal-fade-up { opacity: 0; transform: translateY(30px); }
    .reveal-on-scroll.reveal-fade-in { opacity: 0; transform: scale(0.98); }
    .reveal-on-scroll.reveal-slide-left { opacity: 0; transform: translateX(-30px); }
    .reveal-on-scroll.reveal-slide-right { opacity: 0; transform: translateX(30px); }
}
/* Reveal variants now animate from the @starting-style block above, so every
   section is visible by default even if the reveal script does not run. */
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }
.delay-400 { transition-delay: 600ms; }

/* Scanning Animation */
@keyframes scan {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}
.animate-scan {
    animation: scan 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.eq-preset-btn {
    min-height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eq-preset-btn:hover {
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.eq-preset-btn.is-active {
    border-color: var(--primary-color);
    background: var(--terracotta-soft);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.18);
}

/* Mastering studio transport */
.master-btn {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.master-btn:hover {
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.master-btn.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    box-shadow: var(--shadow-button);
}

.master-btn.is-active {
    border-color: var(--primary-color);
    background: var(--terracotta-soft);
    color: #ffffff;
}

.ab-toggle {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: transparent;
}

.ab-btn {
    min-height: 2.25rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ab-btn:hover {
    color: var(--text-color);
}

.ab-btn.is-active {
    background: var(--surface-elevated);
    color: #ffffff;
}

[hidden] {
    display: none !important;
}

.auth-tab {
    min-height: 2.75rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--text-color);
}

.auth-tab.is-active {
    border-color: var(--border-color);
    background: var(--surface-elevated);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

/* Video style preset buttons */
.style-preset-btn {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-preset-btn:hover {
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.style-preset-btn.is-active {
    border-color: var(--primary-color);
    background: var(--terracotta-soft);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.18);
}

/* Saved prompt template chips */
.prompt-chip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.25rem 0.2rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.prompt-chip:hover {
    border-color: var(--secondary-color);
    color: #ffffff;
}

.prompt-chip-label {
    max-width: 12rem;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.prompt-chip-remove {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-chip-remove:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Premium Chat Scrollbar */
.custom-ai-scroll::-webkit-scrollbar {
    width: 5px;
}
.custom-ai-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-ai-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}
.custom-ai-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* AI chat web-search sources */
.ai-sources {
    margin-top: 0.5rem;
    max-width: 85%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.ai-sources-title {
    margin: 0 0 0.4rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ai-source-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0.35rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
    transition: background 0.2s ease, color 0.2s ease;
    word-break: break-word;
}

.ai-source-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
}

.ai-source-num {
    flex-shrink: 0;
    color: var(--accent-color);
    font-weight: 800;
}

.ai-source-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* AI reply feedback + learning controls */
.ai-feedback-btn {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-feedback-btn:hover:not(:disabled) {
    border-color: var(--secondary-color);
    color: var(--text-color);
}

.ai-feedback-btn.is-active {
    border-color: var(--secondary-color);
    background: var(--sage-soft);
    color: #ffffff;
}

.ai-feedback-btn:disabled {
    cursor: default;
}

/* AI animated skeleton background (chat panel + policy page)
   A moving wireframe grid with floating shimmer bars - no video files. */
.ai-skel-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 6%, var(--aurora-pink), transparent 48%),
        radial-gradient(circle at 86% 16%, var(--aurora-cyan), transparent 50%),
        radial-gradient(circle at 50% 98%, var(--aurora-gold), transparent 52%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.74), rgba(3, 7, 18, 0.94));
}

.ai-skel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    filter: saturate(1.25) contrast(1.08) brightness(1.05);
    mix-blend-mode: screen;
}

.ai-skel-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(3, 7, 18, 0.15), rgba(3, 7, 18, 0.72) 78%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.8));
}

.ai-skel-grid {
    position: absolute;
    inset: -25%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    animation: ai-skel-drift 26s linear infinite;
}

.ai-skel-bars {
    position: absolute;
    inset: 0;
    animation: ai-skel-float 14s ease-in-out infinite;
}

.ai-skel-bars span {
    position: absolute;
    display: block;
    height: 0.6rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    background-size: 220% 100%;
    animation: ai-skel-shimmer 3s ease-in-out infinite;
}

.ai-skel-bars span:nth-child(1) { top: 9%; left: 7%; width: 40%; animation-delay: 0s; }
.ai-skel-bars span:nth-child(2) { top: 18%; left: 24%; width: 58%; animation-delay: 0.35s; }
.ai-skel-bars span:nth-child(3) { top: 27%; left: 11%; width: 30%; animation-delay: 0.7s; }
.ai-skel-bars span:nth-child(4) { top: 37%; left: 54%; width: 34%; animation-delay: 1.05s; }
.ai-skel-bars span:nth-child(5) { top: 47%; left: 9%; width: 48%; animation-delay: 1.4s; }
.ai-skel-bars span:nth-child(6) { top: 57%; left: 34%; width: 26%; animation-delay: 1.75s; }
.ai-skel-bars span:nth-child(7) { top: 67%; left: 15%; width: 56%; animation-delay: 2.1s; }
.ai-skel-bars span:nth-child(8) { top: 77%; left: 45%; width: 38%; animation-delay: 2.45s; }
.ai-skel-bars span:nth-child(9) { top: 87%; left: 8%; width: 44%; animation-delay: 2.8s; }

@keyframes ai-skel-drift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-36px, -36px, 0); }
}

@keyframes ai-skel-float {
    0% { transform: translateY(-7px); }
    50% { transform: translateY(7px); }
    100% { transform: translateY(-7px); }
}

@keyframes ai-skel-shimmer {
    0% { background-position: 200% 0; opacity: 0.45; }
    50% { opacity: 0.95; }
    100% { background-position: -200% 0; opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-skel-video {
        display: none;
    }
    .ai-skel-grid,
    .ai-skel-bars,
    .ai-skel-bars span {
        animation: none;
    }
}

@keyframes avatar-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

.avatar-speaking #aiAvatarRing {
    animation: avatar-pulse 1.2s ease-in-out infinite;
}

.avatar-speaking #aiAvatarImg {
    border-color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 0 50px rgba(244, 63, 94, 0.5);
}

/* Live AI call: connection dot and control buttons */
.ai-call-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #34d399;
    animation: hero-pulse 1.8s ease-out infinite;
}

.ai-call-btn {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ai-call-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.ai-call-btn.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
}

.ai-call-btn.is-danger {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
}

.ai-call-btn.is-danger:hover {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

/* AI chat: full-screen mode */
#aiChatPanel.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 120;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-width: 0;
    border-radius: 0;
}

/* Newsroom: category filter chips */
.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-chip:hover {
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.news-chip.is-active {
    border-color: var(--primary-color);
    background: var(--terracotta-soft);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.18);
}

/* Newsroom: article body typography for AI-written HTML */
.article-body {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.article-body p {
    margin: 0 0 1.25rem;
}

.article-body h2 {
    margin: 2.25rem 0 0.85rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-body h3 {
    margin: 1.75rem 0 0.7rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.35;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.25rem 1.35rem;
    list-style: disc;
}

.article-body li {
    margin-bottom: 0.55rem;
}

.article-body strong {
    color: var(--text-color);
    font-weight: 700;
}

.article-body a {
    color: var(--accent-color);
    text-decoration: underline;
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding-left: 1.1rem;
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
}

.article-body img {
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
}

/* Website threat scanner report (AI chat) */
.url-scan {
    width: 100%;
    max-width: 85%;
    margin-top: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-soft);
}

.url-scan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.url-scan-verdict {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.url-scan-icon {
    flex-shrink: 0;
    font-size: 1.35rem;
}

.url-scan[data-verdict="clean"] .url-scan-icon,
.url-scan[data-verdict="low"] .url-scan-icon {
    color: #34d399;
}

.url-scan[data-verdict="caution"] .url-scan-icon {
    color: #fbbf24;
}

.url-scan[data-verdict="suspicious"] .url-scan-icon {
    color: #fb923c;
}

.url-scan[data-verdict="dangerous"] .url-scan-icon {
    color: #f87171;
}

.url-scan[data-verdict="clean"] .url-scan-verdict,
.url-scan[data-verdict="low"] .url-scan-verdict {
    color: #34d399;
}

.url-scan[data-verdict="caution"] .url-scan-verdict {
    color: #fbbf24;
}

.url-scan[data-verdict="suspicious"] .url-scan-verdict {
    color: #fb923c;
}

.url-scan[data-verdict="dangerous"] .url-scan-verdict {
    color: #f87171;
}

.url-scan-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.url-scan-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.url-scan[data-verdict="clean"] .url-scan-bar-fill,
.url-scan[data-verdict="low"] .url-scan-bar-fill {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.url-scan[data-verdict="caution"] .url-scan-bar-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.url-scan[data-verdict="suspicious"] .url-scan-bar-fill {
    background: linear-gradient(90deg, #fb923c, #f97316);
}

.url-scan[data-verdict="dangerous"] .url-scan-bar-fill {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.url-scan-findings {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}

.url-scan-finding {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.url-scan-finding-icon {
    margin-top: 0.15rem;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.url-scan-finding[data-severity="critical"] .url-scan-finding-icon,
.url-scan-finding[data-severity="high"] .url-scan-finding-icon {
    color: #f87171;
}

.url-scan-finding[data-severity="medium"] .url-scan-finding-icon {
    color: #fbbf24;
}

.url-scan-finding[data-severity="low"] .url-scan-finding-icon {
    color: var(--accent-color);
}

/* Malware Scan report: own brand header, score and grouped engine sections */
.url-scan-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(14, 165, 233, 0.14));
}

.url-scan-brand-badge {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.url-scan-brand-title {
    margin: 0;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.url-scan-brand-title span {
    color: var(--accent-color);
}

.url-scan-brand-sub {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.url-scan-summary {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.72rem;
    line-height: 1.65;
}

.url-scan-score {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.3rem;
}

.url-scan-score-num {
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.url-scan-score-max {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
}

.url-scan-group-title {
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.url-scan-engines .url-scan-group-title {
    margin-top: 0.7rem;
}

.url-scan-engines .url-scan-group-title:first-child {
    margin-top: 0;
}

.url-scan-finding-title {
    margin: 0;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.url-scan-finding-detail {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1.5;
}

.url-scan-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.url-scan-meta {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

/* VirusTotal-style engine-by-engine verdict list */
.url-scan-engines {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.url-scan-engine {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.6rem;
}

.url-scan-engine-icon {
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

.url-scan-engine-name {
    margin: 0;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.url-scan-engine-detail {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1.45;
}

.url-scan-engine-result {
    flex-shrink: 0;
    padding-top: 0.15rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.url-scan-engine[data-result="clean"] .url-scan-engine-icon,
.url-scan-engine[data-result="clean"] .url-scan-engine-result {
    color: #34d399;
}

.url-scan-engine[data-result="note"] .url-scan-engine-icon,
.url-scan-engine[data-result="note"] .url-scan-engine-result {
    color: var(--accent-color);
}

.url-scan-engine[data-result="suspicious"] .url-scan-engine-icon,
.url-scan-engine[data-result="suspicious"] .url-scan-engine-result {
    color: #fbbf24;
}

.url-scan-engine[data-result="malicious"] .url-scan-engine-icon,
.url-scan-engine[data-result="malicious"] .url-scan-engine-result {
    color: #f87171;
}

.url-scan-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--border-color);
}

.url-scan-btn {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.url-scan-btn:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* AI chat: live image search gallery */
.image-search {
    width: 100%;
    max-width: 85%;
    margin-top: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-soft);
}

.image-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.5rem;
}

.image-search-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.image-search-item:hover {
    border-color: var(--secondary-color);
    transform: scale(1.03);
}

.image-search-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-search-foot {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
}

@media (max-width: 420px) {
    .image-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Mesh lighting orbs (atmospheric depth) ---- */
.mesh-orb {
    position: absolute;
    z-index: 0;
    width: clamp(20rem, 48vw, 42rem);
    height: clamp(20rem, 48vw, 42rem);
    border-radius: 9999px;
    filter: blur(120px);
    opacity: 0.45;
    pointer-events: none;
}

.mesh-orb--indigo { background: radial-gradient(circle, var(--mesh-indigo), transparent 70%); }
.mesh-orb--violet { background: radial-gradient(circle, var(--mesh-violet), transparent 70%); }
.mesh-orb--rose { background: radial-gradient(circle, var(--mesh-rose), transparent 70%); }
.mesh-orb--cyan { background: radial-gradient(circle, var(--mesh-cyan), transparent 70%); }

/* ---- Interactive hero analytics dashboard ---- */
@keyframes analytics-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
    50% { box-shadow: 0 25px 60px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}

.analytics-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.75rem;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.25), transparent 45%, rgba(14, 165, 233, 0.2)),
        rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    animation: analytics-glow 8s ease-in-out infinite;
}

.hero-bar {
    flex: 1 1 0;
    min-width: 3px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--chart-bar-to), var(--chart-bar-from));
    opacity: 0.85;
    transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.hero-bar:hover { opacity: 1; }

.hero-metric-btn {
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-metric-btn:hover { border-color: var(--secondary-color); color: var(--text-color); }

.hero-metric-btn.is-active {
    border-color: var(--primary-color);
    background: var(--terracotta-soft);
    color: #ffffff;
}

.hero-play-btn {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-play-btn:hover { transform: scale(1.08); }

.hero-live-dot {
    width: 0.4rem;
    height: 0.4rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #34d399;
    animation: hero-pulse 1.8s ease-out infinite;
}

@keyframes hero-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-wave {
    display: flex;
    height: 2.5rem;
    flex: 1 1 auto;
    align-items: center;
    gap: 2px;
    overflow: hidden;
}

.hero-wave span {
    flex: 1 1 0;
    min-width: 2px;
    border-radius: 9999px;
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.hero-wave.is-playing span {
    opacity: 0.95;
    animation: wave-bounce 0.9s ease-in-out infinite;
}

.hero-wave.is-playing span:nth-child(3n) { animation-duration: 1.2s; }
.hero-wave.is-playing span:nth-child(4n) { animation-duration: 0.7s; }
.hero-wave.is-playing span:nth-child(5n) { animation-delay: 0.15s; }

@keyframes wave-bounce {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

/* ---- Bento feature grid ---- */
.bento-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: clamp(1.6rem, 3vw, 2.25rem);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.6s ease;
}

.bento-card::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(99, 102, 241, 0.25), transparent 45%, rgba(14, 165, 233, 0.2));
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.bento-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.bento-card:hover::before { opacity: 1; }

.feature-preview {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(3, 7, 18, 0.5);
    padding: 0.9rem;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.7rem;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.preview-chip i { color: var(--accent-color); }
.preview-chip:hover { border-color: var(--secondary-color); color: #ffffff; }

.preview-wave,
.fingerprint-wave {
    display: flex;
    height: 2.25rem;
    align-items: center;
    gap: 2px;
}

.preview-wave span,
.fingerprint-wave span {
    flex: 1 1 0;
    min-width: 2px;
    border-radius: 9999px;
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    opacity: 0.75;
    animation: wave-bounce 1.6s ease-in-out infinite;
}

.preview-wave span:nth-child(3n) { animation-duration: 1.25s; }
.preview-wave span:nth-child(4n) { animation-duration: 1.9s; }

.fingerprint-wave span {
    background: linear-gradient(180deg, #34d399, var(--accent-color));
    animation-duration: 1.35s;
}

.fingerprint-wave span:nth-child(2n) { animation-duration: 1.1s; }

.vevo-badge-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.14), rgba(3, 7, 18, 0.4));
    padding: 0.7rem 0.8rem;
}

.vevo-avatar {
    display: flex;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.vevo-check { color: var(--accent-color); font-size: 0.85rem; }

.vevo-verified {
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.16);
    padding: 0.3rem 0.55rem;
    color: var(--accent-color);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fingerprint-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(3, 7, 18, 0.5);
    padding: 0.8rem;
}

/* ---- Polished DSP showcase ---- */
.dsp-badge {
    position: relative;
    display: flex;
    min-height: 7rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0.75rem;
    color: var(--text-muted);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

.dsp-badge::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, var(--dsp-glow, var(--secondary-color)), transparent 70%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.dsp-badge:hover {
    border-color: var(--dsp-glow, var(--secondary-color));
    color: #ffffff;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 48px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px var(--dsp-glow, var(--secondary-color)), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dsp-badge:hover::before { opacity: 0.24; }

.dsp-badge-icon {
    position: relative;
    font-size: 1.9rem;
    color: var(--text-muted);
    filter: grayscale(1);
    transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.dsp-badge:hover .dsp-badge-icon {
    color: var(--dsp-glow, var(--secondary-color));
    filter: grayscale(0) drop-shadow(0 0 10px var(--dsp-glow, var(--secondary-color)));
    transform: scale(1.08);
}

.dsp-badge-name {
    position: relative;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .hero-wave.is-playing span,
    .preview-wave span,
    .fingerprint-wave span,
    .hero-live-dot {
        animation: none;
    }
}

/* ============================================================
   AI chat — premium luxury visual layer
   ============================================================ */
.ai-chat-shell {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: linear-gradient(180deg, rgba(16, 20, 36, 0.86), rgba(6, 8, 16, 0.94)) !important;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* Flowing gradient hairline frame around the whole panel */
.ai-chat-shell::before {
    position: absolute;
    inset: -1px;
    z-index: 3;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.95), rgba(244, 63, 94, 0.95), rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.95));
    background-size: 300% 300%;
    content: "";
    opacity: 0.55;
    pointer-events: none;
    animation: ai-chat-border-flow 8s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes ai-chat-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.ai-chat-head {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ai-chat-composer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.5)) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

.ai-chat-composer:focus-within {
    border-color: rgba(99, 102, 241, 0.75) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 4px rgba(99, 102, 241, 0.16), 0 20px 50px rgba(99, 102, 241, 0.28) !important;
}

/* Message bubbles */
.ai-bubble-user {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ai-bubble-ai {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Suggestion and quick-action chips */
[data-ai-suggestion],
[data-ai-quick] {
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

[data-ai-suggestion]:hover,
[data-ai-quick]:hover {
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

[data-ai-feedback] {
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

[data-ai-feedback]:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* Toolbar controls — unified glass pills, gradient when active */
#aiChatMemoryBtn,
#aiVoiceMode,
#aiSearchToggle,
#aiDeepToggle,
#aiChatExpand,
#aiChatReset,
#aiChatClose {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#aiChatMemoryBtn:hover,
#aiVoiceMode:hover,
#aiSearchToggle:hover,
#aiDeepToggle:hover,
#aiChatExpand:hover,
#aiChatReset:hover,
#aiChatClose:hover {
    border-color: rgba(99, 102, 241, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}

#aiChatMemoryBtn[aria-pressed="true"],
#aiVoiceMode[aria-pressed="true"],
#aiSearchToggle[aria-pressed="true"],
#aiDeepToggle[aria-pressed="true"] {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(244, 63, 94, 0.4);
}

#aiChatSend {
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#aiChatSend:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 12px 34px rgba(244, 63, 94, 0.6);
}

/* Launcher — slow dual-tone breathing glow */
#aiChatToggle {
    animation: ai-launch-glow 4.5s ease-in-out infinite;
}

@keyframes ai-launch-glow {
    0%, 100% { box-shadow: 0 14px 40px rgba(244, 63, 94, 0.4); }
    50% { box-shadow: 0 18px 62px rgba(99, 102, 241, 0.55); }
}

/* Background atmosphere — drifting aurora orbs and sweeping light rays */
.ai-lux-aurora {
    position: absolute;
    width: clamp(13rem, 38vw, 24rem);
    height: clamp(13rem, 38vw, 24rem);
    border-radius: 9999px;
    filter: blur(72px);
    opacity: 0.55;
    pointer-events: none;
    animation: ai-lux-drift 18s ease-in-out infinite;
}

.ai-lux-aurora--rose {
    top: -14%;
    left: -20%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.6), transparent 70%);
}

.ai-lux-aurora--indigo {
    top: 26%;
    right: -24%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6), transparent 70%);
    animation-delay: 3s;
}

.ai-lux-aurora--cyan {
    bottom: -20%;
    left: 10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5), transparent 70%);
    animation-delay: 6s;
}

@keyframes ai-lux-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -20px, 0) scale(1.14); }
}

.ai-lux-rays {
    position: absolute;
    inset: -25%;
    pointer-events: none;
}

.ai-lux-rays span {
    position: absolute;
    top: -40%;
    left: 0;
    display: block;
    width: 2px;
    height: 180%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    opacity: 0;
    transform: rotate(20deg);
    animation: ai-lux-sweep 8s ease-in-out infinite;
}

.ai-lux-rays span:nth-child(1) { left: 14%; animation-delay: 0s; }
.ai-lux-rays span:nth-child(2) { left: 33%; animation-delay: 1.4s; }
.ai-lux-rays span:nth-child(3) { left: 52%; animation-delay: 2.8s; }
.ai-lux-rays span:nth-child(4) { left: 71%; animation-delay: 4.2s; }
.ai-lux-rays span:nth-child(5) { left: 88%; animation-delay: 5.6s; }

@keyframes ai-lux-sweep {
    0% { opacity: 0; transform: rotate(20deg) translate3d(-14px, 0, 0); }
    35% { opacity: 0.75; }
    100% { opacity: 0; transform: rotate(20deg) translate3d(14px, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-lux-aurora,
    .ai-lux-rays span,
    .ai-chat-shell::before,
    #aiChatToggle {
        animation: none;
    }
}

/* Voice picker: the glass select sits on a near-transparent dark surface, so
   without an explicit color-scheme and option colours the native dropdown list
   inherits near-white text on a near-white popup and every option looks blank.
   These rules force a readable, high-contrast list on every OS and browser. */
#aiVoiceSelect {
    color-scheme: dark;
}

#aiVoiceSelect option,
#aiVoiceSelect optgroup {
    background-color: #0b1020;
    color: #f9fafb;
    font-weight: 600;
}

#aiVoiceSelect optgroup {
    background-color: #05070f;
    color: var(--accent-color);
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#aiVoiceSelect option:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

/* ============================================================
   LUXURY LAYER — obsidian + champagne gold refinement
   Declared last so it refines the component rules above.
   ============================================================ */

.btn {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-family: var(--font-body);
    border-color: rgba(201, 169, 120, 0.26);
    box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn:hover {
    border-color: rgba(231, 207, 159, 0.6);
    box-shadow: 0 24px 50px -18px rgba(168, 50, 79, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-lux {
    border-color: rgba(201, 169, 120, 0.5) !important;
    background-color: #8f2743 !important;
    background-image: linear-gradient(120deg, #7a1f38 0%, #a8324f 48%, #5f2757 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 44px -18px rgba(168, 50, 79, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.btn-lux:hover {
    border-color: rgba(231, 207, 159, 0.78) !important;
    background-image: linear-gradient(120deg, #8a2541 0%, #bd3a5b 48%, #6d2d63 100%) !important;
    box-shadow: 0 26px 58px -18px rgba(168, 50, 79, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-ghost-lux {
    border-color: rgba(201, 169, 120, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--accent-color) !important;
}

.btn-ghost-lux:hover {
    border-color: rgba(231, 207, 159, 0.7) !important;
    background-color: rgba(201, 169, 120, 0.08) !important;
    color: #ffffff !important;
}

.lux-card {
    position: relative;
    border: 1px solid rgba(201, 169, 120, 0.16);
    border-radius: 1.75rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 45%, rgba(0, 0, 0, 0.34));
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.6s ease;
}

.lux-card:hover {
    border-color: rgba(201, 169, 120, 0.44);
    transform: translateY(-6px);
    box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 1), 0 0 44px -20px rgba(201, 169, 120, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.lux-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.lux-eyebrow::before {
    content: "";
    width: 2.75rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color));
}

.lux-rule {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 120, 0.45), transparent);
}

.lux-display {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.04;
}

.lux-gold {
    background: linear-gradient(100deg, var(--accent-color), #fff3d6 42%, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lux-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 120, 0.26);
    border-radius: 2rem;
    background: rgba(8, 8, 12, 0.7);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lux-frame::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 60px 80px -60px rgba(255, 255, 255, 0.18);
}

.lux-divider-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 120, 0.18);
    border-radius: 1.75rem;
    background: linear-gradient(150deg, rgba(168, 50, 79, 0.16), rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.34));
    box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Refinements to existing components */
@keyframes analytics-glow {
    0%, 100% { box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
    50% { box-shadow: 0 28px 66px rgba(201, 169, 120, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
}

.analytics-card {
    border-color: rgba(201, 169, 120, 0.2);
    background:
        linear-gradient(150deg, rgba(168, 50, 79, 0.22), transparent 45%, rgba(201, 169, 120, 0.14)),
        rgba(10, 10, 14, 0.84);
}

.hero-bar {
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
}

.hero-metric-btn {
    border-color: rgba(201, 169, 120, 0.22);
    letter-spacing: 0.16em;
    font-family: var(--font-body);
}

.hero-metric-btn.is-active {
    border-color: rgba(201, 169, 120, 0.7);
    background: linear-gradient(135deg, rgba(168, 50, 79, 0.6), rgba(201, 169, 120, 0.24));
    color: #ffffff;
}

.hero-play-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 10px 26px -12px rgba(201, 169, 120, 0.7);
}

.bento-card {
    border-color: rgba(201, 169, 120, 0.16);
    border-radius: 1.75rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 45%, rgba(0, 0, 0, 0.34));
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bento-card:hover {
    border-color: rgba(201, 169, 120, 0.45);
    box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 1), 0 0 44px -20px rgba(201, 169, 120, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bento-card::before {
    background: linear-gradient(150deg, rgba(201, 169, 120, 0.2), transparent 45%, rgba(168, 50, 79, 0.16));
}

.dsp-badge {
    border-color: rgba(201, 169, 120, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.3));
}

.amenity-row {
    border-color: rgba(201, 169, 120, 0.14);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.3));
}

.amenity-dot {
    border-color: rgba(201, 169, 120, 0.35);
    background: linear-gradient(140deg, rgba(201, 169, 120, 0.2), rgba(168, 50, 79, 0.18));
    color: var(--accent-color);
}

.arch-frame {
    border-color: rgba(201, 169, 120, 0.22);
    border-radius: 2rem;
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-chip {
    border-color: rgba(201, 169, 120, 0.18);
}

.preview-chip i {
    color: var(--secondary-color);
}

.input,
.textarea {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.input:focus,
.textarea:focus {
    border-color: rgba(201, 169, 120, 0.7);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(201, 169, 120, 0.16);
}

.article-body a {
    color: var(--secondary-color);
}

.news-chip.is-active,
.eq-preset-btn.is-active,
.style-preset-btn.is-active {
    border-color: rgba(201, 169, 120, 0.7);
    background: rgba(201, 169, 120, 0.14);
}

footer {
    border-top: 1px solid rgba(201, 169, 120, 0.16);
}

/* ============================================================
   PHONE LAYER — thumb-friendly controls and a full-screen chat
   Declared last so it refines every component rule above.
   ============================================================ */
@media (max-width: 640px) {
    /* The assistant becomes an app-style full-screen sheet on phones, so the
       composer always stays above the on-screen keyboard and nothing clips. */
    #aiChatPanel {
        position: fixed;
        inset: 0;
        z-index: 120;
        width: 100vw;
        height: 100dvh;
        max-width: none;
        max-height: none;
        border-width: 0;
        border-radius: 0;
    }

    /* Already full screen on a phone, so this control has nothing left to do. */
    #aiChatExpand {
        display: none;
    }

    #aiChatMessages {
        padding: 0.9rem;
    }

    /* One compact swipeable row of controls instead of three wrapped rows. */
    #aiChatForm > div:first-of-type {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.45rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #aiChatForm > div:first-of-type::-webkit-scrollbar {
        display: none;
    }

    #aiChatForm > div:first-of-type button {
        min-height: 2.75rem;
        flex-shrink: 0;
    }

    #aiChatForm > div:first-of-type .relative {
        flex: 0 0 auto;
        min-width: 9.5rem;
    }

    #aiChatForm > div:first-of-type select {
        min-height: 2.75rem;
    }

    /* Starter prompts and follow-ups swipe horizontally, so the first answer
       stays in view instead of being pushed down the screen. */
    [data-ai-suggestions],
    #aiChatQuickActions {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.45rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    [data-ai-suggestions]::-webkit-scrollbar,
    #aiChatQuickActions::-webkit-scrollbar {
        display: none;
    }

    [data-ai-suggestions] button,
    #aiChatQuickActions button {
        flex-shrink: 0;
        min-height: 2.5rem;
    }

    /* This strip label would break the horizontal swipe row. */
    #aiChatQuickActions > span:first-child {
        display: none;
    }

    /* Comfortable, thumb-sized form fields in the callback form. */
    #aiChatLeadForm input,
    #aiChatLeadForm textarea,
    #aiChatLeadForm button {
        min-height: 2.75rem;
    }

    /* Keep the launcher clear of the sticky mobile action bar below it. */
    #aiChatWidget {
        right: calc(0.9rem + env(safe-area-inset-right));
        bottom: calc(6rem + env(safe-area-inset-bottom));
    }

    #aiChatToggle {
        min-height: 3.25rem;
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    /* Save battery and mobile data: keep the moving gradient wash, skip the
       background video on phones. */
    .ai-skel-video {
        display: none;
    }

    /* Larger tap targets for the other interactive controls. */
    .news-chip,
    .eq-preset-btn,
    .hero-metric-btn,
    .style-preset-btn {
        min-height: 2.75rem;
    }
}

/* ============================================================
   ACCESS CHECK + RUNTIME FIREWALL MESSAGE
   Self-contained surfaces for the access-check gate and the
   firewall notice.
   ============================================================ */
.dc-gate {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(3, 3, 6, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dc-gate.is-open {
    display: flex;
}

.dc-gate--access {
    z-index: 155;
}

.dc-card {
    width: min(100%, 42rem);
    margin: auto;
    border: 1px solid rgba(201, 169, 120, 0.28);
    border-radius: 1.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 45%, rgba(0, 0, 0, 0.52));
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.dc-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border-bottom: 1px solid rgba(201, 169, 120, 0.18);
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
}

.dc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 12px 30px -12px rgba(168, 50, 79, 0.9);
}

.dc-badge--shield {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.dc-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.dc-sub {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.dc-q {
    margin-bottom: 0.9rem;
}

.dc-q-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dc-input {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--field-bg);
    color: var(--text-color);
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.dc-input:focus {
    border-color: var(--secondary-color);
}

select.dc-input {
    color-scheme: dark;
    cursor: pointer;
}

select.dc-input option {
    background-color: #0b1020;
    color: #f9fafb;
}

.dc-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.1rem;
    font-size: 0.76rem;
    line-height: 1.65;
    color: var(--text-muted);
    cursor: pointer;
}

.dc-check input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.dc-check strong {
    color: var(--text-color);
}

.dc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.dc-btn {
    flex: 1 1 12rem;
    min-height: 3rem;
    border: 1px solid rgba(201, 169, 120, 0.5);
    border-radius: 9999px;
    background: linear-gradient(120deg, #7a1f38 0%, #a8324f 48%, #5f2757 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 44px -18px rgba(168, 50, 79, 0.85);
}

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

.dc-btn-ghost {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    box-shadow: none;
}

.dc-btn-ghost:hover {
    color: #ffffff;
    border-color: var(--secondary-color);
}

.dc-fine {
    margin: 0.9rem 0 0;
    font-size: 0.68rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.dc-verdict {
    text-align: center;
    padding: 1rem 0 0.4rem;
}

.dc-verdict-icon {
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    font-size: 1.4rem;
}

.dc-verdict-icon.dc-ok {
    border: 1px solid rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.dc-verdict-icon.dc-no {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.dc-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 165;
    max-width: min(92vw, 30rem);
    transform: translate(-50%, 1rem);
    border: 1px solid rgba(201, 169, 120, 0.4);
    border-radius: 9999px;
    background: #181820;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dc-toast.is-open {
    opacity: 1;
    transform: translate(-50%, 0);
}

.dc-toast.is-bad {
    border-color: rgba(248, 113, 113, 0.55);
    color: #fca5a5;
}

@media (prefers-reduced-motion: reduce) {
    .dc-btn,
    .dc-toast {
        transition: none;
    }
}

/* ============================================================
   VPN / PROXY ACCESS BLOCK
   The whole AI is unreachable while access is refused.
   ============================================================ */
body.ai-locked #aiChatWidget {
    display: none !important;
}

.dc-badge--block {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    box-shadow: 0 12px 30px -12px rgba(185, 28, 28, 0.9);
}

.dc-block-list {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.dc-block-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.dc-block-list i {
    margin-top: 0.25rem;
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #f87171;
}

.dc-block-list li:not(:first-child) i {
    color: #4ade80;
}

.dc-facts {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 0.9rem;
    background: rgba(248, 113, 113, 0.07);
}

.dc-facts-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dc-facts-row strong {
    color: #ffffff;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.dc-details {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(201, 169, 120, 0.18);
}

.dc-details summary {
    cursor: pointer;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.dc-details p {
    margin: 0.6rem 0 0;
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.dc-btn--danger {
    border-color: rgba(248, 113, 113, 0.5);
    background: linear-gradient(120deg, #7f1d1d, #b91c1c);
    box-shadow: 0 18px 44px -18px rgba(185, 28, 28, 0.8);
}

.dc-btn--danger:hover {
    border-color: rgba(248, 113, 113, 0.8);
}

/* ============================================================
   "INSTALL THIS APP" PROMPT
   Hand-styled rather than utility-driven, so the card renders
   identically even when it is injected after the first paint.
   ============================================================ */
.install-gate {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

.install-gate.is-open {
    display: flex;
}

.install-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(3, 3, 6, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.install-card {
    position: relative;
    width: min(100%, 27rem);
    margin: auto;
    border: 1px solid rgba(201, 169, 120, 0.32);
    border-radius: 1.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 45%, rgba(0, 0, 0, 0.6));
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    padding: clamp(1.25rem, 4vw, 1.85rem);
    color: var(--text-color);
    font-family: var(--font-body);
}

.install-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(201, 169, 120, 0.2);
    padding-bottom: 0.95rem;
    margin-bottom: 1rem;
}

.install-badge {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 120, 0.4);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
}

.install-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.install-headtext {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.install-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

.install-sub {
    margin: 0.2rem 0 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.install-close {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.install-close:hover {
    border-color: var(--secondary-color);
    color: #ffffff;
}

.install-copy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.install-steps {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-color);
}

.install-step-num {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(201, 169, 120, 0.16);
    color: var(--accent-color);
    font-size: 0.66rem;
    font-weight: 800;
}

.install-step-text {
    min-width: 0;
}

.install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.install-primary {
    flex: 1 1 12rem;
    min-height: 2.9rem;
    border: 1px solid rgba(201, 169, 120, 0.5);
    border-radius: 9999px;
    background-color: #a8324f;
    background-image: linear-gradient(120deg, #7a1f38 0%, #a8324f 48%, #5f2757 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 18px 44px -18px rgba(168, 50, 79, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.install-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px -18px rgba(168, 50, 79, 0.95);
}

.install-secondary {
    flex: 0 1 auto;
    min-height: 2.9rem;
    padding: 0 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.install-secondary:hover {
    border-color: var(--secondary-color);
    color: #ffffff;
}

.install-fine {
    margin: 0.85rem 0 0;
    font-size: 0.68rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .install-primary,
    .install-secondary,
    .install-close {
        transition: none;
    }
}