body:not(.admin-body) {
  color-scheme: dark;
  --text: #e8f0ef;
  --ink: #e8f0ef;
  --muted: #a8b8b7;
  --paper: #101719;
  --panel: #172326;
  --panel-strong: #1e2d30;
  --line: #34474a;
  --cyan: #66d9cf;
  --blue: #75bce5;
  --teal: #55c6a6;
  --lime: #b4d879;
  --coral: #ec8f7e;
  --yellow: #e8c66d;
  --navy: #101719;
  --black: #080d10;
  --shadow: 0 8px 28px #0003;
  --glow: 0 0 0 2px #66d9cf33;
  margin: 0;
  background: #101719;
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
body:not(.admin-body) * { box-sizing: border-box; min-width: 0; letter-spacing: 0; }
body:not(.admin-body) :where(h1,h2,h3,h4,p,label,summary,a,code,td,th,strong,small) { overflow-wrap: anywhere; }
body:not(.admin-body) :where(img,video,svg,canvas) { max-width: 100%; }
body:not(.admin-body) :where(button,a,input,select,textarea,summary):focus-visible { outline: 2px solid #66d9cf; outline-offset: 3px; }
body:not(.admin-body) .topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 24px; gap: 16px;
  background: #101719f5; border-bottom: 1px solid #34474a;
  box-shadow: none; backdrop-filter: blur(10px);
}
body:not(.admin-body) .brand { color: #f2f7f5; font-size: 23px; font-weight: 800; text-shadow: none; }
body:not(.admin-body) .nav { gap: 8px; flex-wrap: wrap; }
body:not(.admin-body) .nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 10px; border-radius: 6px; color: #b7c7c5; text-decoration: none; }
body:not(.admin-body) .nav a:hover { color: #f2f7f5; background: #233538; }
body:not(.admin-body) .section { width: min(1180px, calc(100% - 48px)); padding: 36px 0; }
body:not(.admin-body) .section-head { margin-bottom: 24px; max-width: 800px; }
body:not(.admin-body) .section-head h2 { font-size: 28px; line-height: 1.25; color: #f2f7f5; text-shadow: none; }
body:not(.admin-body) .eyebrow { font-size: 12px; color: #66d9cf; font-weight: 700; }
body:not(.admin-body) :where(.plan-card,.dashboard-card,.history-card,.order-card,.user-card,.stat-card,.panel,.form-card) { border: 1px solid #34474a; border-radius: 8px; background: #172326; box-shadow: none; }
body:not(.admin-body) .plan-card::before { display: none; }
body:not(.admin-body) .plan-card { padding: 24px; }
body:not(.admin-body) :where(.button,button) { min-height: 42px; padding: 10px 16px; border-radius: 6px; font: inherit; font-weight: 650; white-space: normal; line-height: 1.35; text-shadow: none; cursor: pointer; }
body:not(.admin-body) :where(.button,button):disabled { cursor: not-allowed; opacity: .5; }
body:not(.admin-body) :where(.button.primary,button.primary) { background: #66d9cf; color: #081513; border: 1px solid #66d9cf; box-shadow: none; }
body:not(.admin-body) :where(.button.secondary,button.secondary) { background: #203236; color: #e8f0ef; border: 1px solid #456064; box-shadow: none; }
body:not(.admin-body) :where(input:not([type=checkbox]):not([type=radio]),select,textarea) { width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #456064; border-radius: 6px; background: #101b1e; color: #e8f0ef; font: inherit; }
body:not(.admin-body) :where(input,select,textarea):focus { border-color: #66d9cf; }
body:not(.admin-body) textarea { resize: vertical; line-height: 1.5; }
body:not(.admin-body) input[type=checkbox] { accent-color: #55c6a6; }
body:not(.admin-body) :where(.actions,.compact-actions,.cabinet-head-actions,.telegram-vpn-actions) { flex-wrap: wrap; gap: 10px; }
body:not(.admin-body) :where(.telegram-vpn-grid,.pricing-grid-single .plan-card) { gap: 24px; }
body:not(.admin-body) .telegram-vpn-entry { padding: 20px; border-color: #34474a; background: #172326; border-radius: 8px; }
body:not(.admin-body) .telegram-vpn-entry b { font-size: 22px; line-height: 1.35; }
body:not(.admin-body) .telegram-vpn-avatar { border-color: #456064; }
body:not(.admin-body) .feature-chip { border-radius: 6px; background: #203033; border-color: #34474a; min-height: 74px; }
body:not(.admin-body) .feature-chip strong { font-size: 23px; }
body:not(.admin-body) .cabinet-simple-head { padding: 0 0 22px; border: 0; border-bottom: 1px solid #34474a; border-radius: 0; background: none; gap: 20px; }
body:not(.admin-body) .cabinet-simple-head h3 { font-size: 24px; line-height: 1.3; }
body:not(.admin-body) :where(.cabinet-buy-strip,.traffic-topup-panel,.referral-panel) { padding: 20px 0; border: 0; border-bottom: 1px solid #34474a; border-radius: 0; background: none; }
body:not(.admin-body) .cabinet-buy-strip { grid-template-columns: minmax(160px,1fr) minmax(160px,1fr) minmax(100px,auto) auto; gap: 16px; }
body:not(.admin-body) .subscription-row { grid-template-columns: minmax(0,1.5fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,.5fr); background: #172326; border-color: #34474a; gap: 16px; padding: 16px; min-height: 72px; }
body:not(.admin-body) .subscription-row:hover { border-color: #66d9cf; background: #203033; }
body:not(.admin-body) .subscription-row strong { font-size: 16px; }
body:not(.admin-body) .subscription-row small { font-size: 12px; }
body:not(.admin-body) .subscription-detail-card > .history-card { border: 0; border-radius: 0; border-top: 1px solid #34474a; padding: 18px 0 0; background: none; }
body:not(.admin-body) .subscription-head { gap: 16px; flex-wrap: wrap; }
body:not(.admin-body) .subscription-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body:not(.admin-body) .subscription-actions > * { max-width: 100%; }
body:not(.admin-body) :where(.subscription-detail-grid,.traffic-package-grid,.referral-grid) { gap: 12px; }
body:not(.admin-body) :where(.subscription-detail-grid div,.traffic-package-button) { border-color: #34474a; background: #172326; padding: 14px; }
body:not(.admin-body) :where(.referral-link-box,.link-row,.key-row) { flex-wrap: wrap; gap: 8px; }
body:not(.admin-body) :where(pre,.table-wrapper,.table-scroll) { max-width: 100%; overflow: auto; }
body:not(.admin-body) .modal-overlay { padding: 20px; max-height: 100dvh; overflow-y: auto; }
body:not(.admin-body) .modal-card { width: min(760px,100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 24px; background: #172326; border: 1px solid #456064; border-radius: 8px; }
body:not(.admin-body) .modal-close { position: sticky; top: 0; z-index: 3; background: #203236; }
body:not(.admin-body) .modal-card > :where(.actions,.modal-actions) { position: sticky; bottom: -16px; z-index: 2; margin-top: 16px; padding-block: 12px; border-top: 1px solid #34474a; background: #172326; }
body:not(.admin-body) .toast { max-width: calc(100% - 24px); border-radius: 8px; background: #203236; border-color: #456064; color: #e8f0ef; }
body.personal-cabinet-body main { width: min(860px,calc(100% - 48px)); margin: 44px auto; }
body.personal-cabinet-body .panel { padding: 28px; }
body.personal-cabinet-body h1 { font-size: 26px; line-height: 1.3; }
body.personal-cabinet-body p { color: #a8b8b7; }
body.personal-cabinet-body .row { gap: 12px; }
body.personal-cabinet-body .row select { width: auto; min-width: 140px; }
body.personal-cabinet-body button { background: #66d9cf; color: #081513; border-color: #66d9cf; }
body.personal-cabinet-body .sub { border-color: #34474a; padding: 20px 0; }
body.personal-cabinet-body a { color: #75bce5; }
body.personal-cabinet-body .muted { color: #a8b8b7; }

@media (max-width: 900px) {
  body:not(.admin-body) :where(.telegram-vpn-grid,.pricing-grid-single .plan-card) { grid-template-columns: minmax(0,1fr); }
  body:not(.admin-body) .cabinet-buy-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body:not(.admin-body) .topbar { flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; }
  body:not(.admin-body) .brand { font-size: 19px; }
  body:not(.admin-body) .nav { gap: 2px; }
  body:not(.admin-body) .nav a { padding: 8px 6px; font-size: 12px; min-height: 44px; }
  body:not(.admin-body) .section { width: calc(100% - 24px); padding: 24px 0; }
  body:not(.admin-body) .section-head { margin-bottom: 16px; }
  body:not(.admin-body) .section-head h2 { font-size: 24px; }
  body:not(.admin-body) .plan-card { padding: 16px; }
  body:not(.admin-body) .pricing-grid { grid-template-columns: minmax(0,1fr); }
  body:not(.admin-body) :where(.button,button) { min-height: 44px; padding: 10px 12px; }
  body:not(.admin-body) .telegram-vpn-entry { padding: 16px; grid-template-columns: 60px minmax(0,1fr); gap: 12px; }
  body:not(.admin-body) .telegram-vpn-avatar { width: 60px; height: 60px; }
  body:not(.admin-body) .telegram-vpn-entry b { font-size: 18px; }
  body:not(.admin-body) .cabinet-simple-head { padding-bottom: 16px; }
  body:not(.admin-body) .cabinet-simple-head h3 { font-size: 22px; }
  body:not(.admin-body) .subscription-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 14px; }
  body:not(.admin-body) .subscription-row > span:first-child { grid-column: 1 / -1; }
  body:not(.admin-body) :where(.subscription-detail-grid,.traffic-package-grid,.referral-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body:not(.admin-body) .modal-overlay { padding: 8px; align-items: end; }
  body:not(.admin-body) .modal-card { max-height: calc(100dvh - 16px); padding: 16px; }
  body.personal-cabinet-body main { width: calc(100% - 24px); margin: 24px auto; }
  body.personal-cabinet-body .panel { padding: 18px; }
  body.personal-cabinet-body h1 { font-size: 23px; }
  body.personal-cabinet-body .row { display: grid; grid-template-columns: minmax(0,1fr); }
  body.personal-cabinet-body .row select { width: 100%; }
}
@media (max-width: 390px) {
  body:not(.admin-body) .cabinet-buy-strip { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body) *,body:not(.admin-body) *::before,body:not(.admin-body) *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
