:root {
  color-scheme: light;
  --primary: #0994dc;
  --primary-dark: #0879b4;
  --primary-soft: #e7f6fd;
  --brand-blue: #35339a;
  --accent: #ed1c24;
  --accent-dark: #c9141b;
  --success: #15966a;
  --success-soft: #e9f8f2;
  --warning: #d97706;
  --warning-soft: #fff7e6;
  --danger: #dc2626;
  --danger-soft: #fff0f0;
  --ink: #162033;
  --muted: #667085;
  --muted-light: #98a2b3;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e4e9f0;
  --shadow-sm: 0 4px 16px rgba(23, 32, 51, 0.06);
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.11);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar-width: 272px;
  font-family: "Open Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--background);
  font-size: 15px;
  line-height: 1.5;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  border: 0;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  display: block;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  place-items: center;
  gap: 18px;
  color: var(--muted);
  background:
    radial-gradient(circle at 12% 15%, rgba(9, 148, 220, 0.14), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(237, 28, 36, 0.08), transparent 28%),
    var(--background);
  font-size: 13px;
  font-weight: 700;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(9, 148, 220, 0.16);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-page {
  display: grid;
  min-height: 100vh;
  padding: clamp(16px, 5vw, 48px);
  place-items: center;
  background:
    linear-gradient(120deg, rgba(9, 148, 220, 0.06), transparent 40%),
    radial-gradient(circle at 84% 18%, rgba(53, 51, 154, 0.11), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(237, 28, 36, 0.09), transparent 25%),
    var(--background);
}

.login-page::before,
.login-page::after {
  position: fixed;
  z-index: 0;
  border: 1px solid rgba(9, 148, 220, 0.10);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-page::before {
  top: -190px;
  right: -150px;
  width: 440px;
  height: 440px;
}

.login-page::after {
  bottom: -240px;
  left: -190px;
  width: 520px;
  height: 520px;
}

.login-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  width: min(920px, 100%);
  min-height: 610px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.login-card__brand {
  position: relative;
  display: grid;
  padding: 48px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(9, 148, 220, 0.97), rgba(53, 51, 154, 0.96));
}

.login-card__brand::before,
.login-card__brand::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.login-card__brand::before {
  top: -70px;
  left: -80px;
  width: 270px;
  height: 270px;
}

.login-card__brand::after {
  right: -160px;
  bottom: -130px;
  width: 390px;
  height: 390px;
}

.login-card__brand img {
  position: relative;
  z-index: 1;
  width: min(240px, 86%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 17px;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.13));
}

.login-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 68px);
}

.login-card h1 {
  margin: 9px 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.login-lead {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.field__control {
  position: relative;
  display: block;
}

.field__control > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--muted-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 46px;
  background: #fbfcfe;
  border: 1px solid #d5dce6;
  border-radius: 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(9, 148, 220, 0.13);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #087eb9);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(9, 148, 220, 0.24);
}

.button--primary:hover {
  color: #fff;
  box-shadow: 0 11px 25px rgba(9, 148, 220, 0.3);
}

.button--accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d31820);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(237, 28, 36, 0.19);
}

.button--accent:hover {
  color: #fff;
}

.button--wide {
  width: 100%;
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.demo-hint {
  margin-top: 15px;
  padding: 10px 12px;
  color: var(--brand-blue);
  text-align: center;
  background: rgba(53, 51, 154, 0.07);
  border-radius: 10px;
  font-size: 12px;
}

.login-support {
  display: flex;
  margin-top: 28px;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  padding: 26px 18px 22px;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.sidebar__logo {
  display: block;
  width: 184px;
  margin: 0 auto 28px;
  padding: 4px;
}

.sidebar__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.navigation {
  display: grid;
  gap: 5px;
}

.navigation__item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  align-items: center;
  gap: 12px;
  color: #536075;
  text-align: left;
  background: transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.navigation__item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.navigation__item:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.navigation__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #168bc6);
  box-shadow: 0 8px 20px rgba(9, 148, 220, 0.21);
}

.navigation__badge {
  display: grid;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
}

.navigation__item.is-active .navigation__badge {
  color: var(--primary-dark);
  background: #fff;
}

.sidebar__support {
  display: flex;
  margin-top: auto;
  padding: 15px;
  align-items: center;
  gap: 11px;
  background: linear-gradient(135deg, var(--primary-soft), #f4f2ff);
  border: 1px solid rgba(9, 148, 220, 0.10);
  border-radius: 14px;
}

.sidebar__support-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.sidebar__support-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar__support div {
  min-width: 0;
}

.sidebar__support div > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.sidebar__support a {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app__main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  padding: 13px clamp(22px, 4vw, 52px);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(255, 255, 255, 0.91);
  border-bottom: 1px solid rgba(228, 233, 240, 0.86);
  backdrop-filter: blur(14px);
}

.topbar__title h1 {
  margin: 3px 0 0;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-menu__text {
  min-width: 0;
  text-align: right;
}

.account-menu__text strong,
.account-menu__text span {
  display: block;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__text strong {
  font-size: 13px;
}

.account-menu__text span {
  color: var(--muted);
  font-size: 11px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--primary));
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(53, 51, 154, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: rgba(9, 148, 220, 0.10);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.menu-button {
  display: none;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 52px) 52px;
  outline: none;
}

.welcome {
  display: flex;
  margin-bottom: 23px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.welcome h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.welcome p {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 12px;
  align-items: center;
  gap: 7px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(21, 150, 106, 0.13);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill::before {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(21, 150, 106, 0.10);
  content: "";
}

.status-pill--blocked {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.13);
}

.status-pill--warning {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: rgba(217, 119, 6, 0.13);
}

.metrics {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric {
  position: relative;
  min-height: 148px;
  padding: 21px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 96px;
  height: 96px;
  background: var(--primary-soft);
  border-radius: 50%;
  content: "";
}

.metric--balance {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 46%),
    linear-gradient(135deg, var(--primary), #087bb6);
  border-color: transparent;
}

.metric--balance::before {
  position: absolute;
  right: -50px;
  bottom: -100px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.metric--balance::after {
  background: rgba(255, 255, 255, 0.10);
}

.metric__label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.metric--balance .metric__label {
  color: rgba(255, 255, 255, 0.75);
}

.metric__value {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.metric__value small {
  font-size: 14px;
  font-weight: 700;
}

.metric__meta {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.metric--balance .metric__meta {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 20px;
}

.stack {
  display: grid;
  align-content: start;
  gap: 20px;
}

.panel {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel--spaced {
  margin-top: 20px;
}

.panel__header {
  display: flex;
  margin-bottom: 19px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel__header h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.panel__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 3px 0;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover {
  color: var(--accent);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.quick-action {
  display: flex;
  min-height: 104px;
  padding: 14px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  text-align: left;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.quick-action:hover {
  color: var(--primary-dark);
  border-color: rgba(9, 148, 220, 0.32);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quick-action__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 10px;
}

.quick-action__icon svg {
  width: 19px;
  height: 19px;
}

.traffic-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.traffic-ring {
  position: relative;
  display: grid;
  width: 136px;
  height: 136px;
  place-items: center;
  background: conic-gradient(var(--primary) 0 72%, #eaf0f5 72% 100%);
  border-radius: 50%;
}

.traffic-ring::before {
  position: absolute;
  width: 102px;
  height: 102px;
  background: var(--surface);
  border-radius: 50%;
  content: "";
}

.traffic-ring__value {
  position: relative;
  z-index: 1;
  text-align: center;
}

.traffic-ring__value strong,
.traffic-ring__value span {
  display: block;
}

.traffic-ring__value strong {
  font-size: 19px;
}

.traffic-ring__value span {
  color: var(--muted);
  font-size: 10px;
}

.traffic-legend {
  display: grid;
  gap: 13px;
}

.traffic-legend__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.traffic-legend__item::before {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  content: "";
}

.traffic-legend__item--upload::before {
  background: var(--brand-blue);
}

.traffic-legend__item strong {
  color: var(--ink);
  font-size: 12px;
}

.notice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 14px;
  gap: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(9, 148, 220, 0.12);
  border-radius: 12px;
}

.notice + .notice {
  margin-top: 10px;
}

.notice__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border-radius: 10px;
}

.notice__icon svg {
  width: 19px;
  height: 19px;
}

.notice h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.notice time {
  display: block;
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 10px;
}

.payment-list {
  display: grid;
}

.payment-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 13px 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.payment-row:first-child {
  padding-top: 0;
}

.payment-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-row__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 10px;
}

.payment-row--negative .payment-row__icon {
  color: var(--warning);
  background: var(--warning-soft);
}

.payment-row__icon svg {
  width: 18px;
  height: 18px;
}

.payment-row strong,
.payment-row span {
  display: block;
}

.payment-row__description strong {
  font-size: 12px;
}

.payment-row__description span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.payment-row__amount {
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-row--negative .payment-row__amount {
  color: var(--ink);
}

.page-header {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-header h2 {
  margin: 0 0 5px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.payment-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 36px);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--brand-blue));
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 38px rgba(53, 51, 154, 0.18);
}

.payment-hero::after {
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.payment-hero__content {
  position: relative;
  z-index: 1;
}

.payment-hero__content span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.payment-hero__content strong {
  display: block;
  margin: 5px 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.payment-hero__content p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.payment-hero .button {
  position: relative;
  z-index: 1;
  color: var(--accent);
  background: #fff;
  border-color: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.amount-positive {
  color: var(--success);
  font-weight: 800;
}

.amount-negative {
  color: var(--ink);
  font-weight: 800;
}

.tariff-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 260px;
  padding: clamp(26px, 5vw, 46px);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(9, 148, 220, 0.07), rgba(53, 51, 154, 0.07)),
    var(--surface);
  border: 1px solid rgba(9, 148, 220, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tariff-card::after {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: rgba(9, 148, 220, 0.06);
  border-radius: 50%;
  content: "";
}

.tariff-card__content,
.tariff-speed {
  position: relative;
  z-index: 1;
}

.tariff-card h3 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
}

.tariff-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.tariff-price strong {
  color: var(--primary-dark);
  font-size: 28px;
}

.tariff-price span {
  color: var(--muted);
  font-size: 12px;
}

.tariff-speed {
  display: grid;
  width: 190px;
  height: 190px;
  place-content: center;
  text-align: center;
  background: #fff;
  border: 12px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.tariff-speed strong {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.tariff-speed span {
  color: var(--muted);
  font-size: 11px;
}

.message-list {
  display: grid;
  gap: 12px;
}

.message-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 18px;
  align-items: start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.message-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
}

.message-card__icon svg {
  width: 21px;
  height: 21px;
}

.message-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.message-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}

.message-card time {
  color: var(--muted-light);
  font-size: 10px;
  white-space: nowrap;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.support-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
}

.support-card__icon svg {
  width: 23px;
  height: 23px;
}

.support-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.support-card p {
  min-height: 42px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
}

.support-card a {
  font-size: 13px;
}

.connection-list {
  display: grid;
  gap: 10px;
}

.connection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 13px 14px;
  align-items: center;
  gap: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 12px;
}

.connection-row strong,
.connection-row span {
  display: block;
}

.connection-row span {
  color: var(--muted);
}

.connection-state {
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(21, 150, 106, 0.10);
}

.connection-state--off {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09);
}

.empty-state {
  display: grid;
  min-height: 230px;
  padding: 32px;
  place-content: center;
  place-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #ccd5e1;
  border-radius: var(--radius);
}

.empty-state__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 16px;
}

.empty-state__icon svg {
  width: 26px;
  height: 26px;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-backdrop {
  display: none;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  width: min(370px, calc(100vw - 40px));
  gap: 10px;
}

.toast {
  padding: 13px 15px;
  color: #fff;
  background: #263247;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  animation: toast-in 180ms ease-out;
}

.toast--error {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1120px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: min(var(--sidebar-width), calc(100vw - 48px));
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    visibility: hidden;
    background: rgba(14, 23, 38, 0.44);
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .sidebar-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
  }

  .menu-button {
    display: grid;
  }

  .topbar__title {
    margin-right: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-card {
    display: block;
    width: min(470px, 100%);
    min-height: 0;
  }

  .login-card__brand {
    min-height: 150px;
    padding: 28px;
  }

  .login-card__brand img {
    width: 190px;
  }

  .login-card__content {
    padding: 30px;
  }

  .account-menu__text {
    display: none;
  }

  .topbar {
    min-height: 70px;
    padding-inline: 16px;
    gap: 8px;
  }

  .content {
    padding: 23px 16px 40px;
  }

  .welcome,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-action {
    min-height: 74px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .traffic-summary {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .traffic-legend {
    width: 100%;
  }

  .payment-hero,
  .tariff-card {
    grid-template-columns: 1fr;
  }

  .payment-hero .button {
    width: 100%;
  }

  .tariff-speed {
    width: 160px;
    height: 160px;
    justify-self: center;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .message-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .message-card time {
    grid-column: 2;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .data-table {
    min-width: 580px;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 0;
    background: var(--surface);
  }

  .login-card {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-card__brand {
    min-height: 126px;
  }

  .login-card__content {
    padding: 28px 22px;
  }

  .login-support {
    flex-direction: column;
    align-items: center;
  }

  .topbar__title .eyebrow {
    display: none;
  }

  .topbar__title h1 {
    font-size: 18px;
  }

  .avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 126px;
  }

  .panel {
    padding: 18px;
  }

  .connection-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .connection-row > span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
