﻿/* ===== CSS Custom Properties ===== */
:root {
    --bg-primary: #060c1e;
    --bg-secondary: #080f22;
    --bg-tertiary: #0b1428;
    --bg-card: rgba(8, 16, 38, 0.75);
    --bg-card-solid: #0a1530;
    --bg-sidebar: #040810;
    --blue-50: rgba(59,130,246,0.06);
    --blue-100: rgba(59,130,246,0.12);
    --blue-200: rgba(59,130,246,0.22);
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a5f;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --emerald-400: #34d399;
    --amber-400: #fbbf24;
    --rose-400: #f87171;
    --text-primary: #dce8ff;
    --text-secondary: #8bafd4;
    --text-muted: #4a6282;
    --border-subtle: rgba(59, 130, 246, 0.14);
    --border-glow: rgba(59, 130, 246, 0.32);
    --glow-blue: 0 0 40px rgba(59, 130, 246, 0.18);
    --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.18);
    --sidebar-width: 260px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better default focus visibility */
:focus-visible {
    outline: 2px solid rgba(68, 227, 255, 0.75);
    outline-offset: 2px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 1400px 700px at 75% -5%, rgba(59, 130, 246, 0.13), transparent 60%),
        radial-gradient(ellipse 1000px 600px at 5% 20%, rgba(6, 182, 212, 0.08), transparent 55%),
        radial-gradient(ellipse 800px 500px at 55% 110%, rgba(139, 92, 246, 0.06), transparent 50%),
        linear-gradient(160deg, #03061a 0%, var(--bg-primary) 35%, #050b1c 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--blue-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--cyan-400);
}

/* ===== LANDING PAGE ===== */
.landing-page {
position: relative;
overflow-x: hidden;
--text-primary: #ffffff;
--text-secondary: rgba(255, 255, 255, 0.9);
--text-muted: rgba(255, 255, 255, 0.65);
background: radial-gradient(1400px 700px at 70% -10%, rgba(30, 70, 160, 0.30), transparent 62%),
        radial-gradient(1100px 560px at 12% 12%, rgba(20, 60, 140, 0.20), transparent 58%),
        radial-gradient(900px 520px at 55% 120%, rgba(40, 80, 150, 0.15), transparent 55%),
        linear-gradient(135deg, #04081a 0%, #081430 55%, #04081a 100%);
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.landing-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Landing Nav */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    background: rgba(4, 6, 12, 0.55);
    border-bottom: 1px solid rgba(123, 182, 255, 0.14);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-logo .logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(34,211,238,0.35);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(34,211,238,0.16), 0 0 6px rgba(59,130,246,0.1);
    transition: box-shadow 0.25s, border-color 0.25s;
    backdrop-filter: blur(8px);
}

.landing-logo:hover .logo-wrap {
    border-color: rgba(34,211,238,0.6);
    box-shadow: 0 0 36px rgba(34,211,238,0.28), 0 0 12px rgba(59,130,246,0.18);
}

.landing-logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.landing-nav-links a {
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.landing-nav-links a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.landing-nav-links .btn-signin {
    color: var(--text-primary);
    background: rgba(79, 141, 255, 0.20);
    border: 1px solid rgba(79, 141, 255, 0.45);
}

.landing-nav-links .btn-signin:hover {
    background: var(--blue-600);
    border-color: var(--blue-500);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 80px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(4, 10, 20, 0.3);
    padding: 60px;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(123, 182, 255, 0.2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.25);
    border: 2px solid rgba(59, 130, 246, 0.8);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #7dd3fc;
    font-weight: 700;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #22d3ee;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px #22d3ee;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.gradient-text {
    color: #7dd3fc;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    border: 2px solid var(--blue-400);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-secondary-large:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--cyan-400);
    box-shadow: 0 15px 50px rgba(34, 211, 238, 0.3);
}

.hero-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 32px 48px;
    background: rgba(8, 14, 26, 0.7);
    border: 2px solid rgba(123, 182, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(40px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(79, 141, 255, 0.15);
}

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

.hero-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7dd3fc, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.2);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    font-weight: 600;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(123, 182, 255, 0.4), transparent);
}

/* ===== TRUSTED BY SECTION ===== */
.trusted-section {
    padding: 60px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.trusted-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    font-weight: 700;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
    background: rgba(4, 10, 20, 0.3);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(123, 182, 255, 0.2);
}

.trusted-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.06em;
    transition: all var(--transition-fast);
}

.trusted-logo:hover {
    transform: translateY(-2px) scale(1.05);
    color: #7dd3fc;
}

/* ===== SECTION STYLES ===== */
.features-section,
.integration-section,
.how-it-works-section,
.testimonials-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.blue-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: var(--blue-400);
}

.green-badge {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.purple-badge {
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.5);
    color: #a78bfa;
}

.amber-badge {
    background: rgba(251, 191, 36, 0.2);
    border: 2px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.feature-card {
    background: rgba(8, 14, 26, 0.75);
    border: 2px solid rgba(123, 182, 255, 0.35);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(40px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(79, 141, 255, 0.1);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 182, 255, 0.6);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 100px rgba(79, 141, 255, 0.25);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 40px;
}

.blue-glow {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

.amber-glow {
    background: rgba(251, 191, 36, 0.15);
    border: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}

.red-glow {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.green-glow {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}

.cyan-glow {
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
}

.purple-glow {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
}

.feature-icon {
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-list li::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    font-weight: 700;
    font-size: 0.75rem;
}

/* ===== INTEGRATION CARDS ===== */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.integration-card {
    background: rgba(8, 14, 26, 0.7);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(40px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all var(--transition-base);
}

.integration-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-400);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.3);
}

.integration-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--blue-400);
}

.integration-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

/* ===== HOW IT WORKS ===== */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    min-width: 220px;
    background: rgba(8, 14, 26, 0.7);
    border: 2px solid rgba(123, 182, 255, 0.3);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    backdrop-filter: blur(40px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4), 0 0 60px rgba(79, 141, 255, 0.1);
    transition: all var(--transition-base);
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan-400);
    box-shadow: 0 25px 70px rgba(0,0,0,0.6), 0 0 100px rgba(6, 182, 212, 0.3);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    border: 3px solid rgba(8, 14, 26, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.step-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 24px auto 20px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-400);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.step-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(123, 182, 255, 0.5), rgba(6, 182, 212, 0.5));
    position: relative;
    margin: 0 -1px;
    flex-shrink: 0;
}

.step-connector::after {
    content: '?';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan-400);
    font-size: 1.2rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: rgba(8, 14, 26, 0.75);
    border: 2px solid rgba(123, 182, 255, 0.35);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(40px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(79, 141, 255, 0.1);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 182, 255, 0.6);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 100px rgba(79, 141, 255, 0.25);
}

.testimonial-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    border: 2px solid;
}

.blue-avatar {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    border-color: var(--cyan-400);
}

.purple-avatar {
    background: linear-gradient(135deg, #a78bfa, var(--blue-500));
    border-color: #a78bfa;
}

.cyan-avatar {
    background: linear-gradient(135deg, var(--cyan-500), #22c55e);
    border-color: #22c55e;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-container {
    background: rgba(8, 14, 26, 0.8);
    border: 3px solid rgba(123, 182, 255, 0.4);
    border-radius: 28px;
    padding: 64px 48px;
    backdrop-filter: blur(60px);
    box-shadow: 0 30px 100px rgba(0,0,0,0.6), 0 0 120px rgba(79, 141, 255, 0.2);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.cta-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(123, 182, 255, 0.2);
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-feature svg {
    color: #4ade80;
}

/* Old Hero Section - keeping for compatibility */
.landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--blue-400);
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(191,219,254,0.95) 45%, rgba(68,227,255,0.92) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* Dashboard Preview */
.dashboard-preview {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.preview-window {
    background: rgba(8, 14, 26, 0.76);
    border: 1px solid rgba(123, 182, 255, 0.24);
    border-radius: var(--radius-xl);
    padding: 20px 24px 28px;
    backdrop-filter: blur(40px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(79, 141, 255, 0.10);
}

.window-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dots .dot-red { background: #ff5f57; }
.window-dots .dot-yellow { background: #febc2e; }
.window-dots .dot-green { background: #28c840; }

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(12, 22, 42, 0.70);
    border: 1px solid rgba(123, 182, 255, 0.22);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.2rem;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan-400); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.floating-card.audit {
    top: -10px;
    right: -60px;
    animation-delay: 0s;
}

.floating-card.ai-rec {
    bottom: 60px;
    left: -70px;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.floating-card .card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.floating-card .card-icon.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.floating-card .card-icon.amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.floating-card .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.floating-card .card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 38px;
}

/* Preview bar chart */
.preview-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 80px;
    padding-top: 10px;
}

.preview-bar-chart .bar {
    width: 32px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(68,227,255,0.95), rgba(47,107,255,0.95));
    transition: height var(--transition-base);
    position: relative;
}

.preview-bar-chart .bar:nth-child(6)::after {
    content: '?';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyan-400);
    font-size: 0.7rem;
}

/* Side nav dots */
.preview-side-nav {
    position: absolute;
    right: -110px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.preview-side-nav .nav-dot-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-side-nav .nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-side-nav .nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: transparent;
}

.preview-side-nav .nav-dot.active {
    background: var(--cyan-400);
    border-color: var(--cyan-400);
    box-shadow: 0 0 10px var(--cyan-400);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.65);
    background: radial-gradient(1200px 600px at 70% -10%, rgba(47, 107, 255, 0.20), transparent 60%),
        radial-gradient(900px 480px at 10% 10%, rgba(68, 227, 255, 0.12), transparent 55%),
        linear-gradient(180deg, #03040a 0%, #05070f 40%, #03040a 100%);
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.login-card {
    width: 100%;
    background: rgba(4, 10, 20, 0.85);
    border: 3px solid transparent;
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(60px);
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.7), 
        0 0 120px rgba(79, 141, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: cardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, 
        rgba(79, 141, 255, 0.6) 0%, 
        rgba(6, 182, 212, 0.6) 50%, 
        rgba(79, 141, 255, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 1;
        filter: hue-rotate(20deg);
    }
}

@keyframes cardEntry {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-400);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), inset 0 0 40px rgba(59, 130, 246, 0.1);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), inset 0 0 40px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 80px rgba(6, 182, 212, 0.6), inset 0 0 60px rgba(6, 182, 212, 0.15);
    }
}

.login-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, white 0%, var(--cyan-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

/* Login Form */
.login-form {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-label svg {
    color: var(--blue-400);
}

.input-field {
    width: 100%;
    padding: 13px 16px;
    background: rgba(8, 14, 26, 0.7);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
    font-family: inherit;
}

.input-field:focus {
    border-color: rgba(6, 182, 212, 0.8);
    background: rgba(8, 14, 26, 0.9);
    box-shadow: 
        0 0 0 4px rgba(6, 182, 212, 0.15), 
        0 0 40px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.password-toggle:hover {
    color: var(--cyan-400);
    background: rgba(6, 182, 212, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(123, 182, 255, 0.4);
    border-radius: 5px;
    background: rgba(8, 14, 26, 0.7);
    cursor: pointer;
    transition: all var(--transition-fast);
    accent-color: var(--cyan-500);
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--cyan-500);
    border-color: var(--cyan-400);
}

.checkbox-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    user-select: none;
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--cyan-400);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.forgot-password:hover {
    color: var(--cyan-300);
    text-decoration: underline;
}

/* Primary Login Button */
.btn-login-primary {
    width: 100%;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    border: 2px solid rgba(6, 182, 212, 0.6);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 
        0 12px 40px rgba(6, 182, 212, 0.4), 
        0 0 60px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: 0.02em;
}

.btn-login-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 18px 50px rgba(6, 182, 212, 0.6), 
        0 0 100px rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.btn-login-primary:active {
    transform: translateY(-1px);
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(123, 182, 255, 0.2);
}

.login-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.signup-link {
    color: var(--cyan-400);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.signup-link:hover {
    color: var(--cyan-300);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 28px 24px;
    }
}

.login-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 28px;
    padding: 3px;
    background: linear-gradient(135deg, 
        rgba(79, 141, 255, 0.6) 0%, 
        rgba(6, 182, 212, 0.6) 50%, 
        rgba(79, 141, 255, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 1;
        filter: hue-rotate(20deg);
    }
}

@keyframes cardEntry {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-400);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), inset 0 0 40px rgba(59, 130, 246, 0.1);
    animation: iconPulse 3s ease-in-out infinite;
}

.login-icon svg {
    width: 36px;
    height: 36px;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), inset 0 0 40px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 80px rgba(6, 182, 212, 0.6), inset 0 0 60px rgba(6, 182, 212, 0.15);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, white 0%, var(--cyan-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Login Form */
.login-form {
    margin-bottom: 28px;
}

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

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-label svg {
    color: var(--blue-400);
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: rgba(8, 14, 26, 0.7);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
    font-family: inherit;
}

.input-field:focus {
    border-color: rgba(6, 182, 212, 0.8);
    background: rgba(8, 14, 26, 0.9);
    box-shadow: 
        0 0 0 4px rgba(6, 182, 212, 0.15), 
        0 0 40px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.password-toggle:hover {
    color: var(--cyan-400);
    background: rgba(6, 182, 212, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(123, 182, 255, 0.4);
    border-radius: 6px;
    background: rgba(8, 14, 26, 0.7);
    cursor: pointer;
    transition: all var(--transition-fast);
    accent-color: var(--cyan-500);
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--cyan-500);
    border-color: var(--cyan-400);
}

.checkbox-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    user-select: none;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--cyan-400);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.forgot-password:hover {
    color: var(--cyan-300);
    text-decoration: underline;
}

/* Primary Login Button */
.btn-login-primary {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    border: 2px solid rgba(6, 182, 212, 0.6);
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 
        0 12px 40px rgba(6, 182, 212, 0.4), 
        0 0 60px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: 0.02em;
}

.btn-login-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 18px 50px rgba(6, 182, 212, 0.6), 
        0 0 100px rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.btn-login-primary:active {
    transform: translateY(-1px);
}

/* Divider */
.login-divider {
    position: relative;
    text-align: center;
    margin: 24px 0 20px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 182, 255, 0.3), transparent);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    display: inline-block;
    padding: 0 16px;
    background: rgba(4, 10, 20, 0.8);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: rgba(8, 14, 26, 0.7);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    border-color: rgba(123, 182, 255, 0.6);
    background: rgba(8, 14, 26, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 141, 255, 0.3);
}

.social-btn svg {
    flex-shrink: 0;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(123, 182, 255, 0.2);
}

.login-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.signup-link {
    color: var(--cyan-400);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.signup-link:hover {
    color: var(--cyan-300);
    text-decoration: underline;
}

/* Floating Info Cards */
.info-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: rgba(4, 10, 20, 0.9);
    border: 2px solid rgba(123, 182, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(79, 141, 255, 0.15);
    animation: floatCard 6s ease-in-out infinite;
    z-index: 10;
}

.info-card-1 {
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.info-card-2 {
    bottom: -80px;
    left: -80px;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.info-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 44px 32px;
    }
    
    .info-card {
        display: none;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--blue-400);
    font-weight: 500;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(160deg, #080f26 0%, #0b152e 45%, #080e1f 100%);
    border-right: none;
    box-shadow: 4px 0 48px rgba(0, 0, 0, 0.45), 2px 0 8px rgba(0, 0, 0, 0.25), inset -1px 0 0 rgba(59, 130, 246, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.36);
    --border-subtle: rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.2) transparent;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 20%, rgba(34, 211, 238, 1) 50%, rgba(59, 130, 246, 0.6) 80%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.2); border-radius: 2px; }

.sidebar-header {
    padding: 24px 16px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.sidebar-logo .logo-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(34,211,238,0.52);
    box-shadow: 0 0 0 5px rgba(34,211,238,0.08), 0 0 26px rgba(34,211,238,0.26), 0 0 8px rgba(59,130,246,0.18);
    background: rgba(255,255,255,0.03);
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo:hover .logo-wrap {
    border-color: rgba(34,211,238,0.78);
    box-shadow: 0 0 0 5px rgba(34,211,238,0.13), 0 0 38px rgba(34,211,238,0.42), 0 0 12px rgba(59,130,246,0.24);
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(3) translateY(4px);
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    list-style: none;
}

.sidebar-nav .nav-section {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 20px 12px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-nav .nav-section::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.5);
    flex-shrink: 0;
}

.sidebar-nav .nav-item {
    list-style: none;
}

.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    margin-bottom: 1px;
    letter-spacing: -0.01em;
}

.sidebar-nav .nav-item a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.sidebar-nav .nav-item a.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 100%);
    box-shadow: inset 3px 0 0 #22d3ee, 0 0 20px rgba(34, 211, 238, 0.08);
    font-weight: 600;
}

.sidebar-nav .nav-item .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 211, 238, 0.65);
    opacity: 1;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.sidebar-nav .nav-item a.active .nav-icon,
.sidebar-nav .nav-item a:hover .nav-icon {
    color: #22d3ee;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: rgba(4, 8, 20, 0.3);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.3), 0 0 32px rgba(59, 130, 246, 0.15);
    flex-shrink: 0;
}

.sidebar-user .user-info {
    flex: 1;
}

.sidebar-user .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-user .user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-subtle: rgba(99, 155, 250, 0.14);
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: #eef3ff;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(99, 155, 250, 0.16);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 20px rgba(59, 130, 246, 0.08);
}

.main-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius-sm);
    color: #2563eb;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.header-btn:hover {
    background: rgba(59, 130, 246, 0.13);
    color: #1d4ed8;
    box-shadow: 0 0 20px rgba(59,130,246,0.12);
}

.main-body {
    padding: 32px;
}

/* ===== Dashboard Cards ===== */
.grid-cards {
    display: grid;
    gap: 20px;
}

.grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #ffffff;
    border: 1px solid rgba(99, 155, 250, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: none;
    box-shadow: 0 2px 16px rgba(59, 130, 246, 0.07), 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.3), rgba(59, 130, 246, 0.18), transparent);
    pointer-events: none;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(34, 211, 238, 0.15), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

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

.card-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.card-icon-sm.blue  { background: rgba(59, 130, 246, 0.14); color: #60a5fa; box-shadow: 0 0 20px rgba(59,130,246,0.22), inset 0 0 12px rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.22); }
.card-icon-sm.cyan  { background: rgba(6, 182, 212, 0.14); color: #22d3ee; box-shadow: 0 0 20px rgba(6,182,212,0.22), inset 0 0 12px rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.22); }
.card-icon-sm.purple{ background: rgba(139, 92, 246, 0.14); color: #a78bfa; box-shadow: 0 0 20px rgba(139,92,246,0.22), inset 0 0 12px rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.22); }
.card-icon-sm.green { background: rgba(34, 197, 94, 0.14); color: #4ade80; box-shadow: 0 0 20px rgba(34,197,94,0.22), inset 0 0 12px rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.22); }
.card-icon-sm.amber { background: rgba(251, 191, 36, 0.14); color: #fbbf24; box-shadow: 0 0 20px rgba(251,191,36,0.22), inset 0 0 12px rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.22); }
.card-icon-sm.red   { background: rgba(248, 113, 113, 0.14); color: #f87171; box-shadow: 0 0 20px rgba(248,113,113,0.22), inset 0 0 12px rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.22); }

.card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.card .big-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.card .card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.card .trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    margin-top: 8px;
}

.card .trend.up   { color: #15803d; background: rgba(22,163,74,0.08);  border: 1px solid rgba(22,163,74,0.18); }
.card .trend.down { color: #b91c1c; background: rgba(220,38,38,0.08);  border: 1px solid rgba(220,38,38,0.18); }

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.green  { background: rgba(220,252,231,0.9);  color: #15803d; border: 1px solid rgba(22,163,74,0.22); }
.status-badge.amber  { background: rgba(254,243,199,0.9);  color: #b45309; border: 1px solid rgba(217,119,6,0.22); }
.status-badge.red    { background: rgba(254,226,226,0.9);  color: #b91c1c; border: 1px solid rgba(220,38,38,0.22); }
.status-badge.blue   { background: rgba(219,234,254,0.9);  color: #1d4ed8; border: 1px solid rgba(59,130,246,0.22); }
.status-badge.violet { background: rgba(237,233,254,0.9);  color: #6d28d9; border: 1px solid rgba(109,40,217,0.22); }

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(99, 155, 250, 0.18);
    background: rgba(238, 243, 255, 0.85);
}

.data-table td {
    padding: 13px 16px;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid rgba(99, 155, 250, 0.1);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td {
    background: rgba(239, 246, 255, 0.9);
    color: #0f172a;
}

/* Progress bar */
.progress-bar-custom {
    width: 100%;
    height: 6px;
    background: rgba(99, 155, 250, 0.14);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-custom .fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
    transition: width var(--transition-slow);
}

.rag-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.rag-dot.red   { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.rag-dot.amber { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.rag-dot.green { background: #16a34a; box-shadow: 0 0 8px rgba(22, 163, 74, 0.5); }

/* Mini chart containers */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    margin-top: 12px;
    position: relative;
}

.mini-chart .bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, rgba(34,211,238,0.9), rgba(59,130,246,0.9));
    box-shadow: 0 0 6px rgba(34,211,238,0.3);
    transition: opacity var(--transition-fast);
}

.mini-chart:hover .bar {
    opacity: 1;
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
}

/* Network graph placeholder */
.graph-placeholder {
    width: 100%;
    height: 300px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 65%),
        rgba(4, 8, 22, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.graph-placeholder .node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-400);
    position: absolute;
    box-shadow: 0 0 16px var(--cyan-400), 0 0 32px rgba(34,211,238,0.3);
    animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% { box-shadow: 0 0 12px var(--blue-400); opacity: 0.8; }
    50% { box-shadow: 0 0 24px var(--cyan-400), 0 0 48px rgba(34,211,238,0.4); opacity: 1; }
}

.graph-placeholder .node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), transparent);
    transform-origin: left center;
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(135deg, #ffffff, var(--blue-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.mb-32 { margin-bottom: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== Scroll-triggered reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.reveal-left {
    transform: translateX(-40px) translateY(0);
}

.reveal.reveal-left.revealed {
    transform: translateX(0) translateY(0);
}

.reveal.reveal-right {
    transform: translateX(40px) translateY(0);
}

.reveal.reveal-right.revealed {
    transform: translateX(0) translateY(0);
}

.reveal.reveal-scale {
    transform: scale(0.92) translateY(20px);
}

.reveal.reveal-scale.revealed {
    transform: scale(1) translateY(0);
}

/* Staggered children inside a revealed parent */
.reveal.revealed > .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.revealed > .reveal-child:nth-child(2) { transition-delay: 0.10s; }
.reveal.revealed > .reveal-child:nth-child(3) { transition-delay: 0.15s; }
.reveal.revealed > .reveal-child:nth-child(4) { transition-delay: 0.20s; }
.reveal.revealed > .reveal-child:nth-child(5) { transition-delay: 0.25s; }
.reveal.revealed > .reveal-child:nth-child(6) { transition-delay: 0.30s; }

.reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed > .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Page transitions ===== */
.landing-overlay {
    animation: pageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .grid-cards.cols-3,
    .grid-cards.cols-4 { grid-template-columns: 1fr; }
    .grid-cards.cols-2 { grid-template-columns: 1fr; }
    .landing-nav { padding: 16px 20px; }
    .landing-hero { padding: 40px 20px; }
    .preview-stats { grid-template-columns: 1fr; }
    .floating-card { display: none; }
    .preview-side-nav { display: none; }
    .main-body { padding: 20px; }
}

/* ===== ABOUT & ARTICLES PAGES ===== */
.about-hero {
    padding: 140px 40px 100px;
    text-align: center;
    position: relative;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(4, 10, 26, 0.4);
    border: 2px solid rgba(123, 182, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #7dd3fc;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

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

.gradient-text {
    color: #7dd3fc;
}

.content-section {
    padding: 80px 40px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blue-badge { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); border: 2px solid rgba(59, 130, 246, 0.3); }
.purple-badge { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 2px solid rgba(139, 92, 246, 0.3); }
.green-badge { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 2px solid rgba(34, 197, 94, 0.3); }
.amber-badge { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 2px solid rgba(251, 191, 36, 0.3); }

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.content-card {
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.content-card:hover {
    border-color: rgba(123, 182, 255, 0.5);
    transform: translateY(-4px);
}

.content-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.blue-glow { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
.cyan-glow { background: rgba(6, 182, 212, 0.15); color: var(--cyan-400); box-shadow: 0 0 30px rgba(6, 182, 212, 0.3); }

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.content-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-paragraph {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.value-card {
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    border-color: rgba(123, 182, 255, 0.5);
    transform: translateY(-4px);
}

.value-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.value-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: rgba(123, 182, 255, 0.5);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 3px solid rgba(123, 182, 255, 0.3);
}

.blue-avatar { background: rgba(59, 130, 246, 0.2); color: var(--blue-400); }
.purple-avatar { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.cyan-avatar { background: rgba(6, 182, 212, 0.2); color: var(--cyan-400); }
.green-avatar { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.team-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.team-role { font-size: 0.85rem; color: var(--cyan-400); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.about-cta {
    text-align: center;
    padding: 60px 40px;
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.35);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

.cta-title { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.cta-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; }

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn-primary-large, .btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: white;
    border: none;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary-large {
    background: rgba(4, 10, 26, 0.4);
    color: var(--text-primary);
    border: 2px solid rgba(123, 182, 255, 0.35);
}

.btn-secondary-large:hover {
    border-color: rgba(123, 182, 255, 0.6);
    background: rgba(4, 10, 26, 0.6);
    transform: translateY(-2px);
}

/* Featured Article */
.featured-article {
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.35);
    border-radius: var(--radius-xl);
    padding: 48px;
    backdrop-filter: blur(20px);
    margin-bottom: 80px;
}

.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.article-date { font-size: 0.85rem; color: var(--text-muted); }
.article-read-time { font-size: 0.85rem; color: var(--text-muted); }

.featured-article-title { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; line-height: 1.3; }
.featured-article-excerpt { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); line-height: 1.7; margin-bottom: 32px; }

.article-author { display: flex; align-items: center; gap: 16px; }

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid rgba(123, 182, 255, 0.3);
}

.author-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.author-title { font-size: 0.85rem; color: var(--text-muted); }

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    cursor: pointer;
}

.article-card:hover {
    border-color: rgba(123, 182, 255, 0.5);
    transform: translateY(-4px);
}

.article-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.article-card-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; line-height: 1.4; }
.article-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(123, 182, 255, 0.15);
}

.article-author-small { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }

.author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid rgba(123, 182, 255, 0.3);
}

/* Newsletter CTA */
.newsletter-cta {
    text-align: center;
    padding: 60px 40px;
    background: rgba(4, 10, 26, 0.3);
    border: 2px solid rgba(123, 182, 255, 0.35);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-400);
}

.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto 16px; }

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(4, 10, 26, 0.4);
    border: 2px solid rgba(123, 182, 255, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(123, 182, 255, 0.6);
    background: rgba(4, 10, 26, 0.6);
}

.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-privacy { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Dashboard Page Headers ===== */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.page-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan-400);
    opacity: 0.8;
    margin-bottom: 8px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.55;
}

.page-actions {
    display: flex;
    justify-content: flex-end;
}

.report-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(99, 155, 250, 0.2);
    backdrop-filter: none;
    box-shadow: 0 2px 16px rgba(59, 130, 246, 0.07), 0 1px 4px rgba(0,0,0,0.04);
}

.report-field {
    display: grid;
    gap: 6px;
}

.report-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.report-select {
    appearance: none;
    background: rgba(239, 246, 255, 0.9);
    border: 1px solid rgba(99, 155, 250, 0.25);
    color: #0f172a;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 0.85rem;
    min-width: 148px;
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.report-select:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
    background: #ffffff;
}

.report-select option {
    background: #ffffff;
    color: #0f172a;
}

.header-btn.report-btn {
    height: 38px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.08));
    border-color: rgba(59, 130, 246, 0.28);
    color: #2563eb;
}

.header-btn.report-btn:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.12));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(236, 254, 255, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: #0e7490;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.1);
}

.table-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-chip {
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(99, 155, 250, 0.22);
    background: rgba(239, 246, 255, 0.7);
    color: #475569;
    user-select: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: #2563eb;
    background: rgba(219, 234, 254, 0.8);
}

.filter-chip.active {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(207, 250, 254, 0.7);
    color: #0e7490;
}

.signal-list {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.signal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 155, 250, 0.16);
    background: rgba(239, 246, 255, 0.6);
    transition: all var(--transition-fast);
}

.signal-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(219, 234, 254, 0.7);
}

.signal-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.signal-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    flex: 0 0 auto;
}

.signal-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signal-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.signal-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: #22d3ee;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(34, 211, 238, 0.08);
}

@media (max-width: 1024px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-form {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .report-select {
        min-width: 140px;
    }

    .table-filters {
        display: none;
    }
}

/* Login error message */
.login-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #fca5a5;
}

/* ===== Signal Cards (AI Scan Results) ===== */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding-top: 8px;
}

.signal-card {
    background: #ffffff;
    border: 1px solid rgba(99, 155, 250, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(59, 130, 246, 0.07), 0 1px 3px rgba(0,0,0,0.03);
}

.signal-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(34, 211, 238, 0.15);
    transform: translateY(-2px);
}

.signal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px 11px;
    border-bottom: 1px solid rgba(99, 155, 250, 0.12);
    background: rgba(238, 243, 255, 0.7);
    flex-shrink: 0;
}

.signal-card-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.signal-category-pill {
    background: rgba(219, 234, 254, 0.9);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.signal-trend { font-size: 10px; }

.signal-confidence {
    font-size: 21px;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    min-width: 48px;
    text-align: right;
    flex-shrink: 0;
}

.signal-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.signal-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.signal-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.signal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 14px;
    padding: 10px 12px;
    background: rgba(238, 243, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(99, 155, 250, 0.14);
}

.signal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signal-meta-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.signal-meta-value {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.signal-geo-block {
    background: rgba(239, 246, 255, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-left: 3px solid rgba(59, 130, 246, 0.6);
    border-radius: 7px;
    padding: 10px 12px;
}

.signal-action-block {
    background: rgba(240, 253, 244, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.22);
    border-left: 3px solid rgba(34, 197, 94, 0.55);
    border-radius: 7px;
    padding: 10px 12px;
}

.signal-financial-block {
    font-size: 12px;
    color: #475569;
    padding: 8px 0 0;
    border-top: 1px solid rgba(99, 155, 250, 0.15);
}

.signal-block-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.signal-block-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.signal-rootcause-block {
    background: rgba(255, 247, 237, 0.8);
    border: 1px solid rgba(234, 88, 12, 0.22);
    border-left: 3px solid rgba(234, 88, 12, 0.55);
    border-radius: 7px;
    padding: 10px 12px;
}

.signal-businessimpact-block {
    background: rgba(254, 242, 242, 0.8);
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-left: 3px solid rgba(220, 38, 38, 0.55);
    border-radius: 7px;
    padding: 10px 12px;
}

/* ===== Today's Scans Session Bar ===== */
.todays-scans-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(99, 155, 250, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.07);
}

.scans-bar-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
}

.scans-bar-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}

.scan-session-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(99, 155, 250, 0.22);
    background: rgba(239, 246, 255, 0.7);
    color: #475569;
    font-size: 11.5px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.scan-session-chip:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(224, 247, 252, 0.9);
    color: #0284c7;
    text-decoration: none;
}

.scan-session-chip.active {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(207, 250, 254, 0.8);
    color: #0e7490;
    font-weight: 600;
}

.scan-chip-sep {
    opacity: 0.35;
}


/* About & Articles responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-hero { padding: 100px 24px 60px; }
    .team-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .newsletter-form { flex-direction: column; }
}
@media (max-width: 1200px) {
    .signals-grid { grid-template-columns: 1fr; }
}

/* ===== AI Platform — New Utility Styles ===== */

/* Chart containers */
.chart-wrap {
    position: relative;
    width: 100%;
}

.chart-wrap canvas {
    border-radius: var(--radius-md);
}

/* AI pulse dot */
.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    flex-shrink: 0;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.ai-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* KPI metric delta */
.kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    margin-top: 6px;
}
.kpi-delta.up   { color: #15803d; background: rgba(220,252,231,0.8); border: 1px solid rgba(34,197,94,0.3); }
.kpi-delta.down { color: #b91c1c; background: rgba(254,226,226,0.8); border: 1px solid rgba(239,68,68,0.3); }
.kpi-delta.flat { color: #1d4ed8; background: rgba(219,234,254,0.8); border: 1px solid rgba(59,130,246,0.3); }

/* Data bar (inline bar in tables) */
.data-bar { display: flex; align-items: center; gap: 10px; }
.data-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(99, 155, 250, 0.14);
    border-radius: 3px;
    overflow: hidden;
}
.data-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    box-shadow: 0 0 8px rgba(34,211,238,0.35);
}
.data-bar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 36px;
    text-align: right;
}

/* Glow card border variants */
.card.accent-blue   { border-color: rgba(59,130,246,0.35);  box-shadow: 0 0 0 1px rgba(59,130,246,0.12),  0 4px 24px rgba(59,130,246,0.1); }
.card.accent-cyan   { border-color: rgba(34,211,238,0.35);  box-shadow: 0 0 0 1px rgba(34,211,238,0.12),  0 4px 24px rgba(34,211,238,0.08); }
.card.accent-green  { border-color: rgba(34,197,94,0.35);   box-shadow: 0 0 0 1px rgba(34,197,94,0.12),   0 4px 24px rgba(34,197,94,0.08); }
.card.accent-amber  { border-color: rgba(251,191,36,0.35);  box-shadow: 0 0 0 1px rgba(251,191,36,0.12),  0 4px 24px rgba(251,191,36,0.08); }
.card.accent-red    { border-color: rgba(239,68,68,0.35);   box-shadow: 0 0 0 1px rgba(239,68,68,0.12),   0 4px 24px rgba(239,68,68,0.08); }
.card.accent-violet { border-color: rgba(167,139,250,0.35); box-shadow: 0 0 0 1px rgba(167,139,250,0.12), 0 4px 24px rgba(167,139,250,0.08); }

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    margin: 8px 0;
}

/* Subtle grid mesh background on main-body */
.main-body {
    background-image:
        linear-gradient(rgba(99, 155, 250, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 155, 250, 0.055) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Sidebar enhancement — premium dark nav (utility override) */
.sidebar {
    background: linear-gradient(160deg, #080f26 0%, #0b152e 45%, #080e1f 100%);
}

/* RAG glow dots */
.rag-dot.red    { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.45); }
.rag-dot.amber  { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.45); }
.rag-dot.green  { background: #16a34a; box-shadow: 0 0 10px rgba(22, 163, 74, 0.45); }

/* Cytograph canvas */
#cytoCanvas {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.05) 0%, transparent 70%),
                rgba(238, 243, 255, 0.4);
}

/* ============================================================
   DESIGN SYSTEM v2 — Richer Components
   ============================================================ */

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(37,99,235,0.35); transform: translateY(-1px); color: #ffffff; }
.btn-ghost {
    background: rgba(239,246,255,0.85);
    color: #2563eb;
    border: 1px solid rgba(59,130,246,0.22);
}
.btn-ghost:hover { background: rgba(219,234,254,0.95); border-color: rgba(59,130,246,0.38); color: #1d4ed8; }
.btn-danger {
    background: rgba(254,242,242,0.9);
    color: #b91c1c;
    border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(254,226,226,0.95); border-color: rgba(239,68,68,0.38); }
.btn-sm { padding: 6px 13px; font-size: 0.78rem; }
.btn-xs { padding: 4px 9px; font-size: 0.72rem; }

/* ----- Section Label ----- */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.section-label-text {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(99,155,250,0.25), transparent);
}

/* ----- KPI Hero Banner ----- */
.kpi-hero {
    background: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 45%, #0284c7 100%);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30,58,138,0.18), 0 2px 8px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}
.kpi-hero::before {
    content: ''; position: absolute; top: -50px; right: -20px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,0.045); pointer-events: none;
}
.kpi-hero::after {
    content: ''; position: absolute; bottom: -70px; left: 42%;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,0.03); pointer-events: none;
}
.kpi-hero-main { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.kpi-hero-stat { text-align: center; }
.kpi-hero-stat .value { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.kpi-hero-stat .label { font-size: 0.67rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 5px; }
.kpi-hero-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.14); flex-shrink: 0; }
.kpi-hero-badge {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px; padding: 6px 14px; font-size: 0.76rem; font-weight: 700;
    color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 6px;
    position: relative; z-index: 1;
}
.kpi-hero-actions { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; flex-wrap: wrap; }
.kpi-hero-btn {
    padding: 8px 18px; border-radius: var(--radius-sm); font-size: 0.82rem;
    font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: all 0.2s ease;
}
.kpi-hero-btn.solid { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.kpi-hero-btn.solid:hover { background: rgba(255,255,255,0.27); }
.kpi-hero-btn.outline { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.18); }
.kpi-hero-btn.outline:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

/* ----- Card Header Strip ----- */
.card-head {
    margin: -24px -24px 18px;
    padding: 14px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.card-head.blue   { background: linear-gradient(135deg,rgba(37,99,235,0.07),rgba(14,165,233,0.04));   border-bottom: 1px solid rgba(59,130,246,0.13); }
.card-head.green  { background: linear-gradient(135deg,rgba(21,128,61,0.07),rgba(16,185,129,0.04));   border-bottom: 1px solid rgba(34,197,94,0.13); }
.card-head.amber  { background: linear-gradient(135deg,rgba(217,119,6,0.07),rgba(251,191,36,0.04));   border-bottom: 1px solid rgba(245,158,11,0.13); }
.card-head.red    { background: linear-gradient(135deg,rgba(185,28,28,0.07),rgba(239,68,68,0.04));    border-bottom: 1px solid rgba(239,68,68,0.13); }
.card-head.cyan   { background: linear-gradient(135deg,rgba(6,182,212,0.07),rgba(34,211,238,0.04));   border-bottom: 1px solid rgba(34,211,238,0.13); }
.card-head.violet { background: linear-gradient(135deg,rgba(124,58,237,0.07),rgba(167,139,250,0.04)); border-bottom: 1px solid rgba(167,139,250,0.13); }
.card-head-title { font-size: 0.82rem; font-weight: 700; color: #1e293b; }
.card-head-sub   { font-size: 0.72rem; color: #64748b; margin-top: 2px; }

/* ----- Stat Columns inside card ----- */
.stat-cols { display: flex; }
.stat-col {
    flex: 1; padding: 14px 16px; text-align: center;
    border-right: 1px solid rgba(99,155,250,0.1);
}
.stat-col:last-child { border-right: none; }
.stat-col-value { font-size: 1.55rem; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -0.02em; }
.stat-col-label { font-size: 0.67rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ----- Two-column stat grid inside card ----- */
.card-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 12px; }
.card-2col-label { font-size: 0.68rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.card-2col-value { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.card-2col-sub   { font-size: 0.74rem; color: #64748b; margin-top: 1px; }

/* ----- Activity Timeline ----- */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
    display: flex; gap: 13px; padding: 11px 0; position: relative;
}
.activity-item:not(:last-child)::after {
    content: ''; position: absolute; left: 13px; top: 40px; bottom: 0;
    width: 1px; background: rgba(99,155,250,0.15);
}
.activity-dot {
    width: 27px; height: 27px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative; z-index: 1;
}
.activity-dot.green  { background: rgba(220,252,231,0.9); color: #15803d; border: 1.5px solid rgba(34,197,94,0.3); }
.activity-dot.amber  { background: rgba(254,243,199,0.9); color: #b45309; border: 1.5px solid rgba(245,158,11,0.3); }
.activity-dot.red    { background: rgba(254,226,226,0.9); color: #b91c1c; border: 1.5px solid rgba(239,68,68,0.3); }
.activity-dot.blue   { background: rgba(219,234,254,0.9); color: #1d4ed8; border: 1.5px solid rgba(59,130,246,0.3); }
.activity-dot.cyan   { background: rgba(207,250,254,0.9); color: #0e7490; border: 1.5px solid rgba(34,211,238,0.3); }
.activity-dot.violet { background: rgba(237,233,254,0.9); color: #6d28d9; border: 1.5px solid rgba(139,92,246,0.3); }
.activity-content { flex: 1; min-width: 0; }
.activity-title { font-size: 0.875rem; font-weight: 600; color: #0f172a; line-height: 1.35; }
.activity-meta  { font-size: 0.77rem; color: #64748b; margin-top: 3px; }
.activity-time  { font-size: 0.72rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; padding-top: 3px; }

/* ----- Insight / Recommendation Cards ----- */
.insight-card {
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(14,165,233,0.03));
    border: 1px solid rgba(59,130,246,0.2); border-left: 3px solid #2563eb;
    border-radius: var(--radius-md); padding: 13px 15px;
    display: flex; gap: 11px; align-items: flex-start;
}
.insight-card + .insight-card { margin-top: 9px; }
.insight-card.amber { background: linear-gradient(135deg,rgba(217,119,6,0.05),rgba(251,191,36,0.03)); border-color: rgba(245,158,11,0.2); border-left-color: #d97706; }
.insight-card.red   { background: linear-gradient(135deg,rgba(185,28,28,0.05),rgba(239,68,68,0.03));  border-color: rgba(239,68,68,0.2);   border-left-color: #b91c1c; }
.insight-card.green { background: linear-gradient(135deg,rgba(21,128,61,0.05),rgba(34,197,94,0.03));  border-color: rgba(34,197,94,0.2);   border-left-color: #15803d; }
.insight-icon     { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.insight-body-wrap { flex: 1; min-width: 0; }
.insight-title    { font-size: 0.84rem; font-weight: 700; color: #0f172a; }
.insight-body     { font-size: 0.79rem; color: #475569; margin-top: 3px; line-height: 1.55; }

/* ----- Ring Progress (SVG-based) ----- */
.ring-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ring-svg  { overflow: visible; }
.ring-label-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-value { font-size: 1.3rem; font-weight: 800; color: #0f172a; line-height: 1; }
.ring-sub   { font-size: 0.6rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 2px; }
.ring-stat  { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ring-name  { font-size: 0.82rem; font-weight: 600; color: #334155; text-align: center; }
.ring-note  { font-size: 0.73rem; color: #64748b; text-align: center; }

/* ----- Score Badge ----- */
.score-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--radius-sm);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
}
.score-badge.excellent { background: rgba(220,252,231,0.9); color: #15803d; }
.score-badge.good      { background: rgba(219,234,254,0.9); color: #1d4ed8; }
.score-badge.fair      { background: rgba(254,243,199,0.9); color: #b45309; }
.score-badge.poor      { background: rgba(254,226,226,0.9); color: #b91c1c; }

/* ----- Metric Comparison Rows ----- */
.metric-vs-list { display: flex; flex-direction: column; }
.metric-vs { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(99,155,250,0.09); }
.metric-vs:last-child { border-bottom: none; }
.metric-vs-label     { flex: 1; font-size: 0.85rem; color: #334155; font-weight: 500; min-width: 90px; }
.metric-vs-bar-wrap  { flex: 2; height: 6px; background: rgba(99,155,250,0.12); border-radius: 3px; overflow: hidden; }
.metric-vs-bar-fill  { height: 100%; border-radius: 3px; transition: width 0.7s ease; }
.metric-vs-value     { font-size: 0.85rem; font-weight: 700; color: #0f172a; min-width: 36px; text-align: right; }

/* ----- Heat Cells ----- */
.heat-cell {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 3px 9px; border-radius: 4px;
    font-size: 0.74rem; font-weight: 700; min-width: 36px;
}
.heat-low      { background: rgba(220,252,231,0.85); color: #15803d; }
.heat-medium   { background: rgba(254,243,199,0.85); color: #b45309; }
.heat-high     { background: rgba(254,226,226,0.85); color: #b91c1c; }
.heat-critical { background: rgba(185,28,28,0.1);   color: #7f1d1d; border: 1px solid rgba(185,28,28,0.2); }

/* ----- Tag Chips ----- */
.tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.71rem; font-weight: 600;
    background: rgba(219,234,254,0.85); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.18);
}
.tag.orange { background: rgba(255,237,213,0.9); color: #c2410c; border-color: rgba(234,88,12,0.2); }
.tag.purple { background: rgba(237,233,254,0.9); color: #6d28d9; border-color: rgba(139,92,246,0.2); }
.tag.teal   { background: rgba(204,251,241,0.9); color: #0f766e; border-color: rgba(20,184,166,0.2); }
.tag.red    { background: rgba(254,226,226,0.9); color: #b91c1c; border-color: rgba(239,68,68,0.2); }

/* ----- Two-panel split layout ----- */
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width:860px) { .split-panel { grid-template-columns: 1fr; } }

/* ----- Numbered list rows ----- */
.num-list { display: flex; flex-direction: column; gap: 0; }
.num-row  {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 0; border-bottom: 1px solid rgba(99,155,250,0.09);
}
.num-row:last-child { border-bottom: none; }
.num-badge {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800;
    background: rgba(219,234,254,0.8); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.2);
}
.num-badge.red    { background: rgba(254,226,226,0.8); color: #b91c1c; border-color: rgba(239,68,68,0.2); }
.num-badge.amber  { background: rgba(254,243,199,0.8); color: #b45309; border-color: rgba(245,158,11,0.2); }
.num-badge.green  { background: rgba(220,252,231,0.8); color: #15803d; border-color: rgba(34,197,94,0.2); }

/* ----- Coverage meter (thick gradient bar) ----- */
.coverage-meter { margin-top: 6px; }
.coverage-meter-track {
    height: 10px; background: rgba(99,155,250,0.12);
    border-radius: 999px; overflow: hidden; position: relative;
}
.coverage-meter-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    box-shadow: 0 0 8px rgba(34,211,238,0.3);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ----- Trend arrow chip ----- */
.trend-up   { color: #15803d; font-size: 0.78rem; font-weight: 700; }
.trend-down { color: #b91c1c; font-size: 0.78rem; font-weight: 700; }
.trend-flat { color: #64748b; font-size: 0.78rem; font-weight: 700; }

