:root {
    --sobeg-primary: #4C8D28;
    --sobeg-primary-dark: #35661B;
    --sobeg-surface: #ffffff;
    --sobeg-background: #F4F6FB;
    --sobeg-border: #DDE3F0;
    --sobeg-text: #17203A;
    --sobeg-muted: #667085;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { background: var(--sobeg-background); }
body { margin: 0; min-width: 320px; background: var(--sobeg-background); color: var(--sobeg-text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
a { text-decoration: none; }
.app-shell { min-height: 100vh; }
.app-topbar { position: sticky; top: 0; z-index: 1020; padding: calc(.75rem + env(safe-area-inset-top, 0px)) .25rem .75rem; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--sobeg-border); backdrop-filter: blur(12px); }
.brand-mark, .btn-icon { display: inline-grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; }
.brand-mark { background: var(--sobeg-primary); color: #fff; font-weight: 800; font-size: 1.2rem; }
.btn-icon { border: 1px solid var(--sobeg-border); background: #fff; color: var(--sobeg-text); }
.app-eyebrow, .section-kicker { color: var(--sobeg-primary); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-title { font-size: 1.1rem; font-weight: 750; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #dc3545; border: 2px solid #fff; }
.app-content { max-width: 860px; margin: 0 auto; padding: 1.25rem 1rem calc(6.5rem + var(--safe-bottom)); }
.app-content-without-nav { padding-bottom: 2rem; }
.status-card, .module-card, .profile-card, .info-list, .empty-state { background: var(--sobeg-surface); border: 1px solid var(--sobeg-border); border-radius: 20px; box-shadow: 0 8px 28px rgba(76,141,40,.05); }
.status-card { padding: 1rem; }
.status-icon, .empty-state-icon, .info-icon { display: inline-grid; place-items: center; color: var(--sobeg-primary); background: #EDF6E8; border-radius: 14px; }
.status-icon { width: 44px; height: 44px; flex: 0 0 44px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-kicker { margin: 0 0 .2rem; }
.section-title { font-size: 1.05rem; font-weight: 750; }
.action-card { display: flex; align-items: center; gap: .85rem; min-height: 84px; height: 100%; padding: 1rem; color: var(--sobeg-text); background: #fff; border: 1px solid var(--sobeg-border); border-radius: 18px; }
.action-card:focus-visible, .action-card:hover { border-color: var(--sobeg-primary); color: var(--sobeg-text); box-shadow: 0 6px 20px rgba(76,141,40,.1); }
.action-card strong, .action-card small { display: block; }
.action-card small { margin-top: .15rem; color: var(--sobeg-muted); line-height: 1.3; }
.action-icon { display: inline-grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; }
.empty-state { padding: 2rem 1.25rem; text-align: center; }
.empty-state-icon { width: 58px; height: 58px; margin-bottom: 1rem; font-size: 1.4rem; }
.empty-state h2, .empty-state h3 { margin-bottom: .45rem; font-size: 1rem; font-weight: 750; }
.empty-state p, .module-card p { max-width: 520px; margin: 0 auto 1rem; color: var(--sobeg-muted); }
.module-card { height: 100%; padding: 1.25rem; }
.module-card h3 { margin: 1rem 0 .5rem; font-size: 1.05rem; font-weight: 750; }
.profile-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.profile-avatar { display: inline-grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 22px; background: var(--sobeg-primary); color: #fff; font-size: 1.75rem; }
.info-list { overflow: hidden; }
.info-row { display: flex; align-items: center; gap: .9rem; padding: 1rem; }
.info-row + .info-row { border-top: 1px solid var(--sobeg-border); }
.info-icon { width: 42px; height: 42px; flex: 0 0 42px; }
.info-row small, .info-row strong { display: block; }
.info-row small { color: var(--sobeg-muted); }
.bottom-nav { position: fixed; z-index: 1030; right: 0; bottom: 0; left: 0; padding-bottom: var(--safe-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--sobeg-border); box-shadow: 0 -8px 24px rgba(76,141,40,.08); backdrop-filter: blur(12px); }
.bottom-nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 860px; margin: 0 auto; padding: .35rem .15rem; }
.bottom-nav-link { display: flex; min-width: 0; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: var(--sobeg-muted); font-size: .64rem; font-weight: 650; text-align: center; }
.bottom-nav-link i { font-size: 1.15rem; }
.bottom-nav-link.active { color: var(--sobeg-primary); }
.btn-primary { --bs-btn-bg: var(--sobeg-primary); --bs-btn-border-color: var(--sobeg-primary); --bs-btn-hover-bg: var(--sobeg-primary-dark); --bs-btn-hover-border-color: var(--sobeg-primary-dark); }
.install-banner { position: fixed; z-index: 1050; right: .75rem; bottom: calc(76px + var(--safe-bottom)); left: .75rem; display: flex; align-items: center; gap: .75rem; max-width: 620px; margin: 0 auto; padding: .9rem 1rem; color: var(--sobeg-text); background: #fff; border: 1px solid var(--sobeg-border); border-radius: 18px; box-shadow: 0 14px 40px rgba(76,141,40,.2); }
.install-banner[hidden] { display: none; }
.install-banner p { color: var(--sobeg-muted); font-size: .8rem; }
.install-icon { display: inline-grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: #fff; background: var(--sobeg-primary); border-radius: 13px; }
.install-close { position: absolute; top: -.65rem; right: -.35rem; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: #fff; background: #17203A; border: 0; border-radius: 50%; font-size: 1.1rem; }
.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 1.25rem; }
.auth-card { width: 100%; max-width: 440px; padding: 1.5rem; background: #fff; border: 1px solid var(--sobeg-border); border-radius: 24px; box-shadow: 0 16px 44px rgba(76,141,40,.08); }
.auth-brand { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem; color: #fff; background: var(--sobeg-primary); border-radius: 20px; font-size: 1.6rem; font-weight: 800; }
.auth-title { margin-bottom: .5rem; font-size: 1.45rem; font-weight: 800; text-align: center; }
.auth-intro { color: var(--sobeg-muted); text-align: center; }
.auth-pending { display: flex; gap: .5rem; margin: 1rem 0 0; padding: .75rem; color: #745a00; background: #fff6d8; border-radius: 12px; font-size: .82rem; }
.welcome-page { display: grid; min-height: 100vh; background: #fff; }
.welcome-visual { position: relative; display: grid; min-height: 48vh; place-items: center; overflow: hidden; background: linear-gradient(145deg, #35661B 0%, var(--sobeg-primary) 58%, #72AD4E 100%); }
.welcome-logo { position: relative; z-index: 3; display: grid; place-items: center; width: 94px; height: 94px; color: var(--sobeg-primary); background: #fff; border-radius: 28px; box-shadow: 0 18px 40px rgba(0,0,0,.2); font-size: 2.25rem; font-weight: 850; }
.welcome-orbit { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.welcome-orbit-one { width: 260px; height: 260px; }
.welcome-orbit-two { width: 390px; height: 390px; }
.welcome-scene { position: absolute; right: 0; bottom: 0; left: 0; height: 34%; opacity: .22; }
.scene-building { position: absolute; bottom: 0; display: block; background: #fff; }
.scene-building-left { left: 8%; width: 25%; height: 58%; }
.scene-building-center { left: 39%; width: 24%; height: 92%; }
.scene-building-right { right: 8%; width: 22%; height: 70%; }
.scene-crane { position: absolute; right: 16%; bottom: 65%; color: #fff; font-size: 3rem; }
.welcome-content { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.4rem calc(2rem + var(--safe-bottom)); }
.welcome-content h1 { margin: .25rem 0 1rem; font-size: clamp(2rem, 8vw, 3.25rem); font-weight: 850; line-height: 1.05; letter-spacing: -.04em; }
.welcome-content > p:not(.section-kicker) { max-width: 560px; color: var(--sobeg-muted); font-size: 1rem; }
.welcome-benefits { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0 1.5rem; }
.welcome-benefits span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; color: var(--sobeg-primary-dark); background: #EDF6E8; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.welcome-action { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 520px; padding: .85rem 1.1rem; border-radius: 14px; font-weight: 750; }
@media (max-width: 380px) { .bottom-nav-link { font-size: .57rem; } .bottom-nav-link i { font-size: 1.05rem; } }
@media (min-width: 768px) { .app-content { padding-top: 2rem; } }
@media (min-width: 800px) { .welcome-page { grid-template-columns: 1.05fr .95fr; } .welcome-visual { min-height: 100vh; } .welcome-content { padding: 4rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
