:root {
      --bg-color: #050507; 
      --primary-surface: #121216; 
      --secondary-surface: #1c1c24;
      --text-main: #ffffff; 
      --text-sub: #8b9bb4; 
      --accent: #4361ee; 
      --accent-dark: #3a0ca3;
      --accent-glow: rgba(67, 97, 238, 0.4);
      --error: #ef476f; 
      --success: #06d6a0;
      --border: rgba(255, 255, 255, 0.08);
      /* Gradient Bank Lebih Gelap & Mewah */
      --bank-gradient: linear-gradient(125deg, #0f172a 0%, #1e293b 50%, #000000 100%);
  }
  
  body {
      font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-main);
      font-size: 14px; overflow-x: hidden;
  }

  /* --- UTILITIES --- */
  .fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; transform: translateY(20px); }
  @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
       AMERICAN EXPRESS CENTURION BLACK CARD (CANVAS 3D ENGINE)
       ========================================================================== */
    .bank-widget {
      perspective: 1200px;
      margin-bottom: 24px;
      display: flex;
      justify-content: center;
    }

    .amex-tilt-wrapper {
      position: relative;
      width: 100%;
      max-width: 460px;
      transform-style: preserve-3d;
      transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.4, 1);
      border-radius: 20px;
    }

    .amex-black-card {
      position: relative;
      width: 100%;
      aspect-ratio: 1.586 / 1;
      min-height: 235px;
      border-radius: 18px;
      overflow: hidden;
      background: #08080a;
      box-shadow: 
        0 25px 55px -10px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.28),
        inset 0 -1px 2px rgba(0, 0, 0, 0.8);
      user-select: none;
      -webkit-user-select: none;
      transform: translateZ(0);
      cursor: pointer;
    }

    /* Canvas Background */
    .amex-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
    }

    /* HTML Overlay */
    .amex-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      pointer-events: auto;
    }

    /* Header Bar */
    .amex-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .amex-brand {
      display: flex;
      flex-direction: column;
    }

    .amex-title {
      font-family: 'Cinzel', serif;
      font-weight: 800;
      font-size: 1.05rem;
      letter-spacing: 3.8px;
      text-transform: uppercase;
      background: linear-gradient(180deg, #ffffff 0%, #e2e4e8 40%, #9ca3af 75%, #d1d5db 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.4)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.9));
      line-height: 1.2;
    }

    .bank-label {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 1.8px;
      color: rgba(220, 225, 235, 0.7);
      font-weight: 600;
      margin-top: 2px;
      display: flex;
      align-items: center;
    }

    .amex-header-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .amex-contactless {
      display: flex;
      align-items: center;
      gap: 6px;
      color: rgba(255, 255, 255, 0.55);
      font-size: 0.95rem;
    }

    .amex-cid {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.8rem;
      letter-spacing: 1.5px;
      color: rgba(255, 255, 255, 0.65);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }

    .status-light {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background-color: #333;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
      transition: all 0.3s ease;
    }
    .light-green { background-color: #06d6a0; box-shadow: 0 0 12px #06d6a0; border-color: #a7f3d0; }
    .light-red { background-color: #ef476f; box-shadow: 0 0 12px #ef476f; }
    .light-orange { background-color: #ff9f1c; box-shadow: 0 0 12px #ff9f1c; animation: amexBlink 1s infinite; }
    @keyframes amexBlink { 50% { opacity: 0.4; } }

    /* Middle EMV & VA Number */
    .amex-middle {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: -4px;
    }

    .amex-emv-chip {
      width: 44px;
      height: 34px;
      border-radius: 6px;
      background: linear-gradient(135deg, #f0f1f3 0%, #cbd0d8 35%, #ffffff 50%, #9ca3af 70%, #d1d5db 100%);
      border: 1px solid rgba(0, 0, 0, 0.4);
      box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }

    .amex-emv-chip::before {
      content: '';
      position: absolute;
      inset: 4px;
      border: 1px solid rgba(80, 85, 95, 0.5);
      border-radius: 3px;
    }

    .chip-line-h {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 1px;
      background: rgba(80, 85, 95, 0.6);
      transform: translateY(-50%);
    }

    .chip-line-v1 {
      position: absolute;
      top: 0;
      left: 33%;
      width: 1px;
      height: 100%;
      background: rgba(80, 85, 95, 0.6);
    }

    .chip-line-v2 {
      position: absolute;
      top: 0;
      right: 33%;
      width: 1px;
      height: 100%;
      background: rgba(80, 85, 95, 0.6);
    }

    .chip-core {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 12px;
      height: 10px;
      border: 1px solid rgba(80, 85, 95, 0.6);
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.2);
    }

    .amex-va-container {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-grow: 1;
    }

    .bank-number {
      font-family: 'Share Tech Mono', monospace;
      font-size: 1.25rem;
      letter-spacing: 3px;
      color: #e5e7eb;
      background: linear-gradient(180deg, #ffffff 0%, #e2e5ea 40%, #9ca3af 70%, #ffffff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.4)) drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.9));
      line-height: 1;
      white-space: nowrap;
    }

    .btn-copy-va {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #e5e7eb;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
      flex-shrink: 0;
    }

    .btn-copy-va:hover {
      background: rgba(255, 255, 255, 0.25);
      color: #ffffff;
      border-color: rgba(255, 255, 255, 0.4);
      transform: scale(1.08);
    }

    /* Lower Section: Holder Name & Balance */
    .amex-lower {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-top: 4px;
    }

    .amex-holder-info {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .amex-member-since {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.6rem;
      letter-spacing: 1px;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 600;
    }

    .amex-member-since .member-badge {
      border: 1px solid rgba(255, 255, 255, 0.25);
      padding: 1px 5px;
      border-radius: 3px;
      font-size: 0.55rem;
      background: rgba(255, 255, 255, 0.05);
    }

    .amex-cardholder-name {
      font-family: 'Cinzel', serif;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      background: linear-gradient(180deg, #ffffff 0%, #d1d5db 50%, #9ca3af 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.3)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.9));
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 180px;
    }

    .amex-balance-box {
      text-align: right;
    }

    .amex-balance-box .bank-label {
      justify-content: flex-end;
    }

    .bank-balance {
      font-family: 'Poppins', sans-serif;
      font-size: 1.35rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      color: #ffffff;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
      line-height: 1.1;
    }

    .btn-toggle-balance {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #e5e7eb;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-toggle-balance:hover {
      background: rgba(255, 255, 255, 0.25);
      color: #ffffff;
      transform: scale(1.08);
    }

    .amex-watermark {
      position: absolute;
      bottom: 6px;
      right: 18px;
      font-size: 0.52rem;
      letter-spacing: 1px;
      color: rgba(255, 255, 255, 0.25);
      font-family: 'Cinzel', serif;
    }

/* --- TOPUP CARD --- */
  .topup-card { background-color: var(--primary-surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
  .btn-history-link {
      font-size: 0.8rem; color: var(--text-sub); text-decoration: none; padding: 6px 12px;
      border: 1px solid var(--border); border-radius: 50px; transition: 0.3s; background: var(--secondary-surface);
  }
  .btn-history-link:hover { color: var(--text-main); border-color: var(--accent); background: rgba(67, 97, 238, 0.1); }
  
  .input-group-custom { background-color: var(--bg-color); border-radius: 14px; padding: 8px; border: 1px solid var(--border); }
  .input-group-custom:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
  .form-control { background: transparent !important; border: none !important; color: #fff !important; font-size: 1.6rem; font-weight: 700; padding-left: 0; }
  .input-group-text { background: transparent; border: none; color: var(--accent); font-size: 1.2rem; font-weight: 600; }

  /* --- QUICK ACTIONS --- */
  .price-box { 
      background-color: var(--secondary-surface); border: 1px solid var(--border); border-radius: 14px; 
      padding: 14px 5px; text-align: center; cursor: pointer; position: relative; transition: 0.2s;
  }
  .price-box.active { background-color: var(--accent); border-color: var(--accent); }
  .price-box.active .text-price { color: #fff; }
  .text-price { font-weight: 600; color: var(--text-sub); font-size: 0.9rem; }

  /* --- BUTTONS --- */
  .btn-submit { 
      width: 100%; padding: 16px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); 
      color: #fff; border: none; border-radius: 16px; font-size: 1rem; font-weight: 600; 
      box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3); transition: all 0.3s;
  }
  .btn-submit:active { transform: scale(0.98); }

  /* --- PAGE BANK --- */
  .action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .action-item { 
      background: var(--primary-surface); border: 1px solid var(--border); border-radius: 18px; 
      padding: 20px 10px; text-align: center; cursor: pointer; transition: 0.2s;
  }
  .action-item:active { background: var(--secondary-surface); transform: scale(0.96); }
  .icon-circle {
      width: 50px; height: 50px; border-radius: 50%; background: rgba(67, 97, 238, 0.1); 
      color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; margin: 0 auto 10px;
  }
  .action-item span { font-weight: 500; font-size: 0.85rem; color: var(--text-main); }

  /* --- MUTASI --- */
  .mutasi-section .nav-pills { background: var(--secondary-surface); padding: 5px; border-radius: 50px; }
  .mutasi-section .nav-pills .nav-link { 
      background: transparent; color: var(--text-sub); border-radius: 50px; font-size: 0.85rem; 
      transition: 0.3s;
  }
  .mutasi-section .nav-pills .nav-link.active { background: var(--primary-surface); color: var(--text-main); shadow: 0 2px 5px rgba(0,0,0,0.2); }
  
  .mutasi-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
  .mutasi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1rem; }
  .mutasi-icon.credit { background: rgba(6, 214, 160, 0.1); color: var(--success); }
  .mutasi-icon.debit { background: rgba(239, 71, 111, 0.1); color: var(--error); }
  .mutasi-desc { font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
  .mutasi-time { font-size: 0.75rem; color: var(--text-sub); }

  /* --- BOTTOM NAV --- */
  .bottom-nav { 
      position: fixed; bottom: 0; left: 0; width: 100%; 
      background: rgba(18, 18, 22, 0.9); backdrop-filter: blur(15px); border-top: 1px solid var(--border); 
      padding: 15px 0 20px; z-index: 99; display: flex; justify-content: space-around; 
  }
  .nav-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; color: var(--text-sub); transition: 0.3s; }
  .nav-icon-box { font-size: 1.4rem; margin-bottom: 4px; transition: 0.3s; }
  .nav-item.active { color: var(--accent); }
  .nav-item.active .nav-icon-box { transform: translateY(-3px); text-shadow: 0 5px 15px var(--accent-glow); }
  .nav-item span { font-size: 0.75rem; font-weight: 500; }

  /* --- MODALS --- */
  .modal-glass { background: #18181b; border: 1px solid var(--border); border-radius: 20px; }
  .modal-header { border-bottom: 1px solid var(--border); }
  .form-control-modal { background: var(--bg-color); border: 1px solid var(--border); color: #fff; border-radius: 10px; padding: 12px; }
  .form-control-modal:focus { background: var(--bg-color); border-color: var(--accent); outline: none; box-shadow: none; }
  .btn-close { filter: invert(1); }

  /* --- SKELETON & ANIMATIONS --- */
  .skeleton-text { animation: shimmer 2s infinite linear; background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,1) 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .skeleton-text.loaded { animation: none; background: none; -webkit-background-clip: unset; -webkit-text-fill-color: #fff; }
  @keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
  
  .toast-custom { 
      position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); 
      color: white; padding: 12px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; 
      z-index: 10000; opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  }
  .toast-custom.show { transform: translateX(-50%) translateY(0); opacity: 1; }
  .toast-success { background: #06d6a0; box-shadow: 0 10px 20px rgba(6, 214, 160, 0.3); }
  .toast-error { background: #ef476f; box-shadow: 0 10px 20px rgba(239, 71, 111, 0.3); }
  .loading-overlay { 
      position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); 
      backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; 
      z-index: 9999; opacity: 0; pointer-events: none; transition: 0.3s; 
  }
  .loading-overlay.show { opacity: 1; pointer-events: auto; }
  
  .main-container { padding-top: 15px; padding-bottom: 100px; }
  .page-container { display: none; }
  .page-container.active { display: block; animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }