/* Pricing — from Figma node 174:400 (TIQS Website) */
.page-pricing {
  min-height: 100vh;
}

.pricing-main {
  /* width: min(1140px, calc(100% - 32px)); */
  margin: 0 auto;
  padding: 144px 0 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-stack {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* Brokerage summary card */
.pricing-brokerage-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 24px 0px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  background-image: url(../images/priceSectionBg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.pricing-brokerage-card__title {
  position: relative;
  z-index: 1;
  margin: 0;

  font-size: 24px;
  font-weight: 700;
  color: #333333;
  text-align: center;
}

.pricing-brokerage-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0px;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

.pricing-brokerage-col {
  flex: 1 1 140px;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-left: 1px solid #dddddd;
}

.pricing-brokerage-col:first-child {
  border-left: none;
  padding-left: 0;
}

.pricing-brokerage-value {
  margin: 0;

  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.pricing-brokerage-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.pricing-brokerage-labels h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.pricing-brokerage-labels p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  line-height: normal;
}

/* Detailed breakdown table */
.pricing-breakdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.pricing-breakdown__title {
  margin: 0;

  font-size: 24px;
  font-weight: 700;
  color: #333333;
  text-align: center;
}

.pricing-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

  font-size: 16px;
  color: #333333;
}

.pricing-table thead th {
  background: #fafafa;
  font-weight: 600;
  text-align: left;
  padding: 20px;
  letter-spacing: -0.5px;
  border: none;
}

.pricing-table thead th:first-child {
  width: 35%;
}

.pricing-table thead th:nth-child(2) {
  width: 23%;
}

.pricing-table tbody td {
  padding: 20px;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
  font-weight: 400;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table__segment {
  font-weight: 500;
  letter-spacing: -0.5px;
}

/* -----------------------------------------------------------------------------
   Charges tabs — Figma 175:571, depository 181:2152, other 289:362
   ----------------------------------------------------------------------------- */

.pricing-charges-panel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px 0;
  background: linear-gradient(-54deg, #512853 27.4%, #3f1646 71%);
}

.pricing-charges-panel__inner {
  position: relative;
  /* width: min(1140px, calc(100% - 32px)); */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-charges__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  border-bottom: 1px solid #67376e;
  padding: 0 16px;
}

.pricing-charges__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;

  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #d4a7d8;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.pricing-charges__tab:hover {
  color: #ffffff;
}

.pricing-charges__tab.is-active {
  color: #ffffff;
}

.pricing-charges__tab-line {
  display: block;
  width: 100%;
  min-width: 48px;
  height: 3px;
  border-radius: 4px;
  background: transparent;
}

.pricing-charges__tab.is-active .pricing-charges__tab-line {
  background: #ffffff;
}

.pricing-charges__intro {
  margin: 0;

  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #d4a7d8;
}

.pricing-charges__panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-charges__panel--depository,
.pricing-charges__panel--other {
  width: 100%;
}

.pricing-charges__panel[hidden] {
  display: none;
}

.pricing-table-wrap--charges {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.pricing-reg-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

  font-size: 16px;
  color: #333333;
}

.pricing-reg-table__row-group th {
  height: 60px;
  padding: 0 20px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  background: #f7e8f3;
  border-bottom: 1px solid #e8d3e2;
}

.pricing-reg-table__row-group th:first-child {
  min-width: 250px;
  width: 250px;
  border-right: 1px solid #e8d3e2;
}

.pricing-reg-table__row-group th:nth-child(2) {
  border-right: 1px solid #e8d3e2;
}

.pricing-reg-table thead tr:nth-child(2) th {
  height: 50px;
  padding: 0 12px;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  background: #fafafa;
  border-bottom: 1px solid #eeeeee;
}

.pricing-reg-table thead tr:nth-child(2) th:first-child {
  text-align: left;
  padding-left: 20px;
  width: 250px;
  box-sizing: border-box;
}

.pricing-reg-table thead tr:nth-child(2) th:nth-child(2),
.pricing-reg-table thead tr:nth-child(2) th:nth-child(3) {
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}

.pricing-reg-table thead tr:nth-child(2) th:nth-child(4) {
  border-right: 1px solid #dddddd;
}

.pricing-reg-table tbody tr {
  border-bottom: 1px solid #eeeeee;
}

.pricing-reg-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-reg-table tbody th,
.pricing-reg-table tbody td {
  padding: 20px 12px;
  vertical-align: middle;
  text-align: center;
}

.pricing-reg-table tbody th {
  text-align: left;
  padding-left: 20px;
  width: 250px;
  max-width: 280px;
  font-weight: 500;
  box-sizing: border-box;
}

.pricing-reg-table tbody td {
  border-left: 1px solid #dddddd;
}

.pricing-reg-table__charge {
  line-height: 23px;
}

.pricing-reg-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
}

.pricing-reg-value {
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.pricing-reg-value-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pricing-reg-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #747474;
}

.pricing-reg-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pricing-reg-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

.pricing-reg-tag--buy {
  color: #369350;
}

.pricing-reg-tag--sell {
  color: #ca4b43;
}

.pricing-reg-sep {
  font-size: 14px;
  font-weight: 500;
  color: #dddddd;
}

/* Depository & Other charges — tab tables */
.pricing-depository-table,
.pricing-other-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

  font-size: 16px;
  color: #333333;
}

.pricing-depository-table thead th,
.pricing-other-table thead th {
  background: #fafafa;
  font-weight: 700;
  text-align: left;
  padding: 20px;
  letter-spacing: -0.5px;
  border: none;
}

.pricing-depository-table thead th:first-child,
.pricing-other-table thead th:first-child {
  width: 38%;
}

.pricing-depository-table tbody th,
.pricing-depository-table tbody td,
.pricing-other-table tbody th,
.pricing-other-table tbody td {
  padding: 20px;
  border-bottom: 1px solid #eeeeee;
  vertical-align: center;
  text-align: left;
}

.pricing-depository-table tbody th,
.pricing-other-table tbody th {
  font-weight: 500;
  letter-spacing: -0.5px;
}

.pricing-depository-table tbody td,
.pricing-other-table tbody td {
  font-weight: 400;
}

.pricing-depository-table tbody tr:first-child th,
.pricing-depository-table tbody tr:first-child td,
.pricing-other-table tbody tr:first-child th,
.pricing-other-table tbody tr:first-child td {
  padding-top: 28px;
}

.pricing-depository-table tbody tr:last-child th,
.pricing-depository-table tbody tr:last-child td,
.pricing-other-table tbody tr:last-child th,
.pricing-other-table tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 32px;
}

.pricing-depository-table__name,
.pricing-other-table__name {
  display: block;
  font-weight: 500;
}

.pricing-depository-table__hint,
.pricing-other-table__hint {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #747474;
  line-height: normal;
}

.pricing-depository-table__lead,
.pricing-other-table__lead {
  margin: 0 0 10px;
  font-weight: 400;
}

.pricing-depository-table__lead:last-child,
.pricing-other-table__lead:last-child {
  margin-bottom: 0;
}

.pricing-depository-table__muted,
.pricing-other-table__muted {
  font-size: 14px;
  color: #747474;
}

.pricing-depository-table__note,
.pricing-other-table__note {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #747474;
}

/* =============================================================================
   Responsive — max-width: 960px
   ============================================================================= */

@media (max-width: 960px) {
  .pricing-main {
    padding-top: 120px;
    gap: 20px;
  }

  .pricing-stack {
    gap: 32px;
  }

  .pricing-brokerage-card {
    gap: 32px;
    padding: 20px 16px 32px;
    background-position: left top;
    background-size: auto 80%;
  }

  .pricing-brokerage-card__title {
    font-size: 20px;
  }

  .pricing-brokerage-columns {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-brokerage-col {
    border-left: none;
    padding: 0px 16px;
    margin: 16px 0;
  }

  .pricing-brokerage-col:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid #dddddd;
  }

  .pricing-brokerage-col:nth-child(odd) {
    padding-left: 0;
  }

  .pricing-brokerage-col:nth-child(-n + 2) {
    margin-top: 0;
  }

  .pricing-brokerage-col:nth-last-child(-n + 2) {
    margin-bottom: 0;
  }

  .pricing-brokerage-col:first-child {
    border-top: none;
    padding-top: 0;
  }

  .pricing-brokerage-value {
    font-size: 32px;
  }

  .pricing-brokerage-labels p {
    font-size: 14px;
  }

  .pricing-breakdown__title {
    font-size: 18px;
    padding: 0 8px;
  }

  .pricing-breakdown {
    gap: 20px;
  }

  .pricing-table {
    font-size: 14px;
    min-width: auto;
  }

  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 16px 0px;
  }
  .pricing-table thead th:first-child,
  .pricing-table tbody td:nth-child(2) {
    width: 29%;
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody td:first-child {
    padding-left: 12px;
  }

  .pricing-table thead th:last-child,
  .pricing-table tbody td:last-child {
    padding-right: 12px;
  }

  .pricing-table thead th:nth-child(n + 1),
  .pricing-table tbody td:nth-child(n + 1) {
    padding-left: 12px;
  }

  .pricing-reg-sep {
    display: none;
  }

  .pricing-charges-panel {
    padding: 40px 0;
  }

  .pricing-charges__tabs {
    gap: 20px;
    padding: 0;
  }

  .pricing-charges__tab {
    font-size: 14px;
    white-space: normal;
    text-align: center;
    padding: 0;
  }

  .pricing-charges__intro {
    font-size: 14px;
    line-height: 22px;
  }

  .pricing-reg-table {
    min-width: 100%;
    font-size: 14px;
    word-break: break-all;
  }

  .pricing-reg-table__row-group th {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
  }

  .pricing-reg-table__row-group th:first-child {
    min-width: auto;
    width: auto;
  }

  .pricing-reg-table tbody th {
    padding: 0 0 0 12px;
    font-weight: 500;
  }

  .pricing-reg-table tbody td {
    padding: 12px 0;
    width: 100px;
  }

  .pricing-reg-table thead tr:nth-child(2) th {
    font-size: 12px;
    font-weight: 400;
    padding: 0;
  }

  .pricing-reg-table thead tr:nth-child(2) th:first-child {
    padding-left: 12px;
  }

  .pricing-reg-tag {
    font-size: 12px;
  }

  .pricing-depository-table,
  .pricing-other-table {
    min-width: 100%;
    font-size: 14px;
  }

  .pricing-depository-table thead th,
  .pricing-depository-table tbody th,
  .pricing-depository-table tbody td,
  .pricing-other-table thead th,
  .pricing-other-table tbody th,
  .pricing-other-table tbody td {
    padding: 12px;
  }

  .pricing-depository-table tbody tr:first-child th,
  .pricing-depository-table tbody tr:first-child td,
  .pricing-other-table tbody tr:first-child th,
  .pricing-other-table tbody tr:first-child td {
    padding-top: 20px;
  }

  .pricing-depository-table tbody tr:last-child th,
  .pricing-depository-table tbody tr:last-child td,
  .pricing-other-table tbody tr:last-child th,
  .pricing-other-table tbody tr:last-child td {
    padding-bottom: 24px;
  }
  .pricing-depository-table__hint,
  .pricing-other-table__hint {
    font-weight: 400;
  }
}
