:root { color-scheme:dark; --bg:#0a0b0e; --panel:#121419; --panel2:#191c22; --line:#2a2e36; --text:#f4f5f7; --muted:#969da8; --accent:#ffb224; --accent2:#ff7a1a; --green:#48d597; --red:#ff6075; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
html { min-width:320px; background:var(--bg); }
body { margin:0; min-height:100vh; color:var(--text); background:linear-gradient(135deg,#0a0b0e,#101218 62%,#151109); }
button,input,select { font:inherit; }
button { color:inherit; }
[hidden] { display:none!important; }
.brand { display:flex; align-items:center; gap:12px; font-weight:900; letter-spacing:.1em; font-size:13px; }
.brand i { width:42px; height:42px; display:grid; place-items:center; border-radius:11px; background:var(--accent); color:#19130a; font-style:normal; font-weight:950; letter-spacing:-.05em; }
.overline,.brand-code { display:block; color:var(--accent); font-size:12px; font-weight:900; letter-spacing:.16em; }
.login-view { min-height:100vh; width:min(1180px,calc(100% - 40px)); margin:auto; display:grid; grid-template-columns:1.2fr .8fr; align-items:center; gap:80px; }
.login-brand h1 { margin:18px 0; font-size:clamp(54px,8vw,96px); line-height:.88; letter-spacing:-.07em; }
.login-brand p { max-width:620px; margin:0; color:var(--muted); font-size:18px; line-height:1.7; }
.login-card { max-width:460px; width:100%; justify-self:end; padding:32px; border:1px solid var(--line); border-radius:22px; background:rgba(18,20,25,.94); box-shadow:0 30px 100px rgba(0,0,0,.45); }
.login-card form { display:grid; gap:18px; margin-top:38px; }
h1,h2,p { overflow-wrap:anywhere; }
h2 { margin:5px 0 0; font-size:26px; letter-spacing:-.035em; }
label { display:grid; gap:8px; font-size:14px; font-weight:750; color:#d9dce2; }
input,select { width:100%; min-height:46px; border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#090a0d; color:var(--text); outline:none; }
input:focus,select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(255,178,36,.1); }
.primary,.danger,.ghost-danger { min-height:42px; border:0; border-radius:10px; padding:0 15px; display:inline-flex; align-items:center; justify-content:center; font-weight:850; cursor:pointer; }
.primary { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#171109; }
.danger,.ghost-danger { color:#ffabb6; background:rgba(255,96,117,.09); border:1px solid rgba(255,96,117,.2); }
.form-error { min-height:20px; margin:0; color:#ff8fa0; font-size:14px; }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:250px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; padding:28px 20px; border-right:1px solid var(--line); background:#0d0f13; display:flex; flex-direction:column; }
.sidebar nav { display:grid; gap:8px; margin-top:54px; }
.sidebar nav button { width:100%; border:1px solid transparent; border-radius:10px; padding:13px; background:transparent; color:var(--muted); display:flex; align-items:center; gap:13px; text-align:left; cursor:pointer; font-weight:750; }
.sidebar nav button span { color:#646b76; font:800 11px ui-monospace,monospace; }
.sidebar nav button.active { color:var(--text); border-color:var(--line); background:var(--panel2); }
.sidebar nav button.active span { color:var(--accent); }
.sidebar-foot { margin-top:auto; display:grid; gap:12px; }
.sidebar-foot small { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.workspace { min-width:0; padding:34px clamp(20px,4vw,58px) 60px; }
.workspace-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.workspace-head h1 { margin:7px 0 0; font-size:clamp(36px,5vw,60px); letter-spacing:-.055em; }
.api-status { display:flex; align-items:center; gap:9px; color:var(--green); font-size:13px; }
.api-status i { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 5px rgba(72,213,151,.1); }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.stat-grid article { min-width:0; padding:19px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.stat-grid span,.stat-grid small { color:var(--muted); font-size:13px; }
.stat-grid strong { display:block; margin:8px 0 2px; font-size:34px; color:var(--accent); }
.workspace-grid { display:grid; grid-template-columns:330px minmax(0,1fr); gap:18px; align-items:start; }
.control-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:var(--panel); }
.card-title { margin-bottom:20px; }
.settings-card form { display:grid; gap:14px; }
.card-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:18px; }
.card-heading input,.card-heading select { width:min(100%,290px); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:12px; }
table { width:100%; min-width:790px; border-collapse:collapse; }
th,td { padding:13px 14px; text-align:left; vertical-align:middle; border-bottom:1px solid var(--line); font-size:14px; }
th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
tr:last-child td { border-bottom:0; }
.identity strong,.identity small { display:block; }
.identity small { margin-top:4px; color:var(--muted); font-size:12px; }
.badge { display:inline-flex; padding:6px 9px; border-radius:99px; font-size:11px; font-weight:850; }
.badge.active,.badge.paid { color:var(--green); background:rgba(72,213,151,.1); }
.badge.locked,.badge.cancelled { color:#ff9aaa; background:rgba(255,96,117,.1); }
.badge.pending { color:var(--accent); background:rgba(255,178,36,.1); }
.row-actions { display:flex; gap:7px; align-items:center; }
.days-input { width:72px; min-height:38px; }
.small-button { min-height:38px; white-space:nowrap; }
.panel[hidden] { display:none; }
.loading { color:var(--muted); padding:26px; }
.toast { position:fixed; z-index:50; right:22px; bottom:22px; width:min(420px,calc(100% - 28px)); padding:14px 16px; border:1px solid rgba(255,178,36,.25); border-radius:11px; background:#1b1811; box-shadow:0 18px 60px rgba(0,0,0,.5); animation:toast-in .2s ease; }
.toast.error { border-color:rgba(255,96,117,.35); background:#211216; }
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } }
@media (max-width:1050px) { .workspace-grid { grid-template-columns:1fr; } .settings-card form { grid-template-columns:repeat(2,1fr); } .settings-card .card-title,.settings-card .form-error,.settings-card button { grid-column:1/-1; } }
@media (max-width:820px) { .login-view { grid-template-columns:1fr; gap:30px; padding:35px 0; } .login-card { justify-self:stretch; max-width:none; } .login-brand h1 { font-size:54px; } .admin-shell { grid-template-columns:1fr; } .sidebar { position:static; height:auto; padding:16px; flex-direction:row; align-items:center; gap:18px; overflow:auto; } .sidebar .brand span,.sidebar-foot small { display:none; } .sidebar nav { display:flex; margin:0; } .sidebar nav button { white-space:nowrap; } .sidebar-foot { margin:0 0 0 auto; } .workspace { padding:24px 15px 50px; } .stat-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:540px) { .login-view { width:min(100% - 24px,1180px); } .login-brand p { font-size:16px; } .login-card { padding:22px; } .workspace-head { align-items:flex-start; flex-direction:column; } .settings-card form { grid-template-columns:1fr; } .settings-card .card-title,.settings-card .form-error,.settings-card button { grid-column:auto; } .card-heading { align-items:stretch; flex-direction:column; } .card-heading input,.card-heading select { width:100%; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
