/* base.css — Токены, reset, typography — тёмная тема */
:root {
    --primary: #0d1b3e;
    --primary-alt: #102a5c;
    --secondary: #3b82f6;
    --bg: #0f1629;
    --text: #e2e8f0;
    --header-bg: #0d1b3e;
    --accent: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --card: rgba(255,255,255,0.09);
    --card-border: rgba(255,255,255,0.14);
    --muted: #8899b0;
    --border: rgba(255,255,255,0.16);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #0f1629 0%, #142042 35%, #1a2d5a 65%, #111a30 100%); color: var(--text); font-size: 14px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
body::before { content: ''; position: fixed; top: -30%; right: -15%; width: 90%; height: 90%; background-image: radial-gradient(circle, rgba(60,140,255,0.2) 1px, transparent 1px); background-size: 16px 16px; border-radius: 50%; transform: rotate(-15deg); opacity: 0.5; mask-image: radial-gradient(ellipse at center, black 25%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 65%); z-index: 0; pointer-events: none; }
body::after { content: ''; position: fixed; bottom: -30%; left: -15%; width: 70%; height: 70%; background-image: radial-gradient(circle, rgba(60,140,255,0.12) 1px, transparent 1px); background-size: 12px 12px; border-radius: 50%; transform: rotate(20deg); opacity: 0.4; mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%); z-index: 0; pointer-events: none; }
#app { min-height: 100vh; position: relative; z-index: 1; will-change: transform; }

/* Каскадное появление */
.stagger { opacity: 0; transform: translateY(24px); animation: staggerIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
@keyframes staggerIn { to { opacity: 1; transform: translateY(0); } }

/* Header */
.header { display: flex; align-items: center; padding: 10px 12px; background: linear-gradient(135deg, #111d3a 0%, #162b55 50%, #1a3366 100%); color: #fff; min-height: 44px; gap: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05); z-index: 100; position: sticky; top: 0; border-bottom: 1px solid rgba(59,130,246,0.15); }
.header h1 { font-size: 17px; font-weight: 700; flex: 1; }
.header-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(59,130,246,0.3); background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.2)); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; backdrop-filter: blur(10px); box-shadow: 0 0 8px rgba(59,130,246,0.2), inset 0 1px 0 rgba(255,255,255,0.08); }
.header-btn:active { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.3)); box-shadow: 0 0 12px rgba(59,130,246,0.35); }

/* Buttons */
.btn { padding: 12px 24px; border-radius: 10px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(37,99,235,0.4)); color: #fff; border: 1px solid rgba(59,130,246,0.2); box-shadow: 0 2px 8px rgba(59,130,246,0.2); backdrop-filter: blur(10px); }
.btn-primary:active { box-shadow: 0 1px 4px rgba(59,130,246,0.15); }
.btn-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); box-shadow: 0 0 8px rgba(239,68,68,0.15); backdrop-filter: blur(10px); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.05); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-icon:active { background: rgba(255,255,255,0.1); }

/* Forms */
.input { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; font-size: 15px; background: rgba(255,255,255,0.08); color: #fff; backdrop-filter: blur(10px); }
.input::placeholder { color: rgba(255,255,255,0.3); }
.input:focus { outline: none; border-color: rgba(59,130,246,0.5); }
.label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; display: block; }
.form-group { margin-bottom: 12px; }
textarea.input { min-height: 80px; resize: vertical; }

/* Cards */
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(59,130,246,0.3); border-radius: var(--radius); padding: 12px; backdrop-filter: blur(10px); box-shadow: 0 0 8px rgba(59,130,246,0.15); }
.card:active { background: rgba(255,255,255,0.08); }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 12px; z-index: 100; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,0.35); font-size: 10px; cursor: pointer; padding: 6px 14px; border-radius: 12px; transition: all 0.3s ease; border: 1px solid transparent; }
.bottom-nav-item.active { color: #fff; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); box-shadow: 0 0 10px rgba(59,130,246,0.2); padding: 6px 18px; }
.bottom-nav-item svg { transition: transform 0.3s ease; }
.bottom-nav-item.active svg { transform: scale(1.15); }
