@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
:root { --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --bg-body: #f0f4f8; --primary-color: #2563eb; --text-main: #1e293b; --text-muted: #64748b; --glass-bg: rgba(255, 255, 255, 0.75); --glass-border: rgba(255, 255, 255, 0.8); --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.04); --radius-card: 24px; --radius-sm: 14px; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-main); background: var(--bg-body); color: var(--text-main); min-height: 100vh; opacity: 0; transition: opacity 0.6s ease; overflow-x: hidden; }
body.loaded { opacity: 1; }
canvas { z-index: 10000 !important; pointer-events: none !important; position: fixed !important; top: 0; left: 0; width: 100%; height: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.ambient-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.6; animation: floatOrb 25s infinite ease-in-out; }
.orb-1 { width: 70vh; height: 70vh; background: #dbeafe; top: -20%; left: -20%; }
.orb-2 { width: 60vh; height: 60vh; background: #e0f2fe; bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 40vh; height: 40vh; background: #dcfce7; bottom: 20%; left: 30%; animation-delay: -10s; }
@keyframes floatOrb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 30px) scale(0.9); } }
.app-container { display: flex; min-height: 100vh; max-width: 1440px; margin: 0 auto; padding: 24px; gap: 24px; }
.content-area { flex: 1; display: flex; flex-direction: column; width: 100%; position: relative; background: radial-gradient(circle at top left, #f8fafc, #f3f4f6); border-radius: 32px; min-height: calc(100vh - 48px); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; flex-shrink: 0; z-index: 50; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8); border-radius: 24px; margin-bottom: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.02); }
.header-context { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.header-title { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg, #1e293b, #475569); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.date-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(37, 99, 235, 0.08); color: var(--primary-color); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid rgba(37, 99, 235, 0.1); transition: 0.2s; white-space: nowrap; flex-shrink: 0; }
.date-badge:hover { background: rgba(37, 99, 235, 0.15); transform: translateY(-1px); }
.header-separator { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; flex-shrink: 0; }
.header-subtitle { font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-box { display: none; }
.header-content-left { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.header-content-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.glass-nav { width: 88px; flex-shrink: 0; background: var(--glass-bg); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 44px; display: flex; flex-direction: column; align-items: center; padding: 32px 0; box-shadow: var(--glass-shadow); z-index: 100; }
.nav-logo { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 48px; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease; background: transparent; border: none; box-shadow: none; }
.nav-logo:hover { transform: scale(1.1) rotate(5deg); }
.nav-logo:active { transform: scale(0.95); }
.nav-logo.active-profile-link { background: white; box-shadow: 0 8px 20px rgba(0,0,0,0.06); border: none; }
.nav-logo-emoji { font-size: 24px; position: relative; z-index: 2; color: #1e293b; font-weight: 800; font-style: normal; }
.nav-logo-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(0,0,0,0.1); stroke-width: 4; transition: stroke 0.2s ease; }
.ring-val { fill: none; stroke: var(--primary-color); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-logo.active-profile-link .ring-bg { stroke: transparent; }
.nav-menu { display: flex; flex-direction: column; gap: 24px; width: 100%; align-items: center; }
.nav-btn { width: 48px; height: 48px; border-radius: 16px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-btn:hover { background: rgba(255,255,255,0.8); color: var(--primary-color); transform: scale(1.1); }
.nav-btn.active { background: white; color: var(--primary-color); box-shadow: 0 8px 20px rgba(0,0,0,0.06); transform: scale(1.05); }
.nav-btn.active::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--primary-color); border-radius: 4px; }
.card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-card); padding: 28px; backdrop-filter: blur(20px); box-shadow: var(--glass-shadow); }
.btn-base { padding: 14px; border-radius: 16px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; }
.form-input { width: 100%; padding: 14px; border-radius: 14px; border: 2px solid transparent; background: rgba(255,255,255,0.6); font-size: 15px; color: var(--text-main); outline: none; transition: 0.2s; font-family: inherit; }
.form-input:focus { background: white; border-color: var(--primary-color); }
.form-input:disabled { opacity: 0.6; cursor: not-allowed; background: rgba(0,0,0,0.03); }
.status-msg { text-align: center; margin-top: 10px; font-size: 14px; min-height: 20px; }
.status-msg.success { color: #10b981; }
.status-msg.error { color: #ef4444; }
.btn-save { width: 100%; padding: 14px 32px; border-radius: 14px; border: none; background: var(--primary-color); color: white; font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); font-family: inherit; display: flex; justify-content: center; align-items: center; }
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); background: #1d4ed8; }
.btn-save:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(248, 250, 252, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { background: #ffffff; border: 1px solid rgba(255,255,255,0.8); padding: 32px; border-radius: 32px; width: 90%; max-width: 360px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: scale(0.95); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); min-height: 0; position: relative; overflow: hidden; }
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-icon { font-size: 56px; line-height: 1; margin-bottom: 16px; font-style: normal; }
.modal-message { font-size: 16px; font-weight: 500; margin-bottom: 24px; color: var(--text-main); line-height: 1.6; }
.modal-message b { font-weight: 700; color: var(--primary-color); }
.modal-message i { font-size: 14px; color: var(--text-muted); }
.modal-message br { margin-bottom: 4px; content: ""; display: block; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text-main); line-height: 1.4; }
.modal-actions { display: flex; gap: 12px; justify-content: center; width: 100%; }
.modal-actions .btn-modal:only-child { flex: 1 0 100%; }
.btn-modal { flex: 1; padding: 16px; border-radius: 18px; border: none; cursor: pointer; font-weight: 700; font-size: 15px; transition: 0.2s; font-family: inherit; }
.btn-confirm { background: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3); }
.btn-cancel { background: #f1f5f9; color: var(--text-muted); }
.btn-cancel:hover { background: #e2e8f0; color: var(--text-main); }
@media(max-width: 850px) {
.app-container { flex-direction: column; padding: 0; margin: 0; display: block; height: auto; }
.content-area { height: auto; min-height: 100vh; padding: 130px 20px 120px 20px; padding-top: calc(130px + env(safe-area-inset-top)); padding-bottom: calc(120px + env(safe-area-inset-bottom)); overflow: visible; border-radius: 0; }
.top-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1100; margin: 0; padding: 12px 20px; padding-top: calc(12px + env(safe-area-inset-top)); border-radius: 0 0 24px 24px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: none; border-bottom: 1px solid rgba(255,255,255,0.5); align-items: center; justify-content: space-between; min-height: 70px; }
.header-content-left { gap: 2px; flex: 1; min-width: 0; padding-right: 10px; }
.header-title { font-size: 19px; line-height: 1.2; }
.header-subtitle { display: block; font-size: 11px; margin-left: 2px; opacity: 0.8; }
.header-content-right { gap: 0; }
.date-badge { font-size: 11px; padding: 0 12px; height: 32px; border-radius: 10px; margin-left: auto; }
.glass-nav { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateZ(0); -webkit-transform: translateX(-50%) translateZ(0); width: max-content; max-width: calc(100vw - 24px); height: auto; min-height: 68px; padding: 10px 14px; gap: 8px; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-radius: 34px; border: 1px solid rgba(255, 255, 255, 0.4); border-top: 1px solid rgba(255,255,255,0.7); box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.2); flex-direction: row; align-items: center; justify-content: center; margin-bottom: 0; z-index: 9999; flex-wrap: wrap; pointer-events: auto; }
.nav-logo { display: flex; margin-bottom: 0; width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: transparent; border: none; box-shadow: none; margin-right: 0; order: 99; position: relative; flex: 0 0 auto; }
.nav-logo:hover { transform: none; }
.nav-logo.active-profile-link { background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.nav-logo-emoji { font-size: 22px; }
.nav-logo-ring { display: block; width: 100%; height: 100%; top: 0; left: 0; }
.ring-bg { stroke-width: 3; }
.ring-val { stroke-width: 3; }
.nav-menu { display: contents; }
.nav-btn { width: 44px; height: 44px; min-width: 44px; flex: 0 0 auto; border-radius: 14px; position: relative; z-index: 2; touch-action: manipulation; }
.nav-btn.active { background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.nav-btn.active::before { display: none; }
}