:root { --bg: #f4f7fb; --panel: rgba(255,255,255,.88); --card: #fff; --line: rgba(15,23,42,.10); --text: #0f172a; --muted: #334155; --soft: #64748b; --accent: #2563eb; --accentText: #fff; --shadow: 0 18px 45px rgba(15,23,42,.12); }
body.dark { --bg: #05060b; --panel: rgba(2,6,23,.78); --card: rgba(255,255,255,.07); --line: rgba(255,255,255,.11); --text: #fff; --muted: #cbd5e1; --soft: #94a3b8; --accent: #22d3ee; --accentText: #020617; --shadow: 0 24px 70px rgba(0,0,0,.28); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; color: var(--text); background: linear-gradient(180deg, #dbeafe 0%, #f8fafc 42%, #f4f7fb 100%); -webkit-tap-highlight-color: transparent; }
body.dark { background: radial-gradient(circle at top, #23315f 0%, var(--bg) 45%, var(--bg) 100%); }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.page-wrap { width: 100%; max-width: 690px; min-height: 100vh; margin: 0 auto; background: var(--panel); border-left: 1px solid var(--line); border-right: 1px solid var(--line); overflow: hidden; position: relative; }
.phone-top { position: sticky; top: 0; z-index: 20; padding: max(14px, env(safe-area-inset-top)) 18px 12px; background: var(--panel); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.home-indicator { width: 92px; height: 4px; border-radius: 999px; background: rgba(148,163,184,.35); margin: 0 auto 12px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker { margin: 0 0 4px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .27em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.logo-row { display: flex; gap: 8px; align-items: center; }
.icon-btn, .logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 18px; background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.28); font-size: 20px; color: var(--text); text-decoration: none; }
.logo { width: 52px; height: 52px; font-size: 25px; }
.content { padding: 16px 18px 106px; }
.screen { display: none; animation: rise .18s ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card, .search-box, .form-box, .info-card { border: 1px solid var(--line); background: var(--card); border-radius: 26px; box-shadow: var(--shadow); }
.lang-btn { font-size: 12px; font-weight: 950; letter-spacing: .05em; }
.scroll-pills, .category-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.scroll-pills::-webkit-scrollbar, .category-row::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: rgba(148,163,184,.12); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 900; }
.pill.active { background: var(--accent); color: var(--accentText); }
.card { overflow: hidden; }
.day-head { padding: 20px; color: #fff; }
.day-head.orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.day-head.blue { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.day-head.violet { background: linear-gradient(135deg, #a78bfa, #c026d3); }
.day-head.red { background: linear-gradient(135deg, #fb7185, #dc2626); }
.day-head.green { background: linear-gradient(135deg, #34d399, #0d9488); }
.day-head.gray { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.day-head.gold { background: linear-gradient(135deg, #fde047, #d97706); }
.day-meta { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 900; }
.day-title-line { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.day-title { margin: 6px 0 0; font-size: 30px; line-height: 1.02; letter-spacing: -.05em; }
.day-icon { min-width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(0,0,0,.20); font-size: 26px; }
.day-short { margin: 14px 0 0; font-size: 16px; line-height: 1.35; color: rgba(255,255,255,.92); font-weight: 650; }
.card-body { padding: 18px; }
.section-title { margin: 0 0 10px; font-size: 14px; font-weight: 900; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.section-title.warning { color: #f97316; margin-top: 16px; }
.item-list { display: grid; gap: 8px; }
.item { padding: 13px; border-radius: 18px; background: rgba(148,163,184,.12); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.35; }
.day-nav, .pager { display: flex; justify-content: space-between; margin-top: 14px; gap: 10px; }
.btn { min-height: 44px; padding: 0 16px; border-radius: 18px; background: rgba(148,163,184,.14); color: var(--text); font-weight: 900; text-decoration: none; display: inline-grid; place-items: center; }
.btn.primary { background: var(--accent); color: var(--accentText); }
.search-box, .form-box, .info-card { padding: 12px; margin-bottom: 14px; }
.search-inner { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 18px; background: rgba(148,163,184,.12); }
.search-inner input, .form-box input, .form-box select { width: 100%; border: 1px solid var(--line); background: rgba(148,163,184,.10); color: var(--text); outline: 0; border-radius: 18px; padding: 13px 12px; }
.search-inner input { border: 0; background: transparent; padding: 0; }
.guide-card { padding: 16px; margin-bottom: 14px; }
.guide-img, .useful-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 20px; margin-bottom: 12px; }
.guide-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.guide-id { color: var(--accent); font-size: 12px; font-weight: 900; }
.guide-title { margin-bottom: 10px; font-size: 21px; line-height: 1.1; letter-spacing: -.03em; }
.guide-text { color: var(--muted); font-size: 14px; line-height: 1.55; }
.table-wrap { overflow: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.vip-total { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; gap: 9px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.add-row { display: grid; grid-template-columns: 1fr 54px; gap: 9px; }
.label-input { display: block; padding: 9px 12px 11px; border-radius: 18px; background: rgba(148,163,184,.10); border: 1px solid var(--line); color: var(--soft); font-size: 12px; font-weight: 800; }
.label-input input { margin-top: 4px; padding: 0; border: 0; background: transparent; font-size: 18px; font-weight: 950; }
.add-btn { height: 100%; border-radius: 18px; background: var(--accent); color: var(--accentText); font-size: 24px; font-weight: 950; }
.rank-list { display: grid; gap: 10px; }
.rank-card { padding: 14px; border-radius: 24px; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rank-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-num { min-width: 29px; height: 29px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accentText); font-weight: 950; }
.rank-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
.rank-sub { margin: 3px 0 0; color: var(--soft); font-size: 13px; }
.saving { text-align: right; min-width: 98px; }
.saving span { display: block; color: var(--soft); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.saving strong { color: var(--accent); font-size: 18px; }
.bar { height: 8px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: rgba(148,163,184,.22); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #67e8f9, #2563eb); }
.boost-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.boost-actions button { min-height: 38px; border-radius: 14px; background: rgba(34,211,238,.13); color: var(--accent); font-size: 12px; font-weight: 950; border: 1px solid rgba(34,211,238,.18); }
.status { margin-top: 8px; color: var(--soft); font-size: 12px; }
.bottom-tabs { position: fixed; left: 50%; bottom: max(19px, env(safe-area-inset-bottom)); transform: translateX(-50%);  z-index: 40; padding: 8px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tab-btn { min-height: 58px; border-radius: 20px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 950; }
.tab-btn b { display: block; font-size: 19px; margin-bottom: 3px; }
.tab-btn.active { background: var(--accent); color: var(--accentText); }
.empty { color: var(--soft); text-align: center; padding: 28px 10px; }
.event-card { background: linear-gradient(135deg, #fff7ed, #eff6ff); }
body.dark .event-card { background: linear-gradient(135deg, rgba(249,115,22,.16), rgba(34,211,238,.12)), var(--card); }
.event-timer { font-size: 34px; line-height: 1; font-weight: 950; letter-spacing: -.05em; color: var(--accent); margin: 8px 0 10px; }
.pretty-table { border-collapse: separate; border-spacing: 0; }
.pretty-table th { position: sticky; top: 0; background: #eff6ff; z-index: 1; }
.pretty-table tr:nth-child(even) td { background: rgba(37,99,235,.045); }
body.dark .pretty-table th { background: #0f172a; }
body.dark .pretty-table tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.level-badge { display: inline-grid; place-items: center; min-width: 28px; min-height: 26px; padding: 3px 8px; border-radius: 999px; background: rgba(37,99,235,.10); color: var(--accent); }
.time-pill { display: inline-block; padding: 5px 8px; border-radius: 999px; background: rgba(34,211,238,.14); color: var(--accent); font-weight: 900; }
@media (min-width: 760px) { body { padding: 16px; } .page-wrap { min-height: calc(100vh - 32px); border-radius: 42px; } .bottom-tabs { bottom: 28px; } }
