:root {
      --p: #6366f1;
      --p2: #8b5cf6;
      --bg: #0f0f1a;
      --card: #1a1a2e;
      --border: rgba(255, 255, 255, 0.08);
      --text: #f8fafc;
      --muted: #94a3b8;
      --acc: #f59e0b;
      --ok: #22c55e;
      --err: #ef4444
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden
    }

    .container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 16px
    }

    @media(min-width:768px) {
      .container {
        padding: 0 24px
      }
    }

    header {
      background: linear-gradient(135deg, var(--p), var(--p2));
      padding: 12px 0;
      position: sticky;
      top: 0;
      z-index: 100
    }

    .hd {
      display: flex;
      justify-content: space-between;
      align-items: center
    }

    .logo {
      font-weight: 800;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 6px
    }

    @media(min-width:768px) {
      .logo {
        font-size: 1.3rem
      }
    }

    .badge {
      background: var(--ok);
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 24px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      border: none;
      transition: .2s;
      width: 100%
    }

    @media(min-width:480px) {
      .btn {
        width: auto;
        padding: 14px 32px
      }
    }

    .btn-p {
      background: linear-gradient(135deg, var(--p), var(--p2));
      color: #fff;
      box-shadow: 0 4px 20px rgba(99, 102, 241, .4)
    }

    .btn-p:hover {
      transform: translateY(-2px)
    }

    .btn-acc {
      background: var(--acc);
      color: #000
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px
    }

    @media(min-width:768px) {
      .card {
        padding: 24px
      }
    }

    .page {
      display: none
    }

    .page.active {
      display: block
    }

    h1 {
      font-size: 1.8rem;
      font-weight: 800;
      margin-bottom: 12px
    }

    @media(min-width:768px) {
      h1 {
        font-size: 2.5rem
      }
    }

    h2 {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 10px
    }

    @media(min-width:768px) {
      h2 {
        font-size: 1.5rem
      }
    }

    .tc {
      text-align: center
    }

    .tm {
      color: var(--muted)
    }

    /* Test UI */
    .test-top {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 12px 16px;
      background: var(--card);
      border-radius: 12px;
      margin-bottom: 16px
    }

    @media(min-width:480px) {
      .test-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px
      }
    }

    .test-info {
      display: flex;
      justify-content: space-between;
      align-items: center
    }

    .timer {
      font-size: 1.1rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px
    }

    @media(min-width:768px) {
      .timer {
        font-size: 1.3rem
      }
    }

    .timer.warn {
      color: var(--acc)
    }

    .timer.danger {
      color: var(--err);
      animation: pulse 1s infinite
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .6
      }
    }

    .prog {
      height: 6px;
      background: rgba(255, 255, 255, .1);
      border-radius: 3px;
      overflow: hidden;
      flex: 1;
      margin: 0 12px
    }

    .prog-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--p), var(--acc));
      transition: .3s
    }

    /* Question Area - Responsive */
    .q-area {
      display: flex;
      flex-direction: column;
      gap: 16px
    }

    @media(min-width:768px) {
      .q-area {
        flex-direction: row;
        gap: 24px
      }

      .q-box {
        flex: 1
      }
    }

    .q-box {
      background: var(--card);
      border-radius: 14px;
      padding: 16px;
      border: 1px solid var(--border)
    }

    @media(min-width:768px) {
      .q-box {
        padding: 24px
      }
    }

    .q-box h3 {
      color: var(--p);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 12px
    }

    @media(min-width:768px) {
      .q-box h3 {
        font-size: 12px;
        margin-bottom: 16px
      }
    }

    /* Matrix Grid */
    .matrix {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      max-width: 180px;
      margin: 0 auto
    }

    @media(min-width:480px) {
      .matrix {
        gap: 6px;
        max-width: 220px
      }
    }

    @media(min-width:768px) {
      .matrix {
        gap: 8px;
        max-width: 260px
      }
    }

    .m-cell {
      aspect-ratio: 1;
      background: rgba(255, 255, 255, .03);
      border: 2px solid var(--border);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px
    }

    @media(min-width:480px) {
      .m-cell {
        font-size: 20px
      }
    }

    @media(min-width:768px) {
      .m-cell {
        font-size: 24px;
        border-radius: 8px
      }
    }

    .m-cell.q {
      background: var(--acc);
      border-color: var(--acc);
      color: #000;
      font-size: 20px;
      font-weight: 800
    }

    @media(min-width:768px) {
      .m-cell.q {
        font-size: 28px
      }
    }

    /* Sequence */
    .seq {
      display: flex;
      gap: 4px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap
    }

    .seq-cell {
      width: 36px;
      height: 36px;
      background: rgba(255, 255, 255, .03);
      border: 2px solid var(--border);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700
    }

    @media(min-width:480px) {
      .seq-cell {
        width: 44px;
        height: 44px;
        font-size: 16px
      }
    }

    @media(min-width:768px) {
      .seq-cell {
        width: 54px;
        height: 54px;
        font-size: 18px
      }
    }

    .seq-cell.q {
      background: var(--acc);
      border-color: var(--acc);
      color: #000
    }

    .seq-arr {
      color: var(--muted);
      font-size: 10px
    }

    @media(min-width:480px) {
      .seq-arr {
        font-size: 12px
      }
    }

    /* Options */
    .opts {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px
    }

    @media(min-width:480px) {
      .opts {
        gap: 10px
      }
    }

    @media(min-width:768px) {
      .opts {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px
      }
    }

    .opt {
      background: rgba(255, 255, 255, .02);
      border: 2px solid var(--border);
      border-radius: 10px;
      padding: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: .2s;
      min-height: 48px
    }

    @media(min-width:480px) {
      .opt {
        padding: 12px;
        min-height: 56px
      }
    }

    @media(min-width:768px) {
      .opt {
        padding: 14px;
        min-height: 64px
      }
    }

    .opt:hover {
      border-color: var(--p);
      background: rgba(99, 102, 241, .1)
    }

    .opt.sel {
      border-color: var(--acc);
      background: rgba(245, 158, 11, .15)
    }

    .opt-l {
      font-weight: 700;
      color: var(--p);
      width: 20px;
      font-size: 12px
    }

    @media(min-width:768px) {
      .opt-l {
        font-size: 14px
      }
    }

    .opt-c {
      flex: 1;
      display: flex;
      justify-content: center;
      font-size: 14px
    }

    @media(min-width:480px) {
      .opt-c {
        font-size: 18px
      }
    }

    @media(min-width:768px) {
      .opt-c {
        font-size: 22px
      }
    }

    /* Question Navigation */
    .q-nav-wrap {
      overflow-x: auto;
      margin-top: 16px;
      padding-bottom: 8px
    }

    .q-nav {
      display: flex;
      gap: 4px;
      padding: 12px;
      background: rgba(255, 255, 255, .03);
      border-radius: 10px;
      min-width: max-content
    }

    @media(min-width:768px) {
      .q-nav {
        gap: 6px;
        padding: 14px;
        justify-content: center;
        flex-wrap: wrap
      }
    }

    .qn {
      width: 28px;
      height: 28px;
      border-radius: 5px;
      border: none;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      flex-shrink: 0
    }

    @media(min-width:768px) {
      .qn {
        width: 34px;
        height: 34px;
        font-size: 13px
      }
    }

    .qn.done {
      background: var(--ok);
      color: #fff
    }

    .qn.cur {
      background: var(--acc);
      color: #000
    }

    .qn.un {
      background: #4b5563;
      color: #fff
    }

    /* Action Button */
    .action-row {
      display: flex;
      gap: 10px;
      margin-top: 16px
    }

    .action-row .btn {
      flex: 1
    }

    .next-btn {
      background: var(--acc);
      color: #000;
      font-size: 14px;
      padding: 14px 20px
    }

    @media(min-width:768px) {
      .next-btn {
        font-size: 16px;
        padding: 16px 32px
      }
    }

    /* Stats */
    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: 16px 0
    }

    @media(min-width:768px) {
      .stats {
        gap: 16px;
        margin: 24px 0
      }
    }

    .stat-box {
      background: rgba(255, 255, 255, .03);
      border-radius: 8px;
      padding: 12px;
      text-align: center
    }

    @media(min-width:768px) {
      .stat-box {
        padding: 16px;
        border-radius: 12px
      }
    }

    .stat-num {
      font-size: 18px;
      font-weight: 800;
      color: var(--p)
    }

    @media(min-width:768px) {
      .stat-num {
        font-size: 24px
      }
    }

    .stat-label {
      font-size: 10px;
      color: var(--muted);
      margin-top: 4px
    }

    @media(min-width:768px) {
      .stat-label {
        font-size: 12px
      }
    }

    /* Processing */
    .proc {
      text-align: center;
      padding: 40px 20px
    }

    @media(min-width:768px) {
      .proc {
        padding: 60px 20px
      }
    }

    .proc-icon {
      font-size: 48px;
      margin-bottom: 20px;
      animation: bounce 1s infinite
    }

    @media(min-width:768px) {
      .proc-icon {
        font-size: 64px
      }
    }

    @keyframes bounce {

      0%,
      100% {
        transform: translateY(0)
      }

      50% {
        transform: translateY(-10px)
      }
    }

    /* Email */
    .email-form {
      max-width: 100%;
      margin: 0 auto
    }

    @media(min-width:480px) {
      .email-form {
        max-width: 400px
      }
    }

    .email-in {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid var(--border);
      border-radius: 10px;
      font-size: 16px;
      background: var(--card);
      color: var(--text);
      margin-bottom: 12px
    }

    .email-in:focus {
      border-color: var(--p);
      outline: none
    }

    /* Result */
    .res-card {
      background: linear-gradient(135deg, var(--p), var(--p2));
      border-radius: 16px;
      padding: 24px;
      text-align: center;
      color: #fff
    }

    @media(min-width:768px) {
      .res-card {
        padding: 40px;
        border-radius: 20px
      }
    }

    .iq-big {
      font-size: 48px;
      font-weight: 800;
      margin: 12px 0
    }

    @media(min-width:768px) {
      .iq-big {
        font-size: 72px
      }
    }

    .price {
      font-size: 36px;
      font-weight: 800;
      color: var(--p)
    }

    @media(min-width:768px) {
      .price {
        font-size: 48px
      }
    }

    .feat {
      text-align: left;
      margin: 20px 0
    }

    .feat-i {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 0;
      font-size: 14px
    }

    .feat-i::before {
      content: '✓';
      color: var(--ok);
      font-weight: 700
    }

    /* Answer Review */
    .review-section {
      margin-top: 24px
    }

    .review-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px
    }

    @media(min-width:768px) {
      .review-item {
        padding: 20px
      }
    }

    .review-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px
    }

    .review-qnum {
      font-weight: 700;
      color: var(--p)
    }

    .review-status {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600
    }

    .review-status.correct {
      background: rgba(34, 197, 94, .2);
      color: var(--ok)
    }

    .review-status.wrong {
      background: rgba(239, 68, 68, .2);
      color: var(--err)
    }

    .review-status.skip {
      background: rgba(148, 163, 184, .2);
      color: var(--muted)
    }

    .review-content {
      font-size: 13px;
      color: var(--muted)
    }

    .review-answer {
      margin-top: 8px;
      padding: 8px 12px;
      background: rgba(34, 197, 94, .1);
      border-radius: 8px;
      font-size: 13px
    }

    .review-answer b {
      color: var(--ok)
    }

    .review-your {
      color: var(--err)
    }

    /* Premium Certificate Styles */
    .report-container {
      background: linear-gradient(180deg, #0f1629 0%, #1a1d2e 100%);
      border: 2px solid rgba(99, 102, 241, 0.3);
      border-radius: 20px;
      padding: 32px 24px;
      position: relative;
      overflow: hidden;
    }

    .report-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%236366f1' fill-opacity='0.02'/%3E%3C/svg%3E");
      pointer-events: none;
    }

    .report-header {
      text-align: center;
      margin-bottom: 24px;
      position: relative;
    }

    .report-number {
      background: linear-gradient(135deg, #1a237e, #3949ab);
      color: #fff;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      display: inline-block;
      margin-bottom: 12px;
    }

    .report-date {
      color: var(--muted);
      font-size: 12px;
      margin-top: 8px;
    }

    .seal-container {
      position: relative;
      display: inline-block;
      margin: 24px 0;
    }

    .seal {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      box-shadow: 0 8px 32px rgba(26, 35, 126, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.1);
      position: relative;
    }

    .seal::before {
      content: '';
      position: absolute;
      top: -4px;
      left: -4px;
      right: -4px;
      bottom: -4px;
      border-radius: 50%;
      border: 3px solid rgba(245, 158, 11, 0.6);
    }

    .seal-score {
      font-size: 42px;
      font-weight: 800;
      color: #fff;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .seal-label {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.8);
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-top: 4px;
    }

    .percentile-badge {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #000;
      padding: 8px 20px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 700;
      display: inline-block;
      margin-top: 16px;
    }

    /* Premium Stats */
    .premium-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin: 24px 0;
    }

    .premium-stat {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 16px 12px;
      text-align: center;
    }

    .premium-stat-num {
      font-size: 28px;
      font-weight: 800;
    }

    .premium-stat-num.correct {
      color: #22c55e;
    }

    .premium-stat-num.wrong {
      color: #ef4444;
    }

    .premium-stat-num.skip {
      color: #94a3b8;
    }

    .premium-stat-label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-top: 4px;
    }

    /* Premium Category Analysis */
    .category-section {
      background: linear-gradient(145deg, rgba(26, 35, 126, 0.1), rgba(45, 52, 54, 0.2));
      border: 1px solid rgba(99, 102, 241, 0.2);
      border-radius: 16px;
      padding: 20px;
      margin: 24px 0;
    }

    .category-title {
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .category-item {
      margin-bottom: 16px;
    }

    .category-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .category-name {
      font-size: 13px;
      color: var(--text);
    }

    .category-score {
      font-size: 13px;
      font-weight: 600;
      color: var(--acc);
    }

    .category-bar {
      height: 10px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 5px;
      overflow: hidden;
    }

    .category-fill {
      height: 100%;
      border-radius: 5px;
      transition: width 0.8s ease-out;
    }

    .category-fill.pattern {
      background: linear-gradient(90deg, #6366f1, #818cf8);
    }

    .category-fill.numerical {
      background: linear-gradient(90deg, #f59e0b, #fbbf24);
    }

    .category-fill.spatial {
      background: linear-gradient(90deg, #22c55e, #4ade80);
    }

    .category-fill.logical {
      background: linear-gradient(90deg, #ef4444, #f87171);
    }

    /* Answer Key Grid */
    .answer-key-section {
      background: rgba(26, 35, 126, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.2);
      border-radius: 16px;
      padding: 20px;
      margin: 24px 0;
    }

    .answer-key-title {
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .answer-key-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
    }

    @media (max-width: 480px) {
      .answer-key-grid {
        grid-template-columns: repeat(5, 1fr);
      }
    }

    .answer-key-item {
      background: rgba(255, 255, 255, 0.03);
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 10px 6px;
      text-align: center;
      transition: all 0.2s;
    }

    .answer-key-item.correct {
      border-color: rgba(34, 197, 94, 0.5);
      background: rgba(34, 197, 94, 0.1);
    }

    .answer-key-item.wrong {
      border-color: rgba(239, 68, 68, 0.5);
      background: rgba(239, 68, 68, 0.1);
    }

    .answer-key-item.skip {
      border-color: rgba(148, 163, 184, 0.3);
      background: rgba(148, 163, 184, 0.05);
    }

    .answer-key-num {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
    }

    .answer-key-result {
      font-size: 16px;
      margin: 4px 0;
    }

    .answer-key-result.correct {
      color: #22c55e;
    }

    .answer-key-result.wrong {
      color: #ef4444;
    }

    .answer-key-result.skip {
      color: #94a3b8;
    }

    .answer-key-detail {
      font-size: 9px;
      color: var(--muted);
    }

    /* Report Footer */
    .report-footer {
      text-align: center;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .report-footer-logo {
      font-size: 16px;
      font-weight: 700;
      color: var(--p);
      margin-bottom: 8px;
    }

    .report-footer-text {
      font-size: 10px;
      color: var(--muted);
    }

    footer {
      background: var(--card);
      padding: 20px 16px;
      text-align: center;
      margin-top: 32px;
      border-top: 1px solid var(--border)
    }

    .f-links {
      display: flex;
      gap: 16px;
      justify-content: center;
      margin-bottom: 10px;
      flex-wrap: wrap
    }

    .f-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 12px
    }

    /* Payment Modal */
    .pay-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 16px
    }

    .pay-modal.active {
      display: flex
    }

    .pay-box {
      background: var(--card);
      border-radius: 16px;
      width: 100%;
      max-width: 420px;
      max-height: 90vh;
      overflow-y: auto;
      border: 1px solid var(--border)
    }

    .pay-header {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center
    }

    .pay-header h3 {
      font-size: 18px;
      font-weight: 700
    }

    .pay-close {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 24px;
      cursor: pointer;
      padding: 4px
    }

    .pay-close:hover {
      color: var(--text)
    }

    .pay-body {
      padding: 20px
    }

    .pay-methods {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 20px
    }

    .pay-method {
      background: rgba(255, 255, 255, 0.05);
      border: 2px solid var(--border);
      border-radius: 10px;
      padding: 12px 8px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px
    }

    .pay-method:hover {
      border-color: var(--p);
      background: rgba(99, 102, 241, 0.1)
    }

    .pay-method.selected {
      border-color: var(--acc);
      background: rgba(245, 158, 11, 0.15)
    }

    .pay-method svg {
      width: 40px;
      height: 28px
    }

    .pay-method span {
      font-size: 10px;
      color: var(--muted)
    }

    .pay-form {
      display: none
    }

    .pay-form.active {
      display: block
    }

    .pay-input-group {
      margin-bottom: 16px
    }

    .pay-input-group label {
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px
    }

    .pay-input {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid var(--border);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.03);
      color: var(--text);
      font-size: 16px;
      font-family: inherit
    }

    .pay-input:focus {
      border-color: var(--p);
      outline: none
    }

    .pay-input::placeholder {
      color: var(--muted)
    }

    .pay-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px
    }

    .pay-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px;
      background: rgba(99, 102, 241, 0.1);
      border-radius: 10px;
      margin-bottom: 16px
    }

    .pay-total-label {
      font-size: 14px;
      color: var(--muted)
    }

    .pay-total-amount {
      font-size: 24px;
      font-weight: 800;
      color: var(--p)
    }

    .pay-submit {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--p), var(--p2));
      border: none;
      border-radius: 12px;
      color: #fff;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform 0.2s
    }

    .pay-submit:hover {
      transform: translateY(-2px)
    }

    .pay-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none
    }

    .pay-secure {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 16px;
      font-size: 11px;
      color: var(--muted)
    }

    /* Test Mode Styles */
    .test-mode-badge {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #000;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      animation: testPulse 2s ease-in-out infinite;
      margin-left: 10px
    }

    @keyframes testPulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.7;
      }
    }

    .test-mode-notice {
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 8px;
      padding: 10px 14px;
      margin-bottom: 16px;
      font-size: 12px;
      color: var(--acc);
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px
    }

    .test-mode-notice.hidden {
      display: none
    }

    .pay-processing {
      display: none;
      text-align: center;
      padding: 40px 20px
    }

    .pay-processing.active {
      display: block
    }

    .pay-processing .spinner {
      width: 48px;
      height: 48px;
      border: 4px solid var(--border);
      border-top-color: var(--p);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px
    }

    @keyframes spin {
      to {
        transform: rotate(360deg)
      }
    }

    .pay-success {
      display: none;
      text-align: center;
      padding: 40px 20px
    }

    .pay-success.active {
      display: block
    }

    .pay-success-icon {
      width: 64px;
      height: 64px;
      background: var(--ok);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 32px
    }

    /* Legal Modals */
    .legal-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 10000;
      justify-content: center;
      align-items: center;
      padding: 20px;
      overflow-y: auto
    }

    .legal-modal.active {
      display: flex
    }

    .legal-box {
      background: var(--card);
      border-radius: 16px;
      max-width: 600px;
      width: 100%;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border);
      animation: modalSlide 0.3s ease
    }

    @keyframes modalSlide {
      from {
        opacity: 0;
        transform: translateY(-20px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .legal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border)
    }

    .legal-header h3 {
      font-size: 18px;
      font-weight: 700
    }

    .legal-close {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 28px;
      cursor: pointer;
      padding: 0;
      line-height: 1;
      transition: color 0.2s
    }

    .legal-close:hover {
      color: var(--text)
    }

    .legal-body {
      padding: 24px;
      overflow-y: auto;
      line-height: 1.7;
      font-size: 14px;
      color: var(--muted)
    }

    .legal-body h4 {
      color: var(--text);
      font-size: 15px;
      margin: 20px 0 8px;
      font-weight: 600
    }

    .legal-body h4:first-of-type {
      margin-top: 12px
    }

    .legal-body p {
      margin-bottom: 12px
    }

    .legal-body strong {
      color: var(--text)
    }

    .faq-item {
      padding: 16px 0;
      border-bottom: 1px solid var(--border)
    }

    .faq-item:last-child {
      border-bottom: none
    }

    .faq-item h4 {
      color: var(--p);
      margin-bottom: 8px
    }

    .support-email {
      display: inline-block;
      background: linear-gradient(135deg, var(--p), var(--p2));
      color: #fff;
      padding: 12px 24px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s
    }

    .support-email:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4)
    }

    @media (max-width: 480px) {
      .legal-box {
        max-height: 90vh;
        border-radius: 12px
      }

      .legal-header {
        padding: 16px 20px
      }

      .legal-body {
        padding: 20px
      }
    }

    /* ========== COPY PROTECTION STYLES ========== */
    #p-test.copy-protected {
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }

    #p-test.copy-protected * {
      user-select: none !important;
      -webkit-user-drag: none;
      -khtml-user-drag: none;
      -moz-user-drag: none;
      -o-user-drag: none;
    }

    #p-test.copy-protected img {
      pointer-events: none;
    }

    .devtools-warning {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.95);
      z-index: 99999;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      color: #fff;
      text-align: center;
      padding: 20px;
    }

    .devtools-warning.active {
      display: flex;
    }

    .devtools-warning h2 {
      font-size: 24px;
      margin-bottom: 16px;
      color: var(--err);
    }

    .devtools-warning p {
      font-size: 14px;
      color: var(--muted);
      max-width: 400px;
    }

    /* ========== SHARE MODAL STYLES ========== */
    .share-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 10000;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .share-modal.active {
      display: flex;
    }

    .share-box {
      background: var(--card);
      border-radius: 16px;
      max-width: 400px;
      width: 100%;
      border: 1px solid var(--border);
      animation: modalSlide 0.3s ease;
    }

    .share-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
      background: linear-gradient(135deg, #1877f2, #0d65d9);
      border-radius: 16px 16px 0 0;
    }

    .share-header h3 {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
    }

    .share-close {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.8);
      font-size: 28px;
      cursor: pointer;
      padding: 0;
      line-height: 1;
    }

    .share-close:hover {
      color: #fff;
    }

    .share-body {
      padding: 24px;
    }

    .share-options {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    @media (max-width: 320px) {
      .share-options {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .share-option {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 16px 8px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid transparent;
    }

    .share-option:hover {
      background: rgba(99, 102, 241, 0.1);
      border-color: var(--p);
      transform: translateY(-2px);
    }

    .share-option-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }

    .share-option-label {
      font-size: 11px;
      color: var(--muted);
      text-align: center;
    }

    .share-option.instagram .share-option-icon {
      background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    .share-option.facebook .share-option-icon {
      background: #1877f2;
    }

    .share-option.whatsapp .share-option-icon {
      background: #25d366;
    }

    .share-option.linkedin .share-option-icon {
      background: #0a66c2;
    }

    .share-option.tiktok .share-option-icon {
      background: #000;
    }

    .share-option.copy .share-option-icon {
      background: var(--p);
    }

    .share-success {
      display: none;
      text-align: center;
      padding: 20px;
      color: var(--ok);
      font-size: 14px;
    }

    .share-success.active {
      display: block;
    }