.layout{display:flex;min-height:100vh;background:#0f1117;color:#e8eaed}.sidebar{width:220px;background:#161922;border-right:1px solid #2a2f3a;display:flex;flex-direction:column;padding:1.25rem}.brand{font-weight:700;font-size:1.1rem;margin-bottom:2rem}.sidebar nav{display:flex;flex-direction:column;gap:.5rem}.sidebar nav a{color:#aab0bc;text-decoration:none;padding:.6rem .75rem;border-radius:8px}.sidebar nav a.active,.sidebar nav a:hover{background:#252b38;color:#fff}.sidebar-footer{margin-top:auto;padding-top:1rem;border-top:1px solid #2a2f3a}.admin-info{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem}.admin-info button{background:transparent;border:1px solid #3a4150;color:#aab0bc;border-radius:6px;padding:.4rem;cursor:pointer}.content{flex:1;padding:1.5rem 2rem;overflow:auto}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.page-header h1{margin:0;font-size:1.5rem}.toolbar{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}input,select,button{font:inherit}input,select{background:#161922;border:1px solid #2a2f3a;color:#e8eaed;border-radius:8px;padding:.5rem .75rem}button.primary{background:#3b82f6;border:none;color:#fff;border-radius:8px;padding:.5rem .9rem;cursor:pointer}button.secondary{background:#252b38;border:1px solid #3a4150;color:#e8eaed;border-radius:8px;padding:.5rem .9rem;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}table{width:100%;border-collapse:collapse;background:#161922;border-radius:12px;overflow:hidden}th,td{text-align:left;padding:.75rem 1rem;border-bottom:1px solid #2a2f3a}th{color:#8b93a1;font-weight:500;font-size:.85rem}tbody tr{cursor:pointer}tbody tr:hover{background:#1c2130}.badge{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-size:.75rem;font-weight:600}.badge.active{background:#14352a;color:#4ade80}.badge.free{background:#2a2f3a;color:#aab0bc}.badge.expired{background:#3b2222;color:#f87171}.badge.forever{background:#2a2540;color:#a78bfa}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:#161922;border:1px solid #2a2f3a;border-radius:14px;width:min(640px,100%);max-height:90vh;overflow:auto;padding:1.25rem}.modal h2{margin:0 0 1rem}.modal-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1rem 0}.meta-grid div{background:#0f1117;border-radius:8px;padding:.75rem}.meta-grid span{display:block;color:#8b93a1;font-size:.75rem;margin-bottom:.25rem}.nodes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.node-card{background:#161922;border:1px solid #2a2f3a;border-radius:12px;padding:1rem}.node-card h3{margin:0 0 .5rem}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.4rem}.status-dot.connected{background:#4ade80}.status-dot.error{background:#f87171}.status-dot.connecting{background:#fbbf24}.progress-bar{height:8px;background:#2a2f3a;border-radius:999px;overflow:hidden;margin:.75rem 0}.progress-bar>div{height:100%;background:#3b82f6}.error-text{color:#f87171;margin-top:.5rem}.pagination{display:flex;gap:.5rem;align-items:center;margin-top:1rem}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0f1117;color:#e8eaed}.login-card{background:#161922;border:1px solid #2a2f3a;border-radius:14px;padding:2rem;text-align:center;max-width:400px}.login-card h1{margin-top:0}.telegram-login{min-height:52px;margin:1rem 0}.telegram-login-widget{display:flex;justify-content:center;min-height:44px}.telegram-login-help{margin-top:1rem;text-align:left;font-size:.875rem;color:#aab0bc;background:#0f1117;border-radius:8px;padding:.75rem 1rem}.telegram-login-help a{color:#60a5fa}.telegram-login-code{background:#161922;border:1px solid #2a2f3a;border-radius:8px;padding:.75rem;font-size:.8rem;white-space:pre-wrap;margin:.5rem 0}.telegram-oidc-button{display:inline-block;margin:1rem 0;padding:.65rem 1.25rem;background:#2481cc;color:#fff;text-decoration:none;border-radius:8px;font-weight:600}.telegram-oidc-button:hover{background:#1a6bab}.stats-as-of{color:#8b93a1;font-size:.85rem}.stats-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{background:#161922;border:1px solid #2a2f3a;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.25rem}.stat-card.highlight{border-color:#3b82f6;background:linear-gradient(135deg,#161922,#1a2235)}.stat-label{color:#8b93a1;font-size:.8rem}.stat-value{font-size:1.35rem;font-weight:700}.stat-hint{color:#6b7280;font-size:.75rem;line-height:1.3}.stats-section{margin-bottom:2rem}.stats-section h2{margin:0 0 1rem;font-size:1.15rem}.stats-section tbody tr{cursor:default}.calendar-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem}.calendar-header h2{margin:0}.calendar-nav{display:flex;align-items:center;gap:.75rem}.calendar-month{min-width:140px;text-align:center;text-transform:capitalize;font-weight:600}.calendar-legend{color:#8b93a1;font-size:.85rem;margin:0 0 1rem}.legend-auto{color:#4ade80}.legend-manual{color:#fbbf24}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-weekday{text-align:center;color:#8b93a1;font-size:.75rem;padding:.35rem}.calendar-cell{min-height:72px;background:#161922;border:1px solid #2a2f3a;border-radius:8px;padding:.4rem .45rem;display:flex;flex-direction:column}.calendar-cell.empty{background:transparent;border-color:transparent}.calendar-cell.has-renewals.low{border-color:#1e3a2f;background:#142820}.calendar-cell.has-renewals.mid{border-color:#1e4030;background:#183528}.calendar-cell.has-renewals.high{border-color:#22543a;background:#1a4030}.calendar-day-num{font-size:.85rem;font-weight:600;color:#aab0bc}.calendar-day-meta{margin-top:auto;display:flex;flex-direction:column;gap:.1rem;font-size:.7rem;line-height:1.2}.calendar-amount{color:#4ade80;font-weight:600}.calendar-auto{color:#6ee7b7;font-size:.65rem}@media (max-width: 768px){.calendar-cell{min-height:56px;padding:.3rem}.calendar-day-meta{font-size:.6rem}.calendar-auto{display:none}}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;background:#0f1117;color:#e8eaed}#root{min-height:100vh}
