/* Fuck You Money — modern */

:root {
    --bg: #07090d;
    --surface: #11151c;
    --surface-2: #181e27;
    --border: #2a3140;
    --text: #eef2f6;
    --muted: #8b95a7;
    --accent: #5b8cff;
    --accent-2: #f5c16c;
    --green: #3dd68c;
    --red: #ff6b6b;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(0,0,0,.35);
}

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

body {
    font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.header {
    background: rgba(17,21,28,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.header h1 a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, #f5c16c, #ff8a5b);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; color: #1a1208;
}
.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

main.container { padding-top: 28px; padding-bottom: 48px; }
h2 { font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
h3 { font-size: 1rem; font-weight: 600; }
.help, .muted { color: var(--muted); font-size: .9rem; }
.help { margin-bottom: 16px; }

.card, section.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-body { padding: 16px; }
.stat { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.stat .label { color: var(--muted); }

.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.summary-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.summary-card .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.summary-card .value { font-size: 1.35rem; font-weight: 700; margin-top: 6px; display: block; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .8rem; color: var(--muted); font-weight: 500; }
input, select {
    width: 100%;
    padding: 10px 12px;
    background: #0c1016;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: .95rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-inline .form-group { margin: 0; flex: 1; min-width: 120px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 16px; border: none; border-radius: 10px;
    font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-small { padding: 6px 12px; font-size: .8rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-small:hover { background: #222a36; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse at top, #1a2230, #07090d 60%); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow); text-align: center; }
.login-card h1 { margin: 12px 0 8px; }

@media (max-width: 640px) {
    .header .container { flex-direction: column; align-items: flex-start; }
    .cards { grid-template-columns: 1fr; }
}
