:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  color: #202a25;
  background: #eff2f0;
  font-size: 14px;
  --line: rgba(255, 255, 255, .86);
  --green: #287653;
  --muted: #748078;
  --glass: rgba(250, 252, 250, .66);
  --shadow: 0 18px 56px rgba(55, 69, 60, .11), inset 0 1px rgba(255,255,255,.96);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(135deg, #edf2ef 0%, #f4f1ec 52%, #edf1f5 100%) fixed; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid rgba(43, 119, 81, .32); outline-offset: 2px; }
.glass { border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(26px) saturate(165%); backdrop-filter: blur(26px) saturate(165%); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 390px); display: grid; gap: 14px; padding: 32px; border-radius: 26px; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 15px; background: linear-gradient(145deg, #e8f5ed, #cae5d5); color: #2d7650; font-weight: 750; font-size: 20px; }
h1, h2, p { margin: 0; }
.login-panel h1 { font-size: 23px; }
.login-panel > p, .page-intro p, .toolbar p, .panel-heading p { color: var(--muted); font-size: 12px; line-height: 1.6; }
label { display: grid; gap: 7px; color: #45534a; font-size: 12px; font-weight: 600; }
input:not([type=checkbox]) { width: 100%; height: 41px; border: 1px solid rgba(171, 186, 176, .5); border-radius: 12px; background: rgba(255,255,255,.62); padding: 0 12px; color: #25332a; outline: none; }
input:not([type=checkbox]):focus { border-color: rgba(48, 128, 86, .56); box-shadow: 0 0 0 3px rgba(72, 139, 99, .12); }
.button { min-height: 39px; border-radius: 12px; border: 1px solid transparent; padding: 0 14px; font-weight: 650; font-size: 12px; }
.button.primary { color: #fff; background: #287653; box-shadow: 0 6px 15px rgba(40, 118, 81, .18), inset 0 1px rgba(255,255,255,.18); }
.button.primary:hover { background: #206746; }
.button.secondary { color: #3f5146; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.6); }
.setup-message { padding: 11px 12px; border: 1px solid #e8cf9c; border-radius: 12px; background: rgba(255, 248, 231, .78); color: #765a20; font-size: 11px; line-height: 1.6; }
.admin-app { min-height: 100vh; }
.sidebar { position: fixed; inset: 14px auto 14px 14px; width: 230px; display: flex; flex-direction: column; padding: 20px 14px 14px; border-radius: 24px; }
.brand { padding: 9px 10px 29px; font-size: 16px; font-weight: 720; }
.brand span { margin-left: 5px; color: #78867d; font-size: 12px; font-weight: 550; }
.nav-list { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 11px; height: 43px; border: 0; border-radius: 13px; padding: 0 12px; color: #627168; background: transparent; text-align: left; font-size: 12px; }
.nav-link:hover { background: rgba(255,255,255,.55); color: #2d6547; }
.nav-link.active { color: #266b48; background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(50,76,61,.08), inset 0 0 0 1px rgba(255,255,255,.95); }
.nav-symbol { display: grid; place-items: center; width: 20px; height: 20px; color: #3d7755; font-size: 17px; }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.85); border-radius: 15px; background: rgba(255,255,255,.42); color: #59685f; font-size: 11px; overflow-wrap: anywhere; }
.quiet-button { justify-self: start; border: 0; padding: 3px 0; color: #477052; background: transparent; font-size: 11px; }
.main-area { margin-left: 258px; padding: 14px 22px 40px 0; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-radius: 19px; }
.topbar h1 { font-size: 18px; font-weight: 680; }
.top-kicker { display: block; margin-bottom: 3px; color: #819087; font-size: 8px; letter-spacing: .12em; }
.admin-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; background: rgba(255,255,255,.48); color: #53645a; font-size: 10px; }
.admin-badge i { width: 7px; height: 7px; border-radius: 50%; background: #57a36d; box-shadow: 0 0 0 3px rgba(87,163,109,.13); }
.content-wrap { max-width: 1420px; margin: 0 auto; padding: 24px 12px; }
.page-view { display: grid; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.stat-card { min-height: 116px; padding: 17px 18px; border-radius: 18px; }
.stat-card span { display: block; color: #718077; font-size: 11px; }
.stat-card b { display: block; margin-top: 12px; color: #26372d; font-size: 26px; font-weight: 660; }
.panel, .toolbar, .settings-panel { border-radius: 20px; padding: 0 19px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 0 14px; border-bottom: 1px solid rgba(112,131,120,.13); }
.panel-heading h2, .toolbar h2, .page-intro h2 { color: #29372e; font-size: 14px; }
.status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px 0 18px; }
.status-tile { padding: 13px 14px; border: 1px solid rgba(255,255,255,.86); border-radius: 14px; background: rgba(255,255,255,.45); }
.status-tile span { display: block; color: #758179; font-size: 10px; }
.status-tile b { display: block; margin-top: 6px; color: #314238; font-size: 12px; }
.toolbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar h2 { margin-bottom: 4px; }
.toolbar form { display: flex; gap: 8px; width: min(100%, 390px); }
.toolbar input { flex: 1; min-width: 120px; }
.table-panel { padding-top: 3px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 770px; }
th { padding: 12px 9px; color: #79867e; text-align: left; font-size: 10px; font-weight: 600; white-space: nowrap; }
td { padding: 11px 9px; border-top: 1px solid rgba(112,131,120,.12); color: #4c5b51; font-size: 11px; white-space: nowrap; }
tbody tr:hover { background: rgba(255,255,255,.38); }
td select { height: 32px; max-width: 125px; border: 1px solid rgba(171,186,176,.55); border-radius: 9px; background: rgba(255,255,255,.7); padding: 0 8px; color: #35463b; font-size: 10px; }
.row-actions { display: flex; gap: 5px; }
.row-actions .button { min-height: 31px; padding: 0 9px; font-size: 10px; }
.user-state { display: inline-flex; align-items: center; gap: 6px; }
.user-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4e9c67; }
.user-state.blocked::before { background: #bd6d60; }
.page-intro { display: grid; gap: 5px; }
.plans-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.plan-card { display: grid; align-content: start; gap: 12px; padding: 18px; border-radius: 19px; }
.plan-card h3 { color: #29372e; font-size: 14px; }
.plan-id { color: #849087; font-size: 9px; }
.plan-card .price-input { position: relative; }
.plan-card .price-input input { padding-right: 48px; }
.plan-card .price-input span { position: absolute; right: 12px; top: 12px; color: #78857d; font-size: 10px; }
.settings-panel { display: grid; gap: 13px; padding-bottom: 18px; }
.settings-panel .panel-heading { margin-bottom: 1px; }
.settings-panel label small { color: #819087; font-weight: 450; }
.check-row { display: flex; align-items: center; gap: 9px; color: #8d5549; }
.check-row input { accent-color: #a65348; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(37,49,41,.2); backdrop-filter: blur(8px); }
.modal { width: min(100%, 430px); display: grid; gap: 14px; padding: 22px; border-radius: 22px; }
.modal h2 { color: #28372d; font-size: 17px; }
.modal p { color: #748078; font-size: 11px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; gap: 8px; }
.toast { padding: 11px 14px; border: 1px solid rgba(255,255,255,.85); border-radius: 13px; background: rgba(34,54,42,.9); color: #fff; box-shadow: 0 12px 36px rgba(30,50,38,.18); font-size: 11px; }
.toast.error { background: rgba(130,64,55,.94); }
@media (max-width: 1020px) { .sidebar { width: 205px; } .main-area { margin-left: 230px; padding-right: 14px; } .plans-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .sidebar { inset: auto 8px calc(8px + env(safe-area-inset-bottom)); width: auto; height: calc(65px + env(safe-area-inset-bottom)); padding: 7px; border-radius: 19px; }
  .brand, .sidebar-foot { display: none; }
  .nav-list { display: flex; justify-content: space-around; gap: 3px; }
  .nav-link { min-width: 0; flex: 1; height: 48px; justify-content: center; gap: 2px; flex-direction: column; padding: 3px 1px; font-size: 9px; white-space: nowrap; }
  .nav-symbol { height: 18px; font-size: 14px; }
  .main-area { margin-left: 0; padding: 8px 8px 28px; }
  .topbar { height: 60px; padding: 0 15px; }
  .content-wrap { padding: 17px 2px calc(88px + env(safe-area-inset-bottom)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 96px; padding: 13px; }
  .stat-card b { margin-top: 9px; font-size: 22px; }
  .toolbar { align-items: stretch; flex-direction: column; padding-top: 15px; padding-bottom: 15px; }
  .toolbar form { width: 100%; }
  .plans-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .settings-panel, .panel { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 370px) { .nav-link { font-size: 8px; } }
.captcha-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; }
.captcha-refresh { height: 48px; padding: 0; overflow: hidden; border: 1px solid rgba(64, 91, 75, .18); border-radius: 10px; background: #edf3ef; cursor: pointer; }
.captcha-refresh img { display: block; width: 100%; height: 100%; object-fit: contain; }

.cycle-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cycle-prices label{min-width:0}.cycle-prices input{width:100%;min-width:0;padding-left:10px;padding-right:8px}.plan-period-note,.user-expiry{display:block;font-size:12px;line-height:1.7;color:#697c74}.user-expiry{margin:7px 0}.plan-card{min-width:0}textarea{width:100%;font:inherit;padding:12px;border:1px solid #dce6e0;border-radius:12px;background:rgba(255,255,255,.65);resize:vertical;line-height:1.6}.row-actions{flex-wrap:wrap}.user-cycle{max-width:150px}@media(max-width:1000px){.cycle-prices{grid-template-columns:1fr}.cycle-prices label{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:8px}}
