:root {
    --accent: #1B6EF3;
    --accent-dark: #1557c9;
    --green: #0F9E6E;
    --ink: #0D1117;
    --gray-50: #f6f8fa;
    --gray-100: #eaeef2;
    --gray-200: #d0d7de;
    --gray-300: #afb8c1;
    --gray-500: #6e7681;
    --gray-700: #424a53;
    --gray-900: #1f2428;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.3; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
    border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

.site-header {
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0; z-index: 100; padding: 0.75rem 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-icon {
    width: 36px; height: 36px; background: var(--accent); color: var(--white);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { color: var(--gray-700); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--ink) 0%, #1a2332 100%);
    color: var(--white); padding: 6rem 0 4rem; text-align: center;
}
.hero h1 { font-size: 4rem; margin-bottom: 1rem; }
.hero .highlight { color: var(--accent); font-style: italic; }
.hero-subtitle { font-size: 1.25rem; color: var(--gray-300); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.hero-actions .btn-outline { border-color: var(--white); color: var(--white); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--ink); }
.hero-stats { display: flex; gap: 3rem; justify-content: center; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--green); }
.stat-label { font-size: 0.9rem; color: var(--gray-300); }

.steps-section { padding: 5rem 0; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.step-number { width: 48px; height: 48px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 0 auto 1rem; }
.step-card h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; }

.features-section { padding: 5rem 0; background: var(--white); text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { padding: 2rem; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; }

.cta-section { background: var(--accent); color: var(--white); text-align: center; padding: 5rem 0; }
.cta-section .btn { background: var(--white); color: var(--accent); border-color: var(--white); }
.cta-section .btn:hover { background: transparent; color: var(--white); }

.site-footer { background: var(--ink); color: var(--gray-300); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; }
.footer-links h4 { color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--gray-300); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--gray-700); }
.form-control, .form-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif; font-size: 1rem; background: var(--white); transition: border-color 0.2s;
}
.form-control:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.auth-section { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 4rem 0; }
.auth-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; }
.auth-card h1 { text-align: center; margin-bottom: 2rem; font-size: 2rem; }
.auth-link { text-align: center; margin-top: 1.5rem; color: var(--gray-500); font-size: 0.9rem; }

/* Wizard */
.wizard-section { padding: 3rem 0; }
.wizard-header { text-align: center; margin-bottom: 2rem; }
.wizard-progress { display: flex; justify-content: center; gap: 0; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.wizard-progress .step { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; background: var(--gray-100); color: var(--gray-500); font-weight: 500; font-size: 0.85rem; position: relative; flex: 1; justify-content: center; }
.wizard-progress .step:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.wizard-progress .step:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wizard-progress .step.active { background: var(--accent); color: var(--white); }
.wizard-progress .step.completed { background: var(--green); color: var(--white); }
.step-indicator { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.step.active .step-indicator, .step.completed .step-indicator { background: rgba(255,255,255,0.5); }

.wizard-form { max-width: 700px; margin: 0 auto; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.wizard-step h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.wizard-nav { display: flex; gap: 1rem; justify-content: space-between; margin-top: 2rem; }

.radio-chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.chip { display: inline-flex; align-items: center; }
.chip input { display: none; }
.chip {
    padding: 0.5rem 1rem; border: 2px solid var(--gray-200); border-radius: 50px;
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s; user-select: none;
}
.chip:has(input:checked) { border-color: var(--accent); background: rgba(27, 110, 243, 0.08); color: var(--accent); font-weight: 600; }
.chip:hover { border-color: var(--accent); }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 1rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }

.conditional { display: none; padding: 1rem; background: var(--gray-50); border-radius: var(--radius-sm); margin: 0.5rem 0 1rem; border: 1px solid var(--gray-100); }
.conditional.active { display: block; }

.gdpr-notice { font-size: 0.85rem; color: var(--gray-500); margin-top: 1rem; }

.done-screen { text-align: center; padding: 3rem; }
.done-icon { width: 80px; height: 80px; background: var(--green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; }
.done-actions { margin-top: 2rem; }

.ai-loading { text-align: center; padding: 3rem; }
.ai-pulse { width: 60px; height: 60px; background: var(--accent); border-radius: 50%; margin: 0 auto 1rem; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 1; } }
.claim-totals { background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.claim-disclaimer { font-size: 0.8rem; color: var(--gray-500); margin-top: 1rem; font-style: italic; }

/* Portal Layout */
.portal-layout { display: flex; min-height: 100vh; }
.portal-sidebar { width: 260px; background: var(--ink); color: var(--white); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-header { padding: 1.25rem; border-bottom: 1px solid var(--gray-700); }
.sidebar-header .logo { color: var(--white); }
.sidebar-nav { flex: 1; padding: 0.75rem 0; }
.sidebar-nav .nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; color: var(--gray-300); font-size: 0.9rem; transition: all 0.2s; }
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); text-decoration: none; }
.sidebar-nav .nav-item.active { background: rgba(27, 110, 243, 0.15); color: var(--accent); border-right: 3px solid var(--accent); }
.sidebar-footer { border-top: 1px solid var(--gray-700); padding: 0.75rem 0; }
.portal-main { flex: 1; padding: 2rem; overflow-y: auto; }
.portal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.portal-header h1 { font-size: 1.75rem; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card .stat-label { display: block; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--ink); }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--gray-50); padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--gray-100); font-size: 0.9rem; }
.data-table tr:hover { background: var(--gray-50); }

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.badge.active { background: rgba(15, 158, 110, 0.1); color: var(--green); }
.badge.warning { background: rgba(255, 193, 7, 0.1); color: #cc8800; }

.dashboard-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.widget { background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.widget h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }

.tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid var(--gray-100); }
.tab { padding: 0.75rem 1.5rem; background: none; border: none; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.timeline { max-width: 600px; }
.timeline-item { display: flex; gap: 1rem; padding-bottom: 2rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 11px; top: 28px; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-200); flex-shrink: 0; margin-top: 2px; }
.timeline-item.active .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(27,110,243,0.2); }
.timeline-item.completed .timeline-dot { background: var(--green); }
.timeline-content h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.9rem; color: var(--gray-500); }

.chat-interface { max-width: 700px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-messages { padding: 1.5rem; max-height: 400px; overflow-y: auto; }
.message { margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); max-width: 80%; }
.message.bot { background: var(--gray-50); }
.message.user { background: var(--accent); color: var(--white); margin-left: auto; }
.chat-input-area { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--gray-100); }
.chat-input-area input { flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; }

/* Chatbot Widget */
.chatbot-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; }
.chatbot-toggle { width: 56px; height: 56px; background: var(--accent); color: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform 0.2s; }
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-panel { position: absolute; bottom: 70px; right: 0; width: 360px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.chatbot-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--accent); color: var(--white); font-weight: 600; }
.chatbot-header button { background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.2rem; }
.chatbot-messages { padding: 1rem; max-height: 300px; overflow-y: auto; }
.chatbot-input { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--gray-100); }
.chatbot-input input { flex: 1; padding: 0.5rem 0.75rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; }
.chatbot-input button { background: var(--accent); color: var(--white); border: none; width: 36px; height: 36px; border-radius: var(--radius-sm); cursor: pointer; }

.hidden { display: none !important; }

.flash-container { max-width: 700px; margin: 1rem auto; }
.flash-message { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; font-size: 0.9rem; }
.flash-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }

.page-section { padding: 4rem 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.content-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-card .read-more { font-weight: 600; color: var(--accent); }
.partner-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.benefit-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }

.filter-bar { display: flex; gap: 0.75rem; align-items: center; }
.filter-bar select, .filter-bar input { padding: 0.5rem 0.75rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .steps-grid, .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .portal-layout { flex-direction: column; }
    .portal-sidebar { width: 100%; }
    .sidebar-nav { display: flex; flex-wrap: wrap; }
    .dashboard-widgets { grid-template-columns: 1fr; }
    .wizard-progress { display: none; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .partner-benefits { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
}
