/* Rich calculator tools — shared pro layout */

.tool-page-body--pro {
  background: #f8fafc;
}

.tool-page-body--pro .tool-page__head {
  display: none;
}

.tool-page-body--pro .tool-page__wrap {
  max-width: 960px;
}

.tool-pro__card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .85);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  padding: 1.5rem 1.75rem 1.75rem;
}

@media (min-width: 640px) {
  .tool-pro__card {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.tool-pro__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.tool-pro__head-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 240px;
}

.tool-pro__head-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-pro__head-icon .ph-duotone {
  font-size: 1.5rem;
  color: #8662f6;
}

.tool-pro__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
  line-height: 1.25;
}

.tool-pro__lead {
  margin: .25rem 0 0;
  font-size: .75rem;
  line-height: 1.55;
  color: #64748b;
}

.tool-pro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .tool-pro__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.tool-pro__form .tool-form {
  gap: 1.25rem;
}

/* Tabs */
.tool-pro-tabs {
  display: inline-flex;
  align-items: center;
  background: #edf2f7;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  flex-shrink: 0;
  max-width: 100%;
}

.tool-pro-tabs__visible {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tool-pro-tabs__item {
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: color .25s ease;
  font-family: inherit;
}

.tool-pro-tabs__item:hover {
  color: #475569;
}

.tool-pro-tabs__item.is-active {
  color: #fff;
}

.tool-pro-tabs__indicator {
  position: absolute;
  height: calc(100% - 8px);
  background: #100029;
  border-radius: 8px;
  top: 4px;
  left: 4px;
  z-index: 1;
  transition: left .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1);
}

/* Sections */
.tool-pro-section {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.tool-pro-section.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tool-pro-field {
  display: grid;
  gap: .4rem;
}

.tool-pro-field__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #475569;
}

.tool-pro-field__wrap {
  position: relative;
}

.tool-pro-input {
  width: 100%;
  height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 0 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tool-pro-input:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.tool-pro-input--suffix {
  padding-right: 4.5rem;
}

.tool-pro-field__suffix {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .68rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f8fafc;
  padding: .35rem .55rem;
  border-radius: .5rem;
  border: 1px solid #e2e8f0;
  pointer-events: none;
}

.tool-pro-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.tool-pro-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

@media (max-width: 520px) {
  .tool-pro-grid-3,
  .tool-pro-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Divisor dropdown (simple) */
.tool-pro-select {
  width: 100%;
  height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 0 2rem 0 1rem;
  font-size: .75rem;
  font-weight: 700;
  color: #334155;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
}

.tool-pro-select:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

/* Actions */
.tool-pro-actions {
  display: flex;
  gap: .75rem;
  padding-top: .35rem;
}

.tool-pro-actions .btn-dark {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.tool-pro-actions__clear {
  flex: 0 0 auto;
  min-width: 7.5rem;
  height: 54px;
  padding: 0 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  color: #100029;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background .15s ease, border-color .15s ease;
}

.tool-pro-actions__clear:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Aside */
.tool-pro__aside {
  display: grid;
  gap: 1.25rem;
}

.tool-pro-visual {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1rem 1rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tool-pro-visual__caption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tool-pro-box__svg {
  margin-top: 1rem;
}

.tool-pro-box__edge {
  stroke: #cbd5e1;
  stroke-width: 2;
  transition: stroke .25s ease, stroke-width .25s ease;
}

.tool-pro-box__edge.is-active {
  stroke: #8662f6;
  stroke-width: 3.5;
}

.tool-pro-box__text {
  fill: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  transition: fill .25s ease;
}

.tool-pro-box__text.is-active {
  fill: #8662f6;
}

.tool-pro-visual--icon {
  text-align: center;
  gap: .75rem;
}

.tool-pro-visual__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-pro-visual__icon .ph-duotone {
  font-size: 2rem;
  color: #8662f6;
}

.tool-pro-visual__hint {
  margin: 0;
  font-size: .75rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 220px;
}

.tool-pro-visual--preview .tool-pro-preview-mount {
  width: 100%;
  margin-top: 1.5rem;
}

/* Results panel */
.tool-pro-results {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.1rem;
}

.tool-pro-results__title {
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0f172a;
}

.tool-pro-results__empty {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .75rem;
  line-height: 1.55;
  color: #94a3b8;
  font-weight: 600;
}

.tool-pro-results__empty .ph-duotone {
  color: #8662f6;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.tool-pro-results__empty p {
  margin: 0;
}

.tool-pro-results__empty b {
  color: #475569;
}

.tool-pro-results__output {
  display: grid;
  gap: 1rem;
}

.tool-pro-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.tool-pro-stat {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: .75rem;
  padding: .75rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.tool-pro-stat__label {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}

.tool-pro-stat__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.tool-pro-highlight {
  background: rgba(134, 98, 246, .06);
  border: 1px solid rgba(199, 191, 247, .55);
  border-radius: .75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.tool-pro-highlight__label {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  display: block;
}

.tool-pro-highlight__note {
  margin: .2rem 0 0;
  font-size: .72rem;
  color: #64748b;
  line-height: 1.45;
}

.tool-pro-highlight__value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #8662f6;
  white-space: nowrap;
}

.tool-pro-rates__title {
  margin: 0;
  padding-top: .5rem;
  border-top: 1px solid #e2e8f0;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}

.tool-pro-rates {
  display: grid;
  gap: .4rem;
}

.tool-pro-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem .85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  transition: border-color .15s ease;
}

.tool-pro-rate-row:hover {
  border-color: #cbd5e1;
}

.tool-pro-rate-row__left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.tool-pro-rate-row__icon {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-pro-rate-row__icon .ph-duotone {
  font-size: 1.1rem;
  color: #8662f6;
}

.tool-pro-rate-row__name {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #0f172a;
}

.tool-pro-rate-row__sub {
  display: block;
  font-size: .62rem;
  color: #94a3b8;
  font-weight: 500;
}

.tool-pro-rate-row__right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.tool-pro-rate-row__badge {
  font-size: .56rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #8662f6;
  color: #fff;
  padding: .2rem .45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tool-pro-rate-row__price {
  font-size: .875rem;
  font-weight: 800;
  color: #0f172a;
}

/* KDV result in pro panel */
.tool-pro-results__output .tool-kdv-result {
  gap: .85rem;
}

.tool-pro-results__output .tool-kdv-row__label {
  font-size: .75rem;
}

.tool-pro-results__output .tool-kdv-row__value {
  font-size: .8rem;
}

/* Legacy form inside pro */
.tool-pro__form .tool-form__radios,
.tool-pro__form .tool-rate-row {
  margin-top: .25rem;
}

.tool-pro__form .tool-form__group label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #475569;
}
