/* =================================================================
   FUNDEDJOBS AI - CLEAN SLATE LOGIN STYLE STACK
   ================================================================= */

/* DESIGN SYSTEM VARIABLES */
:root {
    --bg-base: #06080c;
    --bg-surface: #0e1118;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-sans);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Glow Backgrounds */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* AUTHENTICATION SCREEN */
#auth-screen {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100vh;
    width: 100%;
}

/* Left Hero Pane */
.auth-hero-pane {
    background: radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
                var(--bg-base);
    border-right: 1px solid var(--border-color);
    padding: 4rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.auth-hero-content {
    max-width: 520px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Recent Funding Rounds */
.funding-rounds-widget {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.funding-rounds-widget h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.funding-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.funding-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.funding-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.green-dot { background-color: #10b981; box-shadow: 0 0 8px #10b981; }
.blue-dot { background-color: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.purple-dot { background-color: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }

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

.auth-hero-footer {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Right Form Pane */
.auth-form-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 3rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.auth-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.header-texts h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Auth Toggle Pill */
.auth-toggle-pill {
    background: #080a0f;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 3px;
    display: flex;
    gap: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
}



/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-password-link:hover {
    color: var(--color-primary-hover);
}

.input-group input {
    background-color: #080a0f;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.75rem !important;
}

.password-toggle-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.password-toggle-btn .eye-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Primary Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.primary-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* Secondary/Guest Button */
.guest-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.guest-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Footer Bottom Links */
.auth-right-footer {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.auth-right-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-right-footer a:hover {
    color: var(--text-secondary);
}

.dot-sep {
    color: var(--text-muted);
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1024px) {
    .auth-hero-pane {
        padding: 3rem;
    }
    .auth-hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    #auth-screen {
        grid-template-columns: 1fr;
    }
    .auth-hero-pane {
        display: none;
    }
    .auth-form-pane {
        padding: 2rem 1.5rem;
    }
    .auth-right-footer {
        position: static;
        margin-top: 2rem;
    }
}

/* =================================================================
   ONBOARDING STYLING SYSTEM
   ================================================================= */

/* Progress Tracker */
#onboarding-progress-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.progress-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

#progress-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.progress-bar-bg {
    background-color: rgba(255, 255, 255, 0.05);
    height: 4px;
    border-radius: 99px;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

#progress-indicator {
    background-color: var(--color-primary);
    height: 100%;
    width: 25%; /* Dynamically updated */
    transition: width var(--transition-normal);
}

/* Onboarding Screen Layout */
#onboarding-screen, #success-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 6rem 2rem 2rem 2rem; /* space for sticky progress header */
    background-color: var(--bg-base);
}

.onboarding-card-container {
    width: 100%;
    max-width: 580px;
}

.onboarding-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
}

/* Card Onboarding Header */
.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-icon-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.nav-icon-btn:hover {
    color: var(--text-primary);
}

.back-icon, .close-icon {
    width: 20px;
    height: 20px;
}

#onboarding-step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Onboarding Content Panes */
.onboarding-step-pane h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-inputs-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Input with icon styling (Step 1) */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    background-color: #080a0f;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.input-with-icon input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Select wrapper styling (Step 1) */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    background-color: #080a0f;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.select-wrapper select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-20%);
    border: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Role chips styling (Step 2) */
.roles-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.chip-btn.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Preview card box (Step 2) */
.preview-box {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.05);
}

/* Locations styling (Step 3) */
.locations-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.location-option-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.location-option-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.location-option-card.selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--color-primary);
}

.loc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.loc-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

/* More Locations Card */
.more-loc-card {
    border: 1px dashed rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.02);
}

.more-loc-card:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

/* More Locations Searchable Dropdown */
.more-locations-dropdown {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-box-wrapper input {
    width: 100%;
    background-color: #080a0f;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 2.5rem 0.6rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-box-wrapper input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.cities-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 0.25rem;
}

/* Scrollbar Customization for Cities List */
.cities-list::-webkit-scrollbar {
    width: 6px;
}

.cities-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.cities-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

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

.city-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.city-option:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.city-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Custom Add button field styling */
.add-action-input {
    display: flex;
    align-items: stretch;
}

.add-action-input input {
    flex: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.input-action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 1.25rem;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.input-action-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Selected Location Chips */
.selected-locations-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.loc-chip {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-close {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.chip-close:hover {
    color: #ffffff;
}

/* Preferences styling (Step 4) */
.preferences-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

/* In step 4 stage grid: last two items span more width or wrap standardly */
.stage-option-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.stage-option-card:nth-child(4) {
    grid-column: span 1;
}

.stage-option-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.stage-option-card.selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--color-primary);
}

.stage-option-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stage-option-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.email-alerts-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-alerts-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.email-alerts-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

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

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider-round {
    background-color: var(--color-primary);
}

.switch-toggle input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* Action button row */
.onboarding-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.back-link-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.back-link-btn:hover {
    color: var(--text-primary);
}

.onboard-next-btn {
    width: auto;
    padding: 0.65rem 2rem;
    border-radius: 99px;
}

/* Onboarding Success Screen style */
.success-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.success-icon-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon {
    width: 28px;
    height: 28px;
}

.success-card h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.success-card button {
    width: 100%;
}

/* Onboarding responsive rules */
@media (max-width: 640px) {
    #onboarding-screen, #success-screen {
        padding: 5rem 1rem 1.5rem 1rem;
    }
    .onboarding-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }
    .locations-grid-container {
        grid-template-columns: 1fr;
    }
    .stages-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .stage-option-card:nth-child(5) {
        grid-column: span 2;
    }
}

/* =================================================================
   DASHBOARD SCREEN STYLE STACK
   ================================================================= */

#dashboard-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-base);
    position: relative;
    z-index: 10;
}

@media (min-width: 901px) {
    #dashboard-screen {
        height: 100vh;
        overflow: hidden;
    }
}

/* Sidebar Layout */
.sidebar {
    width: 260px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

@media (min-width: 901px) {
    .sidebar {
        height: 100vh;
    }
}

.sidebar-brand-area {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    text-transform: uppercase;
    padding-left: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    color: inherit;
}

#sidebar-btn-logout {
    color: var(--text-secondary);
}

#sidebar-btn-logout:hover {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.08);
}

/* Sidebar Profile Info Block */
.sidebar-user-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
}

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

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

/* Main Dashboard Panel */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
    padding: 2.25rem 3.5rem;
}

@media (min-width: 901px) {
    .main-content {
        height: 100vh;
        min-height: 0;
    }
}

/* Header bar with search input */
.main-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.search-bar-container {
    position: relative;
    width: 380px;
}

.search-bar-container input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem 0.6rem 2.6rem;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar-container input::placeholder {
    color: var(--text-muted);
}

.search-bar-container input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.header-search-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.notification-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
}

/* Page Toggles */
.content-pane {
    display: none;
    flex-direction: column;
    gap: 2.25rem;
    margin-top: 2rem;
}

.content-pane.active {
    display: flex;
}

/* Welcome Segment */
.welcome-section h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.5;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stats-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.stats-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.stats-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stats-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    width: fit-content;
}

.stats-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot-green {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    margin-left: 0.5rem;
}

.status-dot-red {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    display: inline-block;
    margin-left: 0.5rem;
}

.flex-align {
    display: flex;
    align-items: center;
}

/* Sections and Headers */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-row h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Startup Cards Layout */
.startup-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.startup-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.startup-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.startup-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.startup-logo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.startup-logo-wrapper svg {
    width: 22px;
    height: 22px;
}

.nebula-logo {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

.flux-logo {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

.startup-info-header {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.startup-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.startup-name-row h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.startup-stage-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.startup-location {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.startup-funding-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

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

/* Card footer details metadata */
.startup-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-small {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-left: -6px;
    flex-shrink: 0;
}

.avatar-small:first-child {
    margin-left: 0;
}

.avatar-blue { background-color: #3b82f6; }
.avatar-purple { background-color: #8b5cf6; }
.avatar-green { background-color: #10b981; }
.avatar-orange { background-color: #f97316; }
.avatar-red { background-color: #ef4444; }

.footer-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dot-divider {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.view-roles-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-roles-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}


/* Settings and Profile details pane */
.settings-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

.profile-details-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

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

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* =================================================================
   VIEW ROLES MODAL POPUP
   ================================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s ease;
}

.modal-dialog {
    background: rgba(22, 22, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-funding-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-funding-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-meta-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-desc-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.modal-roles-section h3 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.modal-roles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-role-row {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

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

.apply-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.apply-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.apply-btn.applied {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    cursor: default;
    box-shadow: none;
}

/* Toast Notifications */
.app-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--bg-surface);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.toast-check-icon {
    width: 18px;
    height: 18px;
}

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

/* =================================================================
   DASHBOARD MOBILE RESPONSIVE RULES
   ================================================================= */

@media (max-width: 900px) {
    #dashboard-screen {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.25rem 2rem;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .sidebar-brand-area {
        gap: 0.15rem;
    }
    
    .sidebar-subtitle {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        margin-top: 0;
        margin-left: auto;
        flex-grow: 0;
        gap: 0.25rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .sidebar-user-widget {
        display: none;
    }
    
    .main-content {
        padding: 2rem 2rem;
    }
    
    .search-bar-container {
        width: 100%;
        max-width: 320px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .startup-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sidebar {
        padding: 1rem 1rem;
    }
    .sidebar-nav {
        gap: 1px;
    }
    .nav-item span {
        display: none;
    }
    .nav-item {
        padding: 0.5rem;
        justify-content: center;
    }
    .main-content {
        padding: 1.5rem 1rem;
    }
    .main-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .search-bar-container {
        max-width: 100%;
    }
    .header-actions {
        justify-content: flex-end;
    }
}

/* Dashboard Empty States */
.dashboard-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    gap: 0.75rem;
    color: var(--text-secondary);
    width: 100%;
    box-sizing: border-box;
}

.dashboard-empty-state.compact {
    padding: 2rem 1.5rem;
}

.empty-state-icon {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    opacity: 0.7;
    animation: empty-pulse 2.5s infinite ease-in-out;
}

.dashboard-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-empty-state p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0;
    line-height: 1.5;
}

@keyframes empty-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

/* Card Link Button Styling */
.card-link-btn {
    transition: all 0.2s ease-in-out;
}
.card-link-btn:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
    opacity: 0.9;
}

/* Skeleton Loading Templates */
.skeleton-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    height: 190px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.skeleton-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-line.title {
    width: 60%;
    height: 18px;
}

.skeleton-line.subtitle {
    width: 35%;
    height: 12px;
}

.skeleton-line.desc {
    width: 100%;
    height: 32px;
}

.skeleton-line.footer {
    width: 80%;
    height: 14px;
    margin-top: auto;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.3;
    }
}

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

/* ==================== E2E TESTING UX OVERLAY ==================== */
#qa-test-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
}

#qa-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(90deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 45, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.qa-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qa-status-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fbbf24;
    letter-spacing: 0.5px;
}

#qa-current-step-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.qa-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.qa-banner-center {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
}

.qa-progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#qa-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: right;
}

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

#qa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-banner-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

#qa-timer-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #d1d5db;
}

#btn-qa-toggle-details {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn-qa-toggle-details:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

#btn-qa-toggle-details .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

#qa-details-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#qa-details-drawer.expanded {
    max-height: 350px;
}

.qa-details-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    padding: 20px 24px;
    height: 100%;
}

.qa-details-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.qa-details-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    font-weight: 700;
}

/* Steps checklist styling */
.qa-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 6px;
}

.qa-steps-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.qa-steps-list li.running {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.qa-steps-list li.completed {
    color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.qa-steps-list li.failed {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.qa-steps-list .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4b5563;
    display: inline-block;
    flex-shrink: 0;
}

.qa-steps-list li.running .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: statusPulse 1.2s infinite;
}

.qa-steps-list li.completed .status-dot {
    background: #10b981;
}

.qa-steps-list li.failed .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.qa-steps-list .step-num {
    font-weight: 700;
    color: #6b7280;
    font-size: 0.75rem;
}

.qa-steps-list li.completed .step-num {
    color: #10b981;
}

.qa-steps-list li.failed .step-num {
    color: #ef4444;
}

/* Console logs panel styling */
.qa-logs-box {
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 250px;
}

.log-line {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
    color: #d1d5db;
}

.log-line.system {
    color: #3b82f6;
    font-weight: bold;
}

.log-line.browser-console {
    color: #a78bfa;
}

.log-line.success {
    color: #10b981;
}

.log-line.error {
    color: #ef4444;
    font-weight: bold;
}

/* Screens Tested Grid */
.qa-screens-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow-y: auto;
}

.qa-screen-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.qa-screen-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e5e7eb;
}

.screen-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #374151;
}

.screen-status-indicator.pending {
    background: #374151;
}

.screen-status-indicator.testing {
    background: #f59e0b;
    animation: statusPulse 1.2s infinite;
}

.screen-status-indicator.success {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.screen-status-indicator.failed {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* Floating Status Indicator */
#qa-floating-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    background: rgba(15, 15, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.qa-badge-dot.running {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: statusPulse 1.2s infinite;
}

.qa-badge-dot.paused {
    background: #6b7280;
}

.qa-badge-dot.failed {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.qa-badge-dot.completed {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

#qa-badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f3f4f6;
}

/* Completion Report Modal Overlay */
#qa-completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

.qa-modal-card {
    background: #11111b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qa-modal-header {
    text-align: center;
    padding: 30px 24px 20px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.qa-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.qa-modal-icon.success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    color: #10b981;
}

.qa-modal-icon.failed {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
}

#qa-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.qa-modal-body {
    padding: 24px;
}

.qa-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.qa-stat-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qa-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-weight: 600;
}

.qa-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f3f4f6;
}

.qa-stat-val.success {
    color: #10b981;
}

.qa-stat-val.failed {
    color: #ef4444;
}

.qa-modal-issues-section {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.qa-modal-issues-section h4 {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 700;
}

#qa-modal-issues-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.78rem;
    color: #fca5a5;
    line-height: 1.5;
}

.qa-modal-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

#qa-closing-countdown {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
}

/* Animations */
@keyframes statusPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes modalScaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* ====================================================
   NOTIFICATION PANEL
   ==================================================== */
.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 360px;
    background: rgba(15, 15, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    animation: fadeSlideDown 0.18s ease;
}

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

.notif-panel-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notif-panel-header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.notif-panel-body {
    max-height: 460px;
    overflow-y: auto;
}

.notif-item {
    cursor: pointer;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.notif-item:hover {
    background: rgba(59, 130, 246, 0.07);
}

.notif-item:last-child { border-bottom: none; }

.notif-item-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notif-item-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.notif-item-text { flex: 1; min-width: 0; }

.notif-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-meta { display: flex; align-items: center; margin-bottom: 3px; }

.notif-item-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 3px;
}

.notif-empty {
    padding: 28px 18px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ====================================================
   EMAIL HISTORY PAGE — Premium Card Feed
   ==================================================== */

/* Page header */
.eh-page-header {
    margin-bottom: 28px;
}

.eh-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.eh-page-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.eh-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.eh-stats-row svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.eh-stats-row #email-history-count {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
}

.eh-stats-dot {
    opacity: 0.35;
}

.eh-stats-updated {
    color: rgba(255, 255, 255, 0.4);
}

/* Feed container */
.eh-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual email card */
.eh-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
}

.eh-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

/* Avatar circle */
.eh-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Card body (main content) */
.eh-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Top line: name + badges */
.eh-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eh-startup-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.eh-stage-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.eh-stage-seed    { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.eh-stage-seriesA { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3);  }
.eh-stage-seriesB { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.eh-stage-seriesC { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.eh-stage-other   { background: rgba(255, 255, 255, 0.07); color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.12); }

.eh-amount {
    font-size: 0.78rem;
    font-weight: 700;
    color: #34d399;
}

/* Description */
.eh-description {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
    line-height: 1.4;
}

/* Date */
.eh-sent-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

/* Right-side actions */
.eh-card-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.eh-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.eh-status-delivered {
    font-size: 0.7rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.eh-status-failed {
    font-size: 0.7rem;
    font-weight: 600;
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.eh-card-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eh-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.eh-link:hover { opacity: 0.7; }

.eh-link-website { color: #818cf8; }
.eh-link-article { color: rgba(255, 255, 255, 0.4); }

.eh-chevron {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.eh-card:hover .eh-chevron {
    color: rgba(99, 102, 241, 0.7);
    transform: translateX(2px);
}

/* Empty state */
.eh-empty-state {
    padding: 64px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eh-empty-state svg {
    opacity: 0.2;
    margin-bottom: 4px;
}

.eh-empty-state p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
}

/* Loading state */
.eh-loading-state {
    padding: 64px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eh-loading-state svg {
    opacity: 0.2;
}

.eh-loading-state p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.88rem;
}

/* ====================================================
   PROFILE EDIT FORM — role chips inside profile pane
   ==================================================== */
.roles-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notif-item.unread .notif-item-name::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    margin-left: 8px;
    vertical-align: middle;
}


