/* ==========================================================================
   NoFOMO AI - PREMIUM STARTUP DESIGN SYSTEM
   ========================================================================== */

/* DESIGN TOKENS */
:root {
    /* Sophisticated Charcoal & Dark Slate */
    --bg-main: #09090b;
    --bg-card: rgba(18, 18, 20, 0.65);
    --bg-card-solid: #121214;
    --bg-modal: rgba(15, 15, 17, 0.98);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);

    /* HSL Tailored Brand Accents */
    --primary: hsl(250, 89%, 65%);       /* Premium Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --cyan: #06b6d4;                     /* Sleek Cyan */
    --cyan-glow: rgba(6, 182, 212, 0.15);
    --pink: #f43f5e;                     /* Warm Rose */
    --pink-glow: rgba(244, 63, 94, 0.15);
    --purple: #a855f7;                   /* Royal Violet */
    --purple-glow: rgba(168, 85, 247, 0.15);
    --orange: #f97316;                   /* Bright Amber */
    --orange-glow: rgba(249, 115, 22, 0.15);
    --green: #10b981;                    /* Emerald Success */
    --green-glow: rgba(16, 185, 129, 0.15);
    --red: #ef4444;                      /* Crimson Alert */
    --red-glow: rgba(239, 68, 68, 0.15);

    /* Typography & Hierarchy */
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

    /* Text Tones */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Layout & Motion */
    --border-radius: 14px;
    --border-radius-lg: 20px;
    --transition-speed: 0.25s;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --grid-gap: 24px;
}

/* RESET & CORE BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* BACKGROUND GRAPHICS & AMBIENCE */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.8;
    pointer-events: none;
}

/* Modern Gradient Glow Lights */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
}

.orb-1 {
    top: -10%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 85%);
    animation: floatOrb1 25s ease-in-out infinite;
}

.orb-2 {
    bottom: -10%;
    right: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 85%);
    animation: floatOrb2 30s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 15vh) scale(1.1); }
    66% { transform: translate(-5vw, 20vh) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10vw, -15vh) scale(1.2); }
    66% { transform: translate(5vw, -20vh) scale(0.85); }
    100% { transform: translate(0, 0) scale(1); }
}

/* MAIN CONTENT CONTAINER */
.hud-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* PREMIUM NAVIGATION HEADER */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: transform var(--transition-bounce), border-color var(--transition-speed);
}

.logo-icon:hover {
    transform: scale(1.08) rotate(4deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
}

.logo-copy {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    color: #ffffff;
}

.logo-accent {
    background: linear-gradient(135deg, var(--cyan), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Status Widget */
.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator-dot.online {
    background-color: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.status-indicator-dot.offline {
    background-color: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-icon:hover {
    color: #ffffff;
    border-color: var(--border-color-hover);
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

/* HERO PROUD INTRO */
.cyber-hero {
    text-align: center;
    padding: 24px 0 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 800px;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, var(--cyan), var(--primary), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

/* STARTUP GLASS CARD DESIGN SYSTEM */
.glass-card {
    background: linear-gradient(145deg, rgba(22, 22, 26, 0.7), rgba(15, 15, 18, 0.4));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform var(--transition-bounce), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Accent top lines */
.card-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.border-cyan { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.border-pink { background: linear-gradient(90deg, transparent, var(--pink), transparent); }
.border-purple { background: linear-gradient(90deg, transparent, var(--purple), transparent); }
.border-orange { background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.border-green { background: linear-gradient(90deg, transparent, var(--green), transparent); }

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

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.bg-cyan { background-color: var(--cyan) !important; }
.bg-pink { background-color: var(--pink) !important; }
.bg-purple { background-color: var(--purple) !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-green { background-color: var(--green) !important; }
.bg-red { background-color: var(--red) !important; }

.card-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* FORM CONTROLS & SCANNER INPUTS */
.cyber-panel {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.scanner-mode-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mode-toggle-group {
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 10px;
}

.mode-toggle-group input[type="radio"] {
    display: none;
}

.mode-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 7px;
    transition: all var(--transition-speed) ease;
    user-select: none;
    color: var(--text-secondary);
}

.mode-toggle-group input[type="radio"]:checked + .mode-btn {
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.required {
    color: var(--pink);
    margin-left: 2px;
}

.field-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.input-glow-container {
    position: relative;
    width: 100%;
}

.input-cyber {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
}

.input-cyber:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

select.input-cyber {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.textarea-cyber {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.error-msg {
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: none;
    margin-top: 8px;
}

/* EXPANDABLE ACCORDION */
.details-accordion {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.details-accordion:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color-hover);
}

.summary-btn {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    list-style: none;
}

.summary-btn::-webkit-details-marker {
    display: none;
}

.details-accordion[open] .summary-icon {
    transform: rotate(90deg);
}

.summary-icon {
    font-size: 0.75rem;
    transition: transform var(--transition-speed) ease;
    color: var(--text-muted);
}

.accordion-content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.1);
}

/* BUTTONS */
.btn-cyber-primary {
    background: linear-gradient(135deg, #ffffff, #e4e4e7);
    color: #000000;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
    border-radius: 12px;
    transition: all var(--transition-bounce);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-cyber-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.btn-cyber-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.btn-cyber-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all var(--transition-speed);
}

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

/* PRESETS SECTION */
.presets-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preset-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

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

.preset-buttons .btn-cyber-secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    text-align: left;
    gap: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
}

.preset-buttons .btn-cyber-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.preset-name {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.preset-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* SCANNING NEURAL OVERLAY LOAD SCREEN */
.scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed) ease;
}

.scanner-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.scanner-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.scanner-laser-line {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 2;
    animation: laser-scan 3.5s infinite ease-in-out;
}

.scanner-container {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 440px;
}

.scanner-hud-box {
    background-color: #121214;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hud-box-header {
    background-color: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scanning-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 1s infinite alternate;
}

.hud-box-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.hud-box-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.holoradial-container {
    width: 100px;
    height: 100px;
    position: relative;
}

.radar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(99, 102, 241, 0.15) 0deg, transparent 90deg);
    border-radius: 50%;
    animation: radar-sweep 2s infinite linear;
}

.radar-circle {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rc1 { width: 70%; height: 70%; }
.rc2 { width: 45%; height: 45%; }
.rc3 { width: 20%; height: 20%; }

.telemetry-log {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.log-row {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.active-log {
    color: #ffffff;
    font-weight: 600;
}

.completed-log {
    color: var(--text-muted);
}

.completed-log::before {
    content: '✓ ';
    color: var(--green);
    font-weight: bold;
}

/* RESULTS DASHBOARD */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fade-in-up var(--transition-speed) ease forwards;
}

.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
}

.target-name {
    color: #ffffff;
    font-weight: 700;
}

.dashboard-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

.dashboard-grid-layout .glass-card {
    opacity: 0;
    animation: fade-in-up 0.5s ease forwards;
}

.dashboard-grid-layout .glass-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid-layout .glass-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-grid-layout .glass-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-grid-layout .glass-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-grid-layout .glass-card:nth-child(5) { animation-delay: 0.5s; }

.grid-col-span-2 {
    grid-column: span 2;
}

/* DASHBOARD METRIC CARD BODY */
.dashboard-overview-body {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.fomo-meter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.fomo-score-ring {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
}

.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
}

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

.fomo-score-value {
    font-family: var(--font-title);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.fomo-score-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-top: 4px;
    text-transform: uppercase;
}

.submeters-row {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submeter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.submeter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar-cyber {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.submeter-val {
    align-self: flex-end;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
}

/* AI VERDICT INFORMATION COLUMN */
.verdict-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.verdict-banner-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verdict-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.verdict-badge {
    padding: 6px 16px;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.verdict-badge.v-buy { background-color: var(--green-glow); border: 1px solid var(--green); color: var(--green); }
.verdict-badge.v-wait { background-color: var(--cyan-glow); border: 1px solid var(--cyan); color: var(--cyan); }
.verdict-badge.v-research { background-color: var(--orange-glow); border: 1px solid var(--orange); color: var(--orange); }
.verdict-badge.v-avoid { background-color: var(--red-glow); border: 1px solid var(--red); color: var(--red); }

.advisor-confidence {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.confidence-val {
    color: #ffffff;
    font-weight: 700;
}

.verdict-text-block {
    background-color: rgba(255, 255, 255, 0.015);
    border-left: 3px solid var(--primary);
    padding: 16px;
    border-radius: 0 8px 8px 0;
}

.verdict-text-block h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.verdict-summary-paragraph {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.action-recommendation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommendation-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.recommendation-card {
    background-color: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #ffffff;
    font-weight: 500;
}

/* RISK ELEMENTS */
.tactic-section {
    margin-bottom: 20px;
}

.tactic-section:last-child {
    margin-bottom: 0;
}

.tactic-subtitle {
    font-family: var(--font-title);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.tactic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tactic-list li {
    font-size: 0.88rem;
    padding: 10px 14px;
    background-color: var(--red-glow);
    border-left: 3px solid var(--red);
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
}

.tactic-list li.safe {
    background-color: var(--green-glow);
    border-left-color: var(--green);
}

.tactic-empty {
    color: var(--text-muted) !important;
    background: none !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.tactics-analysis-box {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.015);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* PRODUCT RISK & PRO/CON SECTIONS */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-box {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-label {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.profile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
}

.profile-list li {
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
}

.profile-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.border-left-green { border-left: 3px solid var(--green); }
.border-left-red { border-left: 3px solid var(--red); }
.border-left-cyan { border-left: 3px solid var(--cyan); }
.border-left-purple { border-left: 3px solid var(--purple); }

.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-orange { color: var(--orange); }

.profile-paragraph {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* PREMIUM COLLABORATIVE ADVISOR CHAT */
.chat-terminal-body {
    display: flex;
    flex-direction: column;
    height: 380px;
    padding: 0 !important;
}

.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.chat-message.sys {
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    border-radius: 6px;
}

.chat-message.ai {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.message-sender {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.chat-message.ai .message-sender {
    color: var(--primary);
}

.chat-message.user {
    align-self: flex-end;
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.chat-message.user .message-sender {
    color: rgba(255, 255, 255, 0.7);
}

.chat-message.user .message-text {
    color: #ffffff;
}

.chat-input-row {
    display: flex;
    padding: 12px;
    gap: 12px;
    background-color: rgba(18, 18, 20, 0.85);
}

.chat-input-container {
    flex-grow: 1;
}

.btn-chat-submit {
    flex-shrink: 0;
    width: auto;
    padding: 12px 24px;
    height: 46px;
    font-size: 0.88rem;
}

/* SETTINGS MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed) ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    width: 90%;
    max-width: 460px;
    background-color: var(--bg-modal) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius-lg);
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.link-glow {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.link-glow:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* TOAST PANELS */
.toast-area {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background-color: #121214;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    animation: toast-in var(--transition-speed) ease forwards;
    font-weight: 500;
}

.toast.toast-error {
    border-left: 3px solid var(--red);
}

.toast.toast-success {
    border-left: 3px solid var(--green);
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.toast-close-btn:hover {
    color: #ffffff;
}

/* KEYFRAMES */
@keyframes laser-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

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

@keyframes pulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

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

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

.hidden {
    display: none !important;
}

/* RESPONSIVE LAYOUT SCALING */
@media (max-width: 992px) {
    .dashboard-grid-layout {
        grid-template-columns: 1fr;
    }
    .grid-col-span-2 {
        grid-column: span 1;
    }
    .dashboard-overview-body {
        flex-direction: column;
        gap: 24px;
    }
    .fomo-meter-wrapper {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    .submeters-row {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hud-container {
        padding: 24px 16px 48px 16px;
        gap: 32px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .preset-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .fomo-meter-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

/* CUSTOM SCROLLBARS */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
