html, body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* ---- Uygulama ---- */
.brand { font-weight: 700; letter-spacing: -.01em; }
.app-drawer { border-right: 1px solid #e5e7eb; }

.page-title { font-weight: 700; letter-spacing: -.02em; }

.card {
    border: 1px solid #e5e7eb;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}

.stat-card .stat-label { color: #6b7280; font-size: .8rem; font-weight: 500; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-card .stat-sub { font-size: .8rem; color: #6b7280; }
.stat-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}

.amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; flex-shrink: 0; }
.pill {
    display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
}

.breakdown-row { margin-bottom: 14px; }
.breakdown-row .bar { height: 8px; border-radius: 999px; background: #eef0f3; overflow: hidden; margin-top: 6px; }
.breakdown-row .bar > div { height: 100%; border-radius: 999px; }

.month-bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 24px; }
.month-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.month-bars .bar { width: 100%; max-width: 56px; border-radius: 8px 8px 0 0; background: #99d5cf; min-height: 3px; transition: height .3s; }
.month-bars .bar.current { background: #0f766e; }
.month-bars .val { font-size: .72rem; color: #6b7280; margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.month-bars .lbl { font-size: .78rem; color: #6b7280; margin-top: 6px; }

/* ---- Bot sohbeti ---- */
.chat { background: #efeae2; border-radius: 12px; padding: 16px; height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 10px; font-size: .9rem; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.me { align-self: flex-end; background: #d9fdd3; }
.bubble.bot { align-self: flex-start; background: #fff; }

.chat-input { flex: 1; min-width: 0; border: 1px solid #d1d5db; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: .92rem; background: #fff; }
.chat-input:focus { outline: 2px solid #0f766e; outline-offset: 1px; border-color: transparent; }

code.inline { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }

/* ---- Giriş / kayıt sayfaları ---- */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%); padding: 24px;
}
.auth-card { background: #fff; border-radius: 18px; padding: 36px 32px; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card.wide { max-width: 860px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; color: #0f766e; margin-bottom: 4px; }
.auth-sub { color: #6b7280; margin-bottom: 24px; font-size: .95rem; }
.auth-card .btn-primary { background: #0f766e; border-color: #0f766e; font-weight: 600; }
.auth-card .btn-primary:hover, .auth-card .btn-primary:focus { background: #115e59; border-color: #115e59; }
.auth-card a { color: #0f766e; }

.validation-message { color: #dc2626; font-size: .85rem; }
.invalid { outline: 1px solid #dc2626; }

#blazor-error-ui {
    background: #fef3c7; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); display: none; left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
