/* =============================================
   CRYPGUARD GENESIS — SHIELDS PAGE v2
   Complete redesign: glass-morphism cards,
   per-shield theming, centered overlays,
   expandable capabilities with animations.

   Requires: common.css (loaded first)
   ============================================= */


/* ===========================================
   1. PAGE BACKGROUND + HERO HEADER
   =========================================== */

.shields-page {
    background: linear-gradient(180deg, #121212 0%, #0e0e0e 50%, #0a0a0a 100%);
}

.shields-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 40% 50%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.5), transparent);
    background-size: 200% 200%;
    animation: starDrift 12s ease-in-out infinite;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

@keyframes starDrift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Hero header */
.shields-header {
    text-align: center;
    padding: 100px 20px 30px;
    position: relative;
    z-index: 10;
}

.shields-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-2xl);
    font-weight: 900;
    background: linear-gradient(135deg, #00d9ff 0%, #00ffaa 50%, #bc13fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.shields-header .tagline {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 8px;
}

/* Session 203G: Attention-grabbing instruction button */
@keyframes instructionShake {
    0%, 75%, 100% { transform: translateX(0) rotate(0); }
    78% { transform: translateX(-4px) rotate(-1deg); }
    81% { transform: translateX(4px) rotate(1deg); }
    84% { transform: translateX(-3px) rotate(-0.5deg); }
    87% { transform: translateX(3px) rotate(0.5deg); }
    90% { transform: translateX(-2px) rotate(0); }
    93% { transform: translateX(2px) rotate(0); }
    96% { transform: translateX(0); }
}

@keyframes instructionGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,170,0,0.2), inset 0 0 10px rgba(255,170,0,0.05); }
    50% { box-shadow: 0 0 25px rgba(255,170,0,0.45), 0 0 50px rgba(255,170,0,0.1), inset 0 0 15px rgba(255,170,0,0.08); }
}

.shields-header .instruction-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 2.2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #FFD54F;
    background: linear-gradient(135deg, rgba(255,170,0,0.12), rgba(255,213,79,0.06));
    border: 2px solid rgba(255,170,0,0.4);
    border-radius: var(--radius-full);
    animation: instructionShake 4s ease-in-out infinite, instructionGlow 2.5s ease-in-out infinite;
    cursor: default;
    text-transform: uppercase;
}

.shields-header .instruction-btn:hover {
    animation: instructionGlow 1.5s ease-in-out infinite;
    border-color: rgba(255,213,79,0.8);
    color: #fff;
    text-shadow: 0 0 10px rgba(255,213,79,0.5);
}

/* Back button in nav */
.back-to-main {
    color: var(--accent-cyan) !important;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 4px 12px !important;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}
.back-to-main:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--accent-cyan);
}


/* ===========================================
   2. SHIELD GRID LAYOUT (3 row sections)
   =========================================== */

.shields-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 10;
}

/* Row labels */
.shield-row-label {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* Grid rows */
.shield-row {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

/* Mobile: always 1 column */
.shield-row { grid-template-columns: 1fr; }


/* ===========================================
   3. SHIELD CARD BASE (glass-morphism)
   =========================================== */

.shield-card {
    --shield-accent: #60a5fa;
    --shield-glow: rgba(96, 165, 250, 0.12);

    position: relative;
    background: rgba(26, 31, 46, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    overflow: hidden;
}

/* Top accent line — hidden until hover */
.shield-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--shield-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shield-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px var(--shield-glow);
}

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

/* Card icon */
.shield-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 0 12px var(--shield-glow));
    transition: transform 0.4s ease;
}

.shield-card:hover .card-icon {
    transform: scale(1.1);
}

/* Card title */
.shield-card .card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--shield-accent);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card subtitle */
.shield-card .card-sub {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 220px;
}

/* Card status badge */
.shield-card .card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    border: 1px solid;
}

.card-badge--active {
    color: var(--accent-green);
    border-color: rgba(0, 255, 170, 0.3);
    background: rgba(0, 255, 170, 0.08);
}

.card-badge--coming {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.card-badge--future {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.06);
}

.card-badge--classified {
    color: #e879f9;
    border-color: rgba(232, 121, 249, 0.4);
    background: rgba(232, 121, 249, 0.08);
    animation: classifiedPulse 2.5s ease-in-out infinite;
}

@keyframes classifiedPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(232, 121, 249, 0.15); }
    50% { box-shadow: 0 0 20px rgba(232, 121, 249, 0.35); }
}

/* Click hint — always visible, brightens on hover */
.shield-card::after {
    content: 'Click to explore \2192';
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.35;
    margin-top: 8px;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.shield-card:hover::after {
    opacity: 0.7;
    color: var(--shield-accent, var(--accent-cyan));
}


/* ===========================================
   4. PER-SHIELD THEMING (10 color blocks)
   Each shield gets a unique accent color
   applied via data-shield attribute.
   =========================================== */

/* ===========================================
   Session 203G: Unique per-shield visual effects
   Each card gets a distinct animation style
   =========================================== */

/* --- Shared keyframes --- */
@keyframes shieldFloat   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
@keyframes explorePulse  { 0%,100%{opacity:.55;box-shadow:0 0 4px transparent} 50%{opacity:1;box-shadow:0 0 14px var(--shield-glow),0 0 25px var(--shield-glow)} }

/* Icon animations */
@keyframes iconBounce  { 0%,100%{transform:scale(1) translateY(0)} 50%{transform:scale(1.1) translateY(-3px)} }
@keyframes iconWiggle  { 0%,100%{transform:rotate(0)} 25%{transform:rotate(6deg)} 75%{transform:rotate(-6deg)} }
@keyframes iconPulse   { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
@keyframes iconTilt    { 0%,100%{transform:rotate(0)} 25%{transform:rotate(10deg)} 75%{transform:rotate(-10deg)} }
@keyframes iconFloat   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* --- Per-shield effect keyframes --- */

/* Identity: Laser trace — thin line traces the border */
@keyframes laserTrace {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Message: Sonar pulse — ring expanding from center */
@keyframes sonarPulse {
    0%   { box-shadow: inset 0 0 0 0 rgba(34,211,238,0); }
    30%  { box-shadow: inset 0 0 30px 5px rgba(34,211,238,0.08); }
    60%  { box-shadow: inset 0 0 60px 15px rgba(34,211,238,0); }
    100% { box-shadow: inset 0 0 0 0 rgba(34,211,238,0); }
}

/* Link: Vertical scan line sweeping left to right */
@keyframes scanLine {
    0%,100% { left: -10%; }
    50% { left: 110%; }
}

/* Media: Horizontal film scan */
@keyframes filmScan {
    0%,100% { top: -10%; }
    50% { top: 110%; }
}

/* Intelligence: Radar sweep */
@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Forensic: Searchlight diagonal */
@keyframes searchLight {
    0%,100% { transform: translateX(-100%) rotate(-45deg); }
    50% { transform: translateX(200%) rotate(-45deg); }
}

/* Response: Electric border flash */
@keyframes electricFlash {
    0%,100% { border-color: rgba(45,212,191,0.08); box-shadow: none; }
    25% { border-color: rgba(45,212,191,0.5); box-shadow: 0 0 15px rgba(45,212,191,0.15); }
    50% { border-color: rgba(45,212,191,0.08); box-shadow: none; }
    75% { border-color: rgba(45,212,191,0.6); box-shadow: 0 0 20px rgba(45,212,191,0.2), inset 0 0 15px rgba(45,212,191,0.05); }
}

/* Classified: Glitch jitter */
@keyframes glitchBorder {
    0%,100% { clip-path: inset(0); border-color: rgba(232,121,249,0.15); }
    20% { clip-path: inset(40% 0 50% 0); border-color: rgba(232,121,249,0.6); }
    21% { clip-path: inset(0); }
    40% { clip-path: inset(10% 0 80% 0); border-color: rgba(232,121,249,0.5); }
    41% { clip-path: inset(0); }
    60% { clip-path: inset(70% 0 10% 0); border-color: rgba(232,121,249,0.7); }
    61% { clip-path: inset(0); }
}

/* Border glow breathe — for behavioral/command */
@keyframes borderBreathe {
    0%,100% { border-color: rgba(255,255,255,0.06); box-shadow: 0 0 5px var(--shield-glow); }
    50% { border-color: var(--shield-accent); box-shadow: 0 0 20px var(--shield-glow), 0 0 40px var(--shield-glow); }
}

/* --- Per-shield config --- */
[data-shield="identity"]    { --shield-accent:#a78bfa; --shield-glow:rgba(167,139,250,.15); }
[data-shield="message"]     { --shield-accent:#22d3ee; --shield-glow:rgba(34,211,238,.15); }
[data-shield="link"]        { --shield-accent:#34d399; --shield-glow:rgba(52,211,153,.15); }
[data-shield="media"]       { --shield-accent:#fbbf24; --shield-glow:rgba(251,191,36,.15); }
[data-shield="intelligence"]{ --shield-accent:#60a5fa; --shield-glow:rgba(96,165,250,.15); }
[data-shield="forensic"]    { --shield-accent:#f87171; --shield-glow:rgba(248,113,113,.15); }
[data-shield="response"]    { --shield-accent:#2dd4bf; --shield-glow:rgba(45,212,191,.15); }
[data-shield="behavioral"]  { --shield-accent:#4ade80; --shield-glow:rgba(74,222,128,.1); }
[data-shield="command"]     { --shield-accent:#94a3b8; --shield-glow:rgba(148,163,184,.08); }
[data-shield="classified"]  { --shield-accent:#e879f9; --shield-glow:rgba(232,121,249,.15); }

/* --- Shared card base --- */
.shield-card {
    animation: shieldFloat 4s ease-in-out infinite;
    overflow: hidden;
    z-index: 1;
}

.shield-card .card-icon,
.shield-card .card-title,
.shield-card .card-sub,
.shield-card .card-badge { position: relative; z-index: 2; }

/* Explore CTA pill */
.shield-card::after {
    content: 'Explore \2192';
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--shield-accent);
    letter-spacing: 1px;
    margin-top: 14px;
    padding: 6px 20px;
    border: 1.5px solid color-mix(in srgb, var(--shield-accent) 40%, transparent);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--shield-accent) 10%, transparent);
    animation: explorePulse 2.5s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

/* --- Hover (universal) --- */
.shield-card:hover { animation: none; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 50px var(--shield-glow); }
.shield-card:hover .card-icon { animation: none !important; transform: scale(1.15); }
.shield-card:hover::before { animation: none !important; opacity: 0; }
.shield-card:hover::after {
    opacity: 1;
    background: color-mix(in srgb, var(--shield-accent) 25%, transparent);
    border-color: var(--shield-accent);
    animation: none;
    box-shadow: 0 0 20px var(--shield-glow);
    color: #fff;
}

/* ═══════════════════════════════════════════
   IDENTITY — Laser trace border
   A thin bright dot orbits the card edge
   ═══════════════════════════════════════════ */
[data-shield="identity"] { animation-duration: 4.2s; }
[data-shield="identity"] .card-icon { animation: iconBounce 4s ease-in-out infinite; }

[data-shield="identity"]::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, transparent 0%, transparent 85%, #a78bfa 92%, transparent 100%);
    animation: radarSweep 5s linear infinite;
    opacity: 0.7;
    z-index: -1;
    height: auto;
}

/* ═══════════════════════════════════════════
   MESSAGE — Sonar ring pulse from center
   Bright ring expands outward repeatedly
   ═══════════════════════════════════════════ */
@keyframes sonarRing {
    0%   { width: 0; height: 0; opacity: 0.7; border-width: 2px; }
    80%  { width: 140%; height: 280%; opacity: 0; border-width: 1px; }
    100% { width: 140%; height: 280%; opacity: 0; border-width: 1px; }
}

[data-shield="message"] { animation-duration: 3.8s; }
[data-shield="message"] .card-icon { animation: iconWiggle 4.5s ease-in-out infinite; }

[data-shield="message"]::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    width: 0; height: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #22d3ee;
    background: transparent;
    box-shadow: 0 0 15px rgba(34,211,238,0.3);
    animation: sonarRing 3.5s ease-out infinite;
    z-index: -1;
}

/* ═══════════════════════════════════════════
   LINK — Vertical scan line
   A bright line sweeps left to right slowly
   ═══════════════════════════════════════════ */
[data-shield="link"] { animation-duration: 3.6s; }
[data-shield="link"] .card-icon { animation: iconPulse 4s ease-in-out infinite; }

[data-shield="link"]::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -10%;
    width: 3px;
    background: linear-gradient(180deg, transparent, #34d399, rgba(52,211,153,0.3), #34d399, transparent);
    box-shadow: 0 0 15px rgba(52,211,153,0.4), 0 0 30px rgba(52,211,153,0.15);
    animation: scanLine 6s ease-in-out infinite;
    opacity: 0.8;
    z-index: -1;
    height: auto;
    border-radius: 0;
}

/* ═══════════════════════════════════════════
   MEDIA — Horizontal film scan
   A line sweeps top to bottom like a film roll
   ═══════════════════════════════════════════ */
[data-shield="media"] { animation-duration: 4s; }
[data-shield="media"] .card-icon { animation: iconTilt 4.5s ease-in-out infinite; }

[data-shield="media"]::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: -10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, rgba(251,191,36,0.4), #fbbf24, transparent);
    box-shadow: 0 0 12px rgba(251,191,36,0.3), 0 0 25px rgba(251,191,36,0.1);
    animation: filmScan 5s ease-in-out infinite;
    opacity: 0.8;
    z-index: -1;
    width: auto;
    border-radius: 0;
}

/* ═══════════════════════════════════════════
   INTELLIGENCE — Radar sweep
   Rotating wedge of light like a radar display
   ═══════════════════════════════════════════ */
[data-shield="intelligence"] { animation-duration: 4.4s; }
[data-shield="intelligence"] .card-icon { animation: iconFloat 4s ease-in-out infinite; }

[data-shield="intelligence"]::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 80%, rgba(96,165,250,0.1) 88%, rgba(96,165,250,0.05) 94%, transparent 100%);
    animation: radarSweep 6s linear infinite;
    opacity: 1;
    z-index: -1;
}

/* ═══════════════════════════════════════════
   FORENSIC — Searchlight cone sweep
   Wide bright beam sweeps across the card
   ═══════════════════════════════════════════ */
@keyframes forensicSweep {
    0%,100% { left: -60%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 100%; opacity: 1; }
    60% { opacity: 0; }
}

[data-shield="forensic"] { animation-duration: 3.5s; }
[data-shield="forensic"] .card-icon { animation: iconTilt 5s ease-in-out infinite; }

[data-shield="forensic"]::before {
    content: '';
    position: absolute;
    top: -20%; bottom: -20%;
    left: -60%;
    width: 50%;
    background: linear-gradient(90deg,
        transparent,
        rgba(248,113,113,0.04),
        rgba(248,113,113,0.12),
        rgba(255,255,255,0.06),
        rgba(248,113,113,0.12),
        rgba(248,113,113,0.04),
        transparent
    );
    transform: skewX(-15deg);
    animation: forensicSweep 5s ease-in-out infinite;
    z-index: -1;
    height: auto;
    border-radius: 0;
}

/* ═══════════════════════════════════════════
   RESPONSE — Electric flash border
   Border flickers like electricity
   ═══════════════════════════════════════════ */
[data-shield="response"] {
    animation: shieldFloat 3.8s ease-in-out infinite, electricFlash 3s ease-in-out infinite;
}
[data-shield="response"] .card-icon { animation: iconBounce 3.5s ease-in-out infinite; }

[data-shield="response"]::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 180deg, transparent 0%, transparent 92%, #2dd4bf 96%, transparent 100%);
    animation: radarSweep 4s linear infinite reverse;
    opacity: 0.5;
    z-index: -1;
    height: auto;
}

/* ═══════════════════════════════════════════
   BEHAVIORAL — Double pulse rings
   Two rings expand from center, staggered
   ═══════════════════════════════════════════ */
@keyframes behavioralRing1 {
    0%   { width: 10px; height: 10px; opacity: 0.6; }
    100% { width: 120%; height: 250%; opacity: 0; }
}
@keyframes behavioralRing2 {
    0%   { width: 10px; height: 10px; opacity: 0; }
    15%  { opacity: 0; }
    16%  { opacity: 0.5; width: 10px; height: 10px; }
    100% { width: 120%; height: 250%; opacity: 0; }
}

[data-shield="behavioral"] {
    animation: shieldFloat 4.5s ease-in-out infinite;
}
[data-shield="behavioral"] .card-icon { animation: iconPulse 4s ease-in-out infinite; }

[data-shield="behavioral"]::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #4ade80;
    background: transparent;
    box-shadow: 0 0 12px rgba(74,222,128,0.25);
    animation: behavioralRing1 4s ease-out infinite;
    z-index: -1;
    width: 10px; height: 10px;
}

/* ═══════════════════════════════════════════
   COMMAND — Terminal cursor line
   Horizontal line blinks like a terminal
   ═══════════════════════════════════════════ */
@keyframes terminalCursor {
    0%,100% { opacity: 0; width: 0; }
    10% { opacity: 0.8; width: 0; }
    50% { opacity: 0.8; width: 70%; }
    70% { opacity: 0; width: 70%; }
}

[data-shield="command"] {
    animation: shieldFloat 5s ease-in-out infinite;
}
[data-shield="command"] .card-icon { animation: iconFloat 5s ease-in-out infinite; }

[data-shield="command"]::before {
    content: '';
    position: absolute;
    bottom: 35%;
    left: 15%;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, #94a3b8, rgba(148,163,184,0.3));
    box-shadow: 0 0 8px rgba(148,163,184,0.4), 0 0 20px rgba(148,163,184,0.15);
    animation: terminalCursor 4s ease-in-out infinite;
    z-index: -1;
    border-radius: 0;
    top: auto;
    right: auto;
}

/* ═══════════════════════════════════════════
   CLASSIFIED — Glitch/static
   Unpredictable digital interference
   ═══════════════════════════════════════════ */
[data-shield="classified"] {
    animation: shieldFloat 3.5s ease-in-out infinite, glitchBorder 4s steps(1) infinite;
}
[data-shield="classified"] .card-icon {
    animation: iconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(232,121,249,0.4));
}

[data-shield="classified"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(232,121,249,0.02) 3px,
        rgba(232,121,249,0.02) 4px
    );
    z-index: -1;
    opacity: 0.6;
    height: auto;
    border-radius: inherit;
    animation: none;
}

/* --- Locked cards --- */
.shield-card--locked::after {
    content: 'Coming Soon';
    color: var(--shield-accent);
    opacity: 0.4;
    animation: none;
}


/* ===========================================
   5. DETAIL OVERLAY (centered modal)
   =========================================== */

.shield-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.shield-overlay-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Session 203G: Robust centering — inset:0 + margin:auto avoids transform-centering bugs */
.shield-overlay {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 94%;
    max-width: 720px;
    height: fit-content;
    max-height: 88vh;
    min-height: 320px;
    background: rgba(12, 16, 28, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    z-index: 510;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
    transition: opacity 0.35s ease,
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.shield-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

/* Overlay top accent bar */
.shield-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--shield-accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Scrollbar */
.shield-overlay::-webkit-scrollbar {
    width: 6px;
}
.shield-overlay::-webkit-scrollbar-track {
    background: transparent;
}
.shield-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Close button */
.overlay-close {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    margin: 16px 16px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 520;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: rotate(90deg);
}


/* ===========================================
   6. DETAIL HEADER + EXPLAINER
   =========================================== */

.overlay-body {
    padding: 8px 32px 32px;
}

/* Header */
.detail-head {
    text-align: center;
    margin-bottom: 28px;
}

.detail-head .detail-icon {
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 16px var(--shield-glow));
}

.detail-head .detail-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--shield-accent);
    margin-bottom: 6px;
}

.detail-head .detail-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

/* Explainer box */
.detail-explainer {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.01)
    );
    border-left: 3px solid var(--shield-accent);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: var(--fs-sm);
    color: var(--text-primary);
    line-height: 1.7;
}


/* ===========================================
   7. CAPABILITY CARDS (expandable)
   =========================================== */

.cap-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

/* 2-column default, 3-column variant */
.cap-grid--2col { grid-template-columns: 1fr; }
.cap-grid--3col { grid-template-columns: 1fr; }

.cap-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--shield-accent);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cap-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.cap-card.expanded {
    border-color: var(--shield-accent);
    box-shadow: 0 4px 24px var(--shield-glow);
}

/* Capability header (always visible) */
.cap-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cap-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cap-header .cap-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shield-glow);
    border-radius: var(--radius-sm);
}

.cap-header .cap-name {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.cap-header .cap-chevron {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.cap-card.expanded .cap-chevron {
    transform: rotate(180deg);
    color: var(--shield-accent);
    animation: none;
}

/* Hint text for unexpanded cards */
.cap-hint {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.35;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cap-header:hover .cap-hint {
    opacity: 0.8;
    color: var(--shield-accent);
}

.cap-card.expanded .cap-hint {
    display: none;
}

/* Gentle chevron bounce hints at interactivity */
@keyframes chevronBounce {
    0%, 80%, 100% { transform: translateY(0); }
    90% { transform: translateY(3px); }
}

.cap-header .cap-chevron {
    animation: chevronBounce 3s ease-in-out infinite;
}

/* Subtle alternating card tints for visual variety */
.cap-card:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.cap-card:nth-child(even) .cap-demo {
    background: rgba(0, 0, 0, 0.2);
}

/* Per-card accent colors — each card looks genuinely different */
.cap-card:nth-child(1) { border-left-color: #a78bfa; }
.cap-card:nth-child(2) { border-left-color: #22d3ee; }
.cap-card:nth-child(3) { border-left-color: #fb923c; }
.cap-card:nth-child(4) { border-left-color: #34d399; }

.cap-card:nth-child(1) .cap-icon { background: rgba(167, 139, 250, 0.15); }
.cap-card:nth-child(2) .cap-icon { background: rgba(34, 211, 238, 0.15); }
.cap-card:nth-child(3) .cap-icon { background: rgba(251, 146, 60, 0.15); }
.cap-card:nth-child(4) .cap-icon { background: rgba(52, 211, 153, 0.15); }

.cap-card:nth-child(1) .cap-demo { border-left: 2px solid rgba(167, 139, 250, 0.25); background: rgba(167, 139, 250, 0.04); }
.cap-card:nth-child(2) .cap-demo { border-left: 2px solid rgba(34, 211, 238, 0.25); background: rgba(34, 211, 238, 0.04); }
.cap-card:nth-child(3) .cap-demo { border-left: 2px solid rgba(251, 146, 60, 0.25); background: rgba(251, 146, 60, 0.04); }
.cap-card:nth-child(4) .cap-demo { border-left: 2px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.04); }

.cap-card:nth-child(1) .cap-summary { color: #a78bfa; border-left-color: #a78bfa; }
.cap-card:nth-child(2) .cap-summary { color: #22d3ee; border-left-color: #22d3ee; }
.cap-card:nth-child(3) .cap-summary { color: #fb923c; border-left-color: #fb923c; }
.cap-card:nth-child(4) .cap-summary { color: #34d399; border-left-color: #34d399; }

/* Capability body (hidden until expanded) */
.cap-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cap-card.expanded .cap-body {
    max-height: 600px;
}

.cap-content {
    padding: 0 16px 16px;
}

/* Demo animation container */
.cap-demo {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.cap-demo-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Feature summary */
.cap-summary {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--shield-accent);
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
    line-height: 1.65;
}


/* ===========================================
   8. PER-SHIELD ANIMATIONS (10 unique)
   =========================================== */

/* --- IDENTITY: Homoglyph scan line --- */
.homoglyph-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.homoglyph-username {
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.homoglyph-scan-line {
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    background: #a78bfa;
    box-shadow: 0 0 8px #a78bfa, 0 0 16px rgba(167, 139, 250, 0.4);
    animation: hgScan 4s ease-in-out infinite;
}

@keyframes hgScan {
    0%, 10% { left: -2px; opacity: 0; }
    15% { opacity: 1; }
    50% { left: calc(100% + 2px); opacity: 1; }
    55%, 100% { opacity: 0; }
}

.h-char { transition: color 0.3s; }

.h-char.fake {
    position: relative;
    animation: hgReveal 4s ease-in-out infinite;
}

@keyframes hgReveal {
    0%, 48% { color: var(--text-primary); background: transparent; }
    52% { color: #f87171; background: rgba(248, 113, 113, 0.12); }
    85% { color: #f87171; background: rgba(248, 113, 113, 0.12); }
    95%, 100% { color: var(--text-primary); background: transparent; }
}

.h-char.fake .h-real {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: #f87171;
    white-space: nowrap;
    opacity: 0;
    animation: hgLabel 4s ease-in-out infinite;
}

@keyframes hgLabel {
    0%, 50% { opacity: 0; }
    55% { opacity: 1; }
    85% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

.homoglyph-verdict {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: #f87171;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: hgVerdict 4s ease-in-out infinite;
}

@keyframes hgVerdict {
    0%, 55% { opacity: 0; transform: translateY(4px); }
    62% { opacity: 1; transform: translateY(0); }
    88% { opacity: 1; }
    95%, 100% { opacity: 0; }
}


/* --- IDENTITY: Avatar comparison --- */
.avatar-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(167, 139, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1040, #2d1b69);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #a78bfa;
}

.avatar-scan {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.35), transparent);
    animation: avatarSweep 5s ease-in-out infinite;
}

@keyframes avatarSweep {
    0%, 20% { left: -100%; }
    45% { left: 100%; }
    46%, 100% { left: 100%; }
}

.avatar-circle--clone {
    border-color: rgba(248, 113, 113, 0.4);
    animation: clonePulse 5s ease-in-out infinite;
}

@keyframes clonePulse {
    0%, 45% { border-color: rgba(167, 139, 250, 0.4); }
    55% { border-color: rgba(248, 113, 113, 0.6); box-shadow: 0 0 12px rgba(248, 113, 113, 0.2); }
    90% { border-color: rgba(248, 113, 113, 0.6); }
    100% { border-color: rgba(167, 139, 250, 0.4); }
}

.avatar-match {
    text-align: center;
    opacity: 0;
    animation: matchFade 5s ease-in-out infinite;
}

@keyframes matchFade {
    0%, 48% { opacity: 0; transform: scale(0.8); }
    55% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; }
    95%, 100% { opacity: 0; transform: scale(0.8); }
}

.avatar-match-pct {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f87171;
}

.avatar-match-label {
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- IDENTITY: Nickname morph --- */
.nickname-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nickname-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
}

.nickname-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: nickDotColor 6s ease-in-out infinite;
}

@keyframes nickDotColor {
    0%, 30% { background: var(--accent-green); }
    45%, 85% { background: #f87171; }
    100% { background: var(--accent-green); }
}

.nickname-text {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    height: 1.2em;
}

.nick-safe,
.nick-danger {
    position: absolute;
    left: 0;
    white-space: nowrap;
}

.nick-safe {
    color: var(--text-primary);
    animation: nickFadeOut 6s ease-in-out infinite;
}

.nick-danger {
    color: #f87171;
    animation: nickFadeIn 6s ease-in-out infinite;
}

@keyframes nickFadeOut {
    0%, 30% { opacity: 1; }
    42% { opacity: 0; }
    88% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes nickFadeIn {
    0%, 30% { opacity: 0; }
    45% { opacity: 1; }
    85% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

.nickname-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: nickTimeline 6s ease-in-out infinite;
}

@keyframes nickTimeline {
    0%, 38% { opacity: 0; }
    48% { opacity: 0.7; }
    82% { opacity: 0.7; }
    92%, 100% { opacity: 0; }
}

.nickname-timeline-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.nickname-timeline-text {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-style: italic;
}

.nickname-alert {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: #f87171;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: nickAlert 6s ease-in-out infinite;
}

@keyframes nickAlert {
    0%, 50% { opacity: 0; transform: scale(0.9); }
    58% { opacity: 1; transform: scale(1); }
    84% { opacity: 1; }
    92%, 100% { opacity: 0; transform: scale(0.9); }
}


/* --- MESSAGE: Whole-message scan + flag --- */
.message-demo {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.8;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.msg-scannable {
    animation: msgBorderFlag 5s ease-in-out infinite;
}

@keyframes msgBorderFlag {
    0%, 40% { border-color: rgba(255, 255, 255, 0.04); box-shadow: none; }
    50% { border-color: rgba(248, 113, 113, 0.5); box-shadow: inset 0 0 20px rgba(248, 113, 113, 0.05); }
    85% { border-color: rgba(248, 113, 113, 0.5); box-shadow: inset 0 0 20px rgba(248, 113, 113, 0.05); }
    95%, 100% { border-color: rgba(255, 255, 255, 0.04); box-shadow: none; }
}

.msg-scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.08), transparent);
    animation: msgScanSweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes msgScanSweep {
    0%, 15% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    45% { left: 100%; opacity: 1; }
    50%, 100% { left: 100%; opacity: 0; }
}

.msg-verdict {
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: #f87171;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: msgVerdict 5s ease-in-out infinite;
}

@keyframes msgVerdict {
    0%, 48% { opacity: 0; }
    55% { opacity: 1; }
    88% { opacity: 1; }
    95%, 100% { opacity: 0; }
}


/* --- LINK: URL deconstruct --- */
.url-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.url-display {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    position: relative;
}

.url-char-fake {
    display: inline-block;
    position: relative;
    animation: urlCharFake 4s ease-in-out infinite;
}

@keyframes urlCharFake {
    0%, 30% { color: var(--text-primary); transform: translateY(0); }
    45% { color: #f87171; transform: translateY(-4px); }
    80% { color: #f87171; transform: translateY(-4px); }
    95%, 100% { color: var(--text-primary); transform: translateY(0); }
}

.url-char-real {
    display: inline-block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: #34d399;
    opacity: 0;
    white-space: nowrap;
    animation: urlCharReal 4s ease-in-out infinite;
}

@keyframes urlCharReal {
    0%, 40% { opacity: 0; }
    50% { opacity: 1; }
    80% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

.url-verdict {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: #f87171;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: urlVerdict 4s ease-in-out infinite;
}

@keyframes urlVerdict {
    0%, 50% { opacity: 0; }
    60% { opacity: 1; }
    85% { opacity: 1; }
    95%, 100% { opacity: 0; }
}


/* --- MEDIA: File scan sweep --- */
.file-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-icon-wrap {
    position: relative;
    width: 56px;
    height: 64px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-icon-wrap .file-emoji {
    font-size: 1.8rem;
}

.file-scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: fileScan 3.5s ease-in-out infinite;
}

@keyframes fileScan {
    0%, 10% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    50% { top: 100%; opacity: 1; }
    55%, 100% { opacity: 0; }
}

.file-stamp {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #f87171;
    padding: 3px 10px;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
    animation: fileStamp 3.5s ease-in-out infinite;
}

@keyframes fileStamp {
    0%, 55% { opacity: 0; transform: scale(0.7) rotate(-5deg); }
    65% { opacity: 1; transform: scale(1) rotate(-2deg); }
    85% { opacity: 1; }
    95%, 100% { opacity: 0; transform: scale(0.7) rotate(-5deg); }
}


/* --- INTELLIGENCE: Signal convergence --- */
.intel-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    height: 60px;
}

.intel-signal {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
}

.intel-signal:nth-child(1) {
    background: #a78bfa;
    left: 15%;
    animation: sigConverge1 4s ease-in-out infinite;
}

.intel-signal:nth-child(2) {
    background: #22d3ee;
    left: 50%;
    top: 5px;
    animation: sigConverge2 4s ease-in-out infinite;
}

.intel-signal:nth-child(3) {
    background: #f87171;
    right: 15%;
    animation: sigConverge3 4s ease-in-out infinite;
}

@keyframes sigConverge1 {
    0%, 15% { left: 15%; opacity: 1; }
    50% { left: calc(50% - 5px); opacity: 1; }
    55%, 100% { left: calc(50% - 5px); opacity: 0; }
}

@keyframes sigConverge2 {
    0%, 15% { top: 5px; transform: translateX(-50%); opacity: 1; }
    50% { top: 50%; transform: translate(-50%, -50%); opacity: 1; }
    55%, 100% { top: 50%; transform: translate(-50%, -50%); opacity: 0; }
}

@keyframes sigConverge3 {
    0%, 15% { right: 15%; opacity: 1; }
    50% { right: calc(50% - 5px); opacity: 1; }
    55%, 100% { right: calc(50% - 5px); opacity: 0; }
}

.intel-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    white-space: nowrap;
    animation: intelBadge 4s ease-in-out infinite;
}

@keyframes intelBadge {
    0%, 52% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    60% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    88% { opacity: 1; }
    95%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}


/* --- FORENSIC: Report assembly --- */
.report-demo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(248, 113, 113, 0.04);
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transform: translateX(-8px);
}

.report-field:nth-child(1) { animation: reportFade 3s ease-in-out infinite 0s; }
.report-field:nth-child(2) { animation: reportFade 3s ease-in-out infinite 0.3s; }
.report-field:nth-child(3) { animation: reportFade 3s ease-in-out infinite 0.6s; }
.report-field:nth-child(4) { animation: reportFade 3s ease-in-out infinite 0.9s; }

@keyframes reportFade {
    0%, 10% { opacity: 0; transform: translateX(-8px); border-left-color: transparent; }
    25% { opacity: 1; transform: translateX(0); border-left-color: #f87171; }
    70% { opacity: 1; border-left-color: #f87171; }
    85%, 100% { opacity: 0; transform: translateX(-8px); border-left-color: transparent; }
}

.report-label {
    font-size: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 50px;
}

.report-value {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* --- FORENSIC: Admin action buttons --- */
.action-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
}

.action-btn:nth-child(1) {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
    animation: actionFade 4s ease-in-out infinite 0s;
}

.action-btn:nth-child(2) {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    animation: actionFade 4s ease-in-out infinite 0.4s;
}

.action-btn:nth-child(3) {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    animation: actionFade 4s ease-in-out infinite 0.8s;
}

@keyframes actionFade {
    0%, 10% { opacity: 0; transform: translateY(4px); }
    25% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; }
    85%, 100% { opacity: 0; transform: translateY(4px); }
}

/* --- IDENTITY: VIP member list --- */
.vip-demo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(167, 139, 250, 0.06);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0;
}

.vip-member:nth-child(1) { animation: vipFade 3.5s ease-in-out infinite 0s; }
.vip-member:nth-child(2) { animation: vipFade 3.5s ease-in-out infinite 0.3s; }
.vip-member:nth-child(3) { animation: vipFade 3.5s ease-in-out infinite 0.6s; }

@keyframes vipFade {
    0%, 10% { opacity: 0; transform: translateX(-6px); }
    25% { opacity: 1; transform: translateX(0); }
    70% { opacity: 1; }
    85%, 100% { opacity: 0; transform: translateX(-6px); }
}

.vip-shield {
    font-size: 1rem;
}


/* --- RESPONSE: Priority lanes --- */
.priority-demo {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 50px;
}

.priority-lane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.priority-lane-label {
    font-size: 0.55rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.priority-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.priority-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.priority-lane--express .priority-bar-fill {
    background: #2dd4bf;
    animation: priorityFast 4s ease-in-out infinite;
}

.priority-lane--standard .priority-bar-fill {
    background: #60a5fa;
    animation: prioritySlow 4s ease-in-out infinite;
}

@keyframes priorityFast {
    0% { width: 0%; }
    30% { width: 100%; }
    100% { width: 100%; }
}

@keyframes prioritySlow {
    0% { width: 0%; }
    70% { width: 100%; }
    100% { width: 100%; }
}


/* ===========================================
   9. DETAIL FOOTER + TIER BADGES
   =========================================== */

.detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid;
}

.tier-badge--free {
    color: var(--accent-green);
    border-color: rgba(0, 255, 170, 0.35);
    background: rgba(0, 255, 170, 0.06);
}

.tier-badge--pro {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.35);
    background: rgba(167, 139, 250, 0.06);
}

.detail-footer-note {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    opacity: 0.6;
}


/* ===========================================
   10. LOCKED SHIELD STATES
   =========================================== */

.shield-card--locked {
    opacity: 0.55;
    cursor: pointer;
}

.shield-card--locked .card-icon {
    filter: saturate(0.3) drop-shadow(0 0 8px var(--shield-glow));
}

.shield-card--locked:hover {
    opacity: 0.75;
    transform: translateY(-4px);
}

/* Locked overlay content */
.locked-panel {
    text-align: center;
    padding: 48px 24px 56px;
}

.locked-panel .locked-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.locked-panel .locked-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--shield-accent);
    margin-bottom: 8px;
}

.locked-panel .locked-status {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.locked-panel .locked-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* Teaser features (for behavioral/command) */
.locked-teasers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.locked-teaser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

.locked-teaser .teaser-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* ===========================================
   11. CLASSIFIED SPECIAL TREATMENT
   =========================================== */

.classified-panel {
    text-align: center;
    padding: 48px 24px;
    position: relative;
    overflow: visible;
}

/* Background scanline effect */
.classified-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(232, 121, 249, 0.02) 2px,
        rgba(232, 121, 249, 0.02) 4px
    );
    pointer-events: none;
}

.classified-stamp {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 900;
    color: #f87171;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0;
    animation: stampSlam 3s ease-in-out infinite;
}

@keyframes stampSlam {
    0%, 10% { opacity: 0; transform: scale(2) rotate(-8deg); }
    18% { opacity: 1; transform: scale(1) rotate(-2deg); }
    85% { opacity: 1; transform: scale(1) rotate(-2deg); }
    95%, 100% { opacity: 0; transform: scale(0.9) rotate(-2deg); }
}

.classified-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xs);
    color: #e879f9;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: classifiedFade 3s ease-in-out infinite 0.4s;
}

@keyframes classifiedFade {
    0%, 8% { opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    95%, 100% { opacity: 0; }
}

.classified-protocol {
    max-width: 460px;
    margin: 0 auto 24px;
    text-align: left;
}

.classified-protocol-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fs-xs);
    color: #e879f9;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 2px solid #e879f9;
}

.classified-protocol-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.5;
}

.classified-protocol-item .proto-letter {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #e879f9;
    min-width: 16px;
}

.classified-quote {
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 2px solid rgba(232, 121, 249, 0.3);
    font-style: italic;
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    line-height: 1.6;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.classified-quote-author {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: #e879f9;
    letter-spacing: 1px;
}


/* ===========================================
   12. RESPONSIVE BREAKPOINTS
   =========================================== */

/* --- TABLET (768px+) --- */
@media (min-width: 768px) {
    .shields-header {
        padding: 120px 20px 40px;
    }

    /* Grid: Row 1 = 2col, Row 2 = 2col, Row 3 = 3col */
    .shield-row--active { grid-template-columns: repeat(2, 1fr); }
    .shield-row--ops    { grid-template-columns: repeat(3, 1fr); }
    .shield-row--horizon { grid-template-columns: repeat(3, 1fr); }

    /* Capability grids */
    .cap-grid--2col { grid-template-columns: repeat(2, 1fr); }
    .cap-grid--3col { grid-template-columns: repeat(3, 1fr); }

    /* Overlay sizing */
    .shield-overlay {
        width: 88%;
        max-width: 720px;
    }

    .overlay-body {
        padding: 8px 40px 40px;
    }
}

/* --- DESKTOP (1200px+) --- */
@media (min-width: 1200px) {
    /* Row 1: 4 shields across */
    .shield-row--active { grid-template-columns: repeat(4, 1fr); }

    /* Row 2 & 3: 3 shields centered */
    .shield-row--ops    { grid-template-columns: repeat(3, 1fr); }
    .shield-row--horizon { grid-template-columns: repeat(3, 1fr); }

    .shields-grid-wrap {
        padding: 0 40px 80px;
    }

    .shield-overlay {
        max-width: 780px;
        min-height: 360px;
    }
}
