.tax-center-view {
  --tax-ink: #10142f;
  --tax-muted: #667085;
  --tax-border: rgba(17, 24, 39, .09);
  --tax-lavender: #7357ff;
  --tax-cyan: #32c7e6;
  color: var(--tax-ink);
}

.tax-center-shell {
  display: grid;
  gap: 20px;
  padding-bottom: 36px;
}

.tax-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 26px;
  align-items: center;
  min-height: 260px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(50, 199, 230, .25), transparent 32%),
    radial-gradient(circle at 45% 110%, rgba(115, 87, 255, .38), transparent 45%),
    linear-gradient(135deg, #0c112e 0%, #16133e 52%, #241950 100%);
  box-shadow: 0 24px 60px rgba(14, 17, 47, .18);
}

.tax-hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .035), 0 0 0 58px rgba(255, 255, 255, .02);
}

.tax-hero-copy,
.tax-period-card {
  position: relative;
  z-index: 1;
}

.tax-kicker,
.tax-panel-head > div > span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tax-hero .tax-kicker {
  color: #9eeeff;
}

.tax-hero h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.tax-hero-copy > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.65;
}

.tax-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tax-hero-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 700;
}

.tax-period-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.tax-period-card label {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
}

.tax-period-card select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  color: #fff;
  background: rgba(7, 9, 28, .62);
  font-size: 15px;
  font-weight: 750;
}

.tax-period-card select option {
  color: #111827;
  background: #fff;
}

.tax-refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #12152e;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.tax-refresh-button:disabled {
  cursor: progress;
  opacity: .65;
}

.tax-period-card small {
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
  line-height: 1.45;
}

.tax-profile-card,
.tax-panel,
.tax-loading-card,
.tax-error-card,
.tax-disclaimer {
  border: 1px solid var(--tax-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .05);
}

.tax-profile-ready {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
}

.tax-profile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #20b486, #55d6ae);
  font-size: 18px;
  font-weight: 900;
}

.tax-profile-ready span,
.tax-profile-ready small {
  display: block;
  color: var(--tax-muted);
  font-size: 12px;
}

.tax-profile-ready strong {
  display: block;
  margin: 3px 0;
  font-size: 17px;
}

.tax-profile-form {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.5fr);
  gap: 22px;
  padding: 24px;
}

.tax-profile-form-copy h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.025em;
}

.tax-profile-form-copy p {
  margin: 8px 0 0;
  color: var(--tax-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tax-profile-form .tax-kicker {
  color: var(--tax-lavender);
}

.tax-profile-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, .6fr) minmax(130px, .6fr);
  gap: 12px;
}

.tax-profile-fields label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.tax-profile-fields input,
.tax-profile-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d9deea;
  border-radius: 13px;
  color: #10142f;
  background: #fbfcff;
  font-size: 15px;
}

.tax-rate-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9deea;
  border-radius: 13px;
  background: #fbfcff;
}

.tax-rate-input input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tax-rate-input b {
  color: #667085;
  text-align: center;
}

.tax-profile-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tax-profile-actions > div {
  display: flex;
  gap: 8px;
}

.tax-profile-actions > span {
  color: #c6334d;
  font-size: 12px;
  font-weight: 700;
}

.tax-loading-card,
.tax-error-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.tax-loading-card strong,
.tax-error-card strong {
  display: block;
  font-size: 15px;
}

.tax-loading-card p,
.tax-error-card p {
  margin: 4px 0 0;
  color: var(--tax-muted);
  font-size: 13px;
}

.tax-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e7e9f3;
  border-top-color: var(--tax-lavender);
  border-radius: 50%;
  animation: tax-spin .8s linear infinite;
}

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

.tax-error-card {
  align-items: flex-start;
  border-color: rgba(211, 51, 78, .22);
  background: #fff7f8;
}

.tax-error-card button {
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid rgba(211, 51, 78, .2);
  border-radius: 11px;
  color: #a5263c;
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}

.tax-results {
  display: grid;
  gap: 20px;
}

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

.tax-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tax-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .045);
}

.tax-metric-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #5d45e8, #7b61ff 64%, #8e76ff);
}

.tax-metric span,
.tax-metric small {
  display: block;
  color: var(--tax-muted);
  font-size: 12px;
}

.tax-metric-primary span,
.tax-metric-primary small {
  color: rgba(255, 255, 255, .72);
}

.tax-metric strong {
  display: block;
  overflow: hidden;
  margin: 9px 0 7px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tax-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
}

.tax-panel {
  padding: 22px;
}

.tax-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.tax-panel-head > div > span {
  color: var(--tax-lavender);
}

.tax-panel-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
}

.tax-panel-head > b {
  padding: 7px 10px;
  border-radius: 999px;
  color: #5540d6;
  background: #f0edff;
  font-size: 11px;
  white-space: nowrap;
}

.tax-panel-head > b.is-overdue {
  color: #a5263c;
  background: #ffeaee;
}

.tax-panel-head > b.is-urgent {
  color: #9a5b00;
  background: #fff3d6;
}

.tax-panel-head > b.is-ok {
  color: #08755a;
  background: #e5fbf4;
}

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

.tax-marketplace-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #edf0f6;
  border-radius: 15px;
  background: #fbfcff;
}

.tax-marketplace-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: #171a35;
  font-weight: 900;
}

.tax-marketplace-logo.kaspi { background: linear-gradient(145deg, #ef493c, #ff6b5d); }
.tax-marketplace-logo.ozon { background: linear-gradient(145deg, #1769ff, #3b82ff); }
.tax-marketplace-logo.wildberries,
.tax-marketplace-logo.wb { background: linear-gradient(145deg, #a936d1, #d34bb6); }

.tax-marketplace-main > div:first-child,
.tax-marketplace-money {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tax-marketplace-main strong,
.tax-marketplace-money strong {
  font-size: 13px;
}

.tax-marketplace-main span,
.tax-marketplace-money span {
  color: var(--tax-muted);
  font-size: 11px;
}

.tax-share-track {
  overflow: hidden;
  height: 5px;
  margin-top: 9px;
  border-radius: 99px;
  background: #e8ebf3;
}

.tax-share-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tax-lavender), var(--tax-cyan));
}

.tax-marketplace-money {
  display: grid;
  min-width: 110px;
  justify-items: end;
}

.tax-timeline {
  display: grid;
  gap: 18px;
}

.tax-timeline > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.tax-timeline i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #5d45e8;
  background: #efedff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.tax-timeline strong,
.tax-timeline span {
  display: block;
}

.tax-timeline strong {
  font-size: 13px;
}

.tax-timeline span {
  margin-top: 3px;
  color: var(--tax-muted);
  font-size: 12px;
}

.tax-deadline-note {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 13px;
  color: #50576b;
  background: #f6f7fb;
  font-size: 12px;
  line-height: 1.5;
}

.tax-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #11152f, #1e1a4a);
  box-shadow: 0 18px 45px rgba(16, 19, 48, .16);
}

.tax-payment-card .tax-kicker {
  color: #9eeeff;
}

.tax-payment-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.04em;
}

.tax-payment-copy > p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  line-height: 1.55;
}

.tax-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tax-payment-card .primary-button {
  background: linear-gradient(135deg, #775dff, #4ed0eb);
}

.tax-payment-card .secondary-button {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

.tax-payment-card button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.tax-payment-copy > small {
  display: block;
  min-height: 16px;
  margin-top: 11px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
}

.tax-payment-steps {
  display: grid;
  gap: 9px;
}

.tax-payment-steps > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
}

.tax-payment-steps > div > span {
  color: #9eeeff;
  font-size: 11px;
  font-weight: 900;
}

.tax-payment-steps p {
  margin: 0;
}

.tax-payment-steps strong,
.tax-payment-steps small {
  display: block;
}

.tax-payment-steps strong {
  color: #fff;
  font-size: 12px;
}

.tax-payment-steps small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  line-height: 1.4;
}

.tax-disclaimer {
  padding: 18px 20px;
}

.tax-disclaimer > strong {
  display: block;
  font-size: 13px;
}

.tax-disclaimer > p {
  margin: 6px 0 0;
  color: var(--tax-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tax-warning-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tax-warning-list > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  color: #7a5011;
  background: #fff8e8;
}

.tax-warning-list span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: #e0a02e;
  font-size: 11px;
  font-weight: 900;
}

.tax-warning-list p {
  margin: 1px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.tax-empty-state {
  display: grid;
  gap: 5px;
  padding: 24px;
  border: 1px dashed #d7dbea;
  border-radius: 15px;
  color: var(--tax-muted);
  text-align: center;
}

.tax-empty-state strong {
  color: var(--tax-ink);
  font-size: 14px;
}

.tax-empty-state span {
  font-size: 12px;
}

@media (max-width: 1050px) {
  .tax-hero,
  .tax-payment-card,
  .tax-profile-form {
    grid-template-columns: 1fr;
  }

  .tax-profile-actions {
    grid-column: 1;
  }

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

  .tax-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tax-center-shell {
    gap: 14px;
  }

  .tax-hero,
  .tax-payment-card {
    padding: 20px;
    border-radius: 22px;
  }

  .tax-hero {
    min-height: 0;
  }

  .tax-hero h2 {
    font-size: 34px;
  }

  .tax-profile-ready {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .tax-profile-ready button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tax-profile-form {
    padding: 18px;
  }

  .tax-profile-fields,
  .tax-metrics-grid {
    grid-template-columns: 1fr;
  }

  .tax-profile-actions {
    display: grid;
  }

  .tax-profile-actions > div,
  .tax-profile-actions button,
  .tax-payment-actions,
  .tax-payment-actions button {
    width: 100%;
  }

  .tax-profile-actions > div {
    display: grid;
  }

  .tax-panel {
    padding: 18px;
  }

  .tax-marketplace-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .tax-marketplace-logo {
    width: 38px;
    height: 38px;
  }

  .tax-marketplace-money {
    grid-column: 2;
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
}
