.td-cost {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 1fr);
  gap: 0;
  align-items: start;
  border: 1px solid rgba(253, 120, 5, 0.4);
  border-radius: 28px;
  background: #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 70px rgba(253, 120, 5, 0.1);
  color-scheme: dark;
  color: #fff;
}

.td-cost,
.td-cost * {
  box-sizing: border-box;
}

.td-cost-main,
.td-cost-summary {
  min-width: 0;
}

.td-cost-main {
  padding: 26px 24px 22px;
  border-radius: 28px 0 0 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 90px),
    #101010;
}

.td-cost-summary {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 26px 22px 22px;
  border: 0;
  border-left: 1px solid rgba(253, 120, 5, 0.22);
  border-radius: 0 28px 28px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(253, 120, 5, 0.2), transparent 42%),
    #161311;
  box-shadow: none;
}

.td-cost-summary::-webkit-scrollbar {
  width: 8px;
}

.td-cost-summary::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(253, 120, 5, 0.45);
}

.td-cost-label,
.td-field > span,
.td-usage-label {
  display: block;
  margin: 0 0 8px;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 800;
}

.td-cost-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.td-cost-channel > span:last-child {
  white-space: nowrap;
}

.td-cost-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #171717;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.td-cost-channel:hover {
  border-color: rgba(253, 120, 5, 0.65);
}

.td-cost-channel.is-on {
  border-color: #fd7805;
  background: rgba(253, 120, 5, 0.1);
  box-shadow: 0 0 0 1px rgba(253, 120, 5, 0.35), 0 0 18px rgba(253, 120, 5, 0.12);
}

.td-cost-mark {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.td-cost-channel.is-on .td-cost-mark {
  border-color: #fd7805;
  background: #fd7805;
}

.td-cost-channel.is-on .td-cost-mark::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: rotate(-45deg) translateY(-1px);
}

.td-cost-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #fd7805;
}

.td-cost-ico svg {
  width: 16px;
  height: 16px;
}

.td-cost-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.td-field {
  display: grid;
  gap: 6px;
}

.td-cost select,
.td-cost input[type="number"] {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: #0d0d0d;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
}

.td-cost select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #fd7805 50%), linear-gradient(135deg, #fd7805 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.td-drop {
  position: relative;
}

.td-drop-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.td-drop-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #0d0d0d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.td-drop-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-right: 2px solid #fd7805;
  border-bottom: 2px solid #fd7805;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 7px;
}

.td-drop.is-open .td-drop-btn,
.td-drop-btn:focus-visible {
  outline: none;
  border-color: #fd7805;
  box-shadow: 0 0 0 3px rgba(253, 120, 5, 0.22);
}

.td-drop-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(253, 120, 5, 0.55);
  border-radius: 12px;
  background: #141414;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.td-drop-opt {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.td-drop-opt:hover,
.td-drop-opt:focus-visible {
  outline: none;
  background: rgba(253, 120, 5, 0.14);
}

.td-drop-opt.is-on {
  background: rgba(253, 120, 5, 0.18);
  color: #fd7805;
}

.td-cost select:focus,
.td-cost input[type="number"]:focus,
.td-cost input[type="range"]:focus-visible {
  outline: none;
  border-color: #fd7805;
  box-shadow: 0 0 0 3px rgba(253, 120, 5, 0.22);
}

.td-cost-category {
  margin-top: 16px;
}

.td-cost-category[hidden],
.td-usage[hidden],
.td-cost [hidden] {
  display: none !important;
}

.td-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-seg label {
  position: relative;
}

.td-seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.td-seg span,
.td-presets button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #141414;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.td-seg input:checked + span,
.td-presets button.is-on {
  border-color: #fd7805;
  background: rgba(253, 120, 5, 0.16);
  box-shadow: 0 0 0 1px rgba(253, 120, 5, 0.28);
}

.td-seg input:focus-visible + span,
.td-cost-channel:focus-visible,
.td-presets button:focus-visible,
.td-cost-cta:focus-visible {
  outline: 2px solid #fd7805;
  outline-offset: 2px;
}

.td-usage {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.td-usage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.td-usage-head h3 {
  margin: 0;
  font-size: 16px;
}

.td-usage-head span,
.td-rate-chip {
  color: #fd7805;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.td-usage-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
}

.td-usage input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  appearance: none;
}

.td-usage input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fd7805 var(--fill, 0%), rgba(255, 255, 255, 0.14) var(--fill, 0%));
}

.td-usage input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid #fd7805;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(253, 120, 5, 0.18);
  appearance: none;
}

.td-usage input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.td-usage input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #fd7805;
}

.td-usage input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fd7805;
  border-radius: 50%;
  background: #fff;
}

.td-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.td-presets button {
  min-width: 52px;
  padding: 0 10px;
  font-size: 13px;
}

.td-cost-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.td-cost-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fd7805;
}

.td-cost-team {
  margin-top: 16px;
}

.td-cost-fine {
  margin: 14px 0 0;
  color: #a7a7a7;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.td-cost-kicker {
  margin: 0;
  color: #fd7805;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.td-cost-summary > strong {
  display: block;
  margin: 8px 0 4px;
  color: #fd7805;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.td-cost-table {
  margin-top: 16px;
}

.td-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(88px, 1fr) minmax(72px, auto);
  gap: 8px 16px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
}

.td-cost-row.is-head {
  padding-bottom: 6px;
  border-top: 0;
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.td-cost-row b {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.td-cost-row span:nth-child(2) {
  color: #c8c8c8;
  text-align: right;
}

.td-cost-splits {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

.td-cost-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ddd;
  font-size: 14px;
}

.td-cost-split strong {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.td-cost-highlight {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(253, 120, 5, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(253, 120, 5, 0.22), rgba(253, 120, 5, 0.06));
  box-shadow: inset 0 0 24px rgba(253, 120, 5, 0.08);
}

.td-cost-highlight .td-cost-fine {
  margin-top: 6px;
}

.td-cost-highlight strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.td-cost-plan {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.td-cost-plan h3 {
  margin: 6px 0 2px;
  font-size: 22px;
}

.td-cost-plan-price {
  margin: 0;
  color: #fd7805;
  font-size: 18px;
  font-weight: 800;
}

.td-cost-features {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.td-cost-features li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #d0d0d0;
  font-size: 13px;
  line-height: 1.4;
}

.td-cost-features li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fd7805;
}

.td-cost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
}

@media (max-width: 991.98px) {
  .td-cost {
    grid-template-columns: 1fr;
  }

  .td-cost-main {
    border-radius: 28px 28px 0 0;
  }

  .td-cost-summary {
    position: static;
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid rgba(253, 120, 5, 0.22);
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 767.98px) {
  .td-cost-main,
  .td-cost-summary {
    padding: 18px 14px 16px;
  }

  .td-cost-channels,
  .td-cost-filters {
    grid-template-columns: 1fr 1fr;
  }

  .td-cost-channel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .td-usage-controls {
    grid-template-columns: 1fr;
  }

  .td-cost-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(76px, 0.9fr) minmax(64px, auto);
    gap: 6px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-cost-channel,
  .td-presets button,
  .td-seg span {
    transition: none;
  }
}
