/* Extracted from pay/index.html block 1. */
.pay-pricing-root .pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 48px}
    @media(max-width:768px){.pay-pricing-root .pricing-grid{grid-template-columns:1fr;max-width:400px;margin:0 auto 48px}}
    .pay-container:has(#view-noplan.view-active){max-width:1100px}

/* Extracted from pay/index.html block 2. */
/* ===== Page-specific styles ===== */
    .pay-page {
      padding-top: 100px;
      min-height: 100vh;
    }

    .pay-container {
      max-width: 520px;
      margin: 0 auto;
      padding: 60px 24px 80px;
    }

    .pay-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 15px;
      color: #7C3AED;
      text-decoration: none;
      margin-bottom: 32px;
      font-weight: 500;
      transition: opacity 0.2s;
    }
    .pay-back:hover {
      opacity: 0.8;
    }
    .pay-back svg {
      width: 16px;
      height: 16px;
    }

    .pay-title {
      font-family: 'Onest', sans-serif;
      font-size: 32px;
      font-weight: 700;
      color: #1A1A1A;
      margin-bottom: 32px;
    }

    /* Plan summary card */
    .pay-summary {
      background: #fff;
      border: 2px solid #E8E6E1;
      border-radius: 20px;
      padding: 28px;
      margin-bottom: 32px;
    }
    .pay-summary__row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }
    .pay-summary__row:last-child {
      margin-bottom: 0;
    }
    .pay-summary__label {
      font-size: 15px;
      color: #71717A;
    }
    .pay-summary__value {
      font-size: 15px;
      font-weight: 600;
      color: #1A1A1A;
    }
    .pay-summary__divider {
      border: none;
      border-top: 1px solid #E8E6E1;
      margin: 16px 0;
    }
    .pay-summary__total-label {
      font-size: 17px;
      font-weight: 600;
      color: #1A1A1A;
    }
    .pay-summary__total-value {
      font-family: 'Onest', sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: #7C3AED;
    }

    /* Auth prompt */
    .pay-auth {
      text-align: center;
      padding: 40px 0;
    }
    .pay-auth__text {
      font-size: 17px;
      color: #71717A;
      margin-bottom: 24px;
      line-height: 1.5;
    }
    .pay-auth__btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 28px;
      background: #fff;
      border: 2px solid #E8E6E1;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      color: #1A1A1A;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      font-family: 'Golos Text', sans-serif;
    }
    .pay-auth__btn:hover {
      background: #F3F2EE;
      box-shadow: 0 2px 12px rgba(0,0,0,.04);
    }

    /* Consent */
    .pay-consent {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 24px;
    }
    .pay-consent input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin-top: 2px;
      accent-color: #7C3AED;
      flex-shrink: 0;
      cursor: pointer;
    }
    .pay-consent label {
      font-size: 14px;
      color: #71717A;
      line-height: 1.5;
      cursor: pointer;
    }
    .pay-consent a {
      color: #7C3AED;
      text-decoration: none;
    }
    .pay-consent a:hover {
      text-decoration: underline;
    }

    /* Pay button */
    .pay-btn {
      display: block;
      width: 100%;
      padding: 16px 24px;
      background: #7C3AED;
      color: #fff;
      border: none;
      border-radius: 14px;
      font-size: 17px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
      box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
      font-family: 'Golos Text', sans-serif;
    }
    .pay-btn:hover {
      background: #6D28D9;
    }
    .pay-btn:active {
      transform: scale(0.98);
    }
    .pay-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    /* Error message */
    .pay-error {
      color: #EF4444;
      font-size: 14px;
      margin-bottom: 16px;
      min-height: 20px;
    }

    /* Loading state */
    .pay-loading {
      text-align: center;
      padding: 60px 0;
    }
    .pay-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid #E8E6E1;
      border-top-color: #7C3AED;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .pay-loading__text {
      font-size: 15px;
      color: #71717A;
    }

    /* No plan state */
    .pay-noplan {
      text-align: center;
      padding: 60px 0;
    }
    .pay-noplan__icon {
      font-size: 48px;
      margin-bottom: 16px;
    }
    .pay-noplan__text {
      font-size: 17px;
      color: #71717A;
      margin-bottom: 24px;
    }
    .pay-noplan__link {
      display: inline-flex;
      padding: 14px 28px;
      background: #7C3AED;
      color: #fff;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
      transition: background 0.2s;
    }
    .pay-noplan__link:hover {
      background: #6D28D9;
    }

    /* Legal links */
    .pay-legal {
      margin-top: 32px;
      text-align: center;
    }
    .pay-legal a {
      font-size: 13px;
      color: #71717A;
      text-decoration: none;
      margin: 0 10px;
    }
    .pay-legal a:hover {
      color: #1A1A1A;
    }

    /* Sticky header: стили в landing.css (чёрный), здесь только page-specific */
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 120px;
      height: 64px;
      display: flex;
      align-items: center;
      gap: 32px;
    }
    .header-logo {
      font-family: 'Onest', sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: #1A1A1A;
      text-decoration: none;
      flex-shrink: 0;
    }
    .header-nav {
      display: flex;
      align-items: center;
      gap: 24px;
      flex: 1;
    }
    .header-nav__link {
      font-size: 15px;
      font-weight: 500;
      color: #71717A;
      text-decoration: none;
      transition: color 0.2s;
    }
    .header-nav__link:hover,
    .header-nav__link--active {
      color: #1A1A1A;
    }
    .header-auth {
      flex-shrink: 0;
    }
    /* .header-tokens inline-span удалён из renderHeader iter30 — token badge
       теперь только в header-row-2 (.header-tokens-badge). Inline CSS не нужен. */
    .btn-google-signin {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      background: #fff;
      border: 1px solid #E8E6E1;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      color: #1A1A1A;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      font-family: 'Golos Text', sans-serif;
    }
    .btn-google-signin:hover {
      background: #F3F2EE;
      box-shadow: 0 2px 8px rgba(0,0,0,.04);
    }
    .header-user {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: #1A1A1A;
    }
    .header-user__avatar {
      width: 32px;
      height: 32px;
      background: #7C3AED;
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
    }
    .header-user__name {
      font-size: 14px;
      font-weight: 500;
    }
    .header-burger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
    }
    .header-burger span {
      display: block;
      width: 22px;
      height: 2px;
      background: #1A1A1A;
      border-radius: 1px;
      transition: transform 0.2s, opacity 0.2s;
    }

    @media (max-width: 768px) {
      .header-inner {
        padding: 0 24px;
      }
      .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid #E8E6E1;
        gap: 8px;
      }
      .menu-open .header-nav {
        display: flex;
      }
      .header-auth {
        display: none;
      }
      .header-burger {
        display: flex;
        margin-left: auto;
      }
      .menu-open .header-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      .menu-open .header-burger span:nth-child(2) {
        opacity: 0;
      }
      .menu-open .header-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
      .pay-title {
        font-size: 26px;
      }
    }
