    :root {
      --bg: #0B0B0E;
      --card: #16161A;
      --border: rgba(255, 255, 255, 0.08);
      --purple: #A855F7;
      --purple-soft: rgba(168, 85, 247, 0.12);
      --purple-glow: rgba(168, 85, 247, 0.22);
      --green: #10B981;
      --green-soft: rgba(16, 185, 129, 0.12);
      --text: #FFFFFF;
      --muted: #9CA3AF;
      --helper: #6B7280;
      --radius: 16px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      line-height: 1.55;
      min-height: 100vh;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 50% -10%, rgba(168, 85, 247, 0.12), transparent 45%),
                  radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.05), transparent 35%);
      z-index: -1;
    }

    .app-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 40px 24px 80px;
    }

    header { text-align: center; margin-bottom: 32px; animation: fadeUp 0.7s ease both; }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 1.75rem;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--purple), #7C3AED);
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 1.25rem;
      box-shadow: 0 0 24px var(--purple-glow);
    }

    .brand span.accent { color: var(--purple); }

    .subtitle {
      color: var(--muted);
      font-size: 0.95rem;
      margin-top: 6px;
    }

    .tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 5px;
      width: fit-content;
      margin: 0 auto 36px;
      animation: fadeUp 0.7s 0.1s ease both;
    }

    .tab-btn {
      border: none;
      background: transparent;
      color: var(--muted);
      padding: 11px 22px;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .tab-btn:hover { color: var(--text); }

    .tab-btn.active {
      background: var(--purple-soft);
      color: var(--purple);
      box-shadow: 0 0 20px var(--purple-glow);
    }

    .grid {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 28px;
      align-items: start;
    }

    @media (max-width: 980px) {
      .grid { grid-template-columns: 1fr; }
      .right-col { order: -1; }
      .tabs { border-radius: 20px; }
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 26px;
      margin-bottom: 24px;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      animation: fadeUp 0.7s ease both;
    }

    .card:hover {
      border-color: rgba(168, 85, 247, 0.18);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(168, 85, 247, 0.06);
      transform: translateY(-2px);
    }

    .card h2 {
      margin: 0 0 20px;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .card h2 .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--purple);
      box-shadow: 0 0 10px var(--purple);
    }

    .form-group { margin-bottom: 22px; }

    .form-group:last-child { margin-bottom: 0; }

    label.block {
      display: block;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 8px;
    }

    .helper {
      font-size: 0.78rem;
      color: var(--helper);
      margin-top: 5px;
      line-height: 1.4;
    }

    .radio-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .radio-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      color: var(--muted);
      font-size: 0.88rem;
      font-weight: 500;
      transition: all 0.2s ease;
      user-select: none;
    }

    .radio-label:hover {
      border-color: rgba(168, 85, 247, 0.4);
      color: var(--text);
    }

    .radio-label input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

    .custom-radio {
      width: 18px;
      height: 18px;
      border: 2px solid #4B5563;
      border-radius: 50%;
      display: grid;
      place-items: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .radio-label:hover .custom-radio { border-color: var(--purple); }

    .radio-label input:checked + .custom-radio {
      border-color: var(--purple);
      background: var(--purple-soft);
    }

    .radio-label input:checked + .custom-radio::after {
      content: '';
      width: 8px;
      height: 8px;
      background: var(--purple);
      border-radius: 50%;
    }

    .radio-label:has(input:checked) {
      border-color: rgba(168, 85, 247, 0.5);
      background: var(--purple-soft);
      color: var(--text);
    }

    select, input[type='number'], input[type='text'] {
      width: 100%;
      padding: 12px 14px;
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text);
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    select:focus, input[type='number']:focus, input[type='text']:focus {
      border-color: rgba(168, 85, 247, 0.5);
      box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    }

    select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 36px;
    }

    input[type='number']::-webkit-inner-spin-button,
    input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

    .range-wrap { display: flex; align-items: center; gap: 16px; }

    input[type='range'] {
      -webkit-appearance: none;
      flex: 1;
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      outline: none;
    }

    input[type='range']::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--purple);
      cursor: pointer;
      box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
      transition: transform 0.1s ease;
    }

    input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.1); }

    input[type='range']::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border: none;
      border-radius: 50%;
      background: var(--purple);
      cursor: pointer;
      box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
    }

    .range-value {
      min-width: 110px;
      text-align: right;
      font-weight: 700;
      color: var(--purple);
      font-size: 0.95rem;
    }

    .btn-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
      border: none;
      background: transparent;
      color: var(--green);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .btn-link:hover { color: #34D399; }

    .summary-card {
      position: sticky;
      top: 24px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 26px;
      animation: fadeUp 0.7s 0.15s ease both;
    }

    .summary-card:hover {
      border-color: rgba(168, 85, 247, 0.18);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(168, 85, 247, 0.06);
    }

    .summary-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 11px;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      backdrop-filter: blur(8px);
      background: var(--purple-soft);
      border: 1px solid rgba(168, 85, 247, 0.2);
      color: var(--purple);
    }

    .badge.green {
      background: var(--green-soft);
      border-color: rgba(16, 185, 129, 0.25);
      color: var(--green);
    }

    .grand-section { margin-bottom: 24px; }

    .grand-label {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .grand-idr {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--purple);
      letter-spacing: -0.03em;
      line-height: 1.1;
      text-shadow: 0 0 28px rgba(168, 85, 247, 0.25);
    }

    .grand-usd {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      margin-top: 6px;
    }

    .rate-text {
      font-size: 0.78rem;
      color: var(--helper);
      margin-top: 4px;
    }

    .breakdown { border-top: 1px solid var(--border); padding-top: 18px; }

    .row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      margin-bottom: 11px;
      color: var(--muted);
    }

    .row .value { color: var(--text); font-weight: 600; }

    .row.total {
      padding-top: 11px;
      border-top: 1px solid var(--border);
      margin-top: 11px;
      font-weight: 700;
      color: var(--text);
    }

    .btn-wa {
      width: 100%;
      margin-top: 18px;
      padding: 14px;
      border: none;
      border-radius: 12px;
      background: var(--purple);
      color: #fff;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
      box-shadow: 0 6px 22px rgba(168, 85, 247, 0.25);
    }

    .btn-wa:hover {
      background: #9333EA;
      transform: translateY(-1px);
      box-shadow: 0 8px 26px rgba(168, 85, 247, 0.35);
    }

    .btn-wa.success {
      background: var(--green) !important;
      box-shadow: 0 6px 22px rgba(16, 185, 129, 0.25);
    }

    .hidden { display: none !important; }

    /* Modal */
    .modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .modal.open { opacity: 1; pointer-events: auto; }

    .modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
    }

    .modal-content {
      position: relative;
      width: 100%;
      max-width: 520px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 30px;
      box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
      transform: translateY(20px) scale(0.98);
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .modal.open .modal-content { transform: translateY(0) scale(1); }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 8px;
    }

    .modal-header h2 {
      margin: 0;
      font-size: 1.2rem;
      font-weight: 800;
    }

    .close-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      color: var(--muted);
      width: 34px;
      height: 34px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 1.3rem;
      line-height: 1;
      transition: all 0.2s ease;
    }

    .close-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

    .modal-intro {
      color: var(--muted);
      font-size: 0.88rem;
      margin-bottom: 22px;
    }

    .ss-result {
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.2);
      border-radius: 14px;
      padding: 18px;
      margin: 18px 0;
      color: var(--text);
    }

    .ss-result .punch {
      font-size: 0.82rem;
      color: var(--muted);
      margin-top: 8px;
      line-height: 1.45;
    }

    .ss-result .amount {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--green);
    }

    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

    .btn-primary {
      padding: 12px 20px;
      border: none;
      border-radius: 12px;
      background: var(--purple);
      color: #fff;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.15s ease;
      box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
    }

    .btn-primary:hover { background: #9333EA; transform: translateY(-1px); }

    .btn-ghost {
      padding: 12px 20px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: transparent;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }

    .custom-item-row {
      display: flex;
      gap: 10px;
      align-items: center;
      margin-bottom: 10px;
      animation: fadeUp 0.25s ease both;
    }

    .custom-item-row .custom-name {
      flex: 1;
      min-width: 0;
    }

    .custom-item-row .custom-price {
      width: 130px;
      flex-shrink: 0;
    }

    .custom-remove {
      width: 36px;
      height: 36px;
      border: none;
      border-radius: 10px;
      background: rgba(239, 68, 68, 0.12);
      color: #EF4444;
      font-size: 1.2rem;
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .custom-remove:hover {
      background: rgba(239, 68, 68, 0.25);
    }

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