:root {
  color-scheme: light;
  --chrome: #515960;
  --ink: #080a0b;
  --muted: #4c565e;
  --line: #e0e4e8;
  --surface: #fff;
  --blue: #286ca7;
  --sidebar-width: clamp(184px, 15.67vw, 300px);
  --content-padding: clamp(23px, 2.2vw, 42px);
  font-family: Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  --sidebar: var(--sidebar-width);
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: 75px minmax(0, 1fr) 45px;
  grid-template-areas: "header header" "sidebar workspace" "footer footer";
  height: 100dvh;
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
}
body.sidebar-collapsed { --sidebar: 0px; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .66; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #368fda; outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.topbar {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(10px, 2.7vw, 52px) 0 5px;
  color: #fff;
}
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 13px; }
.topbar-start { gap: 19px; min-width: 0; }
.menu-toggle {
  display: grid;
  width: 49px;
  height: 40px;
  place-items: center;
  border: 1px solid #607689;
  border-radius: 5px;
  background: #526572;
  color: #fff;
}
.menu-toggle:hover { background: #637784; }
.menu-toggle .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.brand { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-badge { padding: 6px 13px; border: 1px solid #d8dde1; border-radius: 3px; font-size: 14px; white-space: nowrap; }
.top-badge.wallet-button { display: inline-flex; align-items: center; gap: 6px; background: #d9f2e9; color: #16483a; border-color: #99e2c8; font-weight: 700; }
.wallet-button:not(:disabled):hover { background: #bcebdc; }
.wallet-button .icon { width: 15px; height: 15px; }
.profile-link { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 4px 5px; border-radius: 5px; }
.profile-link:hover, .profile-link[aria-current="page"] { background: #ffffff18; }
.profile-avatar { flex: none; width: 30px; height: 30px; object-fit: contain; background: #f4f9fa; border-radius: 5px; }
.profile-initials { display: grid; place-items: center; color: #245785; background: #eaf2f9; font-size: 12px; font-weight: 700; }
#profile-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.logout-short { display: none; }
.clock { font-variant-numeric: tabular-nums; }

.sidebar { grid-area: sidebar; min-width: 0; overflow: auto; color: #fff; }
.sidebar-collapsed .sidebar { display: none; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 41px; padding: 7px 13px; font-size: 17px; }
nav a .icon { width: 23px; height: 23px; color: #b4bbc0; stroke-width: 2.4; }
nav a:hover { background: #ffffff18; }
nav a[aria-current="page"] { background: #ffffff0a; }
nav a:focus-visible { outline-offset: -3px; }
.workspace { grid-area: workspace; min-width: 0; overflow: auto; scrollbar-color: #d7d9db #f0f0f0; background: #fff; }
.tariffs-frame { display: block; width: 100%; border: 0; }
main {
  min-height: 100%;
  padding: 39px var(--content-padding) 36px;
  background: radial-gradient(ellipse at 26% 55%, #f4faf9 0, #ffffff 52%);
}
.section-kicker { margin: 0 0 22px; color: #383838; font-size: 15px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.12; letter-spacing: -.025em; }
h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.page-intro { margin-bottom: 31px; }
.page-intro > p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.metrics-grid, .charts-grid, .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.05vw, 40px); }
.card {
  min-width: 0;
  border: 1px solid #eff0f1;
  border-radius: 12px;
  background: linear-gradient(125deg, #fff 50%, #fcfefd);
  box-shadow: 0 2px 10px #18232c22;
}
.metric { display: flex; flex-direction: column; min-height: 201px; padding: 24px clamp(14px, 1.3vw, 25px) 26px; }
.metric-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.metric-head h2, .chart h3 { margin: 2px 0 0; font-size: 14px; line-height: 1.25; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.metric-value { margin: auto 0 16px; padding-top: 24px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 700; line-height: 1; overflow-wrap: anywhere; }
.metric-note { margin: 0; font-size: 14px; line-height: 1.35; }
.pill { display: inline-block; padding: 4px 11px; border: 1px solid #99e2c8; border-radius: 5px; background: #d9f2e9; color: #0b3d33; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.amber { border-color: #f2d4a2; background: #fdf0db; color: #633e0c; }
.pill.rose { border-color: #f7e9e9; background: #fae9ea; color: #582630; }
.pill.monthly { border-color: #c7daed; background: #eaf2fa; color: #254869; }
.operations-title { margin: 58px 0 25px; font-size: 18px; letter-spacing: .045em; text-transform: uppercase; }
.chart { display: flex; min-height: clamp(245px, 18vw, 345px); flex-direction: column; padding: 20px 19px 16px; }
.chart h3 { color: #202425; font-size: 15px; }
.chart h3 span { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; background: #737b81; color: #fff; font-size: 10px; vertical-align: 1px; }
.chart > svg { width: 100%; min-height: 0; margin: auto 0; overflow: visible; }
.chart-axis { stroke: #28323b; stroke-width: 1.2; }
.chart-grid { stroke: #d9e0e5; stroke-width: 1; stroke-dasharray: 5 3; }
.chart-label { fill: #5c6f82; font-size: 12px; }
.chart-series { fill: none; stroke: #00a87d; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

#overview:not([hidden]) + .page-intro + #services { margin-top: 50px; }
.section-head { display: flex; gap: 15px; justify-content: space-between; align-items: end; margin: 35px 0 18px; }
.section-head .section-kicker, dialog .section-kicker { margin-bottom: 7px; font-size: 12px; }
.section-aside, .text-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 2px; font-size: 14px; color: var(--muted); }
.section-aside .icon { width: 17px; height: 17px; }
.text-link { font-weight: 700; color: var(--blue); }
.text-link:hover { text-decoration: underline; }
.service-grid.single { grid-template-columns: minmax(0, 710px); }
.service { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.tile { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 5px; background: #edf1f3; color: #475761; }
.tile-green { color: #137760; background: #e3f2ed; }
.tile-lavender { color: #2c6594; background: #e7f0fa; }
.service h3 { margin: 15px 0 8px; font-size: 21px; line-height: 1.2; }
.service > p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.price { margin-top: 18px; line-height: 1.05; }
.price strong { font-size: 34px; letter-spacing: -.035em; }
.price span { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.price-detail { margin: 6px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 41px; padding: 9px 14px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; line-height: 1.25; }
.button .icon, .text-link .icon { width: 17px; height: 17px; }
.primary { background: var(--blue); color: #fff; }
.primary:hover:not(:disabled) { background: #225a8a; }
.secondary { background: #eaf2f9; border-color: #c2d7e8; color: #245785; }
.secondary:hover:not(:disabled) { background: #dcebf7; }
.service > .button { width: 100%; justify-content: space-between; }

.activity { overflow: hidden; }
.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #c2d7e8; border-radius: 5px; background: #f1f7fb; color: #254869; font-size: 14px; line-height: 1.4; }
.small-button { min-height: 32px; padding: 5px 9px; font-size: 12px; white-space: nowrap; }
.empty { display: flex; align-items: center; gap: 13px; padding: 17px 21px; }
.empty strong { font-size: 14px; }
.empty p, .schedule-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 19px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.history-toolbar select { max-width: 100%; padding: 7px 8px; border: 1px solid #aeb9c3; border-radius: 4px; background: var(--surface); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { background: #f5f7f8; color: var(--muted); font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.status { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 4px 8px; color: #145747; background: #dff2eb; }
.status.pending { color: #745320; background: #fbefd7; }
.status.future { color: #46545e; background: #eef1f3; }
.schedule { max-width: 710px; margin-top: 30px; }
.schedule > h2 { margin: 0 0 15px; font-size: 21px; }
.plan { margin-bottom: 16px; padding: 21px 24px; }
.schedule-header { display: flex; gap: 12px; align-items: center; }
.schedule-header h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.schedule-list { list-style: none; padding: 0; margin: 15px 0 0; }
.schedule-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 11px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.schedule-list strong small { display: block; margin-top: 3px; font-weight: 400; color: var(--muted); }
.plan-renew { margin-top: 8px; }
.review-card { max-width: 710px; }
.review-card p { overflow-wrap: anywhere; }
.review-form { display: grid; gap: 12px; margin-top: 14px; font-size: 14px; }
.review-form label { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.review-form input[type="date"], #provider-reference { padding: 7px 8px; border: 1px solid #aeb9c3; border-radius: 4px; font: inherit; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.main-footer { grid-area: footer; display: block; align-content: center; padding: 0 14px 0 calc(var(--sidebar) + 25px); color: #fff; font-size: 16px; }

dialog { width: min(460px, calc(100% - 28px)); max-height: calc(100% - 30px); padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); box-shadow: 0 14px 45px #18232c4d; }
dialog::backdrop { background: #1a222bb3; }
dialog form { padding: 22px 26px 25px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.icon-button { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; width: 34px; height: 34px; }
.icon-button:hover { background: #edf1f4; }
.dialog-sub { margin: 7px 0 0; font-size: 14px; color: var(--muted); }
.dialog-field { display: grid; gap: 8px; margin: 15px 0 10px; font-size: 14px; font-weight: 700; }
.dialog-field input, .dialog-field textarea { width: 100%; padding: 9px 10px; border: 1px solid #aeb9c3; border-radius: 5px; font: inherit; font-weight: 400; }
.dialog-field textarea { resize: vertical; }
.did-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.did-banner p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.did-numbers-table { min-width: 320px; }
.profile-card { margin: 0 0 20px; padding: 15px 20px 20px; }
.profile-card legend { padding: 0 8px; font-size: 16px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 12px 0; }
.profile-form-grid label, .profile-image-editor label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.profile-form-grid input:not([type="checkbox"]), .profile-form-grid textarea, .profile-form-grid select { width: 100%; padding: 8px 9px; font: inherit; font-weight: 400; border: 1px solid #aeb9c3; border-radius: 4px; }
.profile-form-grid textarea { resize: vertical; }
.profile-wide { grid-column: 1 / -1; }
.profile-image-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-image-editor input { max-width: 100%; font: inherit; font-weight: 400; }
#profile-preview { border: 1px solid var(--line); border-radius: 6px; background: #f4f9fa; }
.trunk-options { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 9px 0 13px; font-size: 14px; }
.trunk-check, .profile-form-grid .trunk-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.trunk-code { width: 100%; min-height: 96px; padding: 9px; resize: vertical; font: 13px/1.5 monospace; border: 1px solid #aeb9c3; border-radius: 4px; background: #f7f9fa; color: var(--ink); }
.trunk-block-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.trunk-block-header h3 { margin: 0; font-size: 16px; }
.welcome-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.checkout-quantity { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.checkout-quantity input { width: 84px; padding: 7px 8px; border: 1px solid #aeb9c3; border-radius: 4px; font: inherit; }
.order-summary { display: grid; gap: 9px; margin: 16px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fa; font-size: 14px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 8px; }
.order-summary dd { margin: 0; font-weight: 700; white-space: nowrap; }
.order-total { border-top: 1px solid var(--line); padding-top: 9px; font-weight: 700; }
.commitment, .payment-message { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.commitment .icon, .payment-message .icon { width: 16px; height: 16px; }
.commitment { margin: 0 0 14px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.method { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; margin-top: 6px; cursor: pointer; }
.method:has(input:checked) { border-color: #80a9cd; background: #f1f7fb; }
.method input { margin: 0; accent-color: var(--blue); }
.provider { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 4px; font-weight: 800; }
.provider svg { width: 18px; height: 18px; }
.paypal { background: #e9f1ff; color: #154584; font-style: italic; }
.binance { background: #fff3cc; color: #785900; }
.method strong, .method small { display: block; }
.method strong { font-size: 13px; }
.method small { margin-top: 2px; font-size: 12px; color: var(--muted); }
.dialog-submit { width: 100%; justify-content: space-between; }
.payment-message { margin: 12px 0; }
#order-code { white-space: normal; overflow-wrap: anywhere; text-align: right; }
#binance-instructions { font-size: 14px; line-height: 1.45; }
.recipient { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#order-reference-entry { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; }
#order-reference-entry .dialog-sub { margin: 0 0 4px; }
#order-reference-entry .button { justify-content: center; }
.error { color: #a02424; font-size: 13px; }
.toast { position: fixed; right: 20px; bottom: 57px; max-width: calc(100% - 40px); padding: 13px 16px; background: #35414b; color: #fff; border-radius: 5px; box-shadow: 0 4px 15px #18232c33; font-size: 14px; }

@media (max-width: 1040px) {
  .metric { min-height: 183px; }
  .metric-head { flex-wrap: wrap; }
  .metric-head .pill { padding-inline: 7px; }
  .operations-title { margin-top: 41px; }
}
@media (max-height: 760px) and (min-width: 801px) {
  main { padding-top: 28px; }
  .metric { min-height: 172px; }
  .operations-title { margin: 39px 0 19px; }
  .chart { min-height: 215px; }
}
@media (max-width: 800px) {
  .topbar-end, .topbar-start { gap: 8px; }
  .clock { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts-grid { grid-template-columns: 1fr; }
  .chart { min-height: 0; }
  .chart > svg { margin-top: 15px; }
}
@media (max-width: 640px) {
  body, body.sidebar-collapsed { --sidebar: 0px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 55px auto minmax(0, 1fr) 36px; grid-template-areas: "header" "sidebar" "workspace" "footer"; }
  :root { --content-padding: 15px; }
  .topbar { padding: 0 10px; }
  .menu-toggle { width: 37px; height: 33px; }
  .brand { font-size: 18px; }
  .top-badge { display: none; }
  nav { display: flex; overflow-x: auto; }
  nav a { min-height: 37px; gap: 5px; padding: 6px 9px; font-size: 13px; white-space: nowrap; }
  nav a .icon { width: 16px; height: 16px; }
  main { padding-top: 25px; }
  h1 { font-size: 29px; }
  .section-kicker { font-size: 12px; margin-bottom: 13px; }
  .metrics-grid { gap: 11px; }
  .metric { min-height: 147px; padding: 14px 11px; }
  .metric-head h2 { font-size: 12px; }
  .metric-value { padding-top: 14px; margin-bottom: 9px; }
  .metric-note { font-size: 12px; }
  .operations-title { margin: 27px 0 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .section-aside { font-size: 12px; }
  .main-footer { padding-inline: 12px; font-size: 13px; }
}
@media (max-width: 365px) {
  nav a { gap: 4px; padding-inline: 6px; font-size: 12px; }
  .service, .plan { padding: 17px; }
}
.welcome-page { display: block; min-height: 100vh; height: auto; background: #f5f7f8; }
.welcome-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(20px, calc((100% - 960px) / 2)); background: var(--chrome); color: #fff; }
.welcome-bar span { display: flex; align-items: center; gap: 9px; font-size: 20px; }
.welcome-login { border-color: #c4d0d8; color: #fff; white-space: nowrap; }
.welcome-login:hover { background: #ffffff18; }
.welcome-content { width: min(100%, 1008px); padding: clamp(30px, 8vw, 82px) 24px; margin: 0 auto; background: transparent; }
.welcome-content h1 { font-size: clamp(31px, 5vw, 54px); }
.welcome-intro { max-width: 56ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.welcome-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; margin: 27px 0; }
.welcome-services h2 { margin: 10px 0 0; font-size: 21px; }
.welcome-services .price { margin: 15px 0 7px; }
.welcome-note { color: var(--muted); font-size: 14px; }

.account-page { display: block; min-height: 100vh; height: auto; background: #f5f7f8; }
.account-bar { display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 0 24px; background: var(--chrome); color: #fff; font-size: 20px; }
.account-main { display: grid; place-items: start center; padding: 45px 16px; background: none; }
.account-card { width: min(100%, 460px); padding: clamp(18px, 5vw, 32px); }
.account-card h1 { font-size: 29px; }
.account-card > p:not(.section-kicker) { color: var(--muted); line-height: 1.45; }
.account-card .text-link { margin-top: 19px; }
.account-form, .account-form label { display: grid; gap: 9px; }
.account-form { gap: 15px; }
.account-form label { color: var(--ink); font-size: 14px; }
.account-form input { width: 100%; padding: 9px 10px; font: inherit; border: 1px solid #aeb9c3; border-radius: 5px; }
.sign-out { margin: 0; } .sign-out button { color: #fff; background: transparent; } .sign-out button:hover { background: #ffffff18; } @media (max-width: 640px) { .sign-out .top-badge { display: inline-block; font-size: 12px; } }
@media (max-width: 850px) {
  #top-total { display: none; }
  #profile-label { max-width: 100px; }
}
@media (max-width: 640px) {
  .topbar { gap: 5px; }
  .top-badge.wallet-button { font-size: 12px; padding: 6px 8px; }
  .wallet-button .icon { display: none; }
  .topbar-end, .topbar-start { gap: 5px; }
  .menu-toggle { flex: none; }
  .brand { font-size: 14px; }
  .profile-link { gap: 4px; padding: 3px; }
  .profile-avatar { width: 24px; height: 24px; }
  #profile-label { max-width: 70px; font-size: 11px; }
  .logout-full { display: none; }
  .logout-short { display: inline; }
  .sign-out .top-badge { padding-inline: 7px; }
  .profile-form-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card { padding-inline: 13px; }
}
