/* Pricing page styles (extracted from an inline <style> block in pricing.html) */
    /* CRITICAL TOKEN PACKS & MARKET SWITCHER STYLING */
    .market-selector-container {
      background: var(--bg-surface, #171a21);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      padding: 18px 22px;
      margin: 24px auto 32px;
      max-width: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    .market-selector-header {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 10px;
      font-family: var(--font-mono, monospace);
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted, #94a3b8);
      letter-spacing: 0.8px;
      text-transform: uppercase;
      text-align: center;
    }
    .market-selector-pills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }
    .market-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 18px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 9999px;
      font-family: var(--font-sans, inherit);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary, #94a3b8);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .market-pill:hover {
      color: #fff;
      border-color: var(--accent, #d97746);
      background: rgba(217, 119, 70, 0.08);
    }
    .market-pill.active {
      background: var(--accent, #d97746);
      border-color: var(--accent, #d97746);
      color: #fff;
      box-shadow: 0 3px 12px rgba(217, 119, 70, 0.4);
    }
    .packs-view-switcher {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin: 20px 0 28px;
    }
    .view-switch-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 22px;
      background: var(--bg-surface, #171a21);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 9999px;
      font-family: var(--font-sans, inherit);
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-secondary, #94a3b8);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .view-switch-btn:hover {
      color: #fff;
      border-color: var(--accent, #d97746);
    }
    .view-switch-btn.active {
      background: var(--accent, #d97746);
      border-color: var(--accent, #d97746);
      color: #fff;
      box-shadow: 0 4px 14px rgba(217, 119, 70, 0.35);
    }
    .packs-tier-label {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 32px 0 16px;
      font-family: var(--font-mono, monospace);
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted, #64748b);
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }
    .packs-tier-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.08);
    }
    .packs-grid-5 {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    .packs-grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-bottom: 24px;
    }
    .packs-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      max-width: none;
      margin: 0 auto 36px;
    }
    .pack-card {
      background: var(--bg-surface, #171a21);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 22px 18px;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }
    .pack-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent, #d97746);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    }
    .pack-card.featured {
      border: 1.5px solid rgba(217, 119, 70, 0.65);
      background: linear-gradient(180deg, rgba(217, 119, 70, 0.08) 0%, var(--bg-surface, #171a21) 100%);
      box-shadow: 0 4px 24px rgba(217, 119, 70, 0.16);
    }
    .pack-card.pro {
      border: 1.5px solid rgba(34, 197, 94, 0.55);
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.07) 0%, var(--bg-surface, #171a21) 100%);
      box-shadow: 0 4px 24px rgba(34, 197, 94, 0.14);
    }
    .pack-card.mega {
      border: 1.5px solid rgba(168, 85, 247, 0.65);
      background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, var(--bg-surface, #171a21) 100%);
      box-shadow: 0 4px 24px rgba(168, 85, 247, 0.16);
    }
    .pack-card.vip {
      border: 1.5px solid rgba(234, 179, 8, 0.75);
      background: linear-gradient(180deg, rgba(234, 179, 8, 0.09) 0%, var(--bg-surface, #171a21) 100%);
      box-shadow: 0 4px 24px rgba(234, 179, 8, 0.18);
    }
    .pack-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .pack-card-tokens {
      font-family: var(--font-mono, monospace);
      font-size: 24px;
      font-weight: 800;
      color: var(--charcoal-900, #f8fafc);
      line-height: 1.1;
      margin-bottom: 8px;
    }
    .pack-card-price-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .pack-price-stack {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .pack-card-price {
      font-family: var(--font-mono, monospace);
      font-size: 27px;
      font-weight: 800;
      color: var(--charcoal-900, #f8fafc);
      line-height: 1;
      white-space: nowrap;
    }
    .pack-rate-stack {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    .pack-card-perm {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--accent, #d97746);
      background: rgba(217, 119, 70, 0.15);
      padding: 2.5px 7px;
      border-radius: 6px;
      white-space: nowrap;
    }
    .pack-card-features {
      list-style: none;
      padding: 0;
      margin: 0 0 18px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 12.5px;
      color: var(--text-secondary, #94a3b8);
      flex-grow: 1;
    }
    .pack-card-features li {
      display: flex;
      align-items: center;
      gap: 8px;
      line-height: 1.4;
    }
    .pack-card-features li span {
      color: var(--accent-green, #22c55e);
      font-weight: 800;
      font-size: 13.5px;
    }
    .pack-card-btn {
      width: 100%;
      text-align: center;
      justify-content: center;
      display: flex;
      align-items: center;
      text-decoration: none;
      padding: 10px 14px !important;
      font-size: 13px !important;
      font-weight: 700;
      border-radius: 8px;
      transition: all 0.2s ease;
    }
    .sub-price-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
      margin: 4px 0 4px;
    }

    /* SUBSCRIPTION PYRAMID MATRIX STYLING */
    .sub-matrix-container {
      margin: 28px auto 44px;
      max-width: 1240px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .sub-matrix-row {
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: stretch;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease, border-color 0.2s ease;
      width: 100%;
    }
    .sub-matrix-row.row-top {
      margin: 0 auto;
      border-color: rgba(168, 85, 247, 0.35);
      background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
    .sub-matrix-row.row-mid {
      margin: 0 auto;
      border-color: rgba(217, 119, 70, 0.28);
      background: linear-gradient(180deg, rgba(217, 119, 70, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
    .sub-matrix-row.row-base {
      margin: 0 auto;
      border-color: rgba(56, 189, 248, 0.22);
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.03) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
    .sub-matrix-side {
      width: 100%;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 6px 16px;
      text-align: center;
      border-radius: 12px;
      padding: 12px 18px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .side-7d {
      background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.7));
      border-color: rgba(56, 189, 248, 0.35);
    }
    .side-14d {
      background: linear-gradient(145deg, rgba(217, 119, 70, 0.18), rgba(15, 23, 42, 0.7));
      border-color: rgba(217, 119, 70, 0.4);
    }
    .side-30d {
      background: linear-gradient(145deg, rgba(168, 85, 247, 0.2), rgba(15, 23, 42, 0.7));
      border-color: rgba(168, 85, 247, 0.45);
    }
    .sub-side-badge {
      font-family: var(--font-mono, monospace);
      font-size: 13.5px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 0;
    }
    .sub-side-title {
      font-size: 19px;
      font-weight: 900;
      color: var(--charcoal-900, #f8fafc);
      letter-spacing: 0.5px;
    }
    .sub-side-sub {
      font-size: 11px;
      color: var(--text-muted, #94a3b8);
      margin: 0;
      line-height: 1.35;
    }
    .sub-side-tag {
      font-size: 10.5px;
      font-family: var(--font-mono, monospace);
      font-weight: 700;
      color: var(--accent, #d97746);
      background: rgba(217, 119, 70, 0.14);
      padding: 3px 9px;
      border-radius: 9999px;
      display: inline-block;
    }
    .sub-matrix-cards {
      flex: 1;
      display: grid;
      gap: 14px;
      margin-bottom: 0; /* generic .grid-4 in style.css adds 24px and made the middle row taller */
    }
    /* one size for price / volume in every pyramid row (inline sizes differed per row) */
    .sub-matrix-cards .pack-card-tokens { font-size: 20px !important; }
    .sub-matrix-cards .sub-card-price { font-size: 23px !important; }
    .sub-matrix-cards.grid-5 {
      grid-template-columns: repeat(5, 1fr);
    }
    .sub-matrix-cards.grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }
    .sub-matrix-cards.grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    /* Пирамида: карточки одного размера, ряды сужаются кверху (3 → 4 → 5).
       Ширина ряда = n карточек + зазоры + внутренние отступы; карточка = (100% - 4 зазора по 14px - 32px паддинг) / 5 */
    @media (min-width: 1201px) {
      .sub-matrix-row.row-top  { width: calc(3 * (100% - 88px) / 5 + 28px + 32px); }
      .sub-matrix-row.row-mid  { width: calc(4 * (100% - 88px) / 5 + 42px + 32px); }
      .sub-matrix-row.row-base { width: 100%; }
    }

    .packs-table-wrap {
      overflow-x: auto;
      margin: 20px 0 40px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: var(--bg-surface, #171a21);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    .packs-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      text-align: left;
    }
    .packs-table th {
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-muted, #64748b);
      font-family: var(--font-mono, monospace);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .packs-table td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      vertical-align: middle;
    }
    .packs-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    @media (max-width: 1200px) {
      .packs-grid-5 {
        grid-template-columns: repeat(3, 1fr);
      }
      .sub-matrix-cards.grid-5 {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    @media (max-width: 980px) {
      .sub-matrix-cards.grid-5, .sub-matrix-cards.grid-4, .sub-matrix-cards.grid-3 {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 860px) {
      .packs-grid-5, .packs-grid-4, .packs-grid-3 {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 600px) {
      .packs-grid-5, .packs-grid-4, .packs-grid-3 {
        grid-template-columns: 1fr;
      }
      .sub-matrix-cards.grid-5, .sub-matrix-cards.grid-4, .sub-matrix-cards.grid-3 {
        grid-template-columns: 1fr;
      }
      .market-selector-pills {
        flex-direction: column;
        width: 100%;
      }
      .market-pill {
        justify-content: center;
        width: 100%;
      }
    }
    .price-highlight {
      animation: pricePulse 0.45s ease-out;
    }
    @keyframes pricePulse {
      0% { transform: scale(1); filter: brightness(1); }
      50% { transform: scale(1.08); filter: brightness(1.3); color: var(--accent, #d97746); }
      100% { transform: scale(1); filter: brightness(1); }
    }

    /* ===== SYMMETRY: whole pricing page is centered ===== */
    .pricing-main .eyebrow {
      display: flex;
      width: fit-content;
      margin-inline: auto;
    }
    .pricing-main .page-title,
    .pricing-main p.lead {
      text-align: center;
      margin-inline: auto;
    }
    .pricing-main p.lead { max-width: 760px; }
    .pricing-main .section-header { text-align: center; }
    .pricing-main .section-header p {
      max-width: 820px;
      margin-inline: auto;
    }
    .pricing-main .packs-tier-label { justify-content: center; }
    .pricing-main .packs-tier-label::before {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.08);
    }
    .pricing-main .catalog-toolbar { justify-content: center; }
    .pricing-main .filter-tabs { justify-content: center; margin-bottom: 0; }
    .pricing-main .calc-header-row { text-align: left; }
