/*
==================================
POWER BI WALL - NEW DESIGN SYSTEM
Based on PerfVitals aesthetic
==================================
*/

/* ==================== CSS VARIABLES (HSL-based) ==================== */
:root {
    /* Background hierarchy */
    --background: hsl(0 0% 100%);
    --foreground: hsl(224 71% 4%);

    /* Surface levels */
    --surface: hsl(0 0% 100%);
    --surface-raised: hsl(220 14% 99%);
    --surface-sunken: hsl(220 14% 96%);

    /* Primary brand color (blue-600) */
    --primary: #2563eb;
    --primary-foreground: #ffffff;
    --primary-hover: #1d4ed8;

    /* Secondary */
    --secondary: hsl(220 14% 96%);
    --secondary-foreground: hsl(224 71% 4%);

    /* Muted */
    --muted: hsl(220 14% 96%);
    --muted-foreground: hsl(220 9% 46%);

    /* Borders */
    --border: hsl(220 13% 91%);
    --border-muted: hsl(220 13% 95%);

    /* Input */
    --input: hsl(220 13% 91%);
    --ring: hsl(224 71% 45%);

    /* Accent */
    --accent: hsl(220 14% 96%);
    --accent-foreground: hsl(224 71% 4%);

    /* Semantic colors */
    --success: hsl(142 71% 45%);
    --warning: hsl(38 92% 50%);
    --destructive: hsl(0 72% 51%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;

    /* Border radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;

    /* Transitions */
    --transition-fast: 100ms;
    --transition-default: 150ms;
    --transition-slow: 200ms;
}

/* ==================== GLOBAL STYLES ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--foreground);
    background: var(--background);
    min-height: 100vh;
    font-feature-settings: "rlig" 1, "calt" 1;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--foreground);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-default);
}

a:hover {
    color: var(--primary-hover);
}

/* ==================== PAGE MANAGEMENT ==================== */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ==================== HEADER ==================== */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
}

.logo svg {
    width: 1.75rem;
    height: 1.75rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

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

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color var(--transition-default);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.nav-link:hover {
    color: var(--foreground);
    background: var(--surface-sunken);
}

.nav-link.active {
    color: var(--primary);
    background: hsl(224 71% 45% / 0.1);
}

.nav-divider {
    color: var(--border);
    font-size: 0.875rem;
    margin: 0 0.25rem;
    user-select: none;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-default);
    white-space: nowrap;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    ring: 2px solid var(--ring);
    ring-offset: 1px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-sunken);
    border-color: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--surface-sunken);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--surface-sunken);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* Microsoft Sign-In Button */
.btn-microsoft {
    background: white;
    color: hsl(0 0% 37%);
    border: 1px solid hsl(0 0% 55%);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
}

.btn-microsoft:hover:not(:disabled) {
    background: hsl(0 0% 95%);
}

.btn-microsoft svg {
    width: 1.25rem;
    height: 1.25rem;
}

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

.container-narrow {
    max-width: 48rem;
}

.container-wide {
    max-width: 90rem;
}

/* ==================== PROMO BANNER ==================== */
.promo-banner {
    background: #2563eb;
    color: white;
    padding: 0.625rem 1rem;
    text-align: center;
    position: relative;
}

.promo-banner p {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.promo-banner strong {
    font-weight: 700;
}

.promo-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: background var(--transition-default);
}

.promo-banner-close:hover {
    background: hsl(224 71% 40%);
}

.promo-banner-close svg {
    width: 1rem;
    height: 1rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 2rem 0;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 3rem 0;
    }
}

.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 0 2rem;
    }
}

.hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem;
    }
}

.hero-text {
    /* Text content area */
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.625;
    max-width: 32rem;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero CTA Button - override Microsoft styling */
.hero-cta .btn,
.hero-cta #getStartedBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    color: white !important;
    background: #2563eb !important;
    border: none !important;
    border-radius: 0.375rem !important;
    cursor: pointer;
    transition: background 150ms;
    width: auto !important;
    height: auto !important;
}

.hero-cta .btn:hover,
.hero-cta #getStartedBtn:hover {
    background: #1d4ed8 !important;
}

.hero-cta #getStartedBtn .microsoft-logo {
    width: 16px;
    height: 16px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 150ms;
}

.hero-link:hover {
    color: #1d4ed8;
}

.hero-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 200ms;
    flex-shrink: 0;
}

/* Force hero link inline on all screens */
.hero-link {
    white-space: nowrap;
}

.hero-link:hover svg {
    transform: rotate(45deg);
}

/* Floating Icons Container */
.hero-icons {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-icons {
        justify-content: center;
    }
}

.hero-icons svg {
    width: 100%;
    max-width: 32rem;
    height: auto;
}

/* Floating Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.float-1 { animation: float1 3s ease-in-out infinite; }
.float-2 { animation: float2 4s ease-in-out infinite 0.5s; }
.float-3 { animation: float3 3.5s ease-in-out infinite 1s; }
.float-4 { animation: float1 4.5s ease-in-out infinite 0.3s; }
.float-5 { animation: float2 3.2s ease-in-out infinite 0.8s; }
.float-6 { animation: float3 3.8s ease-in-out infinite 0.6s; }
.float-7 { animation: float1 4.2s ease-in-out infinite 1.2s; }
.float-8 { animation: float2 3.6s ease-in-out infinite 0.4s; }
.float-9 { animation: float3 4s ease-in-out infinite 0.9s; }

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3rem 0;
}

/* ==================== SECTION STYLES ==================== */
.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* ==================== CARDS ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-default);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(224 71% 45% / 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

/* Large colorful icon for feature cards */
.card-icon-large {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
}

.card-icon-large svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Feature Card - Centered variant */
.card-centered {
    text-align: center;
}

.card-centered .card-header {
    flex-direction: column;
    align-items: center;
}

.card-centered .card-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
}

.card-centered .card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ==================== INFO BOX ==================== */
.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-box-highlight {
    border-color: var(--primary);
    background: hsl(224 71% 45% / 0.02);
}

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

.info-box-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(224 71% 45% / 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.info-box-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.info-box-content {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.input-field,
.select-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color var(--transition-default), box-shadow var(--transition-default);
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsl(224 71% 45% / 0.1);
}

.input-field::placeholder {
    color: var(--muted-foreground);
}

/* ==================== CHECKBOX ==================== */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkbox-row input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-row label {
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    user-select: none;
}

/* ==================== BADGE ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-primary {
    background: hsl(224 71% 45% / 0.1);
    color: var(--primary);
}

.badge-success {
    background: hsl(142 71% 45% / 0.1);
    color: var(--success);
}

/* ==================== STEPS ==================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(224 71% 45% / 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==================== FREE CTA BOX ==================== */
.cta-box {
    text-align: center;
    padding: 2.5rem;
    background: hsl(224 71% 45% / 0.03);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
}

.cta-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cta-box-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.cta-box-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-box-features {
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.cta-box-description {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== FINAL CTA SECTION ==================== */
.final-cta {
    text-align: center;
    padding: 2rem 0;
}

.final-cta-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.final-cta-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== FOOTER ==================== */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.footer-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.footer-description {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.footer-heading {
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    transition: color var(--transition-default);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

.footer-links li svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all var(--transition-default);
}

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

.social-link svg {
    width: 1rem;
    height: 1rem;
}

/* ==================== USER PROFILE DROPDOWN ==================== */
.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    transition: all var(--transition-default);
    color: var(--foreground);
}

.user-profile-btn:hover {
    background: var(--surface-sunken);
    border-color: var(--primary);
}

.user-avatar-small {
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
}

.user-info-small {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.user-name-small {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
}

.profile-dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background var(--transition-default);
}

.dropdown-item:hover {
    background: var(--surface-sunken);
}

.dropdown-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ==================== LOADING & MODALS ==================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: hsl(0 0% 100% / 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay p {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: hsl(0 0% 0% / 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color var(--transition-default);
    line-height: 1;
}

.btn-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.25rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .user-info-small {
        display: none;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsl(220 9% 46% / 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(220 9% 46% / 0.3);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: hsl(220 9% 46% / 0.2) transparent;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none; }
.block { display: block; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    max-width: 600px;
    width: calc(100% - 2rem);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-text p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color var(--transition-default);
}

.cookie-link:hover {
    color: hsl(224 71% 35%);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-default);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: hsl(224 71% 35%);
}

.cookie-btn-reject {
    background: var(--surface-sunken);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    background: var(--border);
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
    }

    .cookie-banner-text p {
        font-size: 0.8125rem;
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}
