:root {
      --bg-dark: #07090e;
      --bg-card: rgba(13, 19, 34, 0.94);
      --bg-input: #101728;
      
      --accent-cyan: #00f2fe;
      --accent-blue: #4facfe;
      --accent-purple: #9d4edd;
      --accent-green: #10b981;
      --accent-red: #ef4444;
      --accent-gold: #ffb703;
      
      --gradient-cyber: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
      --gradient-card: linear-gradient(180deg, rgba(18, 28, 52, 0.8) 0%, rgba(10, 15, 28, 0.98) 100%);
      
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      
      --border-card: rgba(0, 242, 254, 0.22);
      --border-input: rgba(255, 255, 255, 0.1);
      
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 24px;
      --radius-full: 9999px;
      
      --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.2);
      --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.65);
      --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Prompt', 'Outfit', sans-serif;
      background-color: var(--bg-dark);
      color: var(--text-main);
      min-height: 100vh;
      line-height: 1.6;
      overflow-x: hidden;
      background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(157, 78, 221, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(79, 172, 254, 0.08) 0%, transparent 35%),
        linear-gradient(180deg, #07090e 0%, #0a0e17 100%);
      background-attachment: fixed;
    }

    .bg-grid {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-size: 40px 40px;
      background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    }

    /* Top Navigation Header */
    .app-header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      background: rgba(7, 9, 14, 0.88);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding: 0.85rem 1.5rem;
    }

    .header-content {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      border-radius: var(--radius-md);
      background: var(--gradient-cyber);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.35rem;
      box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
      color: #050811;
      font-weight: 800;
    }

    .brand-name {
      font-family: 'Kanit', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.2;
    }

    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.72rem;
      padding: 0.15rem 0.55rem;
      border-radius: var(--radius-full);
      background: rgba(16, 185, 129, 0.15);
      color: var(--accent-green);
      border: 1px solid rgba(16, 185, 129, 0.35);
      font-weight: 500;
    }

    .live-pulse {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent-green);
      box-shadow: 0 0 8px var(--accent-green);
      animation: pulse 1.8s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.8); }
    }

    .btn-obs-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: var(--radius-full);
      color: #cbd5e1;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition);
    }

    .btn-obs-link:hover {
      background: rgba(0, 242, 254, 0.15);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
    }

    /* Main Container (Centered, Proportionate, Max Width 540px) */
    .page-container {
      position: relative;
      z-index: 10;
      max-width: 540px;
      margin: 1.75rem auto 3rem;
      padding: 0 1rem;
    }

    /* Master Card */
    .master-card {
      background: var(--bg-card);
      background-image: var(--gradient-card);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 2rem 1.75rem;
      box-shadow: var(--shadow-card), var(--shadow-glow);
      position: relative;
      overflow: hidden;
    }

    @media (max-width: 480px) {
      .master-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
      }
    }

    /* Stepper Bar */
    .stepper-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.75rem;
      position: relative;
    }

    .step-pill {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
      z-index: 2;
      transition: var(--transition);
      user-select: none;
    }

    .step-circle {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #111827;
      border: 2px solid rgba(255, 255, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text-muted);
      transition: var(--transition);
    }

    .step-text {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-dim);
      white-space: nowrap;
      transition: var(--transition);
    }

    .step-pill.active .step-circle {
      background: var(--gradient-cyber);
      border-color: var(--accent-cyan);
      color: #050b14;
      box-shadow: 0 0 18px rgba(0, 242, 254, 0.6);
      transform: scale(1.08);
    }

    .step-pill.active .step-text {
      color: var(--accent-cyan);
      font-weight: 700;
    }

    .step-pill.completed .step-circle {
      background: rgba(16, 185, 129, 0.2);
      border-color: var(--accent-green);
      color: var(--accent-green);
    }

    .step-pill.completed .step-text {
      color: var(--accent-green);
    }

    .step-track {
      flex: 1;
      height: 2px;
      background: rgba(255, 255, 255, 0.1);
      margin: -1.2rem 0.5rem 0;
      transition: var(--transition);
    }

    .step-track.active {
      background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
      box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
    }

    /* Headings */
    .section-title {
      font-family: 'Kanit', sans-serif;
      font-size: 1.35rem;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 0.3rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      line-height: 1.45;
    }

    /* Form Inputs */
    .form-group {
      margin-bottom: 1.25rem;
    }

    .field-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.88rem;
      font-weight: 600;
      color: #e2e8f0;
      margin-bottom: 0.45rem;
    }

    .field-label .req {
      color: #f43f5e;
      margin-left: 2px;
    }

    .custom-input {
      width: 100%;
      padding: 0.85rem 1.1rem;
      background: var(--bg-input);
      border: 1px solid var(--border-input);
      border-radius: var(--radius-md);
      color: #ffffff;
      font-family: inherit;
      font-size: 0.98rem;
      outline: none;
      transition: var(--transition);
    }

    .custom-input:focus {
      border-color: var(--accent-cyan);
      box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
      background: #141d33;
    }

    /* Fix Chrome Autofill */
    input:-webkit-autofill,
    input:-webkit-autofill:hover, 
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill {
      -webkit-text-fill-color: #ffffff !important;
      -webkit-box-shadow: 0 0 0px 1000px #101728 inset !important;
      box-shadow: 0 0 0px 1000px #101728 inset !important;
      border-color: var(--accent-cyan) !important;
      transition: background-color 5000s ease-in-out 0s;
    }

    textarea.custom-input {
      resize: vertical;
      min-height: 85px;
    }

    /* Preset Chips */
    .preset-chips {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 0.45rem;
      margin-top: 0.6rem;
    }

    @media (max-width: 480px) {
      .preset-chips {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .chip-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-muted);
      border-radius: var(--radius-sm);
      padding: 0.5rem 0.2rem;
      font-size: 0.88rem;
      font-weight: 700;
      font-family: 'Outfit', sans-serif;
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
    }

    .chip-btn:hover {
      background: rgba(0, 242, 254, 0.1);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      transform: translateY(-1px);
    }

    .chip-btn.active {
      background: rgba(0, 242, 254, 0.2);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
    }

    /* Primary CTA Button */
    .btn-cta {
      width: 100%;
      padding: 0.95rem 1.25rem;
      background: var(--gradient-cyber);
      color: #050b14;
      font-family: 'Kanit', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      border: none;
      border-radius: var(--radius-md);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
      transition: var(--transition);
      margin-top: 0.5rem;
    }

    .btn-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(0, 242, 254, 0.5);
      background: linear-gradient(135deg, #38bdf8 0%, #00f2fe 100%);
    }

    .btn-cta:active {
      transform: translateY(0);
    }

    .btn-cta:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    /* Secondary Back Button */
    .btn-secondary-link {
      width: 100%;
      padding: 0.75rem;
      background: transparent;
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.88rem;
      font-weight: 600;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-md);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: var(--transition);
      margin-top: 0.75rem;
    }

    .btn-secondary-link:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #ffffff;
      border-color: rgba(255, 255, 255, 0.25);
    }

    /* =========================================================================
       Step 2: Payment Screen Showcase
       ========================================================================= */
    .locked-amount-box {
      text-align: center;
      background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.15) 0%, rgba(16, 23, 40, 0.6) 100%);
      border: 1px solid rgba(0, 242, 254, 0.35);
      border-radius: var(--radius-md);
      padding: 1.15rem 1rem;
      margin-bottom: 1.35rem;
      box-shadow: inset 0 0 25px rgba(0, 242, 254, 0.08);
    }

    .lock-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.2rem 0.75rem;
      border-radius: var(--radius-full);
      background: rgba(0, 242, 254, 0.18);
      color: var(--accent-cyan);
      border: 1px solid rgba(0, 242, 254, 0.4);
      margin-bottom: 0.35rem;
    }

    .big-amount-text {
      font-family: 'Outfit', 'Kanit', sans-serif;
      font-size: 2.6rem;
      font-weight: 800;
      background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.1;
      margin-bottom: 0.25rem;
      letter-spacing: -0.02em;
    }

    .lock-hint-text {
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    /* QR Code Frame */
    .qr-center-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 1rem 0 1.35rem;
    }

    .qr-card-glow {
      width: 230px;
      height: 230px;
      background: #ffffff;
      border-radius: var(--radius-md);
      padding: 10px;
      box-shadow: 0 0 35px rgba(0, 242, 254, 0.35), 0 15px 35px rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      border: 3px solid rgba(0, 242, 254, 0.5);
      position: relative;
    }

    .qr-card-glow img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    /* Recipient Card */
    .recipient-info-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-md);
      padding: 0.8rem 1.15rem;
      margin-bottom: 1.25rem;
    }

    .recipient-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.3rem 0;
      font-size: 0.9rem;
    }

    .recipient-item .lbl {
      color: var(--text-muted);
    }

    .recipient-item .val {
      font-weight: 600;
      color: #ffffff;
    }

    .recipient-item .val.highlight {
      color: var(--accent-cyan);
      font-family: 'Outfit', monospace;
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: 0.05em;
    }

    /* Copy Actions Grid */
    .copy-actions-layout {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      margin-bottom: 1.35rem;
    }

    .copy-num-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(0, 242, 254, 0.07);
      border: 1px solid rgba(0, 242, 254, 0.3);
      border-radius: var(--radius-md);
      padding: 0.8rem 1.1rem;
      cursor: pointer;
      transition: var(--transition);
      user-select: none;
    }

    .copy-num-card:hover {
      background: rgba(0, 242, 254, 0.15);
      border-color: var(--accent-cyan);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 242, 254, 0.2);
    }

    .copy-num-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .copy-num-icon {
      font-size: 1.35rem;
    }

    .copy-num-title {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .copy-num-digits {
      font-family: 'Outfit', monospace;
      font-size: 1.1rem;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: 0.04em;
    }

    .copy-badge-pill {
      background: var(--gradient-cyber);
      color: #050b14;
      padding: 0.3rem 0.75rem;
      border-radius: var(--radius-full);
      font-size: 0.8rem;
      font-weight: 700;
    }

    .action-duo-buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.65rem;
    }

    .btn-pill-action {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #e2e8f0;
      padding: 0.7rem 0.85rem;
      border-radius: var(--radius-md);
      font-size: 0.85rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: var(--transition);
    }

    .btn-pill-action:hover {
      background: rgba(0, 242, 254, 0.12);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    }

    /* =========================================================================
       Step 3: Slip Upload
       ========================================================================= */
    .summary-bar {
      display: flex;
      justify-content: space-around;
      align-items: center;
      background: rgba(0, 242, 254, 0.08);
      border: 1px solid rgba(0, 242, 254, 0.25);
      border-radius: var(--radius-md);
      padding: 0.8rem 1rem;
      margin-bottom: 1.35rem;
      font-size: 0.9rem;
    }

    .summary-bar b {
      color: var(--accent-cyan);
    }

    /* Slip Methods Tabs (Mobile QR vs Desktop PC File) */
    .slip-methods-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.45rem;
      margin-bottom: 1.15rem;
      background: rgba(0, 0, 0, 0.35);
      padding: 0.35rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .slip-tab-btn {
      background: transparent;
      border: 1px solid transparent;
      padding: 0.65rem 0.5rem;
      border-radius: 10px;
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: var(--transition);
      user-select: none;
    }

    .slip-tab-btn:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.04);
    }

    .slip-tab-btn.active {
      background: rgba(0, 242, 254, 0.14);
      border-color: rgba(0, 242, 254, 0.4);
      color: #ffffff;
      box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    }

    .slip-method-badge {
      font-size: 0.65rem;
      padding: 0.1rem 0.45rem;
      border-radius: var(--radius-full);
      background: rgba(255, 183, 3, 0.2);
      border: 1px solid rgba(255, 183, 3, 0.5);
      color: var(--accent-gold);
      font-weight: 700;
      white-space: nowrap;
    }

    /* Mobile QR Sync Box */
    .mobile-sync-card {
      background: rgba(14, 21, 38, 0.75);
      border: 1px solid rgba(0, 242, 254, 0.22);
      border-radius: var(--radius-md);
      padding: 1.25rem 1.15rem;
      text-align: center;
      margin-bottom: 1.25rem;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
      animation: fadeIn 0.25s ease-out;
    }

    .mobile-sync-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.2rem 0.7rem;
      border-radius: var(--radius-full);
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.4);
      color: #34d399;
      font-size: 0.74rem;
      font-weight: 600;
      margin-bottom: 0.6rem;
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #34d399;
      box-shadow: 0 0 6px #34d399;
      animation: pulseGreen 1.6s infinite;
    }

    @keyframes pulseGreen {
      0% { transform: scale(0.9); opacity: 0.7; }
      50% { transform: scale(1.3); opacity: 1; }
      100% { transform: scale(0.9); opacity: 0.7; }
    }

    .mobile-sync-title {
      font-family: 'Kanit', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 0.35rem;
    }

    .mobile-sync-desc {
      font-size: 0.8rem;
      color: var(--text-dim);
      line-height: 1.45;
      margin-bottom: 0.95rem;
    }

    .mobile-sync-qr-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }

    .mobile-sync-qr-card {
      width: 195px;
      height: 195px;
      background: #ffffff;
      border-radius: 14px;
      padding: 8px;
      box-shadow: 0 0 25px rgba(0, 242, 254, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
      border: 2px solid rgba(0, 242, 254, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .mobile-sync-qr-card img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      border-radius: 6px;
    }

    .mobile-sync-qr-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      color: #0c1a30;
      font-size: 0.78rem;
      font-weight: 600;
    }

    .qr-spin-loader {
      width: 28px;
      height: 28px;
      border: 3px solid rgba(0, 242, 254, 0.3);
      border-top-color: #00f2fe;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .mobile-sync-status-indicator {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.82rem;
      color: var(--accent-cyan);
      font-weight: 600;
      background: rgba(0, 242, 254, 0.08);
      border: 1px solid rgba(0, 242, 254, 0.25);
      padding: 0.3rem 0.85rem;
      border-radius: var(--radius-full);
    }

    .sync-radar-icon {
      display: inline-block;
      animation: radarPulse 1.8s infinite;
    }

    @keyframes radarPulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.2); opacity: 0.7; }
      100% { transform: scale(1); opacity: 1; }
    }

    .mobile-sync-link-copy {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 0.35rem 0.6rem;
      max-width: 340px;
      width: 100%;
      font-size: 0.76rem;
      margin-top: 0.2rem;
    }

    .mobile-sync-link-copy .lbl {
      color: var(--text-dim);
      white-space: nowrap;
    }

    .mobile-sync-link-copy input {
      background: transparent;
      border: none;
      color: #cbd5e1;
      font-family: inherit;
      font-size: 0.75rem;
      outline: none;
      width: 100%;
      text-overflow: ellipsis;
      cursor: pointer;
    }

    .btn-copy-sync-url {
      background: rgba(0, 242, 254, 0.15);
      border: 1px solid rgba(0, 242, 254, 0.35);
      color: var(--accent-cyan);
      font-family: inherit;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.22rem 0.55rem;
      border-radius: 6px;
      cursor: pointer;
      white-space: nowrap;
      transition: var(--transition);
    }

    .btn-copy-sync-url:hover {
      background: var(--accent-cyan);
      color: #07090e;
    }

    .preview-badge-status {
      font-size: 0.8rem;
      font-weight: 700;
      color: #34d399;
      background: rgba(16, 185, 129, 0.15);
      border-bottom: 1px solid rgba(16, 185, 129, 0.3);
      padding: 0.4rem 0.8rem;
      text-align: center;
    }

    .dropzone-box {
      border: 2px dashed rgba(0, 242, 254, 0.35);
      border-radius: var(--radius-md);
      background: rgba(0, 242, 254, 0.02);
      padding: 1.85rem 1.25rem;
      text-align: center;
      cursor: pointer;
      position: relative;
      transition: var(--transition);
      margin-bottom: 1.35rem;
    }

    .dropzone-box:hover, .dropzone-box.dragover {
      border-color: var(--accent-cyan);
      background: rgba(0, 242, 254, 0.08);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 242, 254, 0.15);
    }

    .dropzone-icon {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
      display: block;
    }

    .dropzone-main-text {
      font-size: 0.95rem;
      color: #e2e8f0;
      margin-bottom: 0.25rem;
    }

    .dropzone-main-text b {
      color: var(--accent-cyan);
    }

    .dropzone-sub-text {
      font-size: 0.76rem;
      color: var(--text-dim);
    }

    #slip-file-input {
      display: none;
    }

    .preview-card {
      position: relative;
      margin-bottom: 1.35rem;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid rgba(0, 242, 254, 0.4);
      background: rgba(0, 0, 0, 0.4);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .preview-card img {
      width: 100%;
      max-height: 240px;
      object-fit: contain;
      display: block;
    }

    .btn-clear-slip {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(239, 68, 68, 0.9);
      color: white;
      border: none;
      border-radius: var(--radius-full);
      padding: 0.35rem 0.8rem;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      backdrop-filter: blur(8px);
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .btn-clear-slip:hover {
      background: var(--accent-red);
      transform: scale(1.05);
    }

    /* Recent Supporters History */
    .history-card-wrap {
      max-width: 540px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    .history-header-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 0.85rem;
    }

    .history-title {
      font-family: 'Kanit', sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .history-stats-pill {
      font-size: 0.8rem;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.04);
      padding: 0.2rem 0.6rem;
      border-radius: var(--radius-full);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .history-grid-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.65rem;
    }

    .supporter-item-card {
      background: rgba(18, 26, 45, 0.7);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-md);
      padding: 0.8rem 1.1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: var(--transition);
    }

    .supporter-item-card:hover {
      border-color: rgba(0, 242, 254, 0.25);
      transform: translateX(3px);
    }

    .supporter-left {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .supporter-name {
      font-weight: 700;
      color: #ffffff;
      font-size: 0.92rem;
    }

    .supporter-msg {
      font-size: 0.82rem;
      color: #94a3b8;
    }

    .supporter-right {
      text-align: right;
    }

    .supporter-amount {
      font-family: 'Outfit', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      color: var(--accent-cyan);
    }

    .supporter-time {
      font-size: 0.7rem;
      color: var(--text-dim);
    }

    /* Footer */
    .app-footer {
      max-width: 540px;
      margin: 2.25rem auto 1.5rem;
      padding: 0 1rem;
      text-align: center;
    }

    .footer-tools {
      display: flex;
      justify-content: center;
      gap: 0.75rem;
      margin-bottom: 0.85rem;
      flex-wrap: wrap;
    }

    .footer-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.09);
      color: var(--text-muted);
      padding: 0.4rem 0.9rem;
      border-radius: var(--radius-full);
      font-size: 0.8rem;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .footer-btn:hover {
      background: rgba(0, 242, 254, 0.1);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
    }

    .footer-copy {
      font-size: 0.76rem;
      color: var(--text-dim);
    }

    /* Floating Toast Notification */
    .toast-popup {
      position: fixed;
      top: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(-50px);
      background: rgba(15, 23, 42, 0.96);
      border: 1.5px solid var(--accent-cyan);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.35);
      color: #ffffff;
      padding: 10px 22px;
      border-radius: var(--radius-full);
      font-size: 0.92rem;
      font-weight: 600;
      z-index: 10000;
      opacity: 0;
      pointer-events: none;
      transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      backdrop-filter: blur(16px);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      white-space: nowrap;
    }

    .toast-popup.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* =========================================================================
       Wide 2-Column Donation & Live Payment Layout
       (Utilizes full screen width, eliminating narrow boxes & steps)
       ========================================================================= */
    .page-container.donate-wide-container {
      max-width: 1140px;
      margin: 1.5rem auto 3.5rem;
      padding: 0 1.25rem;
    }

    /* Top Branding Header Bar */
    .donate-header-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.25rem;
      padding: 0.95rem 1.5rem;
      background: rgba(13, 19, 34, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(0, 242, 254, 0.22);
      border-radius: var(--radius-md);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .brand-sub {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
    }

    .live-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.78rem;
      padding: 0.3rem 0.85rem;
      border-radius: var(--radius-full);
      background: rgba(16, 185, 129, 0.12);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.35);
      font-weight: 600;
    }

    /* 2-Column Split Grid Master Card */
    .master-card.donate-split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.25rem;
      padding: 2.25rem;
      align-items: start;
      background: var(--bg-card);
      background-image: var(--gradient-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card), var(--shadow-glow);
    }

    @media (max-width: 960px) {
      .master-card.donate-split-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem 1.25rem;
      }
      .donate-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
      }
    }

    .col-header {
      margin-bottom: 1.25rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .col-title {
      font-family: 'Kanit', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin-bottom: 0.25rem;
    }

    .col-subtitle {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .donate-col-left {
      display: flex;
      flex-direction: column;
    }

    .donate-col-right {
      display: flex;
      flex-direction: column;
      gap: 1.15rem;
      background: rgba(10, 15, 28, 0.65);
      border: 1px solid rgba(0, 242, 254, 0.22);
      border-radius: var(--radius-md);
      padding: 1.5rem;
      box-shadow: inset 0 0 35px rgba(0, 242, 254, 0.04);
    }

    .btn-mobile-scroll-cta {
      display: none;
    }

    @media (max-width: 960px) {
      .btn-mobile-scroll-cta {
        display: flex;
        margin-top: 1rem;
      }
    }

    /* Summary Bar */
    .payment-summary-bar {
      display: grid;
      grid-template-columns: 1fr 1.2fr 1fr;
      gap: 0.75rem;
      background: rgba(0, 242, 254, 0.05);
      border: 1px solid rgba(0, 242, 254, 0.2);
      border-radius: var(--radius-md);
      padding: 0.85rem 1rem;
      text-align: center;
    }

    .summary-col {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .summary-col.highlight-col {
      background: rgba(0, 242, 254, 0.1);
      border-radius: var(--radius-sm);
      padding: 0.25rem 0.5rem;
      border: 1px solid rgba(0, 242, 254, 0.3);
    }

    .sum-lbl {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .sum-val {
      font-weight: 700;
      color: #ffffff;
      font-size: 0.95rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sum-amount {
      font-family: 'Outfit', sans-serif;
      font-size: 1.3rem;
      color: var(--accent-cyan);
      font-weight: 800;
      letter-spacing: -0.01em;
    }

    .modal-media-badge-wrap {
      margin-top: -0.4rem;
      margin-bottom: 0.25rem;
      text-align: center;
    }

    /* QR Box Wrap */
    .qr-box-wrap {
      background: rgba(16, 23, 40, 0.65);
      border: 1px solid rgba(0, 242, 254, 0.25);
      border-radius: var(--radius-md);
      padding: 1.15rem 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      box-shadow: inset 0 0 25px rgba(0, 242, 254, 0.05);
    }

    .qr-lock-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.22rem 0.75rem;
      border-radius: var(--radius-full);
      background: rgba(0, 242, 254, 0.18);
      color: var(--accent-cyan);
      border: 1px solid rgba(0, 242, 254, 0.4);
      margin-bottom: 0.75rem;
    }

    .qr-action-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.55rem;
      width: 100%;
      margin-top: 0.85rem;
      margin-bottom: 0.75rem;
    }

    .qr-security-note {
      font-size: 0.74rem;
      color: var(--text-dim);
      line-height: 1.45;
      background: rgba(255, 255, 255, 0.02);
      border-radius: var(--radius-sm);
      padding: 0.5rem 0.65rem;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Slip Attachment Box */
    .slip-box-wrap {
      background: rgba(16, 23, 40, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-md);
      padding: 1.15rem 1rem;
      display: flex;
      flex-direction: column;
    }

    .slip-header-row {
      margin-bottom: 0.65rem;
    }

    .slip-header-title {
      font-family: 'Kanit', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .btn-submit-obs {
      margin-top: 0.75rem;
    }

    /* Status Modal */
    .status-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.82);
      backdrop-filter: blur(12px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
      opacity: 0;
      pointer-events: none;
      transition: var(--transition);
    }

    .status-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    .status-box {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 2rem;
      max-width: 420px;
      width: 100%;
      text-align: center;
      box-shadow: var(--shadow-card);
      animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalPop {
      from { transform: scale(0.92) translateY(10px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .status-icon-ring {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      margin: 0 auto 1.15rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.85rem;
    }

    .status-icon-ring.loading {
      background: rgba(0, 242, 254, 0.15);
      color: var(--accent-cyan);
      animation: spin 2s linear infinite;
    }

    .status-icon-ring.success {
      background: rgba(16, 185, 129, 0.18);
      color: var(--accent-green);
      box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    }

    .status-icon-ring.error {
      background: rgba(239, 68, 68, 0.18);
      color: var(--accent-red);
      box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    }

    @keyframes spin {
      100% { transform: rotate(360deg); }
    }

    .status-heading {
      font-family: 'Kanit', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 0.45rem;
    }

    .status-text {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 1.35rem;
    }

    .btn-modal-close {
      width: 100%;
      padding: 0.8rem;
      background: var(--gradient-cyber);
      color: #050b14;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      border: none;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: var(--transition);
    }

    .btn-modal-close:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
    }

    .step-content {
      animation: stepFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes stepFade {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Media Attachment Widget */
    .media-selection-box {
      background: rgba(14, 21, 38, 0.75);
      border: 1px solid var(--border-sub);
      border-radius: var(--radius-md);
      padding: 1.1rem 1.15rem;
      margin-top: 1.25rem;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .media-box-header {
      margin-bottom: 0.85rem;
    }

    .media-box-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }

    .media-box-title {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.94rem;
      font-weight: 700;
      color: #ffffff;
      font-family: 'Prompt', sans-serif;
    }

    .media-box-icon {
      font-size: 1.05rem;
      line-height: 1;
      flex-shrink: 0;
    }

    .media-optional-pill {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--accent-cyan);
      background: rgba(0, 242, 254, 0.1);
      border: 1px solid rgba(0, 242, 254, 0.28);
      padding: 0.15rem 0.55rem;
      border-radius: var(--radius-full);
      letter-spacing: 0.02em;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .media-box-desc {
      font-size: 0.78rem;
      color: var(--text-dim);
      margin-top: 0.3rem;
      line-height: 1.45;
    }

    .media-type-pills {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.55rem;
      margin: 0.85rem 0;
    }

    .media-type-btn {
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid var(--border-sub);
      border-radius: 12px;
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.84rem;
      font-weight: 600;
      padding: 0.55rem 0.85rem;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.45rem;
      min-height: 44px;
      width: 100%;
      position: relative;
    }

    /* 1st button (ข้อความเท่านั้น) & last button (วิดีโอ) span full width as primary choices */
    .media-type-btn:first-child,
    #pill-media-none,
    #pill-media-video {
      grid-column: 1 / -1;
    }

    .media-type-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-main);
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-1px);
    }

    .media-type-btn.active {
      background: linear-gradient(135deg, rgba(0, 242, 254, 0.16) 0%, rgba(79, 172, 254, 0.1) 100%);
      border-color: var(--accent-cyan);
      color: #ffffff;
      box-shadow: 0 0 16px rgba(0, 242, 254, 0.22), inset 0 0 10px rgba(0, 242, 254, 0.08);
    }

    .media-btn-left {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .media-btn-icon {
      font-size: 0.95rem;
      line-height: 1;
      flex-shrink: 0;
    }

    .media-btn-label {
      font-size: 0.84rem;
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    .media-min-badge {
      font-size: 0.68rem;
      padding: 0.12rem 0.48rem;
      border-radius: var(--radius-full);
      background: rgba(255, 183, 3, 0.18);
      border: 1px solid rgba(255, 183, 3, 0.45);
      color: var(--accent-gold);
      font-weight: 700;
      letter-spacing: 0.02em;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .media-type-btn.active .media-min-badge {
      background: rgba(255, 183, 3, 0.28);
      border-color: #ffd166;
      color: #ffffff;
      box-shadow: 0 0 8px rgba(255, 183, 3, 0.35);
    }

    .media-btn-badge {
      font-size: 0.68rem;
      padding: 0.12rem 0.45rem;
      border-radius: var(--radius-full);
      font-weight: 600;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .media-btn-badge.default-badge {
      background: rgba(148, 163, 184, 0.14);
      border: 1px solid rgba(148, 163, 184, 0.3);
      color: #94a3b8;
    }

    .media-type-btn.active .media-btn-badge.default-badge {
      background: rgba(0, 242, 254, 0.2);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
    }

    .media-btn-badge.free-badge {
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.4);
      color: #34d399;
    }

    .sound-preset-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.5rem;
    }

    .sound-chip {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-sub);
      border-radius: var(--radius-sm);
      padding: 0.5rem 0.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      transition: var(--transition);
      font-size: 0.84rem;
      font-weight: 500;
      color: var(--text-main);
    }

    .sound-chip:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    .sound-chip.active {
      background: rgba(0, 242, 254, 0.12);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
    }

    .btn-preview-sound {
      background: rgba(0, 242, 254, 0.15);
      border: 1px solid rgba(0, 242, 254, 0.3);
      color: var(--accent-cyan);
      border-radius: 4px;
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.78rem;
      transition: var(--transition);
    }

    .btn-preview-sound:hover {
      background: var(--accent-cyan);
      color: #07090e;
    }

    .record-box {
      background: rgba(0, 0, 0, 0.3);
      border: 1px dashed var(--border-sub);
      border-radius: var(--radius-sm);
      padding: 1rem;
      text-align: center;
    }

    .btn-record {
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.4);
      color: #f87171;
      border-radius: var(--radius-full);
      font-family: inherit;
      font-size: 0.88rem;
      font-weight: 600;
      padding: 0.55rem 1.25rem;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }

    .btn-record:hover {
      background: rgba(239, 68, 68, 0.25);
      border-color: #ef4444;
    }

    .btn-record.recording {
      background: #ef4444;
      color: #fff;
      animation: pulse-red 1s infinite alternate;
    }

    @keyframes pulse-red {
      from { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
      to { box-shadow: 0 0 25px rgba(239, 68, 68, 0.9); }
    }

    .file-pick-box {
      background: rgba(0, 0, 0, 0.3);
      border: 1px dashed var(--border-sub);
      border-radius: var(--radius-sm);
      padding: 0.9rem 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.85rem;
      cursor: pointer;
      transition: var(--transition);
    }

    .file-pick-box:hover {
      border-color: var(--accent-cyan);
      background: rgba(0, 242, 254, 0.04);
    }

    .video-presets-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.5rem;
      margin-bottom: 0.65rem;
    }

    .vid-chip {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-sub);
      border-radius: var(--radius-sm);
      padding: 0.5rem 0.65rem;
      text-align: center;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      color: var(--text-main);
    }

    .vid-chip:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    .vid-chip.active {
      background: rgba(0, 242, 254, 0.12);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
    }

    .media-preview-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8rem;
      padding: 0.25rem 0.75rem;
      border-radius: var(--radius-full);
      background: rgba(0, 242, 254, 0.15);
      border: 1px solid rgba(0, 242, 254, 0.35);
      color: var(--accent-cyan);
      font-weight: 600;
      margin-top: 0.5rem;
    }

    /* =========================================================================
       Top Donors Leaderboard Styles (Donor Page)
       ========================================================================= */
    .leaderboard-tabs-nav {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.95rem;
      background: rgba(14, 21, 38, 0.7);
      padding: 0.35rem;
      border-radius: var(--radius-md);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .lb-tab-btn {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.88rem;
      font-weight: 700;
      padding: 0.65rem 0.85rem;
      border-radius: var(--radius-sm);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      transition: var(--transition);
      user-select: none;
    }

    .lb-tab-btn:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.05);
    }

    .lb-tab-btn.active {
      background: var(--gradient-cyber);
      color: #050b14;
      box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
    }

    .lb-subfilter-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.85rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .period-pills {
      display: flex;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-full);
      padding: 0.2rem;
      gap: 0.2rem;
    }

    .period-pill {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.76rem;
      font-weight: 600;
      padding: 0.3rem 0.75rem;
      border-radius: var(--radius-full);
      cursor: pointer;
      transition: var(--transition);
    }

    .period-pill:hover {
      color: var(--text-main);
    }

    .period-pill.active {
      background: rgba(0, 242, 254, 0.2);
      color: var(--accent-cyan);
      border: 1px solid rgba(0, 242, 254, 0.4);
    }

    .top-donors-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.65rem;
    }

    .top-donor-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(18, 26, 45, 0.7);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-md);
      padding: 0.85rem 1.15rem;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
    }

    .top-donor-item:hover {
      transform: translateY(-2px);
      border-color: rgba(0, 242, 254, 0.35);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }

    .top-donor-item.rank-1 {
      background: linear-gradient(135deg, rgba(255, 183, 3, 0.16), rgba(18, 26, 45, 0.95));
      border: 1.5px solid rgba(255, 183, 3, 0.55);
      box-shadow: 0 0 25px rgba(255, 183, 3, 0.2);
    }

    .top-donor-item.rank-2 {
      background: linear-gradient(135deg, rgba(203, 213, 225, 0.12), rgba(18, 26, 45, 0.95));
      border: 1.5px solid rgba(203, 213, 225, 0.45);
    }

    .top-donor-item.rank-3 {
      background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(18, 26, 45, 0.95));
      border: 1.5px solid rgba(251, 146, 60, 0.45);
    }

    .top-donor-left {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      min-width: 0;
    }

    .rank-medal-box {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.15rem;
      flex-shrink: 0;
    }

    .rank-1 .rank-medal-box {
      background: linear-gradient(135deg, #ffb703, #fb8500);
      color: #050b14;
      box-shadow: 0 0 15px rgba(255, 183, 3, 0.7);
    }

    .rank-2 .rank-medal-box {
      background: linear-gradient(135deg, #e2e8f0, #94a3b8);
      color: #050b14;
      box-shadow: 0 0 12px rgba(226, 232, 240, 0.4);
    }

    .rank-3 .rank-medal-box {
      background: linear-gradient(135deg, #fdba74, #ea580c);
      color: #fff;
      box-shadow: 0 0 12px rgba(234, 88, 12, 0.4);
    }

    .rank-other .rank-medal-box {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .top-donor-info {
      min-width: 0;
    }

    .top-donor-title-row {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .top-donor-name {
      font-family: 'Kanit', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: #ffffff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .champion-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      font-size: 0.7rem;
      font-weight: 800;
      padding: 0.15rem 0.5rem;
      border-radius: var(--radius-full);
      background: rgba(255, 183, 3, 0.2);
      border: 1px solid rgba(255, 183, 3, 0.5);
      color: var(--accent-gold);
      letter-spacing: 0.04em;
    }

    .top-donor-subtext {
      font-size: 0.76rem;
      color: var(--text-dim);
    }

    .top-donor-right {
      text-align: right;
      flex-shrink: 0;
    }

    .top-donor-amount {
      font-family: 'Outfit', sans-serif;
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--accent-green);
      letter-spacing: -0.01em;
    }

    .rank-1 .top-donor-amount {
      color: var(--accent-gold);
      font-size: 1.25rem;
      text-shadow: 0 0 14px rgba(255, 183, 3, 0.4);
    }

    .top-donor-count {
      font-size: 0.74rem;
      color: var(--text-muted);
    }

    /* =============================================================================
       MOBILE RESPONSIVE ENHANCEMENTS (Smartphones & Tablets: 320px - 768px)
       ============================================================================= */

    /* Universal Mobile Touch Improvements */
    button, input, select, textarea, .step-pill, .chip-btn, .media-type-btn, .sound-chip, .copy-num-card, .btn-pill-action, .dropzone-box {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    /* Prevent iOS Safari auto-zoom on input focus */
    @media screen and (max-width: 768px) {
      .custom-input,
      input[type="text"],
      input[type="number"],
      textarea {
        font-size: 16px !important; /* 16px prevents iOS Safari zoom */
      }
    }

    /* Tablet & Mobile Screens (<= 768px) */
    @media (max-width: 768px) {
      .page-container {
        max-width: 100%;
        margin: 1.25rem auto 2.5rem;
        padding: 0 0.85rem;
      }

      .master-card {
        padding: 1.6rem 1.35rem;
      }

      .section-title {
        font-size: 1.25rem;
      }

      .section-subtitle {
        font-size: 0.82rem;
      }
    }

    /* Smartphone Screens (<= 480px) */
    @media (max-width: 480px) {
      body {
        padding-bottom: env(safe-area-inset-bottom, 20px);
      }

      .page-container {
        margin: 0.75rem auto 2rem;
        padding: 0 0.55rem;
      }

      .master-card {
        padding: 1.25rem 0.95rem;
        border-radius: 18px;
      }

      /* Stepper Nav */
      .stepper-nav {
        margin-bottom: 1.25rem;
      }

      .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
      }

      .step-text {
        font-size: 0.7rem;
        letter-spacing: -0.01em;
      }

      .step-track {
        margin: 0 4px;
        top: 16px;
      }

      /* Preset Chips (20, 50, 100, 300, 500, 1000) */
      .preset-chips {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
      }

      .chip-btn {
        padding: 0.65rem 0.2rem;
        font-size: 0.92rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      /* Media Attachment Area */
      .media-selection-box {
        padding: 0.85rem;
        border-radius: 12px;
      }

      .media-box-title {
        font-size: 0.88rem;
      }

      .media-type-pills {
        gap: 0.4rem;
      }

      .media-type-btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
        min-height: 42px;
        border-radius: 10px;
      }

      .media-btn-label {
        font-size: 0.78rem;
      }

      .media-min-badge, .media-btn-badge {
        font-size: 0.64rem;
        padding: 0.1rem 0.4rem;
      }

      /* Preset Sound Chips */
      .sound-preset-grid {
        grid-template-columns: 1fr;
        gap: 0.45rem;
      }

      .sound-chip {
        padding: 0.65rem 0.8rem;
        min-height: 44px;
        font-size: 0.86rem;
      }

      .btn-preview-sound {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 6px;
      }

      /* Video Meme Presets */
      .video-presets-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
      }

      .vid-chip {
        padding: 0.65rem 0.3rem;
        font-size: 0.74rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      /* File Pick Boxes */
      .file-pick-box {
        padding: 0.85rem;
      }

      /* Step 2: Payment Screen on Mobile */
      .locked-amount-box {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
      }

      .big-amount-text {
        font-size: clamp(2rem, 9vw, 2.5rem);
      }

      .lock-hint-text {
        font-size: 0.78rem;
        line-height: 1.4;
      }

      .qr-center-wrap {
        margin: 0.75rem 0 1.15rem;
      }

      .qr-card-glow {
        width: min(210px, 64vw);
        height: min(210px, 64vw);
        padding: 8px;
        border-radius: 14px;
      }

      .recipient-info-card {
        padding: 0.65rem 0.85rem;
        margin-bottom: 1rem;
      }

      .recipient-item {
        font-size: 0.85rem;
      }

      .recipient-item .val.highlight {
        font-size: 0.98rem;
      }

      /* Big Copy Number Card */
      .copy-num-card {
        padding: 0.85rem 0.95rem;
        min-height: 56px;
      }

      .copy-num-digits {
        font-size: 1.05rem;
      }

      .copy-badge-pill {
        padding: 0.35rem 0.65rem;
        font-size: 0.76rem;
      }

      .action-duo-buttons {
        gap: 0.45rem;
      }

      .btn-pill-action {
        padding: 0.7rem 0.5rem;
        font-size: 0.78rem;
        min-height: 44px;
      }

      /* Step 3: Slip Upload on Mobile */
      .summary-bar {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.75rem;
        text-align: center;
        font-size: 0.85rem;
      }

      .slip-methods-tabs {
        margin-bottom: 0.85rem;
      }

      .slip-tab-btn {
        padding: 0.55rem 0.35rem;
        font-size: 0.76rem;
      }

      .mobile-sync-card {
        padding: 1rem 0.75rem;
      }

      .mobile-sync-qr-card {
        width: 170px;
        height: 170px;
      }

      .mobile-sync-title {
        font-size: 0.95rem;
      }

      .mobile-sync-desc {
        font-size: 0.76rem;
      }

      .dropzone-box {
        padding: 1.5rem 0.85rem;
        margin-bottom: 1.15rem;
      }

      .dropzone-icon {
        font-size: 2.2rem;
      }

      .dropzone-main-text {
        font-size: 0.88rem;
      }

      .dropzone-sub-text {
        font-size: 0.72rem;
      }

      /* Big Action CTA Buttons */
      .btn-cta {
        padding: 0.9rem 1rem;
        font-size: 1.02rem;
        min-height: 50px;
        border-radius: 12px;
      }

      .btn-secondary-link {
        padding: 0.7rem;
        font-size: 0.85rem;
        min-height: 44px;
      }

      /* Status Modal Popup */
      .status-overlay {
        padding: 1rem;
      }

      .status-box {
        width: 100%;
        max-width: 360px;
        padding: 1.5rem 1.15rem;
        border-radius: 16px;
      }

      .status-heading {
        font-size: 1.15rem;
      }

      .status-text {
        font-size: 0.82rem;
        margin-bottom: 1.15rem;
      }

      /* Toast Notification */
      .toast-popup {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: calc(100% - 1.5rem);
        max-width: 360px;
        font-size: 0.84rem;
        padding: 0.75rem 1rem;
        text-align: center;
      }
      .toast-popup.show {
        transform: translateX(-50%) translateY(0);
      }
    }

    /* Extra Small Phones (<= 360px, e.g. iPhone SE 1st gen, Galaxy A series compact) */
    @media (max-width: 360px) {
      .master-card {
        padding: 1rem 0.75rem;
      }

      .big-amount-text {
        font-size: 1.85rem;
      }

      .qr-card-glow {
        width: 180px;
        height: 180px;
      }

      .action-duo-buttons {
        grid-template-columns: 1fr;
      }

      .media-type-pills {
        grid-template-columns: 1fr;
      }

      .media-type-btn:first-child {
        grid-column: span 1;
      }
    }