/* Helalleşme Endeksi - Kullanıcı Paneli Stilleri */

:root {
    --primary: #1a5f4a;
    --primary-dark: #0d3d2e;
    --primary-light: #2d8a6d;
    --accent: #d4af37;
    --accent-light: #e6c85a;
    --bg-dark: #0f1419;
    --bg-card: #1a2028;
    --bg-light: #232b35;
    --text-light: #f8f5f0;
    --text-muted: #9ca3af;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2a3a 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Kayıt formu için daha geniş container */
.auth-container.register {
    max-width: 520px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-block;
    width: 60px;
    height: 60px;
    color: var(--accent);
    margin-bottom: 16px;
}

.auth-logo svg {
    width: 100%;
    height: 100%;
}

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group label .optional {
    font-weight: 400;
    color: #6b7280;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Auth form row - şifre alanları için */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form .form-row .form-group {
    min-width: 0;
}

.auth-form .form-row .form-group input {
    width: 100%;
}

.btn-auth {
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.auth-footer p {
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success a {
    color: var(--accent);
    margin-left: 10px;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    font-size: 0.9rem;
}

/* CAPTCHA Stilleri */
.captcha-group {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.captcha-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.captcha-icon {
    font-size: 1.2rem;
}

.captcha-group label strong {
    color: var(--accent);
    font-size: 1.1rem;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 6px;
}

.captcha-input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.captcha-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Şifre Gereksinimleri */
.password-requirements {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.85rem;
}

.password-requirements p {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    color: var(--text-muted);
    margin: 4px 0;
}

.password-requirements li::marker {
    color: var(--accent);
}

/* User Layout */
.user-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.user-header {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
}

.header-logo svg {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

.header-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Main Content */
.user-main {
    flex: 1;
    padding: 32px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.welcome-section p {
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-card.green .stat-value { color: var(--success); }
.stat-card.red .stat-value { color: var(--danger); }
.stat-card.blue .stat-value { color: var(--info); }
.stat-card.orange .stat-value { color: var(--warning); }
.stat-card.purple .stat-value { color: #a78bfa; }

/* Trend Banner */
.trend-banner {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--accent);
}

.trend-banner.rising { border-left-color: var(--success); }
.trend-banner.falling { border-left-color: var(--danger); }

.trend-icon {
    font-size: 1.5rem;
}

.trend-info .up { color: var(--success); }
.trend-info .down { color: var(--danger); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px 24px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state-large {
    background: var(--bg-card);
    border-radius: 12px;
    text-align: center;
    padding: 60px 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.empty-state-large .empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.empty-state-large h2 {
    margin-bottom: 8px;
}

.empty-state-large p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Debt List */
.debt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.debt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.debt-item .debt-icon {
    font-size: 1.5rem;
}

.debt-item .debt-info {
    flex: 1;
}

.debt-item .debt-info strong {
    display: block;
    font-size: 0.95rem;
}

.debt-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.debt-amount {
    text-align: right;
}

.debt-amount .original {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.debt-amount .current {
    display: block;
    font-weight: 600;
}

.debt-amount .current.up {
    color: var(--success);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
}

.quick-action .action-icon {
    font-size: 1.5rem;
}

.quick-action .action-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-action.green:hover { background: rgba(34, 197, 94, 0.2); }
.quick-action.red:hover { background: rgba(239, 68, 68, 0.2); }
.quick-action.blue:hover { background: rgba(59, 130, 246, 0.2); }
.quick-action.purple:hover { background: rgba(167, 139, 250, 0.2); }

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td.highlight {
    font-weight: 600;
    color: var(--accent);
}

.data-table td.up {
    color: var(--success);
}

.data-table td.down {
    color: var(--danger);
}

.data-table td.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-muted);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* Debt Cards */
.debt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.debt-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.debt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.debt-card.alacak {
    border-left: 4px solid var(--success);
}

.debt-card.borc {
    border-left: 4px solid var(--danger);
}

.debt-card.paid {
    opacity: 0.7;
}

.debt-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.debt-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.debt-type-badge.alacak {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.debt-type-badge.borc {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.debt-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: var(--bg-light);
    color: var(--text-muted);
}

.debt-status-badge.paid {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.debt-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.debt-card-person {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.debt-card-person span {
    margin-left: 12px;
}

.debt-card-amounts {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.amount-row .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.amount-row .value {
    font-weight: 600;
}

.amount-row.current .value {
    color: var(--accent);
    font-size: 1.1rem;
}

.amount-row.change .value.up {
    color: var(--success);
}

.amount-row.change .value.down {
    color: var(--danger);
}

.debt-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.debt-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.debt-card-actions {
    display: flex;
    gap: 8px;
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.type-option input {
    display: none;
}

.type-option:hover {
    border-color: rgba(255,255,255,0.1);
}

.type-option input:checked + .type-icon + .type-label + .type-desc {
    color: var(--accent);
}

.type-option.alacak:has(input:checked) {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.type-option.borc:has(input:checked) {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.type-icon {
    font-size: 2rem;
}

.type-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.type-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Forecast Page */
.forecast-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.summary-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.summary-card h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trend-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trend-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trend-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.trend-value.up {
    color: var(--success);
}

.trend-value.down {
    color: var(--danger);
}

.trend-value.highlight {
    color: var(--accent);
}

/* Chart Section */
.forecast-chart-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-header h2 {
    font-size: 1.2rem;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    color: var(--accent);
}

.chart-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
}

.chart-container {
    height: 400px;
}

/* Projection Section */
.projection-section {
    margin-bottom: 32px;
}

.projection-form-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.projection-form-card h2 {
    margin-bottom: 8px;
}

.projection-form-card > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.projection-form {
    margin-bottom: 24px;
}

.projection-form .form-row {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
}

.projection-result {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.projection-result h3 {
    margin-bottom: 20px;
}

.projection-table-wrapper {
    overflow-x: auto;
}

.projection-table {
    width: 100%;
    border-collapse: collapse;
}

.projection-table th,
.projection-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.projection-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.projection-table td.highlight {
    font-weight: 600;
    color: var(--accent);
}

.projection-table td.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.projection-table td.up {
    color: var(--success);
}

.projection-table td.down {
    color: var(--danger);
}

.projection-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Yearly Stats Section */
.yearly-stats-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.05);
}

.yearly-stats-section h2 {
    margin-bottom: 24px;
}

.yearly-stats-table {
    overflow-x: auto;
}

/* Methodology Section */
.methodology-section {
    margin-bottom: 32px;
}

.methodology-section h2 {
    margin-bottom: 20px;
}

.methodology-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.method-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.method-card h3 {
    margin-bottom: 12px;
    color: var(--accent);
}

.method-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* History */
.history-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.history-summary {
    margin-top: 24px;
    display: flex;
    gap: 24px;
}

.history-summary .summary-item {
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 8px;
}

.history-summary .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.history-summary .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-summary {
        grid-template-columns: 1fr;
    }
    
    .methodology-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-header {
        flex-wrap: wrap;
        height: auto;
        padding: 16px;
        gap: 12px;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .debt-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 28px;
    }
    
    .projection-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .type-selector {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .page-actions .btn {
        flex: 1;
    }
}

/* =============================================
   Calendar Alerts
   ============================================= */
.calendar-alerts {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.alert-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.alert-card.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-card.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-icon {
    font-size: 2rem;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-card.danger .alert-content h4 {
    color: #f87171;
}

.alert-card.warning .alert-content h4 {
    color: #fbbf24;
}

.alert-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.alert-content strong {
    color: var(--text-light);
}

.alert-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.alert-action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .calendar-alerts {
        flex-direction: column;
    }
    
    .alert-card {
        flex-wrap: wrap;
    }
    
    .alert-action {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

