:root {
  color-scheme: dark;
  --bg: #08090c;
  --panel: #14161b;
  --panel-strong: #101217;
  --panel-soft: #1c2028;
  --text: #f8f1e9;
  --muted: #c0b7ad;
  --line: #343945;
  --ink: #0a0b0d;
  --sakura: #f07b83;
  --sakura-strong: #ff9a9f;
  --gold: #d9b66e;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08090c;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/static/img/shiori-hero.png") center / cover no-repeat fixed;
  filter: saturate(1) contrast(1.02) brightness(1.14);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,12,0.50) 0%, rgba(8,9,12,0.38) 44%, rgba(8,9,12,0.36) 100%),
    linear-gradient(180deg, rgba(8,9,12,0.18) 0%, rgba(8,9,12,0.44) 48%, rgba(8,9,12,0.62) 100%),
    radial-gradient(circle at 14% 6%, rgba(240, 123, 131, 0.16), transparent 25%),
    radial-gradient(circle at 86% 8%, rgba(217, 182, 110, 0.10), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 34px);
}

.page {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 44px;
  scroll-behavior: smooth;
}

.page--order,
.page--text {
  display: grid;
  align-content: start;
  gap: 22px;
}

.hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
}

.hero::after,
.text-panel::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(240, 123, 131, 0.18);
  border-radius: 50%;
  right: 28px;
  bottom: 28px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 54px 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sakura-strong);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2 { margin: 0; letter-spacing: 0; }

h1 {
  font-size: clamp(50px, 9vw, 104px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.lead--compact {
  max-width: 620px;
  font-size: 17px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__badges span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.46);
  color: var(--text);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.benefits article,
.checkout-form,
.order-panel,
.info-card,
.text-panel {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--panel) 94%, black);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.benefits article {
  padding: 16px;
}

.benefits span {
  color: var(--gold);
  font-size: 13px;
}

.benefits h2 {
  margin-top: 12px;
  font-size: 19px;
}

.benefits p,
.info-card p,
.flow-list,
.text-list,
.field small,
.muted,
.next-step p {
  color: var(--muted);
  line-height: 1.6;
}

.checkout {
  padding: 8px 0 0;
}

.how-flow {
  padding: 26px 0 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-subtitle {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-hint {
  max-width: 680px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 182, 110, 0.32);
  border-radius: 8px;
  background: rgba(217, 182, 110, 0.10);
  color: var(--text);
}

.flow-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.flow-strip li {
  min-height: 74px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.50);
  color: var(--muted);
  line-height: 1.5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.checkout-form,
.order-panel,
.text-panel {
  padding: 24px;
}

.checkout-form,
.order-panel,
.info-card,
.text-panel,
.benefits article {
  background: rgba(10, 14, 20, 0.56);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.benefits article {
  background: rgba(10, 14, 20, 0.50);
}

.checkout-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 10px;
}

.field__label {
  color: var(--muted);
  font-size: 14px;
}

.tariff-grid,
.device-grid {
  display: grid;
  gap: 10px;
}

.tariff-grid,
.device-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-card,
.device-option {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent),
    rgba(28, 32, 40, 0.58);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.device-option {
  min-height: 58px;
  place-items: center;
  text-align: center;
}

.option-card:hover,
.device-option:hover,
.option-card.is-selected,
.device-option.is-selected {
  border-color: var(--sakura-strong);
  background: rgba(240, 123, 131, 0.16);
}

.option-card.is-selected,
.device-option.is-selected {
  transform: translateY(-1px);
}

.option-card input,
.device-option input {
  accent-color: var(--sakura);
}

.option-card strong {
  font-size: 22px;
}

input[type="text"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(24, 27, 34, 0.66);
  color: var(--text);
  font: inherit;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(24, 27, 34, 0.66);
  color: var(--text);
  font: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: 2px solid rgba(255, 154, 159, 0.34);
  border-color: var(--sakura-strong);
}

.primary-button,
.secondary-button {
  min-height: 56px;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, #dc4650, #ff7f76);
  color: white;
  box-shadow: 0 14px 34px rgba(220, 70, 80, 0.28);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.secondary-button {
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(255, 154, 159, 0.32);
  background: rgba(24, 27, 34, 0.56);
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--sakura-strong);
  background: rgba(240, 123, 131, 0.12);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.order-panel h1,
.text-panel h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.order-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.order-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-list dt {
  color: var(--muted);
}

.order-list dd {
  margin: 0;
}

.status-pill {
  border-color: rgba(255, 154, 159, 0.45);
  color: var(--sakura-strong);
}

.status-pill--active,
.subscription-badge--active {
  border-color: rgba(143, 240, 178, 0.42);
  background: rgba(143, 240, 178, 0.14);
  color: #8ff0b2;
}

.status-pill--expired,
.subscription-badge--expired {
  border-color: rgba(255, 139, 152, 0.46);
  background: rgba(255, 139, 152, 0.14);
  color: #ff8b98;
}

.status-pill--empty,
.status-pill--pending,
.subscription-badge--empty {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.next-step {
  border: 1px solid rgba(217, 182, 110, 0.36);
  border-radius: 8px;
  padding: 18px;
  background: rgba(217, 182, 110, 0.08);
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.progress-line span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(24, 27, 34, 0.62);
  text-align: center;
}

.progress-line .is-active {
  color: var(--text);
  border-color: var(--sakura-strong);
  background: rgba(240, 123, 131, 0.12);
}

.progress-line .is-done {
  color: var(--text);
  border-color: rgba(217, 182, 110, 0.56);
  background: rgba(217, 182, 110, 0.12);
}

.progress-line .is-muted {
  opacity: 0.68;
}

.progress-line .is-error {
  color: var(--text);
  border-color: rgba(255, 118, 118, 0.70);
  background: rgba(220, 70, 80, 0.18);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  padding: 20px;
}

.config-card {
  grid-column: 1 / -1;
  overflow: hidden;
}

.config-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 154, 159, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(217, 182, 110, 0.10), transparent 42%);
}

.config-card > * {
  position: relative;
  z-index: 1;
}

.config-state {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.config-actions {
  margin-top: 18px;
  align-items: center;
}

.copy-cfg-status {
  flex: 1 1 220px;
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.install-guide {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 30, 38, 0.78), rgba(74, 54, 64, 0.42));
  box-shadow: 0 18px 42px rgba(22, 24, 30, 0.20);
}

.install-guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.install-guide__header h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.install-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.install-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #2b1e24;
  background: linear-gradient(135deg, #ffd6da, #f1c56f);
  font-weight: 900;
}

.install-steps strong {
  display: block;
  margin-bottom: 4px;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.install-actions {
  margin-top: 16px;
  align-items: center;
}

.install-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}



/* Account install guide buttons: active actions should look clearly clickable. */
.install-actions .button-like,
.install-actions button.button-like {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(116, 230, 222, 0.62);
  color: #f8ffff;
  background: linear-gradient(135deg, rgba(29, 196, 188, 0.96), rgba(255, 123, 157, 0.88));
  box-shadow: 0 12px 28px rgba(26, 210, 200, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.install-actions .button-like--secondary:not(:disabled),
.install-actions button.button-like--secondary:not(:disabled) {
  border-color: rgba(255, 154, 176, 0.70);
  background: linear-gradient(135deg, rgba(255, 118, 156, 0.94), rgba(43, 205, 196, 0.82));
  box-shadow: 0 12px 30px rgba(255, 118, 156, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.install-actions .button-like:hover,
.install-actions button.button-like:hover,
.install-actions .button-like:focus-visible,
.install-actions button.button-like:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(26, 210, 200, 0.28), 0 0 22px rgba(255, 123, 157, 0.20);
  filter: saturate(1.08) brightness(1.04);
  outline: none;
}

.install-actions .button-like:active,
.install-actions button.button-like:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(26, 210, 200, 0.18);
}

.install-actions button.button-like:disabled,
.install-actions .button-like.is-disabled {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(234, 238, 244, 0.52);
  background: rgba(28, 32, 40, 0.48);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.35);
  transform: none;
}

.install-actions button.button-like:disabled:hover,
.install-actions button.button-like:disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  filter: grayscale(0.35);
  transform: none;
}

.install-actions .install-guide-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid rgba(116, 230, 222, 0.68);
  border-radius: 999px;
  color: #f8ffff;
  background: linear-gradient(135deg, rgba(36, 205, 195, 0.94), rgba(40, 118, 190, 0.84));
  box-shadow: 0 14px 30px rgba(36, 205, 195, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none !important;
  font: inherit;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.install-actions .copy-config-btn--primary {
  border-color: rgba(255, 154, 176, 0.78);
  background: linear-gradient(135deg, rgba(255, 118, 156, 0.96), rgba(43, 205, 196, 0.86));
  box-shadow: 0 14px 32px rgba(255, 118, 156, 0.23), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.install-actions .install-guide-btn--primary,
.install-actions .install-guide-btn--app {
  border-color: rgba(116, 230, 222, 0.78);
  color: #f8ffff;
  background: linear-gradient(135deg, rgba(29, 196, 188, 0.98), rgba(82, 141, 236, 0.88));
  box-shadow: 0 15px 34px rgba(26, 210, 200, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.install-actions .install-guide-btn--text {
  color: #132f2e;
  background: linear-gradient(135deg, #7ff4e9, #d7fff9);
}

.install-actions .install-guide-btn:hover,
.install-actions .install-guide-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(26, 210, 200, 0.30), 0 0 24px rgba(255, 123, 157, 0.22);
  filter: saturate(1.08) brightness(1.04);
  outline: none;
}

.install-actions .install-guide-btn:active {
  transform: translateY(0);
  box-shadow: 0 9px 22px rgba(26, 210, 200, 0.20);
}

.install-actions .install-guide-btn[data-copy-loading="1"] {
  filter: saturate(0.92) brightness(0.95);
  cursor: progress;
}

.install-actions .install-guide-btn:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(234, 238, 244, 0.52);
  background: rgba(28, 32, 40, 0.48);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.62;
  filter: grayscale(0.35);
  transform: none;
}

.flow-list,
.text-list {
  padding-left: 22px;
}

.text-panel {
  max-width: 920px;
  margin-top: 28px;
  overflow: hidden;
}

.mini-ink {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 190px;
  height: 190px;
  border: 20px solid rgba(255,255,255,0.045);
  border-left-color: rgba(255,154,159,0.14);
  border-radius: 50%;
}

.text-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.status-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.58);
}

.status-grid span {
  color: var(--muted);
  font-size: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.button-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.button-row button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0 0;
  color: var(--muted);
}

.site-footer a,
.secondary-link {
  color: var(--sakura-strong);
  text-decoration: none;
}

.site-footer a:hover,
.secondary-link:hover {
  text-decoration: underline;
}

.top-nav {
  position: relative;
  z-index: 5;
  width: min(1160px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.top-nav__brand,
.top-nav__links a {
  color: var(--text);
  text-decoration: none;
}

.top-nav__brand {
  font-weight: 900;
}

.account-nav a.account-home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 260px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 218, 226, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(235, 80, 104, 0.96), rgba(255, 126, 136, 0.92) 56%, rgba(255, 166, 158, 0.88)),
    rgba(14, 18, 26, 0.90);
  color: #fff;
  text-decoration: none !important;
  text-align: center;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  box-shadow: 0 18px 42px rgba(227, 73, 97, 0.34), 0 12px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.account-nav a.account-home-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 245, 247, 0.96);
  background:
    linear-gradient(135deg, rgba(246, 92, 116, 0.98), rgba(255, 139, 147, 0.96) 56%, rgba(255, 180, 170, 0.92)),
    rgba(18, 22, 30, 0.94);
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 22px 50px rgba(227, 73, 97, 0.44), 0 16px 38px rgba(0, 0, 0, 0.36);
}

.top-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.top-nav__links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.64);
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.top-nav__links a:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.top-nav__links .nav-button--secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.66);
}

.top-nav__links .nav-button--secondary:hover {
  border-color: rgba(255, 206, 218, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(13, 17, 24, 0.76);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.top-nav__links .nav-button--primary {
  border-color: rgba(255, 152, 170, 0.78);
  background: linear-gradient(135deg, #e34961 0%, #ff7680 52%, #ffa09a 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
  box-shadow: 0 13px 34px rgba(227, 73, 97, 0.30);
}

.top-nav__links .nav-button--primary:hover {
  border-color: rgba(255, 210, 218, 0.88);
  background: linear-gradient(135deg, #ee536b 0%, #ff828b 52%, #ffaaa2 100%);
  box-shadow: 0 16px 40px rgba(227, 73, 97, 0.38);
}

.auth-panel {
  width: min(720px, 100%);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
}

.notice {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(217, 182, 110, 0.36);
  border-radius: 8px;
  background: rgba(217, 182, 110, 0.08);
  color: var(--text);
}

.notice--error {
  border-color: rgba(255, 118, 118, 0.56);
  background: rgba(220, 70, 80, 0.13);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-card-wide {
  grid-column: 1 / -1;
}

.subscription-card-list {
  display: grid;
  gap: 16px;
}

.subscription-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.48);
}

.subscription-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.subscription-card__header h3 {
  margin: 0 0 4px;
}

.order-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.order-history__item {
  display: grid;
  grid-template-columns: 72px 1.2fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.58);
  color: var(--muted);
  text-decoration: none;
}

.order-history__item strong {
  color: var(--text);
}

.subscription-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.subscription-history__row {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 0.9fr 1fr 1fr 0.8fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.52);
  color: var(--muted);
}

.subscription-history__row strong {
  color: var(--text);
}

.subscription-history__row--head {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.admin-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.button-like {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.button-like--secondary {
  background: rgba(28, 32, 40, 0.58);
}

.button-like--small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.button-like--danger {
  background: linear-gradient(135deg, rgba(190, 65, 76, 0.92), rgba(255, 123, 139, 0.82));
}

.account-admin-actions {
  margin-top: 22px;
}

.admin-stats,
.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.admin-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stats article,
.admin-status-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.50);
}

.admin-stats span,
.admin-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-stats strong,
.admin-status-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
}

.admin-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-row {
  display: grid;
  grid-template-columns: 72px 1.15fr 0.9fr 0.9fr 1.1fr 1.2fr;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.56);
  color: var(--muted);
  text-decoration: none;
}

.admin-table--users .admin-row {
  grid-template-columns: 60px 1.2fr 0.95fr 0.55fr 1.05fr 0.8fr 1fr 0.95fr;
}

.admin-row strong {
  color: var(--text);
}

.admin-row--head {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge-ok {
  color: #8ff0b2 !important;
}

.badge-warning {
  color: var(--gold) !important;
}

.badge-error {
  color: #ff8b98 !important;
}

.compact-list {
  margin: 16px 0 0;
}

.compact-list div {
  grid-template-columns: 140px 1fr;
}

.vpn-table .admin-row {
  grid-template-columns: 58px 1fr 0.8fr 1fr 1fr 1.2fr;
}

.vpn-peers-table .admin-row {
  grid-template-columns: minmax(220px, 1.45fr) 0.75fr 0.65fr 0.8fr 0.8fr 0.9fr minmax(150px, 0.9fr);
}

.cfg-deliveries-table .admin-row {
  grid-template-columns: 58px 0.75fr minmax(160px, 1.1fr) 0.95fr 0.7fr 0.75fr minmax(170px, 1.05fr) minmax(170px, 1fr) minmax(150px, 0.9fr);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.vpn-peer-row strong,
.peer-history-row strong {
  display: grid;
  gap: 4px;
}

.vpn-peer-row strong small,
.peer-history-row strong small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vpn-peer-row--just-active {
  border-color: rgba(143, 240, 178, 0.58);
  background: rgba(45, 90, 64, 0.34);
  box-shadow: 0 0 0 1px rgba(143, 240, 178, 0.08), 0 14px 34px rgba(143, 240, 178, 0.08);
}

.vpn-peer-row--recent-active {
  border-color: rgba(217, 182, 110, 0.52);
  background: rgba(90, 72, 38, 0.28);
}

.peer-activity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 5px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.peer-activity-badge--just-active {
  background: rgba(143, 240, 178, 0.18);
  color: #8ff0b2;
}

.peer-activity-badge--recent-active {
  background: rgba(217, 182, 110, 0.18);
  color: var(--gold);
}

.helper-steps {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.helper-steps li + li {
  margin-top: 8px;
}

.chart-dashboard {
  overflow: hidden;
}

.mapping-form textarea {
  width: 100%;
  resize: vertical;
}

.mapping-clear-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.label-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}

.label-templates button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(28, 32, 40, 0.58);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.label-templates button:hover {
  border-color: var(--sakura-strong);
  background: rgba(240, 123, 131, 0.18);
}

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

.chart-message {
  min-height: 20px;
  margin: 8px 0 0;
}

.range-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.range-switcher button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.58);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.range-switcher button:hover,
.range-switcher button.is-active {
  border-color: var(--sakura-strong);
  background: rgba(240, 123, 131, 0.16);
  color: var(--text);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chart-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.46);
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.chart-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.chart-card canvas {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.chart-tooltip {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.peer-history-list {
  display: grid;
  gap: 8px;
}

.peer-history-row {
  display: grid;
  grid-template-columns: 42px 1fr 0.8fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.50);
  color: var(--muted);
}

.peer-history-row strong {
  color: var(--text);
}

@media (max-width: 860px) {
  .top-nav {
    width: min(100% - 24px, 1160px);
  }

  .page {
    width: min(100% - 24px, 1160px);
    padding: 18px 0 34px;
  }

  .hero {
    min-height: 360px;
  }

  body::before {
    background-position: 58% center;
    background-attachment: scroll;
  }

  .hero__content {
    padding: 34px 0 24px;
  }

  .benefits,
  .tariff-grid,
  .device-grid,
  .info-grid,
  .status-grid,
  .flow-strip,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-history__item,
  .subscription-history__row {
    grid-template-columns: 1fr 1fr;
  }

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

  .admin-row,
  .admin-table--users .admin-row,
  .vpn-table .admin-row,
  .vpn-peers-table .admin-row,
  .peer-history-row {
    grid-template-columns: 1fr 1fr;
  }

  .chart-toolbar {
    flex-direction: column;
  }

  .range-switcher {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav__links {
    justify-content: flex-start;
    width: 100%;
  }

  .account-nav a.account-home-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 16px;
  }

  .top-nav__links a {
    min-height: 44px;
    flex: 1 1 148px;
    padding: 0 14px;
  }

  .hero {
    min-height: 330px;
  }

  .hero__content {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 72px);
  }

  .lead {
    margin-top: 18px;
    font-size: 18px;
  }

  .hero__badges {
    gap: 8px;
    margin-top: 18px;
  }

  .hero__badges span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 13px;
  }

  .benefits {
    margin-top: 22px;
  }

  .benefits article {
    padding: 14px;
  }

  .benefits h2 {
    margin-top: 8px;
    font-size: 18px;
  }

  .benefits p {
    margin: 8px 0 0;
  }

  .checkout {
    padding-top: 6px;
  }

  .how-flow {
    padding-top: 22px;
  }

  .benefits,
  .tariff-grid,
  .device-grid,
  .info-grid,
  .status-grid,
  .progress-line,
  .flow-strip,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .order-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .order-history__item,
  .subscription-history__row {
    grid-template-columns: 1fr;
  }

  .install-guide {
    padding: 14px;
  }

  .install-guide__header {
    flex-direction: column;
  }

  .install-steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px;
  }

  .install-actions .button-like,
  .install-actions button,
  .install-actions .install-guide-btn {
    width: 100%;
  }

  .install-actions .copy-cfg-status {
    flex-basis: 100%;
  }

  .admin-stats,
  .admin-status-grid,
  .admin-row,
  .admin-table--users .admin-row,
  .vpn-table .admin-row,
  .vpn-peers-table .admin-row,
  .peer-history-row,
  .chart-grid {
    grid-template-columns: 1fr;
  }

}


/* Anti-sharing badges */
.anti-abuse-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.16);
}

.anti-abuse-badge--ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.anti-abuse-badge--watch {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.anti-abuse-badge--suspicious {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.42);
}

.anti-abuse-badge--unknown {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}


.anti-abuse-badge--none {
  color: #d1d5db;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

.review-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.review-form select,
.review-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(10, 12, 20, 0.55);
  color: inherit;
  padding: 0.45rem 0.55rem;
}

.anti-abuse-badge--verified {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.anti-abuse-badge--allowed {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}


.support-grid {
  margin-top: 18px;
}

.support-hero-panel .primary-button,
.support-telegram-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  text-decoration: none;
}

@media (max-width: 720px) {
  .support-hero-panel .primary-button,
  .support-telegram-button {
    width: 100%;
    justify-content: center;
  }
}


.support-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


.traffic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.traffic-client-panel,
.traffic-chart-panel {
  min-width: 0;
}

.traffic-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding: 4px;
}

.traffic-client-card {
  display: grid;
  gap: 16px;
  width: 100%;
  min-height: 218px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none !important;
  text-align: left;
  font: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(22, 26, 34, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.traffic-client-card:hover,
.traffic-client-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(50, 216, 207, 0.86);
  background:
    linear-gradient(135deg, rgba(50, 216, 207, 0.20), rgba(255, 123, 157, 0.10)),
    rgba(28, 34, 44, 0.98);
  box-shadow: 0 22px 44px rgba(50, 216, 207, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  outline: none;
}

.traffic-client-card--active {
  border-color: rgba(255, 123, 157, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 123, 157, 0.28), rgba(50, 216, 207, 0.18)),
    rgba(31, 35, 48, 0.98);
  box-shadow: 0 24px 52px rgba(255, 123, 157, 0.24), 0 0 0 2px rgba(255, 123, 157, 0.20) inset;
}

.traffic-client-card--online {
  border-left: 6px solid rgba(50, 216, 207, 0.95);
}

.traffic-client-card--offline {
  border-left: 6px solid rgba(154, 164, 178, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(28, 32, 40, 0.52)),
    rgba(20, 23, 30, 0.96);
  opacity: 0.88;
}

.traffic-client-card--limited {
  border-right: 6px solid rgba(255, 185, 88, 0.96);
}

.traffic-client-card__header,
.traffic-client-card__details,
.traffic-client-card__traffic {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.traffic-client-card__header {
  align-items: flex-start;
}

.traffic-client-card__details,
.traffic-client-card__traffic {
  align-items: stretch;
}

.traffic-client-card__name {
  min-width: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
  line-height: 1.28;
}

.traffic-client-card__details {
  padding-top: 2px;
  color: var(--muted);
}

.traffic-client-card__detail {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.traffic-client-card__detail small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.traffic-client-card__detail b {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.traffic-client-card__traffic-pill {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1 1 0;
  padding: 11px 12px;
  border: 1px solid rgba(50, 216, 207, 0.18);
  border-radius: 12px;
  color: var(--text);
  background: rgba(50, 216, 207, 0.08);
  font-size: 14px;
  line-height: 1.25;
}

.traffic-client-card__traffic-pill b {
  color: rgba(50, 216, 207, 0.98);
  font-size: 12px;
  font-weight: 900;
}

.traffic-client-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(50, 216, 207, 0.42);
  border-radius: 999px;
  color: #132f2e;
  background: linear-gradient(135deg, #7ff4e9, #d7fff9);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(50, 216, 207, 0.18);
}

.traffic-limit-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 185, 88, 0.38);
  border-radius: 999px;
  color: #ffe9bf;
  background: rgba(255, 185, 88, 0.14);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.traffic-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.traffic-status--online {
  color: #143230;
  background: linear-gradient(135deg, #7ff4e9, #b6fff5);
}

.traffic-status--offline {
  color: rgba(234, 238, 244, 0.78);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.traffic-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.traffic-live-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.traffic-canvas-wrap {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(13, 16, 22, 0.92);
}

.traffic-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
}

.copy-config-modal[hidden] {
  display: none;
}

.copy-config-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.copy-config-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(8px);
}

.copy-config-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  max-height: min(86vh, 760px);
  padding: 22px;
  border: 1px solid rgba(50, 216, 207, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(50, 216, 207, 0.10), rgba(255, 123, 157, 0.08)),
    rgba(21, 25, 34, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.copy-config-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.copy-config-modal__header h2 {
  margin: 0;
}

.copy-config-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.copy-config-modal__close:hover,
.copy-config-modal__close:focus-visible {
  border-color: rgba(255, 123, 157, 0.75);
  background: rgba(255, 123, 157, 0.18);
  outline: none;
}

.copy-config-modal__textarea {
  width: 100%;
  min-height: 300px;
  max-height: 46vh;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(8, 12, 18, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.copy-config-modal__textarea:focus {
  border-color: rgba(50, 216, 207, 0.75);
  outline: none;
  box-shadow: 0 0 0 3px rgba(50, 216, 207, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.copy-config-modal__actions {
  align-items: center;
}

.copy-config-modal__status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

@media (max-width: 720px) {
  .traffic-client-grid {
    grid-template-columns: 1fr;
  }

  .traffic-client-card {
    min-height: 0;
    padding: 18px;
  }

  .traffic-client-card__header,
  .traffic-client-card__details,
  .traffic-client-card__traffic,
  .traffic-chart-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .traffic-client-card__detail,
  .traffic-client-card__traffic-pill {
    width: 100%;
  }

  .traffic-live-badges {
    justify-content: flex-start;
  }

  .copy-config-modal {
    align-items: stretch;
    padding: 12px;
  }

  .copy-config-modal__panel {
    align-self: center;
    padding: 16px;
  }

  .copy-config-modal__textarea {
    min-height: 260px;
  }
}
