/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --color-emerald: #10b981;
    --color-emerald-hover: #059669;
    --color-emerald-glow: rgba(16, 185, 129, 0.25);
    
    --color-gold: #f59e0b;
    --color-gold-hover: #d97706;
    --color-gold-glow: rgba(245, 158, 11, 0.25);
    
    --color-coral: #f43f5e;
    --color-coral-hover: #e11d48;
    --color-coral-glow: rgba(244, 63, 94, 0.25);
    
    --color-blue: #3b82f6;
    --color-blue-glow: rgba(59, 130, 246, 0.2);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 2rem;
    line-height: 1.5;
}

/* Background Decor Elements */
.glass-bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.decor-1 {
    top: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-emerald-glow) 0%, transparent 70%);
}

.decor-2 {
    bottom: 10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.badge-emerald {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--color-emerald) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-coral { color: var(--color-coral) !important; }
.text-white { color: var(--text-primary) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.btn-coral {
    background-color: var(--color-coral);
    color: white;
    box-shadow: 0 4px 12px var(--color-coral-glow);
}

.btn-coral:hover {
    background-color: var(--color-coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-coral-glow);
}

.btn-emerald {
    background-color: var(--color-emerald);
    color: white;
    box-shadow: 0 4px 12px var(--color-emerald-glow);
}

.btn-emerald:hover {
    background-color: var(--color-emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-emerald-glow);
}

.btn-gold {
    background-color: var(--color-gold);
    color: #0b0f19;
    box-shadow: 0 4px 12px var(--color-gold-glow);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-gold-glow);
}

.btn-form {
    padding: 0.5rem 1rem;
    height: 40px;
    align-self: flex-end;
}

.btn-reset {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.btn-reset:hover {
    border-color: var(--color-coral);
    color: var(--color-coral);
    background-color: rgba(244, 63, 94, 0.05);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* Glow Borders on Hover/Active */
.glow-emerald:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.glow-coral:hover {
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.3);
}

.glow-gold:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Header Styles */
.app-header {
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-area h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Countdown Widget */
.countdown-widget {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    min-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.timer-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.timer-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.timer-colon {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    transform: translateY(-5px);
}

/* Main Content Layout */
.app-main {
    padding: 2.5rem 1.5rem;
}

.section-container {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.section-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard Grid Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card-progress {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.progress-circle-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.progress-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 7;
}

.progress-bar-fill {
    fill: none;
    stroke: var(--color-emerald);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 263.89; /* 2 * PI * r (r=42) */
    stroke-dashoffset: 263.89;
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.progress-value .percent {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.progress-value .desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.progress-stats {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    color: var(--text-secondary);
}

.stat-row .value {
    font-weight: 600;
}

/* Linear progress line at bottom */
.bar-progress-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.bar-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-emerald) 0%, #34d399 100%);
    border-radius: 9999px;
    transition: width 1s ease-in-out;
}

.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-emerald-opaque { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.bg-coral-opaque { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.2); }
.bg-gold-opaque { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }

.icon {
    width: 22px;
    height: 22px;
}

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

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.15rem 0;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Debt Repayment Cards */
.debt-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.debt-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.debt-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debt-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.debt-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-coral);
}

.debt-deadline {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.debt-card.paid {
    opacity: 0.65;
    border-color: rgba(16, 185, 129, 0.2);
}

.debt-card.paid .debt-amount {
    color: var(--text-muted);
    text-decoration: line-through;
}

.debt-status-paid {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chart-panel {
    display: flex;
    flex-direction: column;
}

.chart-panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.chart-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-height: 260px;
}

.savings-chart {
    width: 100%;
    height: 100%;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 1;
}

.chart-line-target {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 2;
    stroke-dasharray: 4,4;
}

.chart-line-actual {
    fill: none;
    stroke: var(--color-emerald);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 8px var(--color-emerald-glow));
    transition: d 1s ease;
}

.chart-axis-label {
    fill: var(--text-muted);
    font-size: 9px;
    font-weight: 500;
}

.text-right { text-anchor: end; }
.text-middle { text-anchor: middle; }

.chart-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

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

.target-dot {
    background: rgba(255, 255, 255, 0.35);
}

.actual-dot {
    background: var(--color-emerald);
    box-shadow: 0 0 6px var(--color-emerald);
}

/* Timeline Cards */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for Timeline */
.roadmap-timeline::-webkit-scrollbar {
    width: 6px;
}

.roadmap-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
}

.roadmap-timeline::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.roadmap-timeline::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.timeline-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.45);
}

.timeline-card.active-month {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.02);
}

.timeline-card.active-month .month-name {
    color: var(--color-gold);
}

.timeline-card.completed {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.timeline-card.completed .month-name {
    color: var(--color-emerald);
}

.timeline-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.month-status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.timeline-card.completed .month-status-icon {
    border-color: var(--color-emerald);
    background-color: var(--color-emerald);
    color: #0b0f19;
}

.month-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.month-meta {
    font-size: 0.725rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.month-meta span {
    margin-right: 0.75rem;
}

.timeline-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.timeline-save-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.timeline-card.completed .timeline-save-val {
    color: var(--color-emerald);
}

.btn-toggle-month {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-toggle-month:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.timeline-card.completed .btn-toggle-month {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
}

/* Dual Column Section Layout */
.dual-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.widget-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Budget Meter inside Expense Tracker */
.budget-meter-area {
    background: rgba(0, 0, 0, 0.15);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.budget-meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.meter-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}

.bg-emerald { background-color: var(--color-emerald); }
.bg-gold { background-color: var(--color-gold); }
.bg-coral { background-color: var(--color-coral); }

/* Form Fields */
.log-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.flex-2 { flex: 2; }
.flex-end { align-self: flex-end; }

.form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input, 
.form-group select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    height: 40px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

/* History Lists and Tables */
.history-area h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.table-wrapper {
    max-height: 180px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.data-table th, 
.data-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.empty-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem 0;
}

.btn-delete {
    background: transparent;
    border: none;
    color: var(--color-coral);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.2rem;
}

.btn-delete:hover {
    color: var(--color-coral-hover);
    text-decoration: underline;
}

/* Savings Booster Box */
.booster-status-box {
    background: rgba(245, 158, 11, 0.03);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.booster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.booster-header .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.booster-header .value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.booster-desc {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.booster-desc strong {
    color: var(--text-primary);
}

/* Core Covenant Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rule-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
}

.rule-badge {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.rule-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.rule-card p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hover-glow-emerald:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.hover-glow-coral:hover {
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.3);
}

.hover-glow-gold:hover {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}

.hover-glow-blue:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 5rem;
    text-align: center;
    background: rgba(9, 13, 22, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-content .tagline {
    font-style: italic;
    color: var(--text-secondary);
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

.text-center { text-align: center !important; }
.text-right { text-anchor: end; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-grid, 
    .roadmap-grid, 
    .dual-columns-grid, 
    .debt-list {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .progress-circle-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .countdown-widget {
        min-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .btn-form {
        width: 100%;
        align-self: auto;
    }
}

/* Shopee Installment items styling */
.installment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    margin-top: 0.25rem;
}
.installment-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}
.installment-item.paid {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.15);
    opacity: 0.75;
}
.shopee-installments-list::-webkit-scrollbar {
    width: 4px;
}
.shopee-installments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

/* Custom form-input styling */
.form-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    height: 40px;
    outline: none;
    transition: var(--transition-smooth);
}
.form-input:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
