/* NUBO VPN — app page components (keys, payments, profile, dashboard) */
body.wc-nubo .fst-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
  padding: 0 2px;
}

body.wc-nubo .fst-block {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 10px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}
body.wc-nubo .fst-block:hover { border-color: var(--stroke-2); }

body.wc-nubo .fst-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 52px;
  transition: background 0.2s;
}
body.wc-nubo .fst-row:last-child { border-bottom: none; }
body.wc-nubo .fst-row:hover { background: rgba(34, 211, 238, 0.04); }
body.wc-nubo .fst-row-body { flex: 1; min-width: 0; }
body.wc-nubo .fst-row-title { font-size: 14px; font-weight: 600; color: var(--text); }
body.wc-nubo .fst-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.wc-nubo .fst-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
body.wc-nubo .fst-row-value { font-size: 14px; font-weight: 700; color: var(--text); }

body.wc-nubo .fst-row-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.wc-nubo .fst-row-link:last-child { border-bottom: none; }
body.wc-nubo .fst-row-link:hover { background: rgba(34, 211, 238, 0.05); }
body.wc-nubo .fst-row-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--stroke-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}

body.wc-nubo .fst-balance {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.06));
  border: 1px solid var(--stroke-2);
  border-radius: var(--r);
  padding: 24px 22px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
body.wc-nubo .fst-balance-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
body.wc-nubo .fst-balance-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: 44px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}
body.wc-nubo .fst-balance-currency { font-size: 20px; color: var(--muted); }
body.wc-nubo .fst-balance-amount-row { display: flex; align-items: baseline; gap: 6px; }

body.wc-nubo .fst-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 10px;
}
body.wc-nubo .fst-kpi {
  padding: 16px 12px;
  border-right: 1px solid var(--stroke);
  text-align: center;
}
body.wc-nubo .fst-kpi:last-child { border-right: none; }
body.wc-nubo .fst-kpi-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
}
body.wc-nubo .fst-kpi-lbl,
body.wc-nubo .fst-kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
body.wc-nubo .fst-kpi-icon { font-size: 20px; margin-bottom: 4px; opacity: 0.75; }
body.wc-nubo .fst-kpi-val-green { color: #34d399 !important; }

body.wc-nubo .fst-dot,
body.wc-nubo .fst-sub-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
body.wc-nubo .fst-dot-green { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
body.wc-nubo .fst-dot-red { background: #f87171; }
body.wc-nubo .fst-dot-orange { background: #fb923c; }

body.wc-nubo .fst-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
body.wc-nubo .fst-badge-acc {
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

body.wc-nubo .fst-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
body.wc-nubo .fst-auth-action { text-align: center; font-size: 13px !important; }

/* ---------- keys page ---------- */
body.wc-nubo .nubo-keys-kpis { margin-bottom: 14px; }
body.wc-nubo .nubo-kpi-warn { color: #fb923c !important; }

body.wc-nubo .nubo-keys-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
body.wc-nubo .nubo-keys-toolbar-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

body.wc-nubo .nubo-keys-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body.wc-nubo .nubo-keys-list-label { margin: 0; }
body.wc-nubo .nubo-keys-search {
  width: min(200px, 42vw);
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  color: #fff;
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.wc-nubo .nubo-keys-search:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
body.wc-nubo .nubo-keys-search::placeholder { color: rgba(255, 255, 255, 0.45); }

body.wc-nubo .nubo-keys-list {
  display: grid;
  gap: 12px;
}
body.wc-nubo .nubo-sub-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.wc-nubo .nubo-sub-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
body.wc-nubo .nubo-sub-body { flex: 1; min-width: 0; }
body.wc-nubo .nubo-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
body.wc-nubo .nubo-sub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
body.wc-nubo .nubo-sub-meta {
  font-size: 11px;
  color: var(--muted);
}
body.wc-nubo .fst-badge-group {
  background: rgba(124, 99, 255, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(124, 99, 255, 0.28);
}
body.wc-nubo .nubo-badge-danger {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
body.wc-nubo .nubo-badge-warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
body.wc-nubo .nubo-sub-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}
body.wc-nubo .nubo-sub-actions .nx-btn {
  width: 100%;
  min-height: 36px;
  justify-content: center;
}

body.wc-nubo .nubo-keys-empty-wrap { padding: 8px 0; }
body.wc-nubo .wc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
}
body.wc-nubo .wc-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.wc-nubo .wc-empty-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.wc-nubo .wc-empty-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
body.wc-nubo .wc-empty-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
  line-height: 1.6;
}
body.wc-nubo .wc-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

/* keys modals + legacy m2-* inside nubo shell */
body.wc-nubo .m2-keys-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
body.wc-nubo .m2-keys-modal.is-open { display: flex; }
body.wc-nubo .m2-keys-modal-box {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0;
  padding: 24px !important;
}
body.wc-nubo .m2-hwid-modal-box { max-width: 720px; }
body.wc-nubo .m2-keys-modal-box h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
body.wc-nubo .nubo-modal-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
body.wc-nubo .nubo-modal-submit { margin-top: 12px; }

body.wc-nubo .m2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 13px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  appearance: none;
}
body.wc-nubo .m2-btn:not(.m2-btn-ghost):not(.m2-btn-outline):not(.m2-btn-trial) {
  background: var(--grad);
  color: #04111e;
  box-shadow: 0 8px 30px -8px var(--glow-blue);
}
body.wc-nubo .m2-btn-ghost,
body.wc-nubo .m2-btn-outline {
  background: var(--panel);
  color: var(--text);
  border-color: var(--stroke-2);
  box-shadow: none;
}
body.wc-nubo .m2-btn-trial {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.28);
  color: #a5f3fc;
  box-shadow: none;
}
body.wc-nubo .m2-btn-sm { padding: 8px 14px; font-size: 13px; min-height: 38px; }
body.wc-nubo .m2-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.wc-nubo .m2-actions-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
body.wc-nubo .m2-stack-16,
body.wc-nubo .m2-form-grid { display: flex; flex-direction: column; gap: 14px; }
body.wc-nubo .m2-stack-8 { display: flex; flex-direction: column; gap: 8px; }
body.wc-nubo .m2-muted { color: var(--muted); font-size: 13px; }
body.wc-nubo .m2-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.wc-nubo .m2-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
body.wc-nubo .m2-field select,
body.wc-nubo .m2-field input,
body.wc-nubo .m2-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: #fff;
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
}
body.wc-nubo .m2-field input::placeholder,
body.wc-nubo .m2-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}
body.wc-nubo .m2-field input:-webkit-autofill,
body.wc-nubo .m2-field input:-webkit-autofill:hover,
body.wc-nubo .m2-field input:-webkit-autofill:focus,
body.wc-nubo .m2-input:-webkit-autofill,
body.wc-nubo .m2-input:-webkit-autofill:hover,
body.wc-nubo .m2-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
}
body.wc-nubo .m2-field select:focus,
body.wc-nubo .m2-field input:focus,
body.wc-nubo .m2-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
/* Native select dropdown — dark list (fixes white options on dark UI) */
body.wc-nubo select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8b4cc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
body.wc-nubo select option,
body.wc-nubo select optgroup {
  background-color: #0b1220;
  color: #eef2ff;
}
body.wc-nubo select option:checked,
body.wc-nubo select option:hover,
body.wc-nubo select option:focus {
  background-color: #162033;
  color: #fff;
}
body.wc-nubo .m2-promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
body.wc-nubo .m2-promo-row .m2-input { flex: 1; min-width: 0; }
body.wc-nubo .m2-alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
body.wc-nubo .m2-alert-ok {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #86efac;
}
body.wc-nubo .m2-alert-err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
body.wc-nubo .m2-hwid-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
body.wc-nubo .m2-hwid-list { display: grid; gap: 10px; }
body.wc-nubo .m2-hwid-device {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
body.wc-nubo .m2-hwid-device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
body.wc-nubo .m2-hwid-device-index { font-size: 13px; font-weight: 700; }
body.wc-nubo .m2-hwid-unbind-btn {
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.26);
  color: #fecaca;
  cursor: pointer;
}
body.wc-nubo .m2-hwid-meta { display: grid; gap: 8px; }
body.wc-nubo .m2-hwid-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
body.wc-nubo .m2-hwid-meta-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.wc-nubo .m2-hwid-meta-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}
body.wc-nubo .m2-hwid-copy-btn {
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

body.wc-nubo .fst-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
body.wc-nubo .fst-copy-btn.copied {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.28);
}

body.wc-nubo .fst-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}
body.wc-nubo .fst-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #04111e;
  flex-shrink: 0;
}
body.wc-nubo .fst-profile-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 800;
}
body.wc-nubo .fst-profile-email { font-size: 13px; color: var(--muted); margin-top: 3px; }

body.wc-nubo .fst-info-card {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.05);
}
body.wc-nubo .fst-info-card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
body.wc-nubo .fst-info-card-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

body.wc-nubo .fst-tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
body.wc-nubo .fst-tariff-grid .fst-tariff-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 168px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  transition: transform 0.25s, border-color 0.25s;
}
body.wc-nubo .fst-tariff-grid .fst-tariff-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-2);
}
body.wc-nubo .fst-tariff-grid .fst-tariff-card.fst-tariff-featured-row {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.04));
}
body.wc-nubo .fst-tariff-grid .fst-tariff-info { flex: 1; }
body.wc-nubo .fst-tariff-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
body.wc-nubo .fst-tariff-props-line { font-size: 12px; color: var(--muted); line-height: 1.5; }
body.wc-nubo .fst-tariff-grid .fst-tariff-right {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
body.wc-nubo .fst-tariff-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
body.wc-nubo .fst-tariff-unit { font-size: 12px; color: var(--muted); }
body.wc-nubo .fst-tariff-group-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  margin: 24px 0 12px;
}
body.wc-nubo .fst-tariff-group-description { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

body.wc-nubo .fst-provider,
body.wc-nubo .fst-quick-btn {
  padding: 8px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
body.wc-nubo .fst-provider.is-selected,
body.wc-nubo .fst-quick-btn.is-selected,
body.wc-nubo .fst-provider:hover,
body.wc-nubo .fst-quick-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.28);
  color: var(--cyan);
}
body.wc-nubo .fst-quick { display: flex; gap: 6px; flex-wrap: wrap; }

body.wc-nubo .fst-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.wc-nubo .fst-history-row:last-child { border-bottom: none; }
body.wc-nubo .fst-history-desc { font-size: 13px; font-weight: 600; }
body.wc-nubo .fst-history-amount { font-size: 14px; font-weight: 700; }
body.wc-nubo .fst-history-date { font-size: 11px; color: var(--muted); }

body.wc-nubo .fst-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
body.wc-nubo .fst-modal-overlay.is-open { display: flex; }
body.wc-nubo .fst-modal-box {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
}
body.wc-nubo .fst-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
body.wc-nubo .fst-modal-head h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
body.wc-nubo .fst-modal-close {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
}

body.wc-nubo .nx-countdown { font-size: 11px; color: var(--muted); }

body.wc-nubo .fst-tariffs-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
body.wc-nubo .fst-tariff-group-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.wc-nubo .fst-tariff-group-header {
  padding: 18px 20px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.05);
}
body.wc-nubo .fst-tariff-group-title {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 20px);
}
body.wc-nubo .fst-tariff-group-section .fst-tariff-group-description {
  margin: 8px 0 0;
}
body.wc-nubo .fst-tariff-group-section + .fst-tariff-group-section {
  padding-top: 28px;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}
body.wc-nubo .fst-tariff-grid .fst-tariff-right .nx-btn {
  width: 100%;
  justify-content: center;
  min-height: 40px;
}
body.wc-nubo .fst-tariff-grid.fst-block,
body.wc-nubo .fst-block.fst-tariff-grid {
  overflow: visible;
  margin-bottom: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}
body.wc-nubo .fst-tariff-grid.fst-block:hover { border-color: transparent; }

body.wc-nubo .fst-history-left { flex: 1; min-width: 0; }
body.wc-nubo .fst-history-right {
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
}
body.wc-nubo .fst-history-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.wc-nubo .fst-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.wc-nubo .nx-profile-link-btn,
body.wc-nubo .nx-tg-bind-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: normal !important;
  word-break: break-word;
  text-align: center;
  line-height: 1.35;
}
body.wc-nubo .nx-tg-widget-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
body.wc-nubo .fst-badge-red {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.28);
}
body.wc-nubo .fst-row-link { min-height: 52px; }
body.wc-nubo .fst-row-title { min-width: 0; }
body.wc-nubo .fst-row-value {
  min-width: 0;
  word-break: break-word;
  text-align: right;
  max-width: 55%;
}
body.wc-nubo .fst-block-pad { padding: 16px; }

body.wc-nubo .nx-countdown-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
}
body.wc-nubo .nx-countdown-val { font-size: 12px; font-weight: 800; }
body.wc-nubo .nx-countdown-lbl { font-size: 8px; color: var(--muted); }

body.wc-nubo .nubo-keys-empty-wrap.nubo-card { padding: 0; }
body.wc-nubo .nubo-keys-empty-wrap .wc-empty { padding: 32px 20px; }
body.wc-nubo .wc-empty-actions form { display: contents; }

body.wc-nubo .nubo-tariffs-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  body.wc-nubo .fst-tariff-grid { grid-template-columns: 1fr; gap: 10px; }
  body.wc-nubo .fst-tariff-grid .fst-tariff-card { padding: 18px; min-height: auto; }
  body.wc-nubo .nubo-keys-toolbar { grid-template-columns: 1fr; }
  body.wc-nubo .nubo-keys-toolbar-btn { white-space: normal; font-size: 13px; }
  body.wc-nubo .nubo-sub-actions .nx-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  body.wc-nubo .m2-keys-modal {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
  }
  body.wc-nubo .m2-keys-modal-box {
    max-width: none;
    max-height: none;
    min-height: 100dvh;
    border-radius: 20px 20px 0 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.wc-nubo .m2-keys-modal .m2-actions-wrap {
    flex-direction: column-reverse;
    width: 100%;
  }
  body.wc-nubo .m2-keys-modal .m2-actions-wrap .m2-btn,
  body.wc-nubo .m2-keys-modal form > .m2-btn[type="submit"] {
    width: 100%;
  }
  body.wc-nubo .fst-history-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  body.wc-nubo .fst-history-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-left: 28px;
    margin-top: 4px;
  }
}

@media (max-width: 520px) {
  body.wc-nubo .fst-kpis { grid-template-columns: repeat(3, 1fr); }
  body.wc-nubo .fst-auth-actions { grid-template-columns: 1fr; }
  body.wc-nubo .nubo-keys-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.wc-nubo .nubo-keys-list-head { flex-direction: column; align-items: stretch; }
  body.wc-nubo .nubo-keys-search { width: 100%; }
  body.wc-nubo .nubo-sub-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.wc-nubo .m2-promo-row { flex-direction: column; }
  body.wc-nubo .m2-keys-modal-box { padding: 18px !important; }
  body.wc-nubo .fst-balance-amount { font-size: 36px; }
  body.wc-nubo .fst-tariff-grid { grid-template-columns: 1fr; }
}
