/* pricing v2 layout (scoped under .ps-wrap where possible) */
    .ps-wrap,
    .ps-wrap * {
      box-sizing: border-box;
    }

    .ps-wrap {
      /* same flat bg as Classic pricing (body bg-[#0c0c0e]) */
      --ps-text: rgba(255,255,255,0.96);
      --ps-text-soft: rgba(255,255,255,0.72);
      --ps-text-muted: rgba(255,255,255,0.56);
      --ps-line: rgba(255,255,255,0.10);
      --ps-line-strong: rgba(255,255,255,0.14);
      --ps-card: rgba(255,255,255,0.06);
      --ps-card-2: rgba(255,255,255,0.08);
      --ps-black-soft: rgba(0,0,0,0.22);
      --ps-shadow: 0 28px 80px rgba(0,0,0,0.28);
      --ps-shadow-lg: 0 34px 100px rgba(0,0,0,0.34);
      --ps-radius: 30px;
      --ps-radius-sm: 22px;
      width: 100%;
      min-height: 100vh;
      color: var(--ps-text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #0c0c0e;
      padding: 0;
      overflow: hidden;
    }

    .ps-container,
    .ps-split,
    .ps-faq,
    .ps-cta {
      width: 100%;
    }

    .ps-container {
      max-width: 1320px;
      margin: 0 auto;
      padding: 56px 20px 64px;
      position: relative;
    }

    .ps-hero-grid {
      position: relative;
    }

    .ps-grid-overlay {
      position: absolute;
      inset: 0;
      opacity: 0.35;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 52px 52px;
      mask-image: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0) 85%);
      -webkit-mask-image: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0) 85%);
    }

    .ps-center {
      position: relative;
      max-width: 860px;
      margin: 0 auto;
      text-align: center;
    }

    .ps-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      max-width: 100%;
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.78);
      font-size: 12px;
      line-height: 1.45;
      text-align: center;
      box-shadow: 0 12px 40px rgba(0,0,0,0.24);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .ps-pill-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ff9d4d, #f4812b);
      flex: 0 0 8px;
    }

    .ps-title {
      margin: 22px 0 0;
      font-size: clamp(36px, 6vw, 64px);
      line-height: 1.04;
      letter-spacing: -0.03em;
      font-weight: 700;
      text-wrap: balance;
    }

    .ps-subtitle {
      max-width: 760px;
      margin: 18px auto 0;
      font-size: clamp(15px, 1.8vw, 19px);
      line-height: 1.8;
      color: var(--ps-text-soft);
      text-wrap: pretty;
    }

    .ps-stats {
      max-width: 980px;
      margin: 34px auto 0;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      position: relative;
      z-index: 1;
    }

    .ps-stat {
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      box-shadow: 0 18px 60px rgba(0,0,0,0.28);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-radius: 24px;
      padding: 20px;
      min-width: 0;
    }

    .ps-stat-top {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .ps-stat-icon {
      width: 40px;
      height: 40px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.08);
      border: 1px solid var(--ps-line);
      color: rgba(255,255,255,0.82);
      font-size: 18px;
      flex: 0 0 40px;
    }

    .ps-stat-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: rgba(255,255,255,0.42);
    }

    .ps-stat-value {
      margin-top: 16px;
      font-size: 20px;
      font-weight: 600;
      line-height: 1.4;
    }

    .ps-stat-note {
      margin-top: 6px;
      color: rgba(255,255,255,0.52);
      font-size: 14px;
      line-height: 1.6;
    }

    .ps-plan-grid {
      margin-top: 42px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: stretch;
      gap: 22px;
      position: relative;
      z-index: 1;
    }

    .ps-plan-grid > .ps-card {
      flex: 1 1 260px;
      max-width: 320px;
      min-width: 240px;
    }

    .ps-plan-grid > .ps-plan-grid-empty {
      flex: 1 1 100%;
      width: 100%;
      max-width: none;
      text-align: center;
    }

    .ps-card {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 100%;
      border-radius: var(--ps-radius);
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      box-shadow: var(--ps-shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      padding: 24px;
      transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
      min-width: 0;
    }

    .ps-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--ps-shadow-lg);
    }

    .ps-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 28%);
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
    }

    .ps-card:hover::before {
      opacity: 1;
    }

    .ps-card.featured {
      border-color: rgba(244, 129, 43, 0.35);
      box-shadow: 0 30px 90px rgba(0,0,0,0.34);
      background: linear-gradient(180deg, rgba(244, 129, 43, 0.14), rgba(255,255,255,0.06));
    }

    .ps-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px 12px;
      flex-wrap: nowrap;
      position: relative;
      z-index: 1;
    }

    .ps-card-head .ps-plan-name {
      margin-top: 0;
      flex: 1 1 auto;
      min-width: 0;
      text-align: left;
    }

    .ps-badge.ps-badge--head {
      flex-shrink: 0;
      margin-left: auto;
    }

    .ps-badge,
    .ps-note {
      display: inline-flex;
      align-items: center;
      padding: 7px 12px;
      border-radius: 999px;
      font-size: 11px;
      line-height: 1.2;
      font-weight: 600;
      letter-spacing: 0.01em;
      border: 1px solid var(--ps-line);
      white-space: nowrap;
    }

    .ps-badge.basic { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.82); }
    .ps-badge.enhanced { background: rgba(244, 129, 43, 0.15); color: #ffe8d4; border-color: rgba(244, 129, 43, 0.32); }
    .ps-badge.ultimate { background: rgba(52,211,153,0.15); color: #d1fae5; border-color: rgba(110,231,183,0.24); }
    .ps-badge.pro { background: rgba(217,70,239,0.15); color: #fae8ff; border-color: rgba(244,114,182,0.22); }

    .ps-note {
      background: rgba(0,0,0,0.22);
      color: rgba(255,255,255,0.60);
      font-weight: 500;
    }

    .ps-plan-name {
      font-size: clamp(28px, 2vw, 31px);
      line-height: 1.05;
      letter-spacing: -0.03em;
      font-weight: 700;
      position: relative;
      z-index: 1;
    }

    .ps-plan-subtitle {
      margin-top: 8px;
      min-height: 0;
      font-size: 14px;
      line-height: 1.7;
      color: rgba(255,255,255,0.68);
      position: relative;
      z-index: 1;
    }

    .ps-price-box {
      position: relative;
      z-index: 1;
      margin-top: 12px;
      border-radius: 24px;
      border: 1px solid var(--ps-line);
      background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(0,0,0,0.12));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
      padding: 20px;
    }

    .ps-price {
      font-size: clamp(34px, 2.5vw, 38px);
      line-height: 1;
      letter-spacing: -0.03em;
      font-weight: 700;
    }

    .ps-gems {
      margin-top: 12px;
      font-size: clamp(26px, 2vw, 30px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      font-weight: 700;
      word-break: break-word;
    }

    .ps-meta {
      margin-top: 12px;
      font-size: 14px;
      line-height: 1.6;
      color: rgba(255,255,255,0.72);
    }

    .ps-rate {
      display: inline-flex;
      margin-top: 16px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      font-size: 12px;
      color: rgba(255,255,255,0.66);
    }

    .ps-feature-list {
      list-style: none;
      padding: 0;
      margin: 24px 0 0;
      position: relative;
      z-index: 1;
    }

    .ps-feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 14px;
      line-height: 1.7;
      color: rgba(255,255,255,0.84);
    }

    .ps-feature-list li + li {
      margin-top: 14px;
    }

    .ps-check {
      flex: 0 0 20px;
      width: 20px;
      height: 20px;
      margin-top: 2px;
      border-radius: 999px;
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.88);
      font-size: 11px;
      font-weight: 700;
    }

    .ps-btn {
      width: 100%;
      margin-top: 28px;
      min-height: 52px;
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.08);
      color: var(--ps-text);
      border-radius: 18px;
      padding: 14px 16px;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .ps-card .ps-btn {
      margin-top: auto;
    }

    .ps-btn:hover {
      background: rgba(255,255,255,0.12);
    }

    .ps-btn.primary {
      background: #ffffff;
      color: #0c0c0e;
      border-color: rgba(255,255,255,0.20);
      box-shadow: 0 14px 35px rgba(255,255,255,0.18);
    }

    .ps-btn.primary:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,0.96);
    }

    .ps-split {
      max-width: 1320px;
      margin: 0 auto;
      padding: 8px 20px 0;
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
      gap: 22px;
    }

    .ps-panel {
      border-radius: var(--ps-radius);
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      box-shadow: var(--ps-shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      padding: 24px;
      min-width: 0;
    }

    .ps-panel-title-pill {
      display: inline-flex;
      align-items: center;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      font-size: 12px;
      color: rgba(255,255,255,0.68);
    }

    .ps-panel-title {
      margin-top: 16px;
      font-size: clamp(28px, 2.4vw, 32px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      font-weight: 700;
      text-wrap: balance;
    }

    .ps-table-wrap {
      margin-top: 24px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 22px;
      border: 1px solid var(--ps-line);
      background: rgba(0,0,0,0.22);
    }

    .ps-table {
      width: 100%;
      min-width: 720px;
      border-collapse: collapse;
      text-align: left;
      font-size: 14px;
    }

    .ps-table thead tr {
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.92);
    }

    .ps-table th,
    .ps-table td {
      padding: 14px 16px;
      border-bottom: 1px solid var(--ps-line);
      color: rgba(255,255,255,0.90);
      white-space: nowrap;
    }

    .ps-table th {
      font-weight: 600;
    }

    .ps-table tbody tr {
      background: rgba(7,17,31,0.35);
    }

    .ps-table tbody tr:nth-child(even) {
      background: rgba(255,255,255,0.02);
    }

    .ps-table tbody tr:last-child td {
      border-bottom: none;
    }

    .ps-table td:first-child,
    .ps-table th:first-child {
      color: rgba(255,255,255,0.68);
    }

    .ps-table-wrap::-webkit-scrollbar {
      height: 10px;
    }

    .ps-table-wrap::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.06);
      border-radius: 999px;
    }

    .ps-table-wrap::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.28);
      border-radius: 999px;
    }

    .ps-table-wrap::-webkit-scrollbar-thumb:hover {
      background: rgba(255,255,255,0.38);
    }

    .ps-upgrade-list {
      margin-top: 22px;
      display: grid;
      gap: 14px;
    }

    .ps-upgrade-item {
      border-radius: 22px;
      border: 1px solid var(--ps-line);
      background: rgba(0,0,0,0.22);
      padding: 16px;
    }

    .ps-upgrade-top {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .ps-upgrade-icon {
      width: 40px;
      height: 40px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.08);
      border: 1px solid var(--ps-line);
      font-size: 18px;
      color: rgba(255,255,255,0.84);
      flex: 0 0 40px;
    }

    .ps-upgrade-item h3 {
      margin: 0;
      font-size: 16px;
      line-height: 1.4;
    }

    .ps-upgrade-item p {
      margin: 12px 0 0;
      font-size: 14px;
      line-height: 1.7;
      color: rgba(255,255,255,0.64);
    }

    .ps-faq {
      max-width: 1320px;
      margin: 0 auto;
      padding: 24px 20px 0;
    }

    .ps-faq-box {
      border-radius: 32px;
      border: 1px solid var(--ps-line);
      background: rgba(255,255,255,0.06);
      box-shadow: var(--ps-shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      padding: 28px;
    }

    .ps-faq-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    .ps-faq-title {
      font-size: clamp(28px, 2.4vw, 32px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      font-weight: 700;
      text-wrap: balance;
    }

    .ps-faq-sub {
      margin-top: 10px;
      font-size: 15px;
      line-height: 1.7;
      color: rgba(255,255,255,0.58);
    }

    .ps-faq-list {
      margin-top: 26px;
      display: grid;
      gap: 14px;
    }

    .ps-faq-item {
      border-radius: 22px;
      border: 1px solid var(--ps-line);
      background: rgba(0,0,0,0.22);
      padding: 18px 18px;
    }

    .ps-faq-q {
      font-size: 16px;
      line-height: 1.5;
      font-weight: 600;
    }

    .ps-faq-a {
      margin-top: 10px;
      font-size: 14px;
      line-height: 1.85;
      color: rgba(255,255,255,0.64);
    }

    .ps-cta {
      max-width: 1320px;
      margin: 0 auto;
      padding: 24px 20px 56px;
    }

    .ps-cta-box {
      position: relative;
      overflow: hidden;
      border-radius: 34px;
      border: 1px solid var(--ps-line);
      background: linear-gradient(to right, rgba(74, 24, 4, 0.72), rgba(173, 54, 6, 0.65), rgba(124, 38, 5, 0.72));
      box-shadow: var(--ps-shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      padding: 34px 26px;
      text-align: center;
    }

    .ps-cta-box::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 42%);
      pointer-events: none;
    }

    .ps-cta-inner {
      position: relative;
      z-index: 1;
      max-width: 860px;
      margin: 0 auto;
    }

    .ps-cta-title {
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      font-weight: 700;
      text-wrap: balance;
    }

    .ps-cta-text {
      max-width: 720px;
      margin: 16px auto 0;
      font-size: 15px;
      line-height: 1.8;
      color: rgba(255,255,255,0.72);
    }

    .ps-cta-actions {
      margin-top: 28px;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .ps-cta-note {
      margin-top: 18px;
      font-size: 12px;
      line-height: 1.7;
      color: rgba(255,255,255,0.46);
    }

    @media (max-width: 1279px) {
      .ps-plan-grid > .ps-card {
        flex: 1 1 280px;
        max-width: 360px;
      }
    }

    @media (max-width: 991px) {
      .ps-container {
        padding-top: 48px;
        padding-bottom: 54px;
      }

      .ps-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .ps-split {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 767px) {
      .ps-container,
      .ps-split,
      .ps-faq,
      .ps-cta {
        padding-left: 16px;
        padding-right: 16px;
      }

      .ps-container {
        padding-top: 42px;
        padding-bottom: 46px;
      }

      .ps-pill {
        white-space: normal;
        border-radius: 18px;
        font-size: 11px;
        padding: 9px 14px;
      }

      .ps-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
      }

      .ps-plan-grid {
        gap: 16px;
        margin-top: 34px;
      }

      .ps-plan-grid > .ps-card {
        flex: 1 1 100%;
        max-width: 420px;
        min-width: 0;
      }

      .ps-card,
      .ps-panel,
      .ps-faq-box,
      .ps-cta-box {
        border-radius: 26px;
      }

      .ps-card,
      .ps-panel,
      .ps-faq-box {
        padding: 20px;
      }

      .ps-cta-box {
        padding: 28px 20px;
      }

      .ps-plan-name,
      .ps-panel-title,
      .ps-faq-title {
        font-size: 28px;
      }

      .ps-price {
        font-size: 36px;
      }

      .ps-gems {
        font-size: 28px;
      }

      .ps-faq-head {
        align-items: stretch;
      }

      .ps-faq-head .ps-btn,
      .ps-cta-actions .ps-btn {
        width: 100%;
      }

      .ps-table {
        min-width: 640px;
      }
    }

    @media (max-width: 479px) {
      .ps-container,
      .ps-split,
      .ps-faq,
      .ps-cta {
        padding-left: 12px;
        padding-right: 12px;
      }

      .ps-card,
      .ps-panel,
      .ps-faq-box,
      .ps-cta-box,
      .ps-stat {
        padding-left: 16px;
        padding-right: 16px;
      }

      .ps-title {
        font-size: 32px;
      }

      .ps-subtitle,
      .ps-meta,
      .ps-faq-a,
      .ps-cta-text,
      .ps-upgrade-item p,
      .ps-stat-note,
      .ps-feature-list li {
        font-size: 13px;
      }

      .ps-plan-name,
      .ps-panel-title,
      .ps-faq-title {
        font-size: 25px;
      }

      .ps-price {
        font-size: 32px;
      }

      .ps-gems {
        font-size: 24px;
      }

      .ps-table {
        min-width: 560px;
        font-size: 13px;
      }

      .ps-table th,
      .ps-table td {
        padding: 12px 14px;
      }
    }
