/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: var(--gap-lg) 0;
}
.auth-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--c-primary);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.auth-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.auth-box__badge {
  display: inline-flex;
  align-items: center;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  margin-bottom: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.auth-box__title {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 0.375rem;
}
.auth-box__subtitle {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin: 0 0 1.5rem;
}
.auth-box__subtitle a { color: var(--c-primary); }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form__agree {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.auth-form__agree a { color: var(--c-primary); }
.auth-box__footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}
.auth-box__footer a { color: var(--c-primary); font-weight: 600; }

/* Alerts */
.form-alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-alert--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--c-danger);
}
.form-alert--success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: var(--c-success);
}
.form-alert p { margin: 0.25rem 0 0; }
.form-alert p:first-child { margin-top: 0; }
.form-textarea {
  resize: vertical;
  min-height: 70px;
}
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   CABINET LAYOUT
   ============================================================ */
.cab-wrap {
  display: flex;
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: flex-start;
}

/* ---- Sidebar ---- */
.cab-sidebar {
  flex-shrink: 0;
  width: 256px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}
.cab-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 1.25rem;
  margin: -0.5rem -0.5rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.cab-user:hover { background: var(--c-bg); }
.cab-user--active { background: rgba(200,37,61,.06); }
.cab-user--active .cab-user__name { color: var(--c-primary); }
.cab-user__avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cab-user__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cab-user__email {
  font-size: 0.75rem;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cab-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cab-nav__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.cab-nav__link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.6; }
.cab-nav__link:hover { background: var(--c-surface); color: var(--c-primary); }
.cab-nav__link:hover svg { opacity: 1; }
.cab-nav__link.is-active {
  background: rgba(200,37,61,0.07);
  color: var(--c-primary);
  font-weight: 600;
}
.cab-nav__link.is-active svg { opacity: 1; }
.cab-nav__support {
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.cab-nav__support a { color: var(--c-primary); }
.cab-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.875rem;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.cab-logout svg { width: 16px; height: 16px; }
.cab-logout:hover { color: var(--c-danger); }

/* ---- Main content ---- */
.cab-main {
  flex: 1;
  min-width: 0;
}
.cab-page-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 0.5rem;
}
.cab-page-subtitle {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin: 0 0 1.75rem;
}
.cab-section-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}
.cab-empty { color: var(--c-muted); font-size: 0.9375rem; margin: 1.5rem 0; }
.cab-hint { font-size: 0.875rem; color: var(--c-muted); margin-top: 1.5rem; line-height: 1.6; }
.cab-hint a { color: var(--c-primary); }

/* ---- Trial banner ---- */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #1A0A0F 0%, #2E0D17 100%);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
}
.trial-banner__counter {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-primary);
  border-radius: var(--r-sm);
  padding: 0.5rem 1rem;
  min-width: 60px;
}
.trial-banner__days { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.trial-banner__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.trial-banner__body { flex: 1; font-size: 0.9375rem; line-height: 1.5; }

/* ---- Dashboard cards ---- */
.cab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.cab-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.cab-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cab-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(200,37,61,0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}
.cab-card__icon svg { width: 22px; height: 22px; }
.cab-card__title { font-weight: 600; font-size: 0.9375rem; }
.cab-card__text { font-size: 0.8125rem; color: var(--c-muted); margin-top: 2px; }

/* ---- Cabinet forms ---- */
.cab-form { display: flex; flex-direction: column; gap: 0; }
.cab-fieldset {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.cab-fieldset__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  padding: 0 0.5rem;
  margin-left: -0.5rem;
}
.cab-form__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row > * { min-width: 0; }
.form-row--4 { grid-template-columns: repeat(4, 1fr); }
.req { color: var(--c-danger); }

/* ---- Address list ---- */
.addr-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.addr-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}
.addr-item__body { flex: 1; min-width: 0; }
.addr-item__name { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.addr-item__details { display: block; font-size: 0.875rem; color: var(--c-muted); }
.addr-item__meta { display: block; font-size: 0.8125rem; color: var(--c-muted); margin-top: 0.25rem; }
.addr-item__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.addr-item__edit,
.addr-item__delete {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}
.addr-item__edit svg,
.addr-item__delete svg { width: 18px; height: 18px; }
.addr-item__edit:hover  { color: var(--c-primary); background: rgba(200,37,61,0.07); }
.addr-item__delete:hover { color: var(--c-danger); background: #FEF2F2; }
.addr-edit-form {
  width: 100%;
  padding-top: 1rem;
}
.addr-item--editing {
  flex-wrap: wrap;
  align-items: flex-start;
  border-color: var(--c-primary);
  background: #FFFAF8;
}
.addr-add-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

/* ---- Subscription ---- */
.sub-status-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 0.5rem;
}
.sub-status-card__badge {
  display: inline-flex;
  padding: 0.375rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.sub-status-card__badge--trial    { background: #FEF9C3; color: #A16207; }
.sub-status-card__badge--standard { background: #DBEAFE; color: #1D4ED8; }
.sub-status-card__badge--premium  { background: rgba(200,37,61,0.1); color: var(--c-primary); }
.sub-status-card__info { font-size: 0.9375rem; color: var(--c-muted); line-height: 1.7; }
.sub-status-card__info strong { color: var(--c-text); }
.text-danger { color: var(--c-danger); }
.sub-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.sub-plan {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.sub-plan--featured { border-color: var(--c-primary); box-shadow: var(--shadow-pri); }
.sub-plan__label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.875rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.sub-plan__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.sub-plan__price { font-size: 1rem; color: var(--c-muted); margin-bottom: 1.25rem; }
.sub-plan__price strong { font-size: 1.5rem; color: var(--c-text); }
.sub-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.sub-plan__features li::before { content: "✓  "; color: var(--c-success); font-weight: 700; }

/* ---- Documents ---- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.doc-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--c-white);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.doc-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.doc-card__icon svg { width: 48px; height: 48px; }
.doc-card__title { font-weight: 600; font-size: 0.9375rem; }
.doc-card__desc { font-size: 0.8125rem; color: var(--c-muted); flex: 1; }
.doc-card__locked { font-size: 0.8125rem; color: var(--c-muted); font-style: italic; }
.doc-card__locked a { color: var(--c-primary); text-decoration: none; font-style: normal; }
.doc-card__locked a:hover { text-decoration: underline; }
.doc-card--locked { opacity: .6; }
.doc-card--locked:hover { border-color: var(--c-border); box-shadow: none; }

/* ---- Notice ---- */
.cab-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #1E40AF;
  margin-top: 2rem;
  line-height: 1.6;
}
.cab-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.cab-notice a { color: var(--c-primary); font-weight: 600; }

/* ---- Demo banner ---- */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200,37,61,.07) 0%, rgba(200,37,61,.03) 100%);
  border: 1.5px solid rgba(200,37,61,.25);
  flex-wrap: wrap;
}
.demo-banner__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(200,37,61,.12);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.demo-banner__body { flex: 1; min-width: 0; }
.demo-banner__title { font-weight: 700; font-size: .9375rem; color: var(--c-primary); margin-bottom: .2rem; }
.demo-banner__sub { font-size: .82rem; color: var(--c-text-muted); line-height: 1.5; }

/* ============================================================
   CHECKOUT FLOW
   ============================================================ */

/* Step indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.checkout-step--active { color: var(--c-text); font-weight: 600; }
.checkout-step--done   { color: var(--c-success); }
.checkout-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid var(--c-border);
  background: var(--c-surface);
  flex-shrink: 0;
}
.checkout-step--active .checkout-step__num {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #fff;
}
.checkout-step--done .checkout-step__num {
  border-color: var(--c-success);
  background: var(--c-success);
  color: #fff;
}
.checkout-step__label { white-space: nowrap; }
.checkout-step__line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
  min-width: 24px;
  margin: 0 4px;
}
.checkout-step__line--done { background: var(--c-success); }

/* Address tag breadcrumb (step 2) */
.checkout-addr-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.625rem 1rem;
  margin-bottom: 1.5rem;
}
.checkout-addr-tag svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--c-primary); }
.checkout-addr-tag strong { color: var(--c-text); }
.checkout-addr-tag__change { margin-left: auto; color: var(--c-primary); font-size: 0.8125rem; }

/* Address radio list (step 1) */
.addr-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.addr-radio-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--t-base);
}
.addr-radio-item:has(input:checked) { border-color: var(--c-primary); background: rgba(200,37,61,0.03); }
.addr-radio-item input[type=radio] { flex-shrink: 0; accent-color: var(--c-primary); width: 18px; height: 18px; }
.addr-radio-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.9375rem;
}
.addr-radio-item__body strong { color: var(--c-text); }
.addr-radio-item__body span { color: var(--c-muted); font-size: 0.875rem; }
.addr-radio-item__meta { font-size: 0.8125rem !important; color: var(--c-muted); }

/* Plan picker (step 2) */
.plan-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.plan-pick {
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.plan-pick:has(input:checked) {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-pri);
}
.plan-pick input[type=radio] { flex-shrink: 0; accent-color: var(--c-primary); margin-top: 3px; }
.plan-pick__body { flex: 1; }
.plan-pick__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plan-pick__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--c-primary);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
}
.plan-pick__note { font-size: 0.8125rem; color: var(--c-muted); margin-bottom: 0.625rem; line-height: 1.4; }
.plan-pick__prices { font-size: 0.875rem; color: var(--c-muted); }
.plan-pick__prices span { font-weight: 600; color: var(--c-text); }

/* Period picker (step 2) */
.period-picker {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.period-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.625rem 1.125rem;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color var(--t-base);
}
.period-pick:has(input:checked) { border-color: var(--c-primary); }
.period-pick input[type=radio] { accent-color: var(--c-primary); }
.discount-tag {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-sm);
  font-style: normal;
}

/* Qty row */
.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Total bar (step 2) */
.checkout-total-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.checkout-total-bar__label { color: var(--c-muted); font-size: 0.9375rem; }
.checkout-total-bar__amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-primary);
}
.checkout-saving {
  font-size: 0.82rem;
  color: #16a34a;
  margin-top: 0.2rem;
}

/* Order summary (step 3) */
.order-summary {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
  gap: 1rem;
}
.order-summary__row:last-child { border-bottom: none; }
.order-summary__row span { color: var(--c-muted); }
.order-summary__row strong { text-align: right; }
.order-summary__row--total {
  background: var(--c-surface);
  font-weight: 700;
}
.order-summary__row--total strong { color: var(--c-primary); font-size: 1.125rem; }

/* Pay method buttons (step 3) */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pay-method-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  background: var(--c-white);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  font-family: inherit;
  font-size: 0.9375rem;
}
.pay-method-btn:hover { border-color: var(--c-primary); box-shadow: var(--shadow-pri); }
.pay-method-btn svg:first-child { width: 32px; height: 32px; flex-shrink: 0; }
.pay-method-btn div { flex: 1; }
.pay-method-btn strong { display: block; font-weight: 700; margin-bottom: 0.125rem; }
.pay-method-btn span { font-size: 0.8125rem; color: var(--c-muted); }
.pay-method-btn__arrow { width: 16px; height: 16px; color: var(--c-muted); flex-shrink: 0; }

/* Checkout actions row */
.checkout-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

/* Invoice sent flash */
.invoice-sent-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #166534;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.invoice-sent-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ---- Invoice history table ---- */
.invoice-table-wrap,
.doc-addr-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.invoice-table th,
.invoice-table td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.invoice-table th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-surface);
}
.invoice-table td.inv-num { font-weight: 600; white-space: nowrap; }
.inv-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-full);
}
.inv-status--pending   { background: #FEF9C3; color: #A16207; }
.inv-status--paid      { background: #DCFCE7; color: #15803D; }
.inv-status--cancelled { background: var(--c-surface); color: var(--c-muted); }

/* ---- Responsive ---- */
.page-cabinet .site-footer { display: none; }

@media (max-width: 900px) {
  .cab-wrap { flex-direction: column; }
  .sub-plans { grid-template-columns: 1fr; }
  /* Sidebar hidden on mobile — replaced by bottom nav */
  .cab-sidebar { display: none; }
  .cab-main { width: 100%; }
  /* Prevent bottom nav (60px) from overlapping content */
  .cab-wrap { padding-bottom: calc(60px + 2rem); }
}
@media (max-width: 768px) {
  .form-row--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .auth-box { padding: 1.75rem 1.25rem; }
  .plan-picker { grid-template-columns: 1fr; }
  .period-picker { display: grid; grid-template-columns: 1fr 1fr; }
  .period-pick { justify-content: center; }
  .qty-row { justify-content: space-between; }
  .qty-row .form-input { margin-left: auto; }
  .cab-cards {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--c-border);
  }
  .cab-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 1rem 1.25rem;
  }
  .cab-card:hover { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-row--4 { grid-template-columns: 1fr 1fr; }
  .trial-banner { flex-direction: column; align-items: flex-start; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.cab-bottom-nav {
  display: none; /* desktop: hidden */
}
@media (max-width: 900px) {
  .cab-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.07);
    z-index: 200;
  }
  .cab-bn__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--c-muted);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s;
    padding: 0 2px;
  }
  .cab-bn__item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .cab-bn__item.is-active {
    color: var(--c-primary);
  }
  .cab-bn__item:hover {
    color: var(--c-primary);
  }
}

/* ============================================================
   PERSISTENT PLAYER BAR
   ============================================================ */
.cab-player-bar[hidden] { display: none; }
.cab-player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: var(--c-white, #fff);
  border-top: 1px solid var(--c-border, #e5e7eb);
  box-shadow: 0 -4px 20px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
  z-index: 900;
}
body.has-player { padding-bottom: 68px; }

.cpb-cover {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 6px;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
}
.cpb-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.cpb-title {
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--c-heading);
}
.cpb-artist {
  font-size: .75rem;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cpb-controls {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.cpb-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-heading);
  padding: 0;
  transition: background .15s, color .15s;
}
.cpb-btn:hover { background: rgba(0,0,0,.06); }
.cpb-btn--play {
  width: 42px; height: 42px;
  background: var(--c-primary, #C8253D);
  color: #fff;
}
.cpb-btn--play:hover { background: #a01e31; }
.cpb-btn svg { width: 18px; height: 18px; }
.cpb-btn--play svg { width: 22px; height: 22px; }
.cpb-btn--shuffle svg { width: 15px; height: 15px; }
.cpb-btn--shuffle.is-active { color: var(--c-primary, #C8253D); }

.cpb-progress {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 100px;
  max-width: 320px;
}
.cpb-time {
  font-size: .7rem;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.cpb-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,.1);
  cursor: pointer;
  position: relative;
}
.cpb-bar__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--c-primary, #C8253D);
  width: 0%;
  transition: width .3s linear;
}

@media (max-width: 900px) {
  .cab-player-bar { bottom: 60px; }
  body.has-player { padding-bottom: calc(68px + 60px); }
}
@media (max-width: 600px) {
  .cpb-progress { display: none; }
  .cpb-cover { display: none; }
}

/* ============================================================
   PLAYLIST VIEW (используется в playlist_view и custom_playlist_view)
   ============================================================ */
.pl-back { margin-bottom: 1.5rem; }
.pl-back a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .875rem; color: var(--c-text-muted);
  text-decoration: none; transition: color .15s;
}
.pl-back a:hover { color: var(--c-primary); }
.pl-back svg { width: 16px; height: 16px; }

.pl-player {
  display: flex; gap: 1.5rem; align-items: center;
  background: var(--c-surface, #fff);
  border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  margin-bottom: 2rem; flex-wrap: wrap;
}
.pl-player__cover { flex-shrink: 0; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #f0f0f0; }
.pl-player__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-player__cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.pl-player__center { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .75rem; }
.pl-player__meta { min-height: 2.5rem; }
.pl-player__name  { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--c-heading); }
.pl-player__artist { font-size: .8rem; color: var(--c-text-muted); margin-top: .2rem; }
.pl-player__controls { display: flex; align-items: center; gap: .5rem; }
.pl-ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--c-heading); transition: background .15s, color .15s; padding: 0;
}
.pl-ctrl-btn:hover:not(:disabled) { background: var(--c-primary, #C8253D); color: #fff; }
.pl-ctrl-btn:disabled { opacity: .3; cursor: default; }
.pl-ctrl-btn--play { width: 52px; height: 52px; background: var(--c-primary, #C8253D); color: #fff; }
.pl-ctrl-btn--play:hover:not(:disabled) { background: #a01e31; }
.pl-ctrl-btn svg { width: 20px; height: 20px; }
.pl-ctrl-btn--play svg { width: 26px; height: 26px; }
.pl-ctrl-btn--shuffle svg { width: 16px; height: 16px; }
.pl-ctrl-btn--shuffle.is-active { color: var(--c-primary, #C8253D); background: rgba(200,37,61,.1); }
.pl-ctrl-btn--shuffle.is-active:hover { background: var(--c-primary, #C8253D); color: #fff; }
.pl-player__progress { display: flex; align-items: center; gap: .5rem; }
.pl-player__time {
  font-size: .75rem; color: var(--c-text-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pl-progress-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(0,0,0,.1); cursor: pointer; position: relative; }
.pl-progress-bar__fill { height: 100%; border-radius: 2px; background: var(--c-primary, #C8253D); width: 0%; transition: width .3s linear; }
.pl-player__info { flex-shrink: 0; text-align: right; }
.pl-player__playlist-name { font-weight: 600; font-size: .9rem; }
.pl-player__playlist-cat  { font-size: .8rem; color: var(--c-text-muted); margin-top: .15rem; }
.pl-player__playlist-mood { font-size: .75rem; color: var(--c-text-muted); margin-top: .1rem; font-style: italic; }
.pl-player__count { font-size: .75rem; color: var(--c-text-muted); margin-top: .5rem; }

.pl-tracklist { display: flex; flex-direction: column; gap: 2px; }
.pl-track {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem; border-radius: 8px;
  transition: background .15s; cursor: default;
  background: transparent; position: relative;
}
.pl-track:hover { background: rgba(0,0,0,.04); }
.pl-track.is-playing { background: rgba(200,37,61,.06); }
.pl-track.is-disliked { opacity: .45; }
.pl-track.no-file { opacity: .5; }
.pl-track__num { width: 24px; text-align: center; font-size: .8rem; color: var(--c-text-muted); flex-shrink: 0; }
.pl-track__play-indicator {
  width: 24px; flex-shrink: 0;
  display: none; align-items: center; justify-content: center; color: var(--c-primary);
}
.pl-track__play-indicator svg { width: 10px; height: 12px; }
.pl-track.is-playing .pl-track__num            { display: none; }
.pl-track.is-playing .pl-track__play-indicator { display: flex; }
.pl-track__info { flex: 1; min-width: 0; }
.pl-track__title  { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-track__artist { font-size: .75rem; color: var(--c-text-muted); }
.pl-track__no-file     { font-size: .72rem; color: #aaa; flex-shrink: 0; }
.pl-track__disliked-label { font-size: .72rem; color: var(--c-text-muted); flex-shrink: 0; font-style: italic; }
.pl-dislike-btn {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: #bbb; padding: 0; transition: color .15s;
}
.pl-dislike-btn:hover    { color: var(--c-primary, #C8253D); }
.pl-dislike-btn.is-active { color: var(--c-primary, #C8253D); }
.pl-dislike-btn svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .pl-player {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  .pl-player__cover { width: 64px; height: 64px; border-radius: 8px; }
  .pl-player__center { flex: 1; min-width: 0; gap: .5rem; }
  .pl-player__info { width: 100%; text-align: left; border-top: 1px solid var(--c-border); padding-top: .75rem; margin-top: -.25rem; }
  .pl-player__playlist-cat { justify-content: flex-start !important; }
  .pl-ctrl-btn--play { width: 44px; height: 44px; }
  .pl-ctrl-btn--play svg { width: 22px; height: 22px; }
}

/* ============================================================
   CUSTOM PLAYLIST PICKER (модал выбора плейлистов)
   ============================================================ */
.cp-picker { overflow-y: auto; flex: 1; padding-right: .25rem; min-height: 0; }
.cp-picker__cat {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--c-text-muted);
  margin: 1rem 0 .5rem;
}
.cp-picker__cat:first-child { margin-top: 0; }
.cp-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .5rem;
}
.cp-pick-card {
  position: relative; cursor: pointer; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; transition: border-color .15s;
  background: var(--c-surface, #fff);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex; flex-direction: column; user-select: none;
}
.cp-pick-card:hover { border-color: rgba(200,37,61,.3); }
.cp-pick-card.is-selected { border-color: var(--c-primary, #C8253D); }
.cp-pick-check { position: absolute; opacity: 0; pointer-events: none; }
.cp-pick-cover {
  aspect-ratio: 1; overflow: hidden; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.cp-pick-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-pick-name {
  font-size: .72rem; font-weight: 500; padding: .35rem .4rem .4rem;
  line-height: 1.25; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cp-pick-check-icon {
  position: absolute; top: .3rem; right: .3rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-primary, #C8253D); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.cp-pick-card.is-selected .cp-pick-check-icon { display: flex; }
.cp-pick-check-icon svg { width: 12px; height: 12px; }

/* ============================================================
   MODAL (cabinet, используется в playlists_grid и custom_playlist_view)
   ============================================================ */
.cab-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10,10,15,.65);
  backdrop-filter: blur(4px);
}
.cab-modal[hidden] { display: none; }
.cab-modal__box {
  position: relative;
  background: var(--c-white, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  animation: cab-modal-in .2s ease;
}
@keyframes cab-modal-in {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);   }
}
.cab-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
  flex-shrink: 0;
}
.cab-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-heading, #111);
  margin: 0;
}
.cab-modal__close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; line-height: 1; color: #999;
  transition: background .15s, color .15s;
  padding: 0;
}
.cab-modal__close:hover { background: #f0f0f0; color: #333; }
.cab-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.cab-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,.07);
  flex-shrink: 0;
}
.cab-modal__box--wide { max-width: 800px; }

/* ============================================================
   ADS SECTION
   ============================================================ */
.ad-section { margin-bottom: 2.5rem; }
.ad-section__title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--c-heading); margin: 0 0 1rem;
}

/* Upload box */
.ad-upload-box {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; padding: 2rem 1.5rem;
  border: 2px dashed rgba(0,0,0,.12);
  border-radius: 14px; background: var(--c-surface,#fff);
  transition: border-color .15s, background .15s;
}
.ad-upload-box.is-dragover { border-color: var(--c-primary); background: rgba(200,37,61,.04); }
.ad-upload-box__icon svg { width: 44px; height: 44px; color: var(--c-text-muted); }
.ad-upload-box__text { font-size: .9rem; color: var(--c-text-muted); text-align: center; line-height: 1.4; }
.ad-upload-label { cursor: pointer; }
.ad-upload-name-row { display: flex; gap: .5rem; width: 100%; max-width: 480px; }
.ad-upload-name-row .form-input { flex: 1; }

/* Progress bar */
.ad-progress-bar {
  width: 100%; max-width: 320px; height: 6px;
  background: #eee; border-radius: 3px; overflow: hidden;
}
.ad-progress-bar__fill { height: 100%; background: var(--c-primary); border-radius: 3px; width: 0%; transition: width .2s; }
.ad-progress-label { font-size: .8rem; color: var(--c-text-muted); }

/* Library */
.ad-empty { color: var(--c-text-muted); font-size: .9rem; }
.ad-library { display: flex; flex-direction: column; gap: .35rem; }
.ad-file-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem; border-radius: 10px;
  background: var(--c-surface,#fff);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  transition: box-shadow .15s;
}
.ad-file-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.ad-play-btn {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--c-primary,#C8253D); color: #fff; padding: 0;
  transition: background .15s;
}
.ad-play-btn:hover { background: #a01e31; }
.ad-play-btn svg { width: 16px; height: 16px; }
.ad-file-name { flex: 1; font-size: .9rem; font-weight: 500; }
.ad-file-size { font-size: .78rem; color: var(--c-text-muted); flex-shrink: 0; }
.ad-icon-btn {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: transparent; color: #aaa; transition: color .15s, background .15s; padding: 0;
}
.ad-icon-btn:hover { background: #f0f0f0; }
.ad-rename-btn:hover { color: var(--c-primary); }
.ad-delete-btn:hover { color: #e53e3e; }
.ad-icon-btn svg { width: 15px; height: 15px; }

/* Address cards */
.ad-addr-list { display: flex; flex-direction: column; gap: .75rem; }
.ad-addr-card {
  padding: .9rem 1.1rem; border-radius: 12px;
  background: var(--c-surface,#fff); box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ad-addr-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ad-addr-card__name { font-weight: 600; font-size: .95rem; }
.ad-addr-card__meta { font-size: .8rem; color: var(--c-text-muted); margin-top: .35rem; }

/* Settings modal file list */
.ad-modal-files {
  flex: 1; overflow-y: auto; min-height: 0;
  display: flex; flex-direction: column; gap: .3rem;
  padding-right: .25rem;
}
.ad-modal-file-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .65rem; border-radius: 9px;
  border: 1.5px solid transparent;
  background: var(--c-bg,#f8f8f8);
  transition: border-color .12s, background .12s;
  cursor: default;
}
.ad-modal-file-row.is-selected { background: rgba(200,37,61,.06); border-color: rgba(200,37,61,.2); }
.ad-modal-file-row.is-dragging { opacity: .4; }
.ad-modal-file-row.drag-over { border-color: var(--c-primary); }
.ad-drag-handle {
  flex-shrink: 0; width: 20px; height: 20px;
  color: #ccc; cursor: grab; display: flex; align-items: center; justify-content: center;
}
.ad-drag-handle:active { cursor: grabbing; }
.ad-drag-handle svg { width: 16px; height: 16px; }
.ad-modal-check-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; flex: 1; }
.ad-modal-cb { accent-color: var(--c-primary); width: 16px; height: 16px; flex-shrink: 0; }
.ad-modal-file-name { font-size: .9rem; }
.ad-sort-btns {
  display: none;
  flex-shrink: 0;
  gap: .15rem;
}
.ad-sort-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: 1.5px solid var(--c-border, #e5e5e5);
  background: var(--c-surface, #fff);
  color: var(--c-text-muted); cursor: pointer;
  padding: 0;
}
.ad-sort-btn:active { background: var(--c-bg, #f5f5f5); }
.ad-sort-btn svg { width: 14px; height: 14px; }
@media (pointer: coarse) {
  .ad-sort-btns { display: flex; }
  .ad-drag-handle { display: none; }
  .ad-upload-box {
    padding: 0;
    border: none;
    background: none;
    align-items: flex-start;
    gap: 0;
  }
  .ad-upload-box__icon { display: none; }
  .ad-upload-box__text { display: none; }
}

/* Toggle switch */
.ad-toggle-row { display: flex; align-items: center; gap: .85rem; }
.ad-toggle { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.ad-toggle input { opacity: 0; width: 0; height: 0; }
.ad-toggle__track {
  position: absolute; inset: 0; border-radius: 12px;
  background: #ddd; cursor: pointer; transition: background .2s;
}
.ad-toggle__track::after {
  content: ''; position: absolute;
  left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ad-toggle input:checked + .ad-toggle__track { background: var(--c-primary,#C8253D); }
.ad-toggle input:checked + .ad-toggle__track::after { transform: translateX(20px); }
