/* ── Hero ── */
.audit-hero {
    background: var(--dt-gradient-hero);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Floating orbs — use a real element inside the hero to avoid ::after z-index issues with dt-grid-bg */
.audit-hero .audit-hero-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: audit-orb-drift 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0 !important;
}
.audit-hero .audit-hero-orb-2 {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation: audit-orb-drift 15s ease-in-out infinite alternate-reverse;
    pointer-events: none;
    z-index: 0 !important;
}
.audit-hero .container { position: relative; z-index: 2 !important; }

@keyframes audit-orb-drift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50%  { transform: translate(-60px, 40px) scale(1.15); opacity: 0.8; }
    100% { transform: translate(30px, -20px) scale(0.95); opacity: 0.5; }
}

/* Staggered badge entrance */
.audit-hero .dt-badge {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    animation: audit-badge-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.audit-hero .dt-badge:nth-child(1) { animation-delay: 0.1s; }
.audit-hero .dt-badge:nth-child(2) { animation-delay: 0.2s; }
.audit-hero .dt-badge:nth-child(3) { animation-delay: 0.3s; }
.audit-hero .dt-badge:nth-child(4) { animation-delay: 0.4s; }
.audit-hero .dt-badge:nth-child(5) { animation-delay: 0.5s; }
@keyframes audit-badge-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* H1 entrance with gradient shimmer */
.audit-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.audit-hero h1 .dt-gradient-text {
    background-size: 200% auto;
    animation: audit-shimmer 4s ease-in-out infinite;
}
@keyframes audit-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Lead text fade-in */
.audit-hero .lead {
    font-size: 1.15rem;
    color: var(--dt-text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* Form card entrance + subtle glow */
@keyframes audit-card-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Floating particles behind the hero */
.audit-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1 !important;
    overflow: visible;
}
.audit-hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    animation: audit-particle-float linear infinite;
}
@keyframes audit-particle-float {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ── Form card ── */
.audit-form-card {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(15, 15, 40, 0.7);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1.5px solid rgba(99, 102, 241, 0.18);
    border-radius: var(--dt-radius-md, 20px);
    padding: 2.25rem 2.5rem 2rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 60px rgba(99, 102, 241, 0.04);
    opacity: 0;
    transform: translateY(20px);
    animation: audit-card-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.audit-form-card:hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 100px rgba(99, 102, 241, 0.1);
}
.audit-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
    pointer-events: none;
}
/* Input group — prefix + field + button all in one row */
.audit-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0.4rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.audit-input-group:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 0 30px rgba(99, 102, 241, 0.06);
}
.audit-prefix {
    padding: 0 0 0 1.1rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}
.audit-input-group input[type="text"] {
    flex: 1;
    border: none;
    height: 52px;
    padding: 0 0.6rem;
    background: transparent;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.05rem;
    color: #fff;
    outline: none;
    min-width: 0;
}
.audit-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.audit-submit {
    height: 52px;
    border: none;
    border-radius: 12px;
    background: var(--dt-gradient-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 2rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}
.audit-submit:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}
.audit-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}
.audit-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    opacity: 0;
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.audit-error {
    display: none;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

/* ── Loading — terminal style ── */
/* Fullscreen terminal modal */
.audit-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 4, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-loading.visible {
    display: flex;
    opacity: 1;
}
.loading-modal-inner {
    width: 100%;
    max-width: 700px;
    padding: 0 1.5rem;
}
.loading-url-display {
    text-align: center;
    margin-bottom: 2rem;
}
.loading-url-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.4rem;
}
.loading-url-value {
    font-size: 1rem;
    color: var(--dt-accent-primary);
    font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.loading-terminal-card {
    background: rgba(8, 8, 28, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(99, 102, 241, 0.04);
}
.loading-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.loading-progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--dt-gradient-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.loading-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem 0.5rem;
}
.loading-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.loading-dot:nth-child(1) { background: #ef4444; }
.loading-dot:nth-child(2) { background: #fbbf24; }
.loading-dot:nth-child(3) { background: #34d399; }
.loading-title {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--dt-text-muted);
    margin-left: 0.5rem;
    letter-spacing: 0.03em;
}
.loading-terminal {
    padding: 1rem 1.5rem 2rem;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.terminal-line {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 2;
    color: var(--dt-text-muted);
    opacity: 0;
    transform: translateY(4px);
    animation: termFadeIn 0.4s ease forwards;
    white-space: nowrap;
    overflow: hidden;
}
.terminal-line .prompt-char {
    color: var(--dt-accent-primary);
    margin-right: 0.6rem;
    font-weight: 600;
}
.terminal-line.is-active { color: var(--dt-text-secondary); }
.terminal-line.is-done { color: rgba(255, 255, 255, 0.12); }
.terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 15px;
    background: var(--dt-accent-primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 1s step-end infinite;
}
@keyframes termFadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes cursorBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* Completion flash */
.loading-complete {
    text-align: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.loading-complete.visible {
    opacity: 1;
    transform: translateY(0);
}
.loading-complete-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34d399;
}

/* ── Results ── */
.audit-results { display: none; }

/* Fireworks */
.fireworks-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}
.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: firework-burst 1.2s ease-out forwards;
}
@keyframes firework-burst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
.firework-trail {
    position: absolute;
    width: 3px;
    border-radius: 3px;
    animation: firework-rise 0.7s ease-out forwards;
}
@keyframes firework-rise {
    0% { opacity: 1; height: 0; }
    60% { opacity: 1; }
    100% { opacity: 0; height: var(--h); transform: translateY(calc(var(--h) * -1)); }
}

/* Results hero card — grade + reaction + actions all in one */
.results-hero-card {
    background: rgba(15, 15, 40, 0.6);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.results-hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
    pointer-events: none;
}
.results-hero-top {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.results-hero-info { flex: 1; }

/* Grade banner text — now inline in the card */
.grade-banner-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.25rem;
}
.grade-banner-sub {
    font-size: 0.82rem;
    margin-top: 0.2rem;
    opacity: 0.55;
}

/* Actions stack inside the card */
.results-actions-stack {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Big fix CTA */
.fix-cta-big {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    padding: 1.35rem 1.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), 0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: cta-pulse 2s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(99, 102, 241, 0.45), 0 0 0 10px rgba(99, 102, 241, 0); }
}
.fix-cta-big:hover {
    background: linear-gradient(135deg, #7577f5 0%, #9d7af7 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.45);
    animation: none;
}
.fix-cta-big.active {
    background: linear-gradient(135deg, #5558e6 0%, #7c55e8 100%);
}
.fix-cta-big.active .fix-chevron { transform: rotate(180deg); }
.fix-cta-left {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.fix-cta-text { flex: 1; }
.fix-cta-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.fix-cta-sub {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
}
.fix-chevron {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Email save row */
.email-save-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--dt-glass-bg);
    backdrop-filter: var(--dt-glass-blur);
    -webkit-backdrop-filter: var(--dt-glass-blur);
    border: 1px solid var(--dt-border-card);
    border-radius: 14px;
}
.email-save-icon {
    color: var(--dt-accent-secondary);
    flex-shrink: 0;
    display: flex;
}
.email-save-icon svg { width: 18px; height: 18px; }
.email-save-label {
    font-size: 0.88rem;
    color: var(--dt-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}
.email-save-row input {
    flex: 1;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.email-save-row input:focus { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08); }
.email-save-row input::placeholder { color: rgba(255, 255, 255, 0.3); }
.email-save-row button {
    height: 44px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--dt-gradient-primary);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.email-save-row button:hover { filter: brightness(1.15); box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3); }
.email-save-row button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Quote expand divider + heading */
.quote-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1.5rem 0 1.25rem;
}
.quote-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    text-align: center;
}
.quote-sub {
    font-size: 0.88rem;
    color: var(--dt-text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Mobile overrides for results hero — merged into main 768px block below */

/* Grade header — full width centered */
/* Grade elements */
.grade-ring {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.25rem;
}
.grade-ring svg {
    width: 130px;
    height: 130px;
}
.grade-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}
.grade-score {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dt-text-primary);
    margin-top: 0.25rem;
}
.grade-url {
    font-size: 0.82rem;
    color: var(--dt-text-muted);
    margin-top: 0.4rem;
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

/* Two-column results grid */
/* Tabs */
.audit-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.35rem;
}
.audit-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.85rem 0.5rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--dt-text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-tab:hover {
    color: var(--dt-text-secondary);
    background: rgba(255, 255, 255, 0.03);
}
.audit-tab.active {
    background: rgba(99, 102, 241, 0.12);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}
.tab-score {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.3s ease;
}
.tab-score.score-good { color: #34d399; }
.tab-score.score-warn { color: #fbbf24; }
.tab-score.score-fail { color: #ef4444; }
.tab-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.audit-tab-content { display: none; }
.audit-tab-content.active { display: block; }

/* SEO score chips */
.audit-seo-scores {
    display: flex;
    gap: 1rem;
}
.seo-score-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.seo-score-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.seo-score-label {
    font-size: 0.7rem;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

/* Section cards */
.audit-card {
    background: var(--dt-glass-bg, rgba(15, 15, 40, 0.6));
    backdrop-filter: blur(var(--dt-glass-blur, 30px)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--dt-glass-blur, 30px)) saturate(1.5);
    border: 1px solid var(--dt-border-card, rgba(99, 102, 241, 0.1));
    border-radius: var(--dt-radius-md, 20px);
    padding: 2rem 2rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.audit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
    pointer-events: none;
}
.audit-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.audit-card-title .card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--dt-accent-glow);
    font-size: 1.1rem;
}

/* Gauge */
.gauge-wrap {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
.gauge-svg { width: 100px; height: 100px; flex-shrink: 0; }
.gauge-label { font-size: 0.88rem; color: var(--dt-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.gauge-value { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-top: 0.15rem; }

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.metric-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: border-color 0.3s ease;
}
.metric-card:hover { border-color: rgba(99, 102, 241, 0.15); }
.metric-label {
    font-size: 0.68rem;
    color: var(--dt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}
.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.metric-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.metric-insight {
    font-size: 0.82rem;
    color: var(--dt-text-muted);
    margin-top: 0.35rem;
    line-height: 1.5;
    opacity: 0.7;
}
.status-good { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
.status-warn { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.status-fail { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

/* SPA warning banner */
.audit-spa-warning {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #67e8f9;
    line-height: 1.6;
}
.audit-spa-warning strong { color: #22d3ee; }

/* Info tooltips */
.audit-info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: rgba(99, 102, 241, 0.6);
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    margin-left: 0.35rem;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
}
.audit-info-tip:hover {
    background: rgba(99, 102, 241, 0.2);
    color: rgba(99, 102, 241, 0.9);
}
.audit-info-tip .tip-text {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 0.65rem 0.85rem;
    background: rgba(15, 15, 40, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    font-style: normal;
    color: var(--dt-text-secondary);
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.audit-info-tip .tip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15, 15, 40, 0.95);
}
.audit-info-tip:hover .tip-text {
    display: block;
}
/* Info tooltip mobile — handled in main responsive block below */

/* Opportunities */
.opp-section-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dt-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.opp-list { list-style: none; padding: 0; margin: 0; }
.opp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: var(--dt-text-secondary);
    gap: 0.75rem;
}
.opp-savings {
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* SEO checklist */
.seo-list { list-style: none; padding: 0; margin: 0; }
.seo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.seo-item:last-child { border-bottom: none; }
.seo-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 1px;
}
.seo-icon.pass { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.seo-icon.warn { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.seo-icon.fail { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.seo-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dt-text-primary);
}
.seo-detail {
    font-size: 0.84rem;
    color: var(--dt-text-muted);
    margin-top: 0.2rem;
    word-break: break-all;
}
.seo-insight {
    font-size: 0.8rem;
    color: var(--dt-text-muted);
    margin-top: 0.3rem;
    line-height: 1.55;
    opacity: 0.65;
    font-style: italic;
    word-break: break-word;
}

/* CTA card */
/* Expandable quote form */
.quote-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0;
}
.quote-expand.open {
    max-height: 600px;
    margin-bottom: 1.5rem;
}

.audit-cta-card {
    margin-top: 1.5rem;
    background: rgba(15, 15, 40, 0.65);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--dt-radius-md, 20px);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.audit-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--dt-radius-md, 20px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), transparent 50%, rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.audit-cta-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.audit-cta-card p {
    color: var(--dt-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Quote form */
.quote-form { max-width: 520px; margin: 0 auto; text-align: left; }
.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    height: 50px;
    padding: 0 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.quote-form select { color: rgba(255, 255, 255, 0.28); -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.quote-form select option { background: #1a1a2e; color: #fff; }
.quote-form select:valid { color: #fff; }
.quote-form textarea { height: auto; min-height: 80px; padding: 0.85rem 1.1rem; resize: vertical; margin-bottom: 0.75rem; }
.quote-submit {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: var(--dt-gradient-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.quote-submit:hover { filter: brightness(1.15); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35); transform: translateY(-1px); }
.quote-submit:disabled { opacity: 0.5; cursor: not-allowed; filter: none; box-shadow: none; }
.quote-status { text-align: center; margin-top: 0.75rem; font-size: 0.85rem; display: none; }
.quote-status.success { display: block; color: #34d399; }
.quote-status.error { display: block; color: #f87171; }
.quote-success-msg { text-align: center; padding: 2rem 0; }
.quote-success-msg h4 { font-size: 1.25rem; color: #34d399; margin-bottom: 0.5rem; }
.quote-success-msg p { color: var(--dt-text-muted); font-size: 0.9rem; }

/* Tech score badge */
.tech-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}
.tech-score-badge.good { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.tech-score-badge.warn { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.tech-score-badge.fail { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* Redirect chain visualization */
.chain-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0;
}
.chain-step + .chain-step { border-top: 1px solid rgba(255,255,255,0.04); }
.chain-code {
    min-width: 38px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.chain-code.c2xx { background: rgba(52,211,153,0.12); color: #34d399; }
.chain-code.c3xx { background: rgba(251,191,36,0.12); color: #fbbf24; }
.chain-code.c4xx, .chain-code.c5xx { background: rgba(239,68,68,0.12); color: #ef4444; }
.chain-url {
    font-size: 0.8rem;
    color: var(--dt-text-secondary);
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.chain-arrow {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    padding-left: 2.8rem;
}

/* Schema tag pills */
.schema-type-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0.2rem 0.25rem 0.2rem 0;
}

/* Heading bars */
.heading-bar-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}
.heading-bar-label {
    min-width: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dt-text-secondary);
}
.heading-bar-track {
    flex: 1;
    height: 22px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    overflow: hidden;
}
.heading-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--dt-accent-primary);
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    min-width: fit-content;
    transition: width 0.6s ease;
}

/* CrUX metric card */
.crux-metric-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}
.crux-metric-card .metric-label { font-size: 0.82rem; }
.crux-good-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    margin-top: 0.5rem;
    overflow: hidden;
}
.crux-good-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Header value preview */
.header-value-preview {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.15rem;
    word-break: break-all;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .audit-tabs { gap: 0.35rem; }
    .audit-card { padding: 1.5rem; }
}
@media (max-width: 768px) {
    /* ── Hero ── */
    .audit-hero { padding: 5.5rem 0 2.5rem; }
    .audit-hero h1 { font-size: 2rem; }
    .audit-hero .lead { font-size: 1.05rem; margin-bottom: 1.75rem; }
    .audit-hero .dt-badge { font-size: 0.65rem; padding: 0.2rem 0.55rem; }
    .audit-hero-orb { width: 300px; height: 300px; top: -100px; right: -80px; }
    .audit-hero-orb-2 { width: 200px; height: 200px; }

    /* ── Form card ── */
    .audit-form-card { padding: 1.25rem; }
    .audit-input-group { flex-wrap: wrap; padding: 0.4rem; }
    .audit-prefix { padding-left: 0.75rem; font-size: 0.82rem; }
    .audit-input-group input[type="text"] { font-size: 0.92rem; height: 46px; }
    .audit-submit { width: 100%; margin-top: 0.35rem; height: 46px; border-radius: 10px; font-size: 0.92rem; }
    .audit-hint { font-size: 0.72rem; }

    /* ── Loading terminal ── */
    .loading-terminal { min-height: 180px; max-height: 280px; }
    .loading-modal-inner { padding: 0 1rem; }
    .terminal-line { font-size: 0.75rem; }

    /* ── Results hero card ── */
    .results-hero-card { padding: 1.5rem; }
    .results-hero-top { flex-direction: column; text-align: center; gap: 1rem; }
    .grade-ring { width: 100px; height: 100px; }
    .grade-ring svg { width: 100px; height: 100px; }
    .grade-letter { font-size: 2.4rem; }
    .grade-score { font-size: 1.15rem; }
    .grade-banner-text { font-size: 1rem; }

    /* ── Action items ── */
    #actionItemsCard { padding: 1rem !important; }
    #actionItemsCard .seo-label { font-size: 0.85rem; }
    #actionItemsCard .seo-insight { font-size: 0.78rem; }

    /* ── Fix CTA ── */
    .fix-cta-big { padding: 1rem 1.25rem; gap: 0.75rem; }
    .fix-cta-left { width: 40px; height: 40px; border-radius: 10px; }
    .fix-cta-label { font-size: 0.85rem; }
    .fix-cta-sub { font-size: 0.75rem; }

    /* ── Social proof ── */
    .audit-social-proof { font-size: 0.72rem !important; }

    /* ── Tab navigation — 2x2 grid on mobile ── */
    .audit-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
        padding: 0.3rem;
    }
    .audit-tab { padding: 0.65rem 0.4rem; }
    .tab-score { font-size: 1.15rem; }
    .tab-label { font-size: 0.65rem; }

    /* ── Gauge + metrics ── */
    .gauge-wrap { flex-direction: column; text-align: center; gap: 1rem; }
    .gauge-svg { width: 100px; height: 100px; }
    .metrics-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .metric-card { padding: 0.75rem; }
    .metric-label { font-size: 0.82rem; }
    .metric-insight { font-size: 0.78rem; }

    /* ── CrUX grid ── */
    #cruxMetrics { grid-template-columns: 1fr !important; gap: 0.5rem !important; }
    .crux-metric-card { padding: 0.75rem; }

    /* ── SEO items ── */
    .seo-item { gap: 0.6rem; padding: 0.7rem 0; }
    .seo-icon { width: 24px; height: 24px; min-width: 24px; font-size: 0.7rem; }
    .seo-label { font-size: 0.85rem; }
    .seo-detail { font-size: 0.8rem; word-break: break-word; }
    .seo-insight { font-size: 0.76rem; }
    .audit-seo-scores { flex-direction: column; }

    /* ── Opportunities ── */
    .opp-item { padding: 0.6rem 0.7rem; font-size: 0.82rem; flex-wrap: wrap; }
    .opp-savings { font-size: 0.75rem; }

    /* ── Technical ── */
    .audit-card { padding: 1rem; }
    .audit-card h3 { font-size: 0.95rem; }
    .header-value-preview { font-size: 0.7rem; word-break: break-all; }
    .tech-score-badge { min-width: 42px; height: 28px; font-size: 0.8rem; }

    /* ── Redirect chain ── */
    .chain-step { flex-wrap: wrap; gap: 0.4rem; }
    .chain-url { font-size: 0.72rem; width: 100%; }
    .chain-arrow { padding-left: 1.5rem; }

    /* ── Schema pills ── */
    .schema-type-pill { font-size: 0.72rem; padding: 3px 10px; }

    /* ── Heading bars ── */
    .heading-bar-label { min-width: 24px; font-size: 0.75rem; }
    .heading-bar-track { height: 20px; }
    .heading-bar-fill { font-size: 0.65rem; }

    /* ── Quote form ── */
    .quote-heading { font-size: 1.1rem; }
    .quote-sub { font-size: 0.82rem; }
    .quote-row { grid-template-columns: 1fr; }
    .audit-cta-card { padding: 1.5rem; }

    /* ── Info tooltips — full width on mobile ── */
    .audit-info-tip .tip-text {
        position: fixed;
        bottom: auto;
        top: auto;
        left: 1rem !important;
        right: 1rem !important;
        transform: none !important;
        width: auto !important;
        max-width: none;
        z-index: 200;
    }
    .audit-info-tip .tip-text::after { display: none; }

    /* ── Partial failure banner ── */
    .audit-partial-warning { font-size: 0.8rem !important; padding: 0.75rem 1rem !important; }

    /* ── Email row on mobile ── */
    .email-save-row { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem; }
    .email-save-label { display: none; }
    .email-save-row input { flex: 1 1 100%; }
    .email-save-row button { width: 100%; }

    /* ── Save report modal ── */
    .audit-save-modal-card { padding: 2rem 1.5rem; }
    .audit-save-modal-input-row { flex-direction: column; }
    .audit-save-modal-btn { width: 100%; }
    .audit-save-modal-title { font-size: 1.25rem; }
    .audit-save-modal-sub { font-size: 0.85rem; }
    .save-modal-ring { width: 70px; height: 70px; line-height: 70px; font-size: 2rem; }
}

/* ── Extra small screens (iPhone SE, etc.) ── */
@media (max-width: 380px) {
    .audit-hero h1 { font-size: 1.7rem; }
    .audit-hero .lead { font-size: 0.95rem; }
    .grade-ring { width: 85px; height: 85px; }
    .grade-ring svg { width: 85px; height: 85px; }
    .grade-letter { font-size: 2rem; }
    .tab-score { font-size: 1rem; }
    .tab-label { font-size: 0.6rem; }
    .fix-cta-big { padding: 0.85rem 1rem; }
    .fix-cta-left { width: 36px; height: 36px; }
    .fix-cta-label { font-size: 0.8rem; }
    .results-hero-card { padding: 1.25rem; }
    .audit-card { padding: 0.85rem; }
}

/* FAQ details */
details[open] summary svg { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }

/* CTA particles */
.audit-cta-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.audit-cta-particle { position: absolute; width: 3px; height: 3px; background: rgba(255,255,255,0.25); border-radius: 50%; }
.audit-cta-particle:nth-child(1) { left: 10%; bottom: 0; animation: audit-particle-rise 5s ease-in-out infinite 0s; }
.audit-cta-particle:nth-child(2) { left: 25%; bottom: 0; animation: audit-particle-rise 4s ease-in-out infinite 1s; }
.audit-cta-particle:nth-child(3) { left: 45%; bottom: 0; animation: audit-particle-rise 6s ease-in-out infinite 0.5s; }
.audit-cta-particle:nth-child(4) { left: 65%; bottom: 0; animation: audit-particle-rise 4.5s ease-in-out infinite 2s; }
.audit-cta-particle:nth-child(5) { left: 80%; bottom: 0; animation: audit-particle-rise 5.5s ease-in-out infinite 1.5s; }
.audit-cta-particle:nth-child(6) { left: 90%; bottom: 0; animation: audit-particle-rise 4s ease-in-out infinite 3s; }
@keyframes audit-particle-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    15% { opacity: 0.5; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-400px) scale(0); opacity: 0; }
}

/* ── Save Report Modal ── */
.audit-save-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(4, 4, 16, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-save-modal.visible {
    display: flex;
    opacity: 1;
}
.audit-save-modal-card {
    text-align: center;
    max-width: 460px;
    width: 100%;
    padding: 2.5rem 2rem;
    margin: 0 1rem;
    background: var(--dt-glass-bg, rgba(15, 15, 40, 0.7));
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(99, 102, 241, 0.06);
    transform: translateY(20px);
    animation: saveModalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes saveModalIn {
    to { transform: translateY(0); }
}
.audit-save-modal-grade {
    margin-bottom: 1.25rem;
}
.save-modal-ring {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    font-size: 2.4rem;
    font-weight: 800;
    border: 4px solid currentColor;
}
.save-modal-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dt-text-secondary);
}
.audit-save-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.audit-save-modal-sub {
    font-size: 0.92rem;
    color: var(--dt-text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.audit-save-modal-input-row {
    display: flex;
    gap: 0.5rem;
}
.audit-save-modal-input {
    flex: 1;
    height: 48px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.audit-save-modal-input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}
.audit-save-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.audit-save-modal-btn {
    height: 48px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 12px;
    background: var(--dt-gradient-primary);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.audit-save-modal-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}
.audit-save-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    transform: none;
}
.audit-save-modal-status {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    min-height: 1.2rem;
}
.audit-save-modal-status.success { color: #34d399; }
.audit-save-modal-status.error { color: #f87171; }
.audit-save-modal-skip {
    display: inline-block;
    margin-top: 1.25rem;
    background: none;
    border: none;
    color: var(--dt-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 0.5rem 1rem;
}
.audit-save-modal-skip:hover {
    opacity: 0.8;
}

/* ── DevTable Easter Egg Celebration ── */
.dt-celebrate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.dt-celebrate-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.dt-celebrate-overlay.fade-black {
    background: #000;
}

/* Buddy party modal */
.buddy-party-card {
    text-align: center;
    padding: 2.5rem 2rem;
    animation: buddy-party-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes buddy-party-entrance {
    0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Terminal shell */
.buddy-terminal {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(99, 102, 241, 0.15);
    animation: buddy-terminal-glow 1s ease-in-out infinite alternate;
}
@keyframes buddy-terminal-glow {
    0% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.12); }
    100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(236, 72, 153, 0.15), 0 0 60px rgba(99, 102, 241, 0.12); }
}
.buddy-terminal-header {
    background: #1a1a2e;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.buddy-terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.buddy-terminal-title {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--dt-text-muted);
    margin-left: 0.5rem;
}
.buddy-terminal-tab {
    margin-left: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    font-weight: 600;
    animation: buddy-tab-blink 0.8s ease infinite alternate;
}
@keyframes buddy-tab-blink {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}
.buddy-terminal-body {
    background: #0d0d1a;
    padding: 2rem 1.5rem 1.25rem;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Scanline effect */
.buddy-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: buddy-scan 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes buddy-scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Party status label */
.buddy-party-status {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #ec4899;
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
    animation: buddy-status-pulse 0.5s ease infinite alternate;
}
@keyframes buddy-status-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Speech bubble */
.buddy-party-speech {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--dt-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    margin-top: 0.6rem;
    transition: opacity 0.2s ease;
    max-width: 260px;
}

/* Party Buddy face */
.buddy-party-face {
    width: 200px;
    height: 130px;
    position: relative;
    animation: buddy-dance 0.4s ease-in-out infinite alternate;
}
@keyframes buddy-dance {
    0% { transform: translateY(0) rotate(-3deg); }
    100% { transform: translateY(-12px) rotate(3deg); }
}
.buddy-party-eyes {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}
.buddy-party-eye {
    width: 75px;
    height: 34px;
    border-radius: 17px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #f97316, #34d399, #06b6d4, #6366f1);
    background-size: 300% 100%;
    animation: buddy-eye-rave 0.6s linear infinite;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.5), 0 0 48px rgba(236, 72, 153, 0.3);
}
@keyframes buddy-eye-rave {
    0% { background-position: 0% center; border-radius: 10px; }
    25% { border-radius: 50%; }
    50% { background-position: 100% center; border-radius: 10px; }
    75% { border-radius: 4px; }
    100% { background-position: 200% center; border-radius: 10px; }
}
.buddy-party-mouth {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    margin: 14px auto 0;
    animation: buddy-mouth-party 0.3s ease infinite alternate;
}
@keyframes buddy-mouth-party {
    0% { width: 18px; height: 18px; border-radius: 50%; }
    100% { width: 40px; height: 14px; border-radius: 10px; }
}
.buddy-party-cheeks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}
.buddy-party-cheek {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.25);
    filter: blur(8px);
    top: 45%;
}
.buddy-party-cheek:first-child { left: 10px; }
.buddy-party-cheek:last-child { right: 10px; }

.buddy-party-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
    animation: buddy-text-pulse 0.5s ease infinite alternate;
}
@keyframes buddy-text-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
}
.buddy-party-sub {
    font-size: 0.95rem;
    color: var(--dt-text-muted);
}

/* DJ Khaled modal */
.khaled-card {
    text-align: center;
    animation: khaled-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes khaled-entrance {
    0% { transform: scale(0) rotate(15deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(-2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.khaled-card img {
    max-width: 300px;
    max-height: 50vh;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}
.khaled-text {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    margin-bottom: 1rem;
}
.khaled-skip {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.khaled-skip:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .buddy-terminal { max-width: 320px; }
    .buddy-terminal-body { padding: 1.5rem 1rem 1rem; min-height: 180px; }
    .buddy-party-face { width: 150px; height: 100px; }
    .buddy-party-eyes { gap: 22px; }
    .buddy-party-eye { width: 55px; height: 26px; border-radius: 13px; }
    .buddy-party-mouth { width: 14px; height: 14px; margin-top: 10px; }
    .buddy-party-cheek { width: 26px; height: 26px; }
    .buddy-party-text { font-size: 1.2rem; }
    .buddy-party-speech { font-size: 0.65rem; max-width: 220px; }
    .khaled-card img { max-width: 240px; }
    .khaled-text { font-size: 1.5rem; }
}

/* FAQ details */
details[open] summary svg { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }

/* Print styles */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .audit-hero, .audit-loading, .audit-save-modal, .audit-cta-particles,
    .fix-cta-big, .email-save-row,
    .quote-expand, .audit-social-proof,
    header, footer, .dt-section, .dt-section-alt,
    .audit-tabs { display: none !important; }
    .audit-results { display: block !important; }
    .audit-tab-content { display: block !important; page-break-inside: avoid; }
    .audit-card { border: 1px solid #ddd !important; background: #fff !important; margin-bottom: 1rem !important; }
    .results-hero-card { border: 2px solid #6366f1 !important; background: #fff !important; }
    .grade-letter, .grade-score, .seo-label, .metric-label { color: #000 !important; }
    .seo-detail, .metric-insight, .gauge-label { color: #666 !important; }
}
