@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== GLOBAL TEXT RENDERING ===== */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}
*, *::before, *::after {
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
}

/* ===== APP SHELL ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1.4rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo-icon {
    color: var(--accent);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(99,102,241,0.5));
}

.sidebar-logo-text {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 0.75rem;
    flex: 1;
    position: relative;
}

/* Gleitender Hintergrund, der dem Mauszeiger folgt */
.sidebar-glider {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transform: translateY(0);
    transition: transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1),
                height 0.26s cubic-bezier(0.34, 1.4, 0.64, 1),
                opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.15s;
    position: relative;
    z-index: 1;
}

.sidebar-link:hover {
    color: white;
}

.sidebar-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

.sidebar-icon {
    font-size: 0.8rem;
    width: 18px;
    text-align: center;
    opacity: 0.85;
}

.sidebar-role {
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-role-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}

.sidebar-role-btns {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: 7px;
    overflow: hidden;
}

.sidebar-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-name {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.15s;
}
.sidebar-logout:hover { color: #FCA5A5; }

.main-content {
    flex: 1;
    min-height: 100vh;
    overflow-y: auto;
    background: var(--bg);
}

/* ===== AUTH SPLIT SCREEN ===== */
.auth-page {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    width: 55%;
    background: linear-gradient(160deg, var(--primary) 0%, #071929 70%, #0a2540 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-left-inner {
    max-width: 460px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.auth-logo-icon {
    color: var(--accent);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(99,102,241,0.5));
}

.auth-logo-text {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.auth-hero { margin-bottom: 2.5rem; }

.auth-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.auth-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

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

.auth-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.auth-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 0.2rem;
}

.auth-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
}

.auth-feature-icon {
    font-size: 1.1rem;
    margin-top: 0.05rem;
    flex-shrink: 0;
}

.auth-feature strong {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.auth-feature span {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    line-height: 1.4;
}

.auth-disclaimer {
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.auth-right {
    width: 45%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-form-box h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.auth-form-sub {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

/* ===== WIZARD LAYOUT ===== */
.wizard-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.wizard-steps {
    width: 220px;
    flex-shrink: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 1.5rem;
}

.wstep {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: default;
}

.wstep-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.wstep.active .wstep-num {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(15,45,82,0.3);
}

.wstep.completed .wstep-num {
    background: var(--success);
    color: white;
}

.wstep-info { flex: 1; }

.wstep-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.2s;
}

.wstep.active .wstep-title { color: var(--primary); }
.wstep.completed .wstep-title { color: var(--success); }

.wstep-desc {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 0.1rem;
    opacity: 0.7;
}

.wstep-connector {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin: 0.3rem 0 0.3rem 15px;
    border-radius: 1px;
}

.wizard-body {
    flex: 1;
    min-width: 0;
}

/* Info box accent variant */
.info-box-accent {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    font-size: 0.875rem;
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:       #0F2D52;
    --primary-light: #1B4E8A;
    --accent:        #6366F1;
    --accent-light:  #818CF8;
    --success:       #059669;
    --warning:       #D97706;
    --danger:        #DC2626;
    --bg:            #F1F5F9;
    --card:          #FFFFFF;
    --text:          #1E293B;
    --text-light:    #64748B;
    --border:        #E2E8F0;

    /* Radius-Skala (--radius bleibt 12px für Bestand) */
    --radius-sm:     8px;
    --radius:        12px;
    --radius-md:     14px;
    --radius-lg:     18px;
    --radius-pill:   999px;

    /* Spacing-Skala */
    --space-1:       0.25rem;
    --space-2:       0.5rem;
    --space-3:       0.75rem;
    --space-4:       1rem;
    --space-5:       1.5rem;
    --space-6:       2rem;
    --space-8:       3rem;

    /* Shadow-Skala */
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow:        0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 6px rgba(0,0,0,0.07), 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg:     0 10px 15px rgba(0,0,0,0.07), 0 20px 40px rgba(0,0,0,0.10);

    --font-size-base: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: var(--font-size-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.font-small { --font-size-base: 14px; }
body.font-large { --font-size-base: 18px; }

/* ===== ACCESSIBILITY: Fokus-Ring für Tastatur-Navigation ===== */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===== UTILITY-KLASSEN ===== */
.hidden { display: none !important; }
.invisible { visibility: hidden; }

.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }

.row { display: flex; gap: var(--space-3); align-items: center; }
.row-between { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; }
.row-wrap { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.text-strong { font-weight: 600; }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }

/* ===== THEMES ===== */
body.theme-dark {
    --primary:       #1e1e2e;
    --primary-light: #313244;
    --bg:            #181825;
    --card:          #1e1e2e;
    --text:          #cdd6f4;
    --text-light:    #a6adc8;
    --border:        #313244;
    --shadow:        0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.3);
}
body.theme-dark .navbar { background: #11111b; border-bottom-color: #313244; }
body.theme-dark .auth-container { background: linear-gradient(160deg, #11111b 0%, #181825 100%); }
body.theme-dark .form-group input,
body.theme-dark .form-group select,
body.theme-dark .form-group textarea { background: #313244; color: #cdd6f4; border-color: #45475a; }

body.theme-green {
    --primary:       #064E3B;
    --primary-light: #065F46;
    --accent:        #10B981;
    --accent-light:  #34D399;
}

body.theme-warm {
    --primary:       #7C2D12;
    --primary-light: #9A3412;
    --accent:        #F97316;
    --accent-light:  #FB923C;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #FFFFFF;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--border);
}

.nav-brand {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.3px;
}

.logo { color: var(--accent); font-size: 1.3rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all 0.15s;
}
.nav-link:hover { color: var(--primary); background: var(--bg); }

.nav-user {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 0.5rem;
}

.logout-link { color: var(--text-light); margin-left: 0.25rem; }
.logout-link:hover { color: var(--danger); background: #FEF2F2; }

/* Role Switch in Navbar */
.nav-role-switch {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 0.5rem;
}

.role-btn {
    padding: 0.35rem 0.85rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.role-btn.active {
    background: var(--primary);
    color: white;
    border-radius: 7px;
}

.role-btn:hover:not(.active) { color: var(--primary); }

/* ===== AUTH ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(160deg, var(--primary) 0%, #071929 60%, #0a2540 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.logo-large {
    font-size: 2.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px rgba(99,102,241,0.4));
}

.auth-brand h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Intro / 83% Box */
.intro-box {
    margin-top: 1.75rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    backdrop-filter: blur(8px);
}

.intro-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.intro-badge-num {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.intro-badge-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.intro-text {
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.intro-text:last-child { margin-bottom: 0; }

.intro-text strong {
    color: #fff;
    font-weight: 600;
}

.intro-text-muted {
    color: rgba(255,255,255,0.5);
    font-size: 0.83rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.25rem;
}

.auth-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Role Selection Cards */
.role-select-container { margin-bottom: 1.5rem; }

.role-select-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-select-cards { display: flex; gap: 0.75rem; }

.role-card {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.role-card input[type="radio"] { display: none; }

.role-card.active {
    border-color: var(--primary);
    background: #F0F7FF;
    box-shadow: 0 0 0 3px rgba(15,45,82,0.1);
}

.role-card:hover:not(.active) { border-color: var(--accent); }

.role-card-icon { font-size: 1.75rem; margin-bottom: 0.4rem; }
.role-card-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; color: var(--text); }
.role-card-desc { font-size: 0.72rem; color: var(--text-light); line-height: 1.4; }

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.1rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    font-family: inherit;
    background: white;
    color: var(--text);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(99,102,241,0.10);
    transform: translateY(-1px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 4px 12px rgba(99,102,241,0.10);
    transform: translateY(-1px);
}

.form-row { display: flex; gap: 0.75rem; }

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.error-msg {
    background: #FEF2F2;
    color: var(--danger);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid #FECACA;
}

.page-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    letter-spacing: 0.1px;
}

.btn:active {
    transform: translateY(1px) scale(0.97) !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(15,45,82,0.28);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #047857; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(5,150,105,0.32); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #B91C1C; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(220,38,38,0.32); }

.btn-full { width: 100%; }
.btn-large { padding: 0.85rem 2rem; font-size: 1rem; }

/* ===== CONTAINER ===== */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== WELCOME ===== */
.welcome-section {
    background: linear-gradient(135deg, #1a4a7a 0%, #0a1f3c 100%);
    color: white;
    padding: 2rem 2.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '◆';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6rem;
    opacity: 0.06;
    color: white;
}

.welcome-section h2 {
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
}
.welcome-desc { opacity: 0.8; line-height: 1.55; font-size: 0.9rem; }

/* ===== FEATURE CARDS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}
.feature-card-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.feature-card h4 { font-size: 0.875rem; margin-bottom: 0.35rem; color: var(--primary); font-weight: 600; }
.feature-card p { font-size: 0.78rem; color: var(--text-light); line-height: 1.45; }

/* ===== DASHBOARD ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0 0 var(--radius) var(--radius);
}

.stat-number { font-size: 2.25rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }

.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 0.35rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }

.dashboard-actions { text-align: center; margin-bottom: 2rem; }

/* ===== STEPS ===== */
.steps {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    background: white;
    border: 1.5px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.2s;
}

.step.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(15,45,82,0.25);
}
.step.completed { background: var(--success); color: white; border-color: var(--success); }

.step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
}

.step:not(.active):not(.completed) .step-num {
    background: var(--bg);
    color: var(--text-light);
}

.step-content {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.step-content h3 {
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.step-info {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ===== FACTORS ===== */
.factor-group { margin-bottom: 1.75rem; }

.factor-group h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.factor-group-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    margin-top: 0.4rem;
}

.factor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}
.factor:last-child { border-bottom: none; }

.factor-info { flex: 1; }
.factor-info label { font-size: 0.875rem; display: block; font-weight: 600; color: var(--text); }
.factor-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.15rem; }

.rating-scale {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 210px;
}

.rating-scale input[type="range"] { flex: 1; accent-color: var(--primary); }

.range-value {
    background: var(--primary);
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem;
    flex-shrink: 0;
}

/* ===== RESULT / REPORT ===== */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-container {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.result-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-top::before {
    content: '◆';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.05;
}

.result-top h3 { font-size: 1.5rem; margin-bottom: 0.4rem; font-weight: 700; }
.result-pd { font-size: 3.75rem; font-weight: 800; margin: 0.75rem 0; letter-spacing: -2px; }

.result-risk-class {
    display: inline-block;
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.risk-1 { background: rgba(5,150,105,0.9);  color: white; }
.risk-2 { background: rgba(217,119,6,0.9);  color: white; }
.risk-3 { background: rgba(234,88,12,0.9);  color: white; }
.risk-4 { background: rgba(220,38,38,0.9);  color: white; }

.result-details { padding: 2rem; }
.result-section { margin-bottom: 2rem; }

.result-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prognosis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.prognosis-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
}

.prognosis-card .prog-label { font-size: 0.72rem; color: var(--text-light); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 500; }
.prognosis-card .prog-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--primary); }
.prognosis-card .prog-value { font-size: 1.5rem; font-weight: 800; }

.prog-positive { color: var(--success); }
.prog-neutral  { color: var(--warning); }
.prog-negative { color: var(--danger); }

/* Bar chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 160px;
    padding: 1rem 0;
    border-bottom: 2px solid var(--border);
}

.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }

.bar {
    width: 100%;
    max-width: 60px;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s;
    min-height: 4px;
}

.bar-label { font-size: 0.68rem; color: var(--text-light); text-align: center; }
.bar-value { font-size: 0.72rem; font-weight: 700; }

/* Matrix visual */
.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    max-width: 400px;
    margin: 1rem auto;
    border-radius: 10px;
    overflow: hidden;
}

.matrix-cell {
    padding: 1.2rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: white;
    position: relative;
}

.matrix-cell.q1 { background: var(--success); }
.matrix-cell.q2 { background: var(--warning); }
.matrix-cell.q3 { background: #EA580C; }
.matrix-cell.q4 { background: var(--danger); }

.matrix-cell.active-cell {
    outline: 4px solid var(--accent);
    outline-offset: -4px;
    transform: scale(1.06);
    z-index: 1;
}

.matrix-labels {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 0.5rem auto 0;
    font-size: 0.72rem;
    color: var(--text-light);
}

/* Risk table */
.risk-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.risk-table th, .risk-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.risk-table th { background: var(--bg); font-weight: 700; color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.risk-table tr.active-row { background: #F0FDF4; font-weight: 700; }

/* ===== MY RATINGS ===== */
.ratings-list { display: flex; flex-direction: column; gap: 0.75rem; }

.rating-card {
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s;
}

.rating-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.rating-card.risk-class-1 { border-left: 4px solid var(--success); }
.rating-card.risk-class-2 { border-left: 4px solid var(--warning); }
.rating-card.risk-class-3 { border-left: 4px solid #EA580C; }
.rating-card.risk-class-4 { border-left: 4px solid var(--danger); }

.rating-card-info h4 { margin-bottom: 0.2rem; font-size: 0.95rem; font-weight: 600; }
.rating-card-info p { font-size: 0.8rem; color: var(--text-light); }

.rating-card-pd { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }

.rating-card-actions { display: flex; gap: 0.5rem; }

.btn-small { padding: 0.35rem 0.75rem; font-size: 0.78rem; border-radius: 6px; }

.empty-state { text-align: center; padding: 3rem; color: var(--text-light); }

.recent-ratings h3 { margin-bottom: 1rem; color: var(--primary); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== SETTINGS ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.settings-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.settings-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.settings-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Toggle Switch */
.toggle-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.toggle-setting:last-child { border-bottom: none; }

.toggle-setting label:first-child {
    font-size: 0.875rem;
    font-weight: 500;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.25s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Role Switch Large */
.role-switch-large { display: flex; gap: 0.75rem; }

.role-switch-btn {
    flex: 1;
    padding: 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    font-family: inherit;
}

.role-switch-btn.active {
    border-color: var(--primary);
    background: #F0F7FF;
    box-shadow: 0 0 0 3px rgba(15,45,82,0.1);
}

.role-switch-btn:hover:not(.active) { border-color: var(--accent); }

.role-switch-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.role-switch-icon svg { width: 28px; height: 28px; stroke: currentColor; }
.role-switch-label { font-weight: 700; font-size: 0.875rem; display: block; margin-bottom: 0.2rem; color: var(--text); }
.role-switch-desc { font-size: 0.72rem; color: var(--text-light); }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== API / MATCHPOINT SEARCH ===== */
.settings-card-wide { grid-column: 1 / -1; }

.search-row { display: flex; gap: 0.5rem; }
.search-row input { flex: 1; }

.info-box {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.info-box a { color: var(--primary-light); font-weight: 600; text-decoration: none; }
.info-box a:hover { text-decoration: underline; }

.warning-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #78350F;
}

.api-status {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}
.api-status.connected    { background: #ECFDF5; color: #065F46; }
.api-status.disconnected { background: #FEF2F2; color: #991B1B; }

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Matchpoint search results */
.mp-results {
    max-height: 400px;
    overflow-y: auto;
    margin: 1rem 0;
}

.mp-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.mp-result-card:hover {
    border-color: var(--accent);
    background: #EFF4FF;
    transform: translateX(2px);
}

.mp-result-info { flex: 1; }
.mp-result-info h5 { font-size: 0.9rem; margin-bottom: 0.15rem; font-weight: 600; }
.mp-result-info p { font-size: 0.78rem; color: var(--text-light); }
.mp-result-symbol {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
}

/* Selected company */
.mp-selected {
    background: #EFF4FF;
    border: 1.5px solid #BFD3FF;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.mp-selected h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mp-company-header h5 { font-size: 1rem; font-weight: 700; }
.mp-company-header p { font-size: 0.82rem; color: var(--text-light); }

.mp-fin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.mp-fin-item {
    background: white;
    padding: 0.85rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.mp-fin-item .fin-label { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; }
.mp-fin-item .fin-value { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-top: 0.25rem; }

.mp-income-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.mp-income-table th, .mp-income-table td {
    padding: 0.55rem 0.85rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.mp-income-table th { text-align: left; background: var(--bg); color: var(--primary); font-weight: 700; font-size: 0.78rem; }
.mp-income-table td:first-child { text-align: left; font-weight: 600; }

/* Macro data */
.mp-macro {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.mp-macro h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.macro-item { text-align: center; }
.macro-item .macro-label { font-size: 0.78rem; color: var(--text-light); }
.macro-item .macro-value { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* Real data badge in results */
.data-source-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: 0.5rem;
}

.badge-real   { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-manual { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }

.result-mp-reference {
    background: #EFF4FF;
    border: 1px solid #BFD3FF;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.result-mp-reference h5 { margin-bottom: 0.5rem; color: var(--primary); font-size: 0.875rem; }
.result-mp-reference p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

/* ===== EXTENDED MACRO GRID ===== */
.macro-grid-extended {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.macro-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.macro-item .macro-label  { font-size: 0.72rem; color: var(--text-light); margin-bottom: 0.2rem; font-weight: 500; }
.macro-item .macro-value  { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.macro-item .macro-source { font-size: 0.62rem; color: var(--text-light); margin-top: 0.2rem; font-style: italic; }

/* ===== GLASSMORPHISM ===== */
body {
    background: rgba(241, 245, 249, 0.88) !important;
}
body.theme-dark {
    background: rgba(24, 24, 37, 0.88) !important;
}

.stat-card,
.feature-card,
.settings-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

body.theme-dark .stat-card,
body.theme-dark .feature-card,
body.theme-dark .settings-card {
    background: rgba(30, 30, 46, 0.75);
    border-color: rgba(99, 102, 241, 0.14);
}

/* ===== ENHANCED BUTTON ANIMATIONS ===== */
.btn {
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.07s !important;
}
.btn-primary:hover {
    filter: brightness(1.10);
    box-shadow: 0 8px 24px rgba(15, 45, 82, 0.28);
}
.btn-secondary:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    border-color: #94a3b8;
}
.btn-danger:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
}

/* ===== DARK MODE TOGGLE BUTTON ===== */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.22s;
    flex-shrink: 0;
    padding: 0;
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    transform: rotate(22deg) scale(1.1);
}
.theme-toggle-btn svg { width: 15px; height: 15px; }

.sidebar-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* ===== LUCIDE ICON SIZING ===== */
.sidebar-icon svg   { width: 15px; height: 15px; display: block; }
.sidebar-logo-icon svg { width: 18px; height: 18px; }
.auth-logo-icon svg    { width: 26px; height: 26px; }
.auth-feature-icon svg { width: 20px; height: 20px; }
.role-card-icon svg    { width: 28px; height: 28px; }
.sidebar-logout svg    { width: 14px; height: 14px; display: inline; vertical-align: middle; margin-right: 2px; }
.feature-card-icon svg { width: 28px; height: 28px; color: var(--accent); }

/* ===== RADAR CHART ===== */
.radar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
}
.radar-wrap canvas {
    max-width: 100%;
}
.radar-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}
.radar-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== COMPARISON PAGE ===== */
.compare-select-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.compare-select-row select {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 0.93rem;
}
.compare-vs {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    flex-shrink: 0;
}
.compare-header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}
.compare-startup-header {
    background: var(--card);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}
.compare-startup-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.compare-startup-meta {
    font-size: 0.78rem;
    color: var(--text-light);
}
.compare-startup-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.3rem;
}
.compare-score-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    padding: 0.5rem;
}
.compare-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
.compare-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.5rem;
    align-items: center;
    background: var(--card);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    font-size: 0.88rem;
}
.compare-cell {
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    transition: background 0.2s;
}
.compare-cell.compare-win {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}
.compare-cell.compare-lose {
    background: rgba(200, 80, 80, 0.1);
    color: #c85050;
}
.compare-label {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
}
.compare-center-label {
    text-align: center;
    color: var(--text-light);
    font-size: 0.78rem;
}
.compare-radar-section {
    margin-top: 1rem;
}
.compare-radar-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* ===== SHARE NOTICE ===== */
.share-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.87rem;
    font-weight: 500;
}
.share-notice a { color: #fff; text-decoration: underline; }
.share-btn {
    gap: 6px;
    font-size: 0.88rem;
}

/* ===== HISTORY / TIMELINE ===== */
.history-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.history-controls select {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 0.88rem;
    min-width: 160px;
}
.history-chart-wrap {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.history-chart-wrap canvas {
    display: block;
    width: 100%;
}
.history-list {
    display: flex;
    flex-direction: column;
}
.history-item {
    display: grid;
    grid-template-columns: 16px 24px 1fr;
    gap: 0 0.75rem;
    align-items: start;
    cursor: pointer;
}
.history-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--bg);
}
.history-line {
    width: 2px;
    background: var(--border);
    justify-self: center;
    height: calc(100% + 0.5rem);
    margin-top: 1.6rem;
}
.history-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, transform 0.15s;
}
.history-card:hover {
    box-shadow: 0 4px 16px rgba(99,102,241,0.12);
    transform: translateY(-1px);
}
.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.history-startup-name {
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--text);
}
.history-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}
.history-badges {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.history-pd-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}
.history-risk-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: rgba(99,102,241,0.12);
    color: var(--primary);
}
.history-class-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}
.history-scores {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.history-scores strong { color: var(--text); }
.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

/* ===== AUTO-MATCH RESULT DISPLAY ===== */
.automatch-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.automatch-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}
.automatch-rank {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
    text-align: center;
}
.automatch-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.automatch-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0.1rem 0 0.35rem;
}
.automatch-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 8px;
}
.automatch-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    max-width: 180px;
}
.automatch-sim {
    font-size: 0.72rem;
    color: var(--text-light);
    white-space: nowrap;
}
.automatch-pd {
    text-align: right;
    flex-shrink: 0;
}
.automatch-pd-val {
    font-weight: 800;
    font-size: 1.05rem;
}

/* ===== SHARP TEXT — GPU LAYER FIX ===== */
.main-content,
.container,
.result-section,
.result-top,
.result-details,
.card,
.history-card,
.automatch-row,
.compare-card,
.compare-row,
.sidebar,
.sidebar-link,
.stat-card *,
.feature-card *,
.settings-card * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

/* Force crisp rendering on all numbers (counters, PD values, scores) */
.stat-value,
.result-pd,
.automatch-pd-val,
.compare-startup-score,
.history-pd-badge,
.result-risk-class,
.mp-fin-item .fin-value,
.prog-value,
.matrix-score {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    font-variant-numeric: tabular-nums;
}

/* ===== DARK MODE TEXT FIXES ===== */
/* All elements using color:var(--primary) for TEXT become light in dark mode */
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #e2e8f0;
}

body.theme-dark .stat-number,
body.theme-dark .stat-label,
body.theme-dark .feature-card h4,
body.theme-dark .settings-card h3,
body.theme-dark .step-content h3,
body.theme-dark .factor-group h4,
body.theme-dark .result-section h4,
body.theme-dark .result-mp-reference h5,
body.theme-dark .recent-ratings h3,
body.theme-dark .rating-card-info h4,
body.theme-dark .mp-selected h4,
body.theme-dark .mp-macro h4,
body.theme-dark .prognosis-card .prog-title,
body.theme-dark .history-startup-name,
body.theme-dark .automatch-name,
body.theme-dark .compare-startup-name,
body.theme-dark .page-desc {
    color: #e2e8f0;
}

body.theme-dark .fin-value,
body.theme-dark .macro-value,
body.theme-dark .mp-fin-item .fin-value,
body.theme-dark .macro-item .macro-value,
body.theme-dark .compare-startup-score,
body.theme-dark .automatch-rank,
body.theme-dark .history-scores strong {
    color: #a5b4fc;
}

body.theme-dark .risk-table th,
body.theme-dark .mp-income-table th,
body.theme-dark .risk-table td,
body.theme-dark .mp-income-table td {
    color: #cdd6f4;
    border-color: #313244;
}

body.theme-dark .result-top h3 {
    color: #e2e8f0;
}

body.theme-dark .wstep-title { color: #cdd6f4; }
body.theme-dark .wstep.active .wstep-title { color: #a5b4fc; }
body.theme-dark .wstep.done .wstep-title { color: #6ee7b7; }

body.theme-dark .auth-right { background: #1e1e2e; }
body.theme-dark .auth-form-box h2 { color: #e2e8f0; }
body.theme-dark .auth-form-sub { color: #a6adc8; }

body.theme-dark .form-group label { color: #cdd6f4; }
body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder { color: #585b70; }

body.theme-dark .role-card-title { color: #e2e8f0; }
body.theme-dark .role-card-desc  { color: #a6adc8; }

body.theme-dark .result-pd { color: #a5b4fc; }

body.theme-dark .data-source-badge.badge-manual { color: #a6adc8; }

body.theme-dark .mp-result-name { color: #cdd6f4; }
body.theme-dark .mp-result-meta { color: #a6adc8; }

/* ===== SETTINGS ACCORDION ===== */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 720px;
}

.acc-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.acc-item.open {
    box-shadow: 0 4px 20px rgba(99,102,241,0.10);
    border-color: var(--primary);
}

.acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: background 0.15s;
}

.acc-header:hover {
    background: rgba(99,102,241,0.04);
}

.acc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acc-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.acc-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    flex-shrink: 0;
}

.acc-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    flex: 1;
}

.acc-chevron {
    flex-shrink: 0;
    color: var(--text-light);
    display: flex;
}

.acc-chevron svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.acc-body-inner {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
}

body.theme-dark .acc-icon {
    background: linear-gradient(135deg, #6366f1, var(--accent));
}

body.theme-dark .acc-item.open {
    border-color: #6366f1;
}

/* ===== STARTUP: IMPROVEMENT TIPS ===== */
.improvement-section { border-top: 2px solid var(--primary); }
.tips-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.75rem; }

.tip-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.tip-card-highlight {
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
}
.tip-header { margin-bottom: 0.5rem; }
.tip-label-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.tip-label { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.tip-score { font-weight: 800; font-size: 0.88rem; }
.tip-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.tip-bar { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.tip-text { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; margin: 0; }

/* ===== INVESTOR: PORTFOLIO PAGE ===== */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.portfolio-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-align: center;
}
.portfolio-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.portfolio-stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 0.2rem;
}
.portfolio-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 700px) { .portfolio-body { grid-template-columns: 1fr; } }
.portfolio-chart-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.portfolio-chart-wrap canvas { display: block; }
.portfolio-legend { width: 100%; }
.portfolio-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text);
    padding: 0.25rem 0;
}
.portfolio-legend-item strong { margin-left: auto; }
.portfolio-legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.portfolio-list { overflow: hidden; }
.portfolio-table-wrap { overflow-x: auto; }
.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.portfolio-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
.portfolio-row {
    cursor: pointer;
    transition: background 0.15s;
}
.portfolio-row:hover { background: rgba(99,102,241,0.05); }
.portfolio-row td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
.portfolio-pd { font-weight: 700; font-size: 0.95rem; }
.portfolio-rk-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
}
.portfolio-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

body.theme-dark .portfolio-stat-num { color: #a5b4fc; }

/* === NEUE KLASSEN === */

/* IMPROVED: plain link (no underline) */
.link-plain { text-decoration: none; cursor: pointer; }

/* IMPROVED: OR logo badge */
.or-badge {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: white;
    filter: none;
}
.or-badge--sidebar { border-radius: 6px; padding: 2px 7px; font-size: 0.65rem; }

/* IMPROVED: small auth-switch hint line */
.auth-switch--small { margin-top: 0.5rem; font-size: 0.78rem; }

/* IMPROVED: danger-colored text link */
.link-danger { color: var(--danger); }

/* IMPROVED: sidebar footer home link */
.sidebar-home-wrap { margin-top: 0.5rem; }
.sidebar-home-link { font-size: 0.75rem; opacity: 0.6; }

/* IMPROVED: tab button row */
.tab-row { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

/* IMPROVED: search/filter bar */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.search-bar__input  { max-width: 340px; flex: 1; }
.search-bar__filter--lg { max-width: 220px; }
.search-bar__filter--md { max-width: 200px; }
.search-bar__filter--sm { max-width: 180px; }
.search-bar__count  { font-size: 0.82rem; color: var(--text-light); white-space: nowrap; }

/* IMPROVED: scrollable table wrapper */
.table-scroll { overflow-x: auto; }

/* IMPROVED: base data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

/* IMPROVED: table header cell */
.table-th { padding: 0.5rem 0.75rem; font-weight: 700; border-bottom: 2px solid var(--border); }
.table-header-row { background: var(--bg); text-align: left; }

/* IMPROVED: button left margin */
.btn--ml { margin-left: 0.5rem; }

/* IMPROVED: optional data card (Jahresergebnisse, Online-Präsenz) */
.optional-card {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.optional-card--mt1 { margin-top: 1rem; }
.optional-card__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.optional-card__label { margin: 0; font-weight: 700; }

/* IMPROVED: +Genauigkeit accuracy badge */
/* TODO: replace #6366F122 with color-mix(in srgb, var(--accent) 13%, transparent) once browser support is sufficient */
.accuracy-badge {
    background: #6366F122;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* IMPROVED: block field-hint with bottom margin */
.field-hint--block { display: block; margin-bottom: 0.85rem; }

/* IMPROVED: flex form group */
.form-group--flex { flex: 1; }

/* IMPROVED: settings section top margin */
.settings-mt { margin-top: 1rem; }

/* ===== UPGRADE MODAL ===== */
.upgrade-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.upgrade-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.upgrade-modal__card {
    position: relative;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 2rem; max-width: 420px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); text-align: center;
}
.upgrade-modal__icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg,#f59e0b,#f97316); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 1.5rem;
}
.upgrade-modal__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); }
.upgrade-modal__desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }
.upgrade-modal__plan-box {
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 1.25rem; margin-bottom: 1.5rem; text-align: left;
}
.upgrade-modal__plan-label {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 0.75rem;
}
.upgrade-modal__feature-row {
    font-size: 0.84rem; color: var(--text);
    display: flex; gap: 0.5rem; margin-bottom: 0.4rem;
}
.upgrade-modal__feature-row:last-child { margin-bottom: 0; }
.upgrade-modal__check { color: #059669; }
.upgrade-modal__actions { display: flex; gap: 0.75rem; }
.upgrade-modal__btn-cancel {
    flex: 1; padding: 0.7rem; border-radius: 9px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-light); cursor: pointer; font-size: 0.875rem; font-weight: 500;
}
.upgrade-modal__btn-upgrade {
    flex: 2; padding: 0.7rem; border-radius: 9px;
    border: none; background: var(--accent); color: white;
    cursor: pointer; font-size: 0.875rem; font-weight: 700;
}

/* ===== CONFIRM DIALOG ===== */
.confirm-overlay {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
}
.confirm-dialog {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.75rem 2rem; max-width: 360px; width: 100%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.confirm-msg { font-size: 0.95rem; color: var(--text); margin-bottom: 1.5rem; line-height: 1.6; }
.confirm-buttons { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ===== TOAST VARIANTS ===== */
.toast--info    { background: var(--primary); color: #fff; }
.toast--error   { background: var(--danger);  color: #fff; }
.toast--success { background: var(--success); color: #fff; }

/* ===== DARK MODE: NEW CLASSES ===== */
body.theme-dark .search-bar__input {
    background: #1e1e2e; border-color: #45475a; color: #cdd6f4;
}
body.theme-dark .search-bar__input::placeholder { color: #585b70; }
body.theme-dark .optional-card {
    background: #181825; border-color: #45475a;
}
body.theme-dark .data-table th,
body.theme-dark .table-th { background: #1e1e2e; color: #cdd6f4; }
body.theme-dark .data-table td { border-color: #45475a; color: #cdd6f4; }
body.theme-dark .table-header-row { background: #1e1e2e; }
body.theme-dark .accuracy-badge {
    background: rgba(99,102,241,0.15); color: #A5B4FC;
}
body.theme-dark .upgrade-modal__card { background: #1e1e2e; border-color: #45475a; }
body.theme-dark .upgrade-modal__plan-box { background: #181825; border-color: #45475a; }
body.theme-dark .upgrade-modal__title { color: #e2e8f0; }
body.theme-dark .upgrade-modal__btn-cancel { border-color: #45475a; color: #a6adc8; }
body.theme-dark .confirm-dialog { background: #1e1e2e; border-color: #45475a; }
body.theme-dark .confirm-msg { color: #e2e8f0; }

/* ── Konto löschen – Danger-Accordion ─────────────────────────── */
.acc-item--danger { border-color: #fecaca; }
.acc-item--danger.open { border-color: var(--danger); box-shadow: 0 4px 20px rgba(220,38,38,0.10); }
.acc-item--danger .acc-icon { color: var(--danger); }
.acc-item--danger .acc-title { color: var(--danger); }

.danger-hint {
    font-size: 0.875rem;
    color: #b91c1c;
    background: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.theme-dark .danger-hint { background: #2d1a1a; border-color: #7f1d1d; color: #fca5a5; }
body.theme-dark .acc-item--danger { border-color: #7f1d1d; }
body.theme-dark .acc-item--danger.open { border-color: var(--danger); }

/* ══════════════════════════════════════════════════════════════
   DYNAMIC UI — Hover-Reaktionen & Animationen
   ══════════════════════════════════════════════════════════════ */

/* Seiten-Übergang: sanftes Einblenden wenn eine neue Seite aktiv wird */
.page:not(.hidden) {
    animation: pageSlideIn 0.28s ease;
}
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Accordion: leichtes Anheben beim Hovern */
.acc-item {
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s !important;
}
.acc-item:not(.open):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border-color: #CBD5E1;
}

/* Feature-Karten: federndes Anheben */
.feature-card {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.feature-card:hover {
    transform: translateY(-4px) scale(1.015) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.11) !important;
    border-color: var(--accent) !important;
}

/* Rating-Karten: stärkeres Anheben */
.rating-card {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.rating-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.11) !important;
    border-color: #CBD5E1 !important;
}

/* Stat-Karten auf dem Dashboard */
.stat-card {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Sidebar-Links: nach rechts gleiten */
.sidebar-link {
    transition: all 0.18s ease !important;
}
.sidebar-link:not(.active):hover {
    transform: translateX(4px) !important;
}

/* Navigations-Links in der Top-Bar */
.nav-link {
    transition: all 0.18s ease !important;
}
.nav-link:hover {
    transform: translateX(2px) !important;
}

/* Rolle-Karten (Startup / Investor) */
.role-card {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.role-card:hover:not(.active) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(99,102,241,0.12) !important;
}

/* Logout-Link */
.sidebar-logout {
    transition: all 0.18s ease !important;
}
.sidebar-logout:hover {
    transform: translateX(3px) !important;
}

/* Puls-Effekt auf dem primären CTA-Button beim ersten Laden */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
    50%       { box-shadow: 0 4px 18px rgba(15,45,82,0.22); }
}
.btn-primary.pulse {
    animation: subtlePulse 2s ease-in-out infinite;
}

/* Dark-Mode: Hover-Farben anpassen */
body.theme-dark .form-group input:hover,
body.theme-dark .form-group select:hover,
body.theme-dark .form-group textarea:hover {
    box-shadow: 0 2px 10px rgba(99,102,241,0.15);
}
body.theme-dark .acc-item:not(.open):hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
body.theme-dark .stat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ══════════════════════════════════════════════════════════════
   OR LOGO MARK — freistehendes SVG ohne Hintergrund-Box
   ══════════════════════════════════════════════════════════════ */
.or-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}
.or-logo-mark svg { width: 100%; height: 100%; }

.or-logo-mark--sm { width: 28px; height: 28px; }
.or-logo-mark--lg { width: 46px; height: 46px; }

a:hover .or-logo-mark { transform: scale(1.1); }
