:root {
      --bg: #f5f3fb;
      --surface: #ffffff;
      --card: #ffffff;
      --card-hover: #faf8ff;
      --border: #e8e0f5;
      --border-bright: #7b3fe4;
      --purple: #7b3fe4;
      --purple-light: #9b5ff4;
      --purple-xlight: #c4a0f8;
      --purple-glow: rgba(123,63,228,.18);
      --text: #1a0a3c;
      --muted: #7b6a99;
      --accent: #7b3fe4;
      --dot-color: rgba(123,63,228,.12);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Tajawal', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* dot background */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
      background-size: 28px 28px;
      pointer-events: none;
      z-index: 0;
    }

    /* top glow blob */
    body::after {
      content: '';
      position: fixed;
      top: -160px;
      right: -160px;
      width: 520px;
      height: 520px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(123,63,228,.13) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 20px 60px;
      position: relative;
      z-index: 1;
    }

    /* ── HEADER ── */
    .site-header {
      text-align: center;
      padding: 52px 0 48px;
      position: relative;
    }

    .site-header::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 120px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--purple), transparent);
    }

    .header-badge {
      display: inline-block;
      background: rgba(123,63,228,.1);
      border: 1px solid rgba(123,63,228,.3);
      color: var(--purple);
      font-size: 11px;
      font-weight: 800;
      padding: 5px 16px;
      border-radius: 20px;
      margin-bottom: 18px;
      letter-spacing: 2px;
    }

    .site-header h1 {
      font-size: clamp(30px, 7vw, 52px);
      font-weight: 900;
      line-height: 1.15;
      color: var(--text);
      margin-bottom: 14px;
    }

    .site-header h1 span {
      background: linear-gradient(135deg, var(--purple), var(--purple-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .site-header p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.8;
      max-width: 520px;
      margin: 0 auto;
    }

    /* ── SECTION ── */
    .section { margin-top: 52px; }

    .section-label {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
    }

    .section-label h2 {
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      white-space: nowrap;
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--border-bright), transparent);
      opacity: .35;
    }

    .section-label .label-icon {
      width: 36px;
      height: 36px;
      background: rgba(123,63,228,.1);
      border: 1px solid rgba(123,63,228,.25);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    /* ── PLAN CARDS ── */
    .plans-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
    }

    .plan-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 24px 18px 20px;
      position: relative;
      overflow: hidden;
      transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
      animation: fadeUp .5s ease both;
    }

    .plan-card:nth-child(1) { animation-delay: .05s; }
    .plan-card:nth-child(2) { animation-delay: .1s; }
    .plan-card:nth-child(3) { animation-delay: .15s; }
    .plan-card:nth-child(4) { animation-delay: .2s; }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .plan-card::before {
      content: '';
      position: absolute;
      top: 0; right: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--purple), var(--purple-light));
    }

    .plan-card:hover {
      transform: translateY(-5px);
      border-color: var(--border-bright);
      box-shadow: 0 16px 40px rgba(123,63,228,.15);
    }

    .plan-card::after {
      content: '';
      position: absolute;
      top: -40px; left: -40px;
      width: 120px; height: 120px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(123,63,228,.07) 0%, transparent 70%);
      pointer-events: none;
    }

    .plan-name {
      font-size: 13px;
      font-weight: 800;
      color: var(--purple);
      letter-spacing: 1px;
      margin-bottom: 16px;
      text-transform: uppercase;
    }

    .plan-price-block { margin-bottom: 18px; }

    .plan-price {
      font-size: 36px;
      font-weight: 900;
      color: var(--text);
      line-height: 1;
    }

    .plan-price sup {
      font-size: 14px;
      font-weight: 700;
      color: var(--purple);
      vertical-align: super;
    }

    .plan-price-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px;
    }

    .plan-divider {
      height: 1px;
      background: var(--border);
      margin: 16px 0;
    }

    .plan-stat {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 13px;
    }

    .plan-stat .stat-label {
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .plan-stat .stat-label::before {
      content: '';
      width: 5px; height: 5px;
      border-radius: 50%;
      background: var(--purple);
      opacity: .5;
      flex-shrink: 0;
    }

    .plan-stat .stat-val {
      font-weight: 700;
      color: var(--text);
    }

    .plan-code-block {
      background: rgba(123,63,228,.07);
      border: 1px solid rgba(123,63,228,.2);
      border-radius: 10px;
      padding: 10px 14px;
      margin-top: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .plan-code-label {
      font-size: 11px;
      color: var(--muted);
    }

    .plan-code-val {
      font-family: monospace;
      font-size: 15px;
      font-weight: 800;
      color: var(--purple);
      direction: ltr;
    }

    /* ── FEATURE BOX ── */
    .feature-box {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 28px;
      position: relative;
      overflow: hidden;
    }

    .feature-box::before {
      content: '';
      position: absolute;
      top: 0; right: 0;
      width: 100%; height: 3px;
      background: linear-gradient(90deg, transparent, var(--purple-light), var(--purple-xlight));
    }

    .feature-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 14px;
    }

    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 14px;
      color: var(--text);
      line-height: 1.6;
    }

    .feature-list li .feat-dot {
      width: 20px; height: 20px;
      border-radius: 6px;
      background: rgba(123,63,228,.1);
      border: 1px solid rgba(123,63,228,.25);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 2px;
    }

    .feature-list li .feat-dot::after {
      content: '';
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--purple-light);
    }

    /* ── ACCOUNTING ── */
    .accounting-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
    }

    .acc-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 18px;
      transition: border-color .2s, box-shadow .2s;
    }

    .acc-card:hover {
      border-color: var(--border-bright);
      box-shadow: 0 4px 20px rgba(123,63,228,.1);
    }

    .acc-card .acc-type {
      font-size: 12px;
      font-weight: 800;
      color: var(--purple);
      letter-spacing: 1px;
      margin-bottom: 10px;
      text-transform: uppercase;
    }

    .acc-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 7px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }

    .acc-row:last-child { border-bottom: none; }
    .acc-row .lbl { color: var(--muted); }
    .acc-row .val { font-weight: 700; color: var(--text); direction: ltr; }

    /* ── TABLE ── */
    .styled-table {
      width: 100%;
      border-collapse: collapse;
      background: var(--card);
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .styled-table th {
      background: rgba(123,63,228,.08);
      padding: 14px 16px;
      font-size: 13px;
      font-weight: 800;
      color: var(--purple);
      text-align: center;
    }

    .styled-table td {
      padding: 12px 16px;
      font-size: 13px;
      text-align: center;
      border-top: 1px solid var(--border);
      color: var(--text);
    }

    .styled-table tr:hover td { background: rgba(123,63,228,.04); }

    .code-inline {
      font-family: monospace;
      background: rgba(123,63,228,.08);
      border: 1px solid rgba(123,63,228,.2);
      padding: 3px 10px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 800;
      color: var(--purple);
      direction: ltr;
      display: inline-block;
    }

    /* ── ALERT BOX ── */
    .alert-box {
      background: rgba(123,63,228,.06);
      border: 1px solid rgba(123,63,228,.2);
      border-radius: 16px;
      padding: 20px 24px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .alert-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

    .alert-text {
      font-size: 14px;
      color: var(--text);
      line-height: 1.7;
    }

    .alert-text strong { color: var(--purple); }

    /* ── CODES GRID ── */
    .codes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }

    .code-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      text-align: center;
      transition: border-color .2s, transform .2s, box-shadow .2s;
    }

    .code-card:hover {
      border-color: var(--border-bright);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(123,63,228,.12);
    }

    .code-card .cc-label {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .code-card .cc-code {
      font-family: monospace;
      font-size: 22px;
      font-weight: 900;
      color: var(--purple);
      direction: ltr;
    }

    /* ── TERMS ── */
    .terms-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .terms-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 16px;
      font-size: 13.5px;
      line-height: 1.6;
      color: var(--text);
      transition: border-color .2s, box-shadow .2s;
    }

    .terms-list li:hover {
      border-color: var(--border-bright);
      box-shadow: 0 4px 16px rgba(123,63,228,.08);
    }

    .terms-list li::before {
      content: '✓';
      width: 22px; height: 22px;
      border-radius: 6px;
      background: rgba(123,63,228,.1);
      color: var(--purple);
      font-size: 12px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* ── FOOTER ── */
    .site-footer {
      text-align: center;
      margin-top: 60px;
      padding: 24px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      color: var(--muted);
      font-size: 13px;
    }

    .site-footer a {
      color: var(--purple);
      text-decoration: none;
      font-weight: 800;
    }