/* ========================================
   PIXEL DEFENCE – Privacy Policy Analyzer
   Premium Dark Cybersecurity Theme v2.0
   ======================================== */

/* === GLOBAL NAV & FOOTER === */
/* Global Nav & Footer Styles for Pixel Defence */
.global-site-header {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    width: 100%;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}
.logo-icon { stroke: #00f0ff; }
.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.header-nav > a, .dropdown-trigger {
    text-decoration: none;
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}
.header-nav > a:hover, .dropdown:hover .dropdown-trigger {
    color: #00f0ff;
}
.dropdown { position: relative; padding: 25px 0; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0d1326;
    border: 1px solid #1f2d45;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}
.dropdown-menu a:hover {
    background: rgba(0, 240, 255, 0.05);
    color: #00f0ff;
    border-left: 2px solid #00f0ff;
}
.mobile-menu-btn { display: none; cursor: pointer; color: #cbd5e1; background: none; border: none; padding: 4px; }
@media (max-width: 800px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}
/* Mobile nav panel */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,8,15,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9998;
    padding: 24px 20px;
    overflow-y: auto;
    border-top: 1px solid rgba(0,240,255,0.15);
    flex-direction: column;
    gap: 6px;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
    display: block;
    padding: 14px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}
.mobile-nav-panel a:hover, .mobile-nav-panel a:active {
    background: rgba(0,240,255,0.08);
    color: #00f0ff;
}
.mobile-nav-group-label {
    padding: 16px 16px 6px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}
.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 0;
}

/* Global Footer Styles */
.global-site-footer {
    background: #05080f;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    padding: 60px 20px 20px;
    margin-top: 80px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 40px;
}
.footer-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-socials a:hover { color: #00f0ff; }
.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}
.footer-links-grid a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.footer-links-grid a:hover { color: #60a5fa; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}
@media (max-width: 600px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; padding: 0; }
    .footer-socials { grid-template-columns: 1fr; justify-items: center; text-align: left; }
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-deep:        #080b14;
    --bg-card:        #0d1120;
    --bg-card-2:      #111827;
    --bg-hover:       #161d2e;
    --border:         rgba(255,255,255,0.07);
    --border-bright:  rgba(255,255,255,0.14);

    --purple:         #7c3aed;
    --purple-glow:    rgba(124,58,237,0.35);
    --purple-light:   #a78bfa;
    --cyan:           #22d3ee;
    --cyan-glow:      rgba(34,211,238,0.2);
    --green:          #10b981;
    --green-glow:     rgba(16,185,129,0.2);
    --red:            #ef4444;
    --red-glow:       rgba(239,68,68,0.25);
    --orange:         #f97316;
    --yellow:         #eab308;

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #475569;
    --text-accent:    #a78bfa;

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-xl:   28px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
    --shadow-glow-purple: 0 0 40px rgba(124,58,237,0.25);

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.font-mono { font-family: var(--font-mono); }

/* === BACKGROUND === */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orb-float 12s ease-in-out infinite;
}

.orb-purple {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: -150px; left: -150px;
    animation-delay: 0s;
}

.orb-blue {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
    bottom: 200px; right: -100px;
    animation-delay: -4s;
}

.orb-red {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #be123c 0%, transparent 70%);
    top: 50%; left: 50%;
    animation-delay: -8s;
    opacity: 0.2;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* === APP SHELL === */
.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* === HEADER === */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shield-icon {
    color: var(--purple-light);
    display: flex;
    filter: drop-shadow(0 0 8px var(--purple));
}

.brand-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.brand-link:hover { color: var(--purple-light); }

.engine-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-accent);
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 8px var(--purple);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.pulse-dot.active {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.pulse-dot.running {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse-fast 0.6s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulse-fast {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* === HERO === */
.hero-section {
    text-align: center;
    padding: 20px 0 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-accent);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    animation: fade-up 0.5s ease both;
}

.badge-icon { font-size: 1rem; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fade-up 0.5s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: fade-up 0.5s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    animation: fade-up 0.5s ease 0.3s both;
}

.stat-item { text-align: center; }

.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--purple-light);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-bright);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === ANALYZER PANEL === */
.analyzer-panel {
    margin-bottom: 40px;
    animation: fade-up 0.5s ease 0.4s both;
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow-purple);
}

.panel-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid var(--border);
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.panel-dot.red    { background: #ef4444; }
.panel-dot.yellow { background: #eab308; }
.panel-dot.green  { background: #22c55e; }

.panel-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-left: 8px;
}

.panel-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* === QUICK PROFILES === */
.quick-profiles-section {
    padding: 24px 24px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.label-icon { font-size: 0.9rem; }

.profiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-bright);
    border-radius: 100px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.profile-btn:hover {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}

.profile-btn.active {
    background: rgba(124,58,237,0.15);
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(124,58,237,0.3);
}

.profile-icon { font-size: 1rem; }
.profile-name { font-weight: 600; }

.profile-risk {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 100px;
}

.profile-risk.critical { background: rgba(239,68,68,0.2); color: #fca5a5; }
.profile-risk.high     { background: rgba(249,115,22,0.2); color: #fdba74; }
.profile-risk.medium   { background: rgba(234,179,8,0.2); color: #fde047; }
.profile-risk.low      { background: rgba(16,185,129,0.15); color: #6ee7b7; }

/* === INPUT AREA === */
.input-section {
    padding: 24px;
}

.textarea-wrapper {
    position: relative;
}

.policy-textarea {
    width: 100%;
    min-height: 180px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.policy-textarea::placeholder {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.policy-textarea:focus {
    border-color: rgba(124,58,237,0.5);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.textarea-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 4px;
}

.char-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.clear-btn:hover {
    color: var(--red);
    background: rgba(239,68,68,0.1);
}

/* === ACTION BAR === */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    gap: 16px;
}

.action-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.meta-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.meta-dot.green {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.small-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.analyze-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--purple) 0%, #4f46e5 100%);
    border: none;
    border-radius: 100px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

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

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon { font-size: 1.1rem; }
.btn-arrow { font-size: 1rem; opacity: 0.7; }

/* === SCAN OVERLAY === */
.scan-overlay {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 32px;
    overflow: hidden;
}

.scan-overlay.hidden { display: none; }

.scan-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.6), transparent);
    animation: scan-sweep 2s linear infinite;
    opacity: 0.6;
}

.scan-line:nth-child(2) { animation-delay: 0.66s; }
.scan-line:nth-child(3) { animation-delay: 1.33s; }

@keyframes scan-sweep {
    0%   { top: 0%; }
    100% { top: 100%; }
}

.scan-content { position: relative; z-index: 1; }

.scan-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    animation: spin-slow 3s linear infinite;
    display: inline-block;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.scan-label {
    font-size: 0.85rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.scan-progress-wrap {
    width: 300px;
    max-width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.scan-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 100px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(124,58,237,0.6);
}

.scan-pct {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* === RESULTS DASHBOARD === */
.results-dashboard { animation: fade-up 0.4s ease both; }
.results-dashboard.hidden { display: none; }

.results-top-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 16px;
    margin-bottom: 16px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Score Card */
.score-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: var(--purple-light);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
}

.score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.score-sub {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Verdict Card */
.verdict-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.3);
}

.verdict-badge.safe {
    background: rgba(16,185,129,0.15);
    color: #6ee7b7;
    border-color: rgba(16,185,129,0.3);
}

.verdict-badge.moderate {
    background: rgba(234,179,8,0.15);
    color: #fde047;
    border-color: rgba(234,179,8,0.3);
}

.verdict-badge.high {
    background: rgba(249,115,22,0.15);
    color: #fb923c;
    border-color: rgba(249,115,22,0.35);
}

.verdict-badge.extreme {
    background: rgba(239,68,68,0.18);
    color: #f87171;
    border-color: rgba(239,68,68,0.35);
}

.verdict-badge.critical {
    background: rgba(220,38,38,0.22);
    color: #fca5a5;
    border-color: rgba(220,38,38,0.5);
    box-shadow: 0 0 12px rgba(220,38,38,0.2);
}

.verdict-detail {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--green);
}

.verified-tag.hidden { display: none; }

.v-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 4px var(--green);
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-block { text-align: center; }

.stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat-lbl {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

.system-badge {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Findings Row */
.findings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.findings-card { }

.findings-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.findings-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.findings-icon-wrap.red {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
}

.findings-icon-wrap.green {
    background: rgba(16,185,129,0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.2);
}

.findings-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.red-text   { color: #f87171; }
.green-text { color: #6ee7b7; }

.findings-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.findings-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.risk-tag {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: tag-in 0.3s ease both;
}

.risk-tag.invasive {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}

.risk-tag.safe {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #6ee7b7;
}

@keyframes tag-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.no-findings-msg {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* === RISK BREAKDOWN === */
.risk-breakdown-section {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.breakdown-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.copy-report-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-bright);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-report-btn:hover {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.3);
    color: var(--text-primary);
}

.risk-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.risk-category-card {
    padding: 16px;
    background: rgba(255,255,255,0.025);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    animation: fade-up 0.3s ease both;
}

.rcc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rcc-icon { font-size: 1.1rem; }

.rcc-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.rcc-severity {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 100px;
}

.rcc-severity.critical { background: rgba(239,68,68,0.2); color: #fca5a5; }
.rcc-severity.high     { background: rgba(249,115,22,0.2); color: #fdba74; }
.rcc-severity.medium   { background: rgba(234,179,8,0.2); color: #fde047; }
.rcc-severity.low      { background: rgba(16,185,129,0.2); color: #6ee7b7; }

.rcc-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* === RESULT CTA === */
.result-cta-section {
    margin-bottom: 48px;
}

.cta-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(34,211,238,0.06) 100%);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.cta-icon { font-size: 2.5rem; flex-shrink: 0; }

.cta-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--purple) 0%, #4f46e5 100%);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.45);
}

.new-audit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.new-audit-btn:hover {
    background: rgba(124,58,237,0.08);
    border-color: rgba(124,58,237,0.3);
    color: var(--text-primary);
}

/* === SEO CONTENT === */
.seo-content-section {
    padding: 48px 0 0;
    border-top: 1px solid var(--border);
}

.seo-h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.seo-intro {
    margin-bottom: 48px;
}

.seo-intro p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
    max-width: 800px;
}

.seo-intro strong { color: var(--text-primary); }

/* How It Works Grid */
.seo-how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.how-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.how-step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    opacity: 0;
    transition: opacity var(--transition);
}

.how-step-card:hover { border-color: rgba(124,58,237,0.3); }
.how-step-card:hover::before { opacity: 1; }

.step-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.how-step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.how-step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Use Cases */
.seo-use-cases {
    margin-bottom: 64px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.use-case-item {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
}

.use-case-item:hover {
    border-color: rgba(124,58,237,0.3);
    background: var(--bg-hover);
}

.use-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.use-case-item strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.use-case-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Detection Section */
.detection-section {
    margin-bottom: 64px;
}

.detect-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 700px;
}

.detection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detect-item {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    padding: 20px;
}

.detect-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.detect-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.detect-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* FAQ */
.faq-section {
    margin-bottom: 64px;
}

.faq-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item[open] {
    border-color: rgba(124,58,237,0.3);
}

.faq-question {
    padding: 18px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: var(--text-primary);
    transition: color var(--transition);
}

.faq-question:hover { color: var(--purple-light); }

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '−';
    color: var(--purple-light);
}

.faq-answer {
    padding: 0 22px 20px;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 14px;
}

.faq-answer a {
    color: var(--purple-light);
    text-decoration: none;
}

.faq-answer a:hover { text-decoration: underline; }

/* Limitations */
.limitations-section {
    margin-bottom: 48px;
}

.limitations-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: rgba(234,179,8,0.05);
    border: 1px solid rgba(234,179,8,0.2);
    border-radius: var(--radius-md);
}

.limit-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }

.limitations-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fde047;
}

.limitations-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.limitations-card strong { color: var(--text-primary); }

/* === URL FETCH CARD === */
.url-fetch-section {
    padding: 0 24px 24px;
}

.url-fetch-card {
    background: linear-gradient(135deg, rgba(34,211,238,0.04) 0%, rgba(124,58,237,0.04) 100%);
    border: 1px solid rgba(34,211,238,0.18);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    transition: border-color var(--transition);
}

.url-fetch-card:focus-within {
    border-color: rgba(34,211,238,0.35);
}

.url-fetch-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.url-fetch-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(34,211,238,0.1);
    border: 1px solid rgba(34,211,238,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}

.url-fetch-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.url-fetch-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.url-fetch-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.url-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.policy-url-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.policy-url-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.policy-url-input:focus {
    border-color: rgba(34,211,238,0.45);
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}

.fetch-url-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(124,58,237,0.15));
    border: 1px solid rgba(34,211,238,0.3);
    border-radius: var(--radius-md);
    color: var(--cyan);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.fetch-url-btn:hover {
    background: linear-gradient(135deg, rgba(34,211,238,0.25), rgba(124,58,237,0.25));
    border-color: rgba(34,211,238,0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34,211,238,0.15);
}

.fetch-status-row {
    font-size: 0.82rem;
    padding: 8px 0 4px;
    color: var(--cyan);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.fetch-status-row.hidden { display: none; }

.fetch-tips {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.fetch-tips code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(34,211,238,0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

@media (max-width: 520px) {
    .url-input-row {
        flex-direction: column;
    }
    .fetch-url-btn {
        justify-content: center;
    }
}

/* === ARTICLE PROMO CARD === */
.article-promo-card {
    display: flex;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,240,255,0.06) 0%, rgba(99,102,241,0.06) 100%);
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.article-promo-card:hover {
    border-color: rgba(0,240,255,0.5);
    transform: translateY(-2px);
}

/* === TOOLS GRID === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.tool-link-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.tool-link-card:hover {
    border-color: rgba(124,58,237,0.4);
}

/* === UTILITIES === */
.hidden { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .results-top-row {
        grid-template-columns: 1fr 1fr;
    }

    .stats-card {
        grid-column: 1 / -1;
    }

    .seo-how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .app-shell { padding: 0 16px 60px; }

    .tool-header { flex-direction: column; gap: 16px; }

    .hero-stats { flex-wrap: wrap; gap: 24px; }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-meta { justify-content: center; }

    .analyze-btn { justify-content: center; }

    .results-top-row {
        grid-template-columns: 1fr;
    }

    .findings-row {
        grid-template-columns: 1fr;
    }

    .seo-how-grid {
        grid-template-columns: 1fr;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .detection-grid {
        grid-template-columns: 1fr;
    }

    .cta-card { flex-direction: column; }

    .breakdown-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
