/* ==========================================================================
   SCAMSHIELD AI — DESIGN SYSTEM & CYBER SHIELD AESTHETICS
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #060a14;
    --bg-surface: rgba(13, 21, 44, 0.75);
    --bg-surface-elevated: rgba(18, 30, 62, 0.85);
    --bg-surface-alt: #0a1124;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(121, 82, 255, 0.3);
    --border-cyan: rgba(0, 242, 254, 0.35);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    /* Theme Accents */
    --primary: #7952ff;
    --primary-hover: #8f6eff;
    --primary-light: rgba(121, 82, 255, 0.15);
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.25);
    
    /* Risk Levels */
    --risk-safe: #10b981;
    --risk-safe-bg: rgba(16, 185, 129, 0.12);
    --risk-safe-border: rgba(16, 185, 129, 0.3);
    
    --risk-caution: #f59e0b;
    --risk-caution-bg: rgba(245, 158, 11, 0.12);
    --risk-caution-border: rgba(245, 158, 11, 0.3);
    
    --risk-danger: #ef4444;
    --risk-danger-bg: rgba(239, 68, 68, 0.14);
    --risk-danger-border: rgba(239, 68, 68, 0.4);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(121, 82, 255, 0.15);
    --shadow-glow: 0 0 35px -5px rgba(0, 242, 254, 0.25);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Ambient Background Glow Elements */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.glow-top-left {
    width: 480px;
    height: 480px;
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(121, 82, 255, 0.4) 0%, transparent 70%);
}

.glow-top-right {
    width: 520px;
    height: 520px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, transparent 70%);
}

.glow-center {
    width: 650px;
    height: 650px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 10, 20, 0.82);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.history-count-badge {
    background: rgba(121, 82, 255, 0.35);
    color: #e0e7ff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-svg {
    width: 18px;
    height: 18px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    padding: 55px 15px 35px;
    max-width: 840px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(121, 82, 255, 0.12);
    border: 1px solid rgba(121, 82, 255, 0.3);
    color: #c7d2fe;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(121, 82, 255, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 18px;
}

.gradient-hero-text {
    background: linear-gradient(135deg, #00f2fe 0%, #7952ff 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 35px;
    line-height: 1.65;
}

.features-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}

.feat-icon {
    width: 16px;
    height: 16px;
    color: var(--cyan);
}

/* ==========================================================================
   GLASSMORPHISM CARDS & ANALYZER CORE
   ========================================================================== */

.analyzer-wrapper {
    margin-top: 20px;
    margin-bottom: 70px;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease;
}

.main-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    border: 1px solid rgba(121, 82, 255, 0.22);
}

/* Analyzer Mode Tabs */
.tab-header {
    display: flex;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--cyan);
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

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

.input-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.input-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.input-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-accent);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.btn-text:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.textarea-container {
    position: relative;
    border-radius: var(--radius-md);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
}

.textarea-container:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.92rem;
}

.url-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px 16px;
    transition: all 0.25s ease;
}

.url-input-group:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.url-addon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.text-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}

.text-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.field-hint {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

/* Quick Presets Section */
.presets-container {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.preset-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(121, 82, 255, 0.15);
    border-color: rgba(121, 82, 255, 0.35);
    color: #e0e7ff;
    transform: translateY(-1px);
}

.preset-legit:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* Action Toolbar */
.action-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #7952ff 100%);
    color: #060a14;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.45);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.85rem;
}

.btn-icon-svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   SIMULATED SCANNER RADAR / PROGRESS
   ========================================================================== */

.scanner-progress-box {
    margin-top: 24px;
    padding: 24px;
    background: rgba(10, 17, 36, 0.95);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
    animation: fadeInTab 0.3s ease;
}

.radar-scanner {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 254, 0.35);
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    overflow: hidden;
    flex-shrink: 0;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 242, 254, 0.5) 0deg, transparent 60deg);
    transform-origin: 0% 0%;
    animation: radarSpin 1.4s linear infinite;
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 8px #00f2fe;
    animation: blinkDot 1s infinite alternate;
}

.dot-1 { top: 25%; left: 60%; }
.dot-2 { bottom: 30%; left: 35%; animation-delay: 0.5s; }

@keyframes blinkDot {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.progress-info {
    flex: 1;
}

.progress-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #7952ff);
    border-radius: 3px;
    transition: width 0.25s linear;
}

/* ==========================================================================
   ASSESSMENT RESULT SECTION
   ========================================================================== */

.assessment-result {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    animation: fadeInAssessment 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInAssessment {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-banner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Circular SVG Gauge */
.gauge-column {
    flex-shrink: 0;
}

.circular-gauge {
    position: relative;
    width: 110px;
    height: 110px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.gauge-fill {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.8s ease, stroke 0.4s ease;
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-score {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.gauge-max {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-info {
    flex: 1;
}

.threat-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.threat-headline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.threat-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.confidence-row {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.confidence-tag, .flags-detected-tag {
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.confidence-tag strong, .flags-detected-tag strong {
    color: var(--text-primary);
}

/* Inspected Text Highlight Viewer */
.inspected-text-box {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
}

.box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.box-title .sub-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.highlighted-content {
    font-size: 0.94rem;
    line-height: 1.8;
    color: #cbd5e1;
    word-break: break-word;
}

.hl-danger {
    background: rgba(239, 68, 68, 0.28);
    color: #fecaca;
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom: 2px solid #ef4444;
    font-weight: 600;
    cursor: help;
}

.hl-warning {
    background: rgba(245, 158, 11, 0.25);
    color: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom: 2px solid #f59e0b;
    font-weight: 600;
    cursor: help;
}

.hl-info {
    background: rgba(0, 242, 254, 0.2);
    color: #cffafe;
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom: 2px solid #00f2fe;
    font-weight: 600;
}

/* Flags Grid */
.red-flags-section {
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.flag-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.flag-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.flag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.flag-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 12px;
}

.badge-critical {
    background: var(--risk-danger-bg);
    color: #fca5a5;
    border: 1px solid var(--risk-danger-border);
}

.badge-warning {
    background: var(--risk-caution-bg);
    color: #fcd34d;
    border: 1px solid var(--risk-caution-border);
}

.badge-notice {
    background: rgba(0, 242, 254, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.flag-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Attacker Blueprint */
.attacker-blueprint {
    background: linear-gradient(135deg, rgba(121, 82, 255, 0.1) 0%, rgba(6, 10, 20, 0.6) 100%);
    border: 1px solid rgba(121, 82, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
}

.blueprint-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c7d2fe;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.icon-inline {
    width: 18px;
    height: 18px;
    color: var(--cyan);
}

.attacker-blueprint p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Action Protocol */
.action-protocol {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
}

.protocol-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6ee7b7;
    margin-bottom: 12px;
}

.protocol-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.protocol-list li {
    font-size: 0.88rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.protocol-list li::before {
    content: "🛡️";
    font-size: 0.85rem;
}

.result-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   QUIZ & SCAM SIMULATOR
   ========================================================================== */

.section-container {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.badge-accent {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

.quiz-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px;
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.quiz-step {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.quiz-score-pill {
    background: rgba(121, 82, 255, 0.15);
    color: #e0e7ff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(121, 82, 255, 0.3);
}

.quiz-phone-mockup {
    background: #090e1c;
    border: 2px solid #233154;
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 24px;
    position: relative;
}

.phone-notch {
    width: 60px;
    height: 5px;
    background: #233154;
    border-radius: 10px;
    margin: -10px auto 16px;
}

.message-bubble {
    background: #17233f;
    border: 1px solid #2d3e68;
    border-radius: 14px 14px 14px 2px;
    padding: 16px;
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.6;
    max-width: 90%;
}

.bubble-sender {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.quiz-question {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.quiz-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-scam-choice {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-scam-choice:hover {
    background: rgba(239, 68, 68, 0.28);
    transform: translateY(-2px);
}

.btn-legit-choice {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-legit-choice:hover {
    background: rgba(16, 185, 129, 0.28);
    transform: translateY(-2px);
}

.quiz-feedback {
    margin-top: 20px;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.6;
    animation: fadeInTab 0.3s ease;
}

.quiz-feedback.correct {
    background: var(--risk-safe-bg);
    border: 1px solid var(--risk-safe-border);
    color: #d1fae5;
}

.quiz-feedback.incorrect {
    background: var(--risk-danger-bg);
    border: 1px solid var(--risk-danger-border);
    color: #fee2e2;
}

/* ==========================================================================
   THREAT GRID
   ========================================================================== */

.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.threat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    transition: all 0.25s ease;
}

.threat-card:hover {
    border-color: rgba(121, 82, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.threat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.danger-tone { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.warning-tone { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.crypto-tone { background: rgba(121, 82, 255, 0.15); border: 1px solid rgba(121, 82, 255, 0.3); }
.delivery-tone { background: rgba(0, 242, 254, 0.15); border: 1px solid rgba(0, 242, 254, 0.3); }

.threat-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.defense-rule {
    font-size: 0.82rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--cyan);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   EMERGENCY GUIDE
   ========================================================================== */

.emergency-card {
    padding: 36px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 21, 44, 0.85) 100%);
}

.emergency-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.emergency-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.emergency-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.98rem;
}

.emergency-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(239, 68, 68, 0.4);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.step-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fecaca;
}

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

.helpline-directory h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.helpline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.helpline-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-flag {
    font-weight: 700;
    font-size: 0.88rem;
}

.hotline-phone {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyan);
}

.helpline-box a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.helpline-box a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ==========================================================================
   SCAN HISTORY
   ========================================================================== */

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: rgba(121, 82, 255, 0.35);
    background: var(--bg-surface-elevated);
}

.hist-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.hist-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.hist-details {
    min-width: 0;
}

.hist-snippet {
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 550px;
}

.hist-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.empty-history {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(6, 10, 20, 0.95);
    padding: 45px 24px 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

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

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-title span {
    color: var(--cyan);
}

.footer-disclaimer {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(13, 21, 44, 0.95);
    border: 1px solid var(--border-cyan);
    backdrop-filter: blur(16px);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .main-card {
        padding: 20px;
    }

    .result-banner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .confidence-row {
        justify-content: center;
    }

    .action-bar {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .quiz-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}