/* FlatSort — Consumer-Friendly Stylesheet */
/* Design reference: MagicPatterns prototype (purple/violet, clean, lots of whitespace) */

:root {
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --purple-800: #5b21b6;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    font-size: 15px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVIGATION ===== */
.nav {
    background: white;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--purple-700);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-500);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.15s;
    padding: 4px 0;
}

.nav-link:hover { color: var(--gray-800); }
.nav-link.active { color: var(--purple-600); }

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

.nav-btn-login {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.nav-btn-cta {
    background: #e74c6f;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.nav-btn-cta:hover { background: #d63d5f; }

.nav-line {
    height: 3px;
    background: linear-gradient(90deg, var(--purple-500), var(--purple-600), #e74c6f);
}

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--purple-600);
    color: white;
}

.btn-primary:hover { background: var(--purple-700); }

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--purple-500);
    color: var(--purple-600);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-600);
    background: var(--purple-100);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 580px;
    margin: 0 auto 12px;
}

.hero-sub {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== HOW SECTION ===== */
.how-section, .pain-section, .cta-section {
    padding: 60px 0;
}

.how-section h2, .pain-section h2, .cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.section-sub {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 40px;
}

.how-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.how-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.how-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--purple-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.how-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--gray-900);
}

.how-card p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 16px;
}

.how-time {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===== PAIN POINTS ===== */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pain-item { text-align: center; }

.pain-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.pain-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.pain-item p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.cta-section p {
    max-width: 560px;
    margin: 12px auto 24px;
    color: var(--gray-600);
}

/* ===== PAGE HEADERS ===== */
.page-header {
    padding: 48px 0 32px;
    text-align: center;
    background: linear-gradient(180deg, var(--purple-50) 0%, var(--gray-50) 100%);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-500);
    font-size: 16px;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.card-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px var(--purple-100);
}

.input-with-prefix {
    display: flex;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.input-with-prefix span {
    padding: 10px 14px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-weight: 500;
    border-right: 1.5px solid var(--gray-200);
}

.input-with-prefix input {
    border: none;
    flex: 1;
    padding: 10px 14px;
}

.input-with-prefix input:focus { box-shadow: none; }

.range-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-group input[type="range"] { flex: 1; }

.range-val {
    font-weight: 700;
    color: var(--purple-600);
    min-width: 40px;
}

.form-hint {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
    display: block;
}

/* ===== ELIGIBILITY RESULT ===== */
.result-pass, .result-fail {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-lg);
}

.result-pass {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.result-pass h3 { color: #166534; }
.result-pass p { color: #15803d; font-size: 14px; }

.result-fail {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.result-fail h3 { color: #991b1b; }
.result-fail p { color: #b91c1c; font-size: 14px; }

/* ===== SAVINGS RESULT ===== */
.savings-results {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.savings-stat {
    text-align: center;
    padding: 20px;
    background: var(--purple-50);
    border-radius: var(--radius-lg);
}

.savings-stat .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--purple-700);
    display: block;
}

.savings-stat .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* ===== PROCESS — STEPS ===== */
.check-section, .process-section, .manage-section {
    padding: 0 0 60px;
}

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

.tracker-pct {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
}

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

.step {
    display: flex;
    gap: 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step.expanded .step-num {
    background: var(--purple-600);
    color: white;
}

.step-line {
    width: 2px;
    flex: 1;
    background: var(--gray-200);
    margin: 8px 0;
    min-height: 16px;
}

.step-content {
    flex: 1;
    padding-bottom: 24px;
}

.step:last-child .step-content {
    padding-bottom: 0;
}

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

.step-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.step-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}

.step-badge.not-started {
    background: var(--gray-100);
    color: var(--gray-500);
}

.step-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
    display: none;
}

.step.expanded .step-desc {
    display: block;
}

.step.expanded .step-content {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-left: -20px;
    margin-bottom: 24px;
}

/* ===== TASK CARDS ===== */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 48px 0 24px;
}

.task-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.task-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.task-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.task-top h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.task-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.task-badge.not-started {
    background: var(--gray-100);
    color: var(--gray-500);
}

.task-card p {
    font-size: 14px;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 16px;
}

.task-btn {
    align-self: flex-end;
}

/* ===== RESOURCES ===== */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.resource-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
}

.resource-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.resource-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.resource-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.resource-link {
    font-size: 14px;
    color: var(--purple-600);
    text-decoration: none;
    font-weight: 500;
}

.resource-link:hover { text-decoration: underline; }

/* ===== MANAGE ===== */
.manage-intro {
    text-align: center;
    margin-bottom: 40px;
}

.manage-intro p {
    color: var(--gray-500);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.manage-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.manage-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.manage-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.manage-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.manage-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.manage-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-600);
    background: var(--purple-100);
    padding: 3px 10px;
    border-radius: 20px;
}

.manage-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
}

.manage-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.manage-cta p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 32px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    font-size: 18px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ===== MANAGE DASHBOARD ===== */
.building-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.building-avatar {
    width: 56px;
    height: 56px;
    background: var(--purple-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.building-details h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.building-details p {
    font-size: 14px;
    color: var(--gray-500);
}

.manage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.m-stat {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.m-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.m-stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Manage Tabs */
.manage-tabs {
    display: flex;
    gap: 4px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.m-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.m-tab.active {
    background: var(--purple-600);
    color: white;
}

.m-tab:hover:not(.active) {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Manage Panels */
.m-panel { display: none; }
.m-panel.active { display: block; }

.panel-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 28px 0 12px;
}

/* Finance */
.finance-month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.finance-month h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.month-nav {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-600);
}

.finance-summary {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8px;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.fin-row.total {
    background: var(--gray-50);
    font-weight: 600;
    border-bottom: none;
}

.fin-label { color: var(--gray-700); font-size: 14px; }
.fin-amount { font-weight: 600; font-size: 14px; }
.fin-amount.positive { color: #16a34a; }
.fin-amount.negative { color: #dc2626; }

.expense-list { display: flex; flex-direction: column; gap: 8px; }

.expense-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.expense-cat { font-size: 20px; }

.expense-info { flex: 1; display: flex; flex-direction: column; }
.expense-name { font-size: 14px; font-weight: 500; color: var(--gray-800); }
.expense-date { font-size: 12px; color: var(--gray-400); }
.expense-amount { font-weight: 600; color: #dc2626; font-size: 14px; }

.reserves { display: flex; flex-direction: column; gap: 8px; }

.reserve-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.reserve-name { font-size: 14px; font-weight: 500; color: var(--gray-800); display: block; }
.reserve-purpose { font-size: 12px; color: var(--gray-400); display: block; }
.reserve-amount { font-size: 18px; font-weight: 700; color: var(--purple-700); }

.outstanding { display: flex; flex-direction: column; gap: 8px; }

.outstanding-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 14px 16px;
}

.outstanding-avatar {
    width: 36px;
    height: 36px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.outstanding-info { flex: 1; display: flex; flex-direction: column; }
.outstanding-name { font-size: 14px; font-weight: 500; color: var(--gray-800); }
.outstanding-detail { font-size: 12px; color: #92400e; }
.outstanding-amount { font-weight: 700; color: #92400e; font-size: 16px; }

/* Issues */
.issues-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.issues-filter {
    font-size: 14px;
    color: var(--gray-400);
    cursor: pointer;
    padding-bottom: 4px;
}

.issues-filter.active {
    color: var(--gray-800);
    font-weight: 600;
    border-bottom: 2px solid var(--purple-600);
}

.issue-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
}

.issue-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.issue-top h4 { font-size: 15px; font-weight: 600; color: var(--gray-900); }

.issue-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.issue-status.open { background: #dbeafe; color: #1d4ed8; }

.issue-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }

.issue-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
}

.issue-payment {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #166534;
}

.vote-result { font-weight: 600; }

/* Members */
.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.member-avatar.director { background: var(--purple-100); color: var(--purple-700); }

.member-info { flex: 1; display: flex; flex-direction: column; }
.member-name { font-size: 14px; font-weight: 500; color: var(--gray-800); }
.member-detail { font-size: 13px; color: var(--gray-400); }

.member-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.member-status.paid { background: #dcfce7; color: #166534; }
.member-status.overdue { background: #fef3c7; color: #92400e; }

/* Calendar */
.cal-event {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cal-event.alert { background: #fef2f2; margin: 0 -16px; padding: 14px 16px; border-radius: var(--radius); border-bottom: none; }

.cal-date {
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.cal-day { display: block; font-size: 22px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.cal-month { display: block; font-size: 12px; color: var(--gray-400); text-transform: uppercase; }

.cal-info { flex: 1; }
.cal-title { display: block; font-size: 14px; font-weight: 500; color: var(--gray-800); }
.cal-detail { display: block; font-size: 13px; color: var(--gray-400); margin-top: 2px; }

/* Documents */
.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.doc-icon { font-size: 20px; }
.doc-info { flex: 1; display: flex; flex-direction: column; }
.doc-name { font-size: 14px; font-weight: 500; color: var(--gray-800); }
.doc-detail { font-size: 12px; color: var(--gray-400); }

.doc-upload {
    padding: 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray-400);
    cursor: pointer;
    margin-top: 12px;
    font-size: 14px;
}

.doc-upload:hover { border-color: var(--purple-500); color: var(--purple-600); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .how-cards, .task-grid, .resource-grid { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr 1fr; }
    .manage-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-links, .nav-actions { display: none; }
    .savings-results { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .manage-stats { grid-template-columns: repeat(2, 1fr); }
    .manage-tabs { gap: 2px; }
    .m-tab { padding: 8px 12px; font-size: 13px; }
    .issue-payment { flex-direction: column; gap: 4px; }
}
