/* ================================================
   STRUK TRANSFER PREMIUM - MAIN STYLESHEET
   ================================================ */

/* ==================== RESET & VARIABLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #d946ef;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --gray-bg: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.swal2-container {
    z-index: 20000 !important;
}

/* ==================== SPLASH SCREEN PREMIUM ==================== */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Perpanjang durasi: muncul 3.5 detik, fade out 1 detik */
    animation: fadeOut 1s ease-in-out 3.5s forwards;
}

.splash-content {
    text-align: center;
    animation: floatUp 0.8s ease-out;
}

/* Animasi Logo - lebih panjang */
.splash-logo {
    animation: logoScale 0.8s ease-out 0.2s both, logoGlow 1.8s ease-in-out 0.8s infinite;
}

.splash-logo img {
    width: 100px;
    height: auto;
    
}

/* Animasi Teks */
.splash-title {
    margin-top: 20px;
    animation: textSlideUp 0.8s ease-out 0.5s both;
}

.splash-title .logo-struk,
.splash-title .logo-max {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.splash-title .logo-struk {
    color: #7c3aed;
    font-style: italic;
}

.splash-title .logo-max {
    color: #d946ef;
    font-style: italic;
}

.splash-sub {
    font-size: 12px;
    color: #737373;
    margin-top: 8px;
    letter-spacing: 1px;
    animation: textFadeIn 0.8s ease-out 0.8s both;
}

/* Loading dots */
.splash-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    animation: dotsFadeIn 0.6s ease-out 1.2s both;
}

.splash-dots span {
    width: 8px;
    height: 8px;
    background: #737373;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.splash-dots span:nth-child(1) { animation-delay: 0s; }
.splash-dots span:nth-child(2) { animation-delay: 0.3s; }
.splash-dots span:nth-child(3) { animation-delay: 0.6s; }

/* ========== KEYFRAMES ========== */
@keyframes fadeOut {
    0% { 
        opacity: 1; 
        visibility: visible; 
    }
    70% { 
        opacity: 1; 
    }
    100% { 
        opacity: 0; 
        visibility: hidden; 
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoScale {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-15deg);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        letter-spacing: 8px;
    }
    100% {
        opacity: 1;
        letter-spacing: 1px;
    }
}

@keyframes dotsFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 40px 30px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-logo {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.login-logo i { font-size: 35px; color: white; }
.login-title { text-align: center; font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.login-subtitle { text-align: center; color: var(--gray); font-size: 13px; margin-bottom: 30px; }
.demo-info { text-align: center; font-size: 11px; color: var(--gray-light); margin-top: 20px; }

/* ==================== MAIN APP LAYOUT ==================== */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 110px !important;  /* Tambah padding top untuk header fixed */
    padding-bottom: 80px;
    min-height: 100vh;
}

/* ==================== HEADER & WELCOME ==================== */
.app-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: var(--white) !important;
    border-radius: 0 0 24px 24px !important;
    padding: 50px 20px 16px 20px !important;
    margin: 0 auto !important;
    margin-bottom: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    max-width: 500px !important;  /* Batasi lebar maksimal */
    width: calc(100% - 32px) !important; /* Kurangi 32px (16px kiri + 16px kanan) */
}

.app-title h1 { font-size: 18px; font-weight: 800; color: var(--dark); }
.app-title p { font-size: 10px; color: var(--gray); margin-top: 2px; }

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-avatar i { font-size: 18px; color: white; }

.welcome-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.welcome-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.welcome-text p { font-size: 12px; opacity: 0.9; }
.welcome-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-icon i { font-size: 26px; }

/* ==================== STATS GRID (2 CARDS) ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* ----- CARD KIRI: SUBSCRIPTION CARD ----- */
.subscription-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 18px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subscription-status { text-align: center; margin-bottom: 8px; }

.status-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.status-info {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.95;
}

.subscription-device {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 8px 0;
  text-align: center;
}

.subscription-device i { font-size: 20px; margin-bottom: 6px; display: block; }
.subscription-device span { font-size: 11px; opacity: 0.8; letter-spacing: 0.5px; display: block; }
.subscription-device small {
  font-size: 11px;
  font-family: monospace;
  word-break: break-all;
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

.btn-copy-device {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 10px;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-copy-device:hover { background: rgba(255, 255, 255, 0.3); }
.btn-copy-device i { font-size: 13px; }

/* ----- CARD KANAN: INFO CARD ----- */
.info-card {
  background: var(--white);
  padding: 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.info-header i { font-size: 14px; color: var(--primary); }
.info-header span { font-size: 12px; font-weight: 700; color: var(--dark); }

.info-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 12px;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gray);
  font-weight: 500;
}

.info-label i { font-size: 11px; color: var(--primary); }
.info-value { font-size: 13px; font-weight: 700; color: var(--dark); }

.info-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* Tombol Berlangganan */
.btn-subscribe {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  padding: 12px;
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Tombol Bantuan WhatsApp */
.btn-help {
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  padding: 12px;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-help:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ==================== UPLOAD CARDS (4 BUTTONS - 2x2 GRID) ==================== */
.upload-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

/* Card style */
.upload-card {
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
}

/* Card 1 & 2 (Kiri) - Warna UNGU (Manual + Transfer) */
.upload-card:nth-child(1),
.upload-card:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card 3 & 4 (Kanan) - Warna PINK (Token PLN + Tagihan) */
.upload-card:nth-child(3),
.upload-card:nth-child(4) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}



.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.upload-card:active {
    transform: translateY(0);
}

.upload-icon i {
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upload-title {
    font-weight: 700;
    font-size: 12px;
    color: white;
    margin-bottom: 4px;
}

.upload-desc {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive tetap 2 kolom */
@media (max-width: 480px) {
    .upload-cards {
        gap: 10px;
    }
    
    .upload-card {
        padding: 12px 8px;
    }
    
    .upload-icon i {
        font-size: 24px;
    }
    
    .upload-title {
        font-size: 11px;
    }
    
    .upload-desc {
        font-size: 8px;
    }
}

/* ==================== RIWAYAT SECTION ==================== */
.riwayat-header { margin-bottom: 16px; }
.riwayat-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.riwayat-title i { color: var(--primary); }

.filter-date {
  background: var(--white);
  border-radius: 20px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-date .date-input {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

.filter-date .date-input i { color: var(--gray); font-size: 12px; }
.filter-date input {
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  min-width: 100px;
}

.filter-date input:focus { outline: none; }
.filter-date .separator { color: var(--gray); font-size: 14px; font-weight: 500; }
.filter-actions { display: flex; gap: 6px; }

.filter-btn, .filter-reset {
  background: var(--primary);
  border: none;
  padding: 8px 12px;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  width: 40px;
  height: 36px;
}

.filter-reset { background: var(--gray); }
.filter-btn i, .filter-reset i { font-size: 14px; margin: 0; }

.riwayat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.riwayat-item {
  background: var(--white);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.riwayat-item:hover { transform: translateX(4px); background: #f8fafc; }
.riwayat-info { flex: 1; }
.riwayat-info .nama { font-weight: 700; font-size: 13px; color: var(--dark); }
.riwayat-info .detail { font-size: 10px; color: var(--gray); margin-top: 2px; }
.riwayat-nominal { font-weight: 700; font-size: 13px; color: var(--primary); }
.riwayat-date { font-size: 9px; color: var(--gray-light); margin-top: 2px; }

.lihat-semua-container {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 20px;
}

.lihat-semua-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.loading-riwayat {
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

/* ==================== HISTORY PAGE ==================== */
.back-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  margin-left: auto;
}

.filter-date-full {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 20px;
}

.filter-group { flex: 1; min-width: 120px; }
.filter-group label { font-size: 11px; color: var(--gray); display: block; margin-bottom: 4px; }
.filter-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
}

.btn-filter, .btn-reset {
  padding: 0 16px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.btn-filter { background: var(--primary); color: white; }
.btn-reset { background: #e2e8f0; color: var(--gray); }

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.history-table th {
  text-align: left;
  padding: 10px 8px;
  background: #f1f5f9;
  color: var(--dark);
  font-weight: 600;
}

.history-table td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Item navigasi biasa */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  border-radius: 30px;
  position: relative;
}

.nav-item i {
  font-size: 20px;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.nav-center {
  position: relative;
  top: -18px;
  flex: 0 0 auto;
  background: transparent;
  padding: 0;
}

.nav-center-wrapper {
  position: relative;
}

/* Lingkaran luar (ring) dengan efek glow */
.nav-center-ring {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Lingkaran dalam (putih) */
.nav-center-icon {
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-center-icon i {
  font-size: 26px;
  color: #7c3aed;
  transition: all 0.3s ease;
}

/* Hover & Active effects */
.nav-center-ring:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.nav-center.active .nav-center-ring {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.6);
}

.nav-center.active .nav-center-icon i {
  transform: scale(1.1);
  color: #d946ef;
}

.nav-center .nav-label {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-center.active .nav-label,
.nav-center:hover .nav-label {
  opacity: 1;
  color: #7c3aed;
}

/* Efek ripple saat diklik (opsional) */
.nav-center-ring:active {
  transform: scale(0.98);
}

.nav-center span {
  color: var(--dark);
  font-weight: 600;
  margin-top: 4px;
}

.nav-center.active .nav-center-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.nav-item.active {
  color: #7c3aed;
}

.nav-item.active .nav-icon {
  background: rgba(124, 58, 237, 0.1);
}

.nav-item.active .nav-icon i {
  color: #7c3aed;
  transform: translateY(-2px);
}

.nav-item.active .nav-label {
  color: #7c3aed;
  font-weight: 600;
}

.nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-icon i {
  font-size: 20px;
  transition: all 0.2s ease;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* ==================== BUTTON PRIMARY ==================== */
.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* ================================================================
   TOMBOL BANTUAN WHATSAPP DI HALAMAN LOGIN
   Ukuran sama dengan tombol Masuk, hanya beda warna
   ================================================================ */
.btn-primary.btn-wa-login {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    margin-top: 12px;
}

.btn-primary.btn-wa-login:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-primary.btn-wa-login i {
    font-size: 16px;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--white);
  border-radius: 32px;
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.modal-body { padding: 20px; }
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.modal-btn.cancel { background: #e2e8f0; color: var(--gray); }
.modal-btn.save { background: var(--primary); color: white; }

/* ==================== FORM ELEMENTS ==================== */
.input-group {
  margin-bottom: 14px;
  position: relative;
}

.input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 16px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 14px;
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.total-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.total-box span:first-child { color: rgba(255, 255, 255, 0.8); font-size: 13px; }
.total-box span:last-child { color: white; font-size: 20px; font-weight: 800; }

.form-divider {
  border-top: 1px solid #e2e8f0;
  margin: 16px 0;
}

/* ==================== REKENING LIST ==================== */
.rekening-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-delete {
  background: var(--danger);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
}

/* ==================== BLUETOOTH PAGE ==================== */
.bluetooth-status-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.status-label {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.status-value {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.device-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 12px 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
}

.scan-btn {
  background: #7c3aed;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scan-btn:active { transform: scale(0.98); }

.device-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.device-item:hover { background: #f1f5f9; transform: translateX(4px); }
.device-item.loading {
  justify-content: center;
  color: #94a3b8;
  cursor: default;
}

.device-icon {
  width: 44px;
  height: 44px;
  background: #eef2ff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-icon i { font-size: 22px; color: #7c3aed; }
.device-info { flex: 1; }
.device-name { font-weight: 600; font-size: 14px; color: #1e293b; }
.device-address {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  font-family: monospace;
}

.device-status { font-size: 11px; color: #10b981; }

.bluetooth-info {
  background: #fef3c7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bluetooth-info i { font-size: 14px; }

/* ==================== LOADING SPINNERS ==================== */
.loading-spinner-small {
  width: 30px;
  height: 30px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner-generate {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spinGenerate 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spinGenerate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 0.6s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* ==================== SKELETON LOADING ==================== */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==================== PROFILE PAGE ==================== */
.profile-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.role-badge i {
  margin-right: 4px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-menu-item:hover { background: #f1f5f9; transform: translateX(4px); }
.profile-menu-item .menu-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-menu-item .menu-icon i { font-size: 20px; }
.profile-menu-item .menu-info { flex: 1; }
.profile-menu-item .menu-title { font-weight: 600; font-size: 14px; color: var(--dark); }
.profile-menu-item .menu-desc { font-size: 11px; color: var(--gray); margin-top: 2px; }
.profile-menu-item .menu-arrow { color: var(--gray-light); }

.profile-status-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.profile-status-badge.premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.profile-status-badge.free {
  background: #e2e8f0;
  color: #64748b;
}

.profile-status-badge i { font-size: 12px; }

/* ==================== BANK INFO ==================== */
.bank-info-text {
  font-size: 10px;
  color: var(--gray-light);
  margin-top: 2px;
}

.bank-info-text i {
  font-size: 9px;
  margin-right: 4px;
  color: var(--primary);
}

.bank-info {
  font-size: 10px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================== TEMPLATE BUTTONS ==================== */
.template-btn {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.template-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.template-btn:hover:not(.active) { background: #f1f5f9; }

/* ==================== SUBSCRIPTION PAGE PREMIUM ==================== */
.subscription-page { padding-bottom: 20px; }

.subscription-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  color: white;
}

.subscription-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.subscription-header p { font-size: 12px; opacity: 0.9; }

.promo-section {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #f59e0b;
}

.promo-section .promo-text {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-section .promo-btn {
  background: #f59e0b;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.promo-section .promo-btn:hover { background: #d97706; transform: scale(1.02); }

.package-section { margin-bottom: 24px; }
.package-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  padding-left: 4px;
}

.package-grid {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Tambah gap agar badge tidak ketutupan card di atasnya */
  padding-top: 8px; /* Tambah padding top */
}

/* Package Card Premium dengan Diskon */
.package-card {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible; /* Penting: agar badge tidak terpotong */
}

.package-card:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

/* Badge Diskon */
.package-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.package-badge.best {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Package Info */
.package-info {
  flex: 1;
  padding-right: 12px;
}

.package-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.package-info p {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 8px;
}

/* Harga dengan coret */
.package-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.package-price-original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.package-price-discount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.package-price-discount::before {
  content: 'Rp ';
  font-size: 16px;
  font-weight: 800;
}

/* Hemat badge */
.package-save {
  font-size: 10px;
  color: #10b981;
  font-weight: 600;
  margin-top: 6px;
  background: #d1fae5;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Select icon */
.package-select {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.package-card:hover .package-select {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.package-card:hover .package-select i {
  color: white;
}

.package-select i {
  font-size: 14px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

/* Best Seller Card */
.package-card.best-seller {
  border: 2px solid #f59e0b;
  position: relative;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  overflow: visible; /* Tambahkan ini agar badge tidak terpotong */
}

.package-card.best-seller::before {
  content: '⭐ TERLARIS';
  position: absolute;
  top: -12px;
  left: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.subscription-footer {
  text-align: center;
  padding: 16px 20px;
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}

.subscription-footer i { font-size: 12px; color: #10b981; }

/* Responsive Mobile */
@media (max-width: 480px) {
  .subscription-header { padding: 20px 16px; }
  .subscription-header h2 { font-size: 18px; }
  .subscription-header p { font-size: 11px; }
  
  .promo-section { padding: 12px; }
  .promo-section .promo-text { font-size: 12px; }
  .promo-section .promo-btn { padding: 6px 16px; font-size: 12px; }
  
  .package-card { padding: 14px; }
  .package-info h4 { font-size: 14px; }
  .package-info p { font-size: 10px; }
  
  .package-price-discount { font-size: 16px; }
  .package-price-original { font-size: 11px; }
  
  .package-save { font-size: 9px; }
  .package-badge {
    font-size: 9px;
    padding: 3px 8px;
    top: 8px;
    right: 8px;
  }
  
  .package-grid {
    gap: 20px;
  }  
  
  .package-card.best-seller::before {
    font-size: 8px;
    padding: 3px 10px;
    top: -10px;
    left: 12px;
  }
  
  .bottom-nav {
    padding: 6px 12px;
    padding-bottom: env(safe-area-inset-bottom, 6px);
  }

  .nav-item {
    padding: 6px 8px;
  }
  .nav-item i {
    font-size: 18px;
  }
  .nav-center-icon {
    width: 48px;
    height: 48px;
  }
  .nav-center-icon i {
    font-size: 22px;
  }
  .nav-icon {
    width: 36px;
    height: 36px;
  }
  
  .nav-icon i {
    font-size: 18px;
  }
  
  .nav-label {
    font-size: 9px;
  }
  .nav-center-ring {
    width: 56px;
    height: 56px;
  }
  
  .nav-center-icon {
    width: 46px;
    height: 46px;
  }
  
  .nav-center-icon i {
    font-size: 22px;
  }
  
  .nav-center {
    top: -16px;
  }
}

/* ==================== THERMAL PRINTER 58MM (STRUK PREVIEW & PRINT) ==================== */
/* Untuk modal preview struk agar sesuai lebar thermal printer */
#strukModal .modal-content {
  max-width: 320px;
  width: 90%;
}

#strukModalContent {
  max-width: 280px;
  margin: 0 auto;
}

#strukModalContent > div {
  max-width: 280px !important;
  margin: 0 auto !important;
  font-size: 7px !important;
  line-height: 1.2;
}

/* Untuk cetak ke thermal printer 58mm */
@media print {
  @page {
    size: 58mm auto;
    margin: 0;
  }
  
  body {
    margin: 0;
    padding: 0;
    background: white;
  }
  
  .struk-print {
    width: 58mm !important;
    max-width: 58mm !important;
    padding: 2px 2px !important;
    margin: 0 auto;
    font-size: 7px !important;
    line-height: 1.2;
    font-family: 'Courier New', monospace;
  }
  
  /* Sembunyikan elemen yang tidak perlu saat print */
  .app-header, .bottom-nav, .bluetooth-card, 
  .upload-cards, .stats-grid, .riwayat-header, 
  .lihat-semua-container, .modal-footer, 
  .template-btn, .modal-header .modal-close {
    display: none !important;
  }
  
  .modal-content {
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: 58mm;
  }
  
  .modal {
    position: relative;
    background: white;
    padding: 0;
    margin: 0;
  }
  
  .modal-body {
    padding: 0;
    margin: 0;
  }
}

/* ==================== RESPONSIVE MOBILE (max-width: 600px) ==================== */
@media (max-width: 600px) {
  .app-container { padding: 12px; padding-bottom: 75px; }
  .stats-grid { gap: 12px; }
  .subscription-card { padding: 16px !important; }
  .info-card { padding: 12px !important; }
  
  /* Status badge mobile */
  .status-badge {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }
  
  .status-info { font-size: 10px; }
  .subscription-device small { font-size: 8px; }
  
  /* Info item mobile */
  .info-item { padding: 6px 10px; }
  .info-value { font-size: 11px; }
  .info-label { font-size: 9px; }
  
  /* Tombol mobile - ukuran sama dengan btn-copy-device */
  .btn-subscribe, 
  .btn-help {
    padding: 10px !important;
    font-size: 12px !important;
    min-height: auto !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
  }
  
  .btn-subscribe i,
  .btn-help i {
    font-size: 13px !important;
    font-weight: 900 !important;
  }
  
  /* Upload cards mobile */
  .upload-icon i { font-size: 22px; }
  .upload-title { font-size: 10px; }
  .upload-desc { font-size: 8px; }
  
  /* Modal mobile */
  .modal-content { width: 95%; }
  
  /* Filter date mobile */
  .filter-date {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .filter-date .date-input { min-width: 130px; }
  .logo-struk, .logo-max,
  .splash-title, .login-title, .app-title h1 {
    font-style: italic !important;
  }
}

/* ==================== RESPONSIVE SUBSCRIPTION MOBILE (max-width: 480px) ==================== */
@media (max-width: 480px) {
  .subscription-header {
    padding: 20px 16px;
  }
  
  .subscription-header h2 { font-size: 18px; }
  .subscription-header p { font-size: 11px; }
  
  .promo-section { padding: 12px; }
  .promo-section .promo-text { font-size: 12px; }
  .promo-section .promo-btn { padding: 6px 16px; font-size: 12px; }
  
  .package-card { padding: 14px; }
  .package-info h4 { font-size: 14px; }
  .package-info p { font-size: 10px; }
  .package-price { font-size: 16px; }
  
  .package-card.best-seller::before {
    font-size: 8px;
    padding: 2px 8px;
    top: -8px;
    right: 12px;
  }
}

/* ==================== LOGO STRUKMAX ==================== */
.logo-struk {
  color: #7c3aed;
  font-weight: 800;
}

.logo-max {
  color: #d946ef;
  font-weight: 800;
}

.logo-white .logo-struk,
.logo-white .logo-max {
  color: white;
}

/* ==================== LOGO STRUKMAX ITALIC ==================== */
.logo-strukmax, 
.strukmax-text,
[class*="StrukMax"],
[class*="strukmax"] {
  font-style: italic !important;
}

/* Khusus untuk span yang menampilkan StrukMax */
.strukmax-italic {
  font-style: italic !important;
}

/* Untuk judul dan teks yang mengandung StrukMax */
.splash-title, 
.login-title, 
.app-title h1,
.subscription-header h2,
.swal2-title {
  font-style: italic;
}

/* Tapi pertahankan warna masing-masing */
.logo-struk {
  color: #7c3aed;
  font-weight: 800;
  font-style: italic;
}

.logo-max {
  color: #d946ef;
  font-weight: 800;
  font-style: italic;
}

/* ==================== HALAMAN PRINTER PREMIUM (VERSI TERANG) ==================== */

/* Container utama halaman printer */
.printer-container {
  padding: 4px 0;
}

/* Card status printer - VERSI TERANG */
.printer-status-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 28px;
  padding: 24px 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hapus efek lingkaran gelap yang mengganggu */
.printer-status-card::before,
.printer-status-card::after {
  display: none;
}

.printer-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.printer-status-header h3 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.printer-icon-animate {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseBlue 2s infinite;
}

.printer-icon-animate i {
  font-size: 20px;
  color: white;
}

@keyframes pulseBlue {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Status indicator */
.printer-status-main {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.printer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.printer-status-badge i {
  font-size: 8px;
}

.printer-status-badge span {
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.printer-status-device {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.printer-status-device i {
  font-size: 28px;
  color: white;
}

.printer-status-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.printer-status-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Tombol koneksi */
.btn-connect-premium {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 14px 20px;
  border-radius: 40px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.btn-connect-premium:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-connect-premium:active {
  transform: translateY(0);
}

.btn-connect-premium.connected {
  background: rgba(16, 185, 129, 0.8);
}

/* Section header */
.section-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 0 4px;
}

.section-title-premium {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-premium i {
  color: var(--primary);
  font-size: 14px;
}

.section-badge {
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray);
}

/* List device */
.device-list-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.device-item-premium {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.device-item-premium:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.device-icon-premium {
  width: 50px;
  height: 50px;
  background: #eef2ff;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.device-item-premium:hover .device-icon-premium {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.device-item-premium:hover .device-icon-premium i {
  color: white;
}

.device-icon-premium i {
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.device-info-premium {
  flex: 1;
}

.device-name-premium {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}

.device-address-premium {
  font-size: 10px;
  color: var(--gray-light);
  font-family: monospace;
}

.device-signal {
  display: flex;
  align-items: center;
  gap: 4px;
}

.device-signal i {
  font-size: 12px;
  color: #10b981;
}

.device-signal span {
  font-size: 10px;
  color: var(--gray);
}

.btn-connect-device {
  background: var(--white);
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--primary);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-connect-device:hover {
  background: var(--primary);
  color: white;
}

/* Empty state */
.empty-device-premium {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
}

.empty-device-premium i {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.empty-device-premium h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-device-premium p {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 20px;
}

.btn-scan-premium {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 10px 24px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Info card */
.info-card-premium {
  background: #fef3c7;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #fde68a;
}

.info-card-premium i {
  font-size: 20px;
  color: #f59e0b;
}

.info-card-premium .info-text {
  flex: 1;
}

.info-card-premium .info-title {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}

.info-card-premium .info-desc {
  font-size: 10px;
  color: #b45309;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .printer-status-device {
    font-size: 18px;
  }
  
  .printer-status-name {
    font-size: 14px;
  }
  
  .device-item-premium {
    padding: 12px;
  }
  
  .device-icon-premium {
    width: 42px;
    height: 42px;
  }
  
  .device-icon-premium i {
    font-size: 20px;
  }
  
  .device-name-premium {
    font-size: 12px;
  }
  
  .btn-connect-device {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* ==================== HISTORY PAGE PREMIUM (CARD VIEW) ==================== */

.history-premium-container {
  padding: 4px 0 20px 0;
}

/* Header Premium */
.history-header-premium {
  margin-bottom: 20px;
}

.history-title-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.history-back-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.history-back-btn:hover {
  transform: translateX(-3px);
  background: var(--gray-bg);
}

.history-back-btn i {
  font-size: 18px;
  color: var(--dark);
}

.history-title-premium h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-title-premium h2 i {
  color: var(--primary);
  font-size: 22px;
}

.history-subtitle {
  font-size: 12px;
  color: var(--gray);
  margin-left: 52px;
}

/* Filter Section Premium */
.history-filter-premium {
  background: var(--white);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-group-premium {
  flex: 1;
}

.filter-group-premium label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 6px;
}

.filter-group-premium label i {
  font-size: 11px;
  color: var(--primary);
}

.filter-input-premium {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  transition: all 0.2s;
}

.filter-input-premium:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.filter-actions-premium {
  display: flex;
  gap: 12px;
}

.btn-filter-premium {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 12px;
  border-radius: 40px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-filter-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-reset-premium {
  flex: 1;
  background: #f1f5f9;
  border: none;
  padding: 12px;
  border-radius: 40px;
  color: var(--gray);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-reset-premium:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* History Card List */
.history-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* History Card Item Premium */
.history-card-item {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.history-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.history-card-item:hover::before {
  transform: scaleY(1);
}

.history-card-item:hover {
  transform: translateX(5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

/* Card Header */
.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.history-card-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-type-icon {
  width: 40px;
  height: 40px;
  background: #eef2ff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-type-icon i {
  font-size: 18px;
  color: var(--primary);
}

.history-type-text {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
}

.history-card-date {
  text-align: right;
}

.history-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.history-time {
  font-size: 10px;
  color: var(--gray-light);
  margin-top: 2px;
}

/* Card Body */
.history-card-body {
  margin-bottom: 12px;
  padding: 8px 0;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

.history-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.history-detail-row:last-child {
  margin-bottom: 0;
}

.history-detail-label {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-detail-label i {
  font-size: 11px;
  color: var(--primary);
}

.history-detail-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.history-bank-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.history-bank-badge {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-bank-badge i {
  font-size: 9px;
  color: var(--primary);
}

/* Card Footer */
.history-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-nominal {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.history-kasir {
  font-size: 10px;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-kasir i {
  font-size: 10px;
}

/* Status Badge */
.history-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.history-status.success {
  background: #d1fae5;
  color: #065f46;
}

.history-status.success i {
  color: #10b981;
}

/* Loading State */
.loading-history {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 24px;
}

.loading-spinner-history {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loading-history p {
  font-size: 13px;
  color: var(--gray);
}

/* Empty State */
.empty-history {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 24px;
}

.empty-history i {
  font-size: 56px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.empty-history h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-history p {
  font-size: 12px;
  color: var(--gray);
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .history-title-premium h2 {
    font-size: 18px;
  }
  
  .history-title-premium h2 i {
    font-size: 18px;
  }
  
  .history-back-btn {
    width: 36px;
    height: 36px;
  }
  
  .history-back-btn i {
    font-size: 16px;
  }
  
  .history-subtitle {
    font-size: 11px;
    margin-left: 48px;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .history-filter-premium {
    padding: 14px;
  }
  
  .history-card-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .history-card-date {
    text-align: left;
  }
  
  .history-type-icon {
    width: 36px;
    height: 36px;
  }
  
  .history-type-icon i {
    font-size: 16px;
  }
  
  .history-type-text {
    font-size: 13px;
  }
  
  .history-nominal {
    font-size: 14px;
  }
  
  .history-detail-value {
    font-size: 11px;
  }
}

/* ==================== REKENING PAGE PREMIUM ==================== */

.rekening-premium-container {
  padding: 4px 0 20px 0;
}

/* ==================== REKENING HEADER ==================== */
.rekening-header-premium {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

/* PERBAIKAN: Tambahkan flexbox agar sejajar */
.rekening-title-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rekening-title-premium h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.rekening-title-premium h2 i {
    color: var(--primary);
    font-size: 22px;
}

.rekening-subtitle {
    font-size: 12px;
    color: var(--gray);
    margin: 0 0 0 48px; /* Sesuaikan dengan lebar tombol + gap */
}

/* Tombol Back */
.rekening-title-premium .back-btn-page {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    flex-shrink: 0; /* Mencegah tombol mengecil */
}

.rekening-title-premium .back-btn-page i {
    font-size: 16px;
    color: #475569;
}

.rekening-title-premium .back-btn-page:hover {
    background: #f8fafc;
    transform: translateX(-2px);
}

/* Form Premium */
.rekening-form-premium {
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2f6;
}

.form-header i {
  font-size: 22px;
  color: var(--primary);
}

.form-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.input-group-premium {
  position: relative;
  margin-bottom: 16px;
}

.input-group-premium i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 16px;
  z-index: 1;
}

.input-group-premium input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  transition: all 0.2s;
}

.input-group-premium input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-add-rekening {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 14px;
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-add-rekening:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* List Header */
.rekening-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 0 4px;
}

.list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.list-title i {
  color: var(--primary);
  font-size: 14px;
}

.list-count {
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
}

/* List Rekening Premium */
.rekening-list-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card Rekening Premium */
.rekening-card-premium {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.rekening-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.rekening-card-premium:hover::before {
  transform: scaleY(1);
}

.rekening-card-premium:hover {
  transform: translateX(5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

/* Card Body */
.rekening-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rekening-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rekening-card-premium:hover .rekening-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.rekening-card-premium:hover .rekening-icon i {
  color: white;
}

.rekening-icon i {
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.rekening-info {
  flex: 1;
}

.rekening-bank {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rekening-bank-badge {
  background: #eef2ff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
}

.rekening-nama {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rekening-nama i {
  font-size: 11px;
  color: var(--gray-light);
}

.rekening-norek {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rekening-norek i {
  font-size: 11px;
  color: var(--gray-light);
}

/* Card Actions */
.rekening-card-actions {
  display: flex;
  gap: 8px;
}

.btn-edit-rekening {
  background: #eef2ff;
  border: none;
  padding: 8px 14px;
  border-radius: 30px;
  color: var(--primary);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-edit-rekening:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.02);
}

.btn-delete-rekening {
  background: #fee2e2;
  border: none;
  padding: 8px 14px;
  border-radius: 30px;
  color: #ef4444;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-delete-rekening:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.02);
}

/* Modal Edit Rekening Premium */
.modal-edit-premium .modal-content {
  max-width: 380px;
  border-radius: 32px;
}

.modal-edit-premium .modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.modal-edit-premium .modal-header h3 {
  color: white;
}

.modal-edit-premium .modal-header .modal-close {
  color: white;
}

.modal-edit-premium .modal-body {
  padding: 24px;
}

.edit-input-group {
  margin-bottom: 20px;
}

.edit-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 6px;
}

.edit-input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 14px;
  background: #f8fafc;
}

.edit-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Empty State */
.empty-rekening {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
}

.empty-rekening i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.empty-rekening h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-rekening p {
  font-size: 12px;
  color: var(--gray);
}

/* Loading */
.loading-rekening {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .rekening-title-premium h2 {
    font-size: 18px;
  }
  
  .rekening-title-premium h2 i {
    font-size: 18px;
  }
  
  .rekening-subtitle {
    font-size: 11px;
    margin-left: 28px;
  }
  
  .rekening-form-premium {
    padding: 16px;
  }
  
  .form-header i {
    font-size: 18px;
  }
  
  .form-header h3 {
    font-size: 14px;
  }
  
  .input-group-premium input {
    padding: 12px 12px 12px 42px;
    font-size: 13px;
  }
  
  .rekening-card-body {
    gap: 12px;
  }
  
  .rekening-icon {
    width: 46px;
    height: 46px;
  }
  
  .rekening-icon i {
    font-size: 20px;
  }
  
  .rekening-bank {
    font-size: 14px;
  }
  
  .rekening-nama {
    font-size: 11px;
  }
  
  .rekening-norek {
    font-size: 10px;
  }
  
  .btn-edit-rekening, .btn-delete-rekening {
    padding: 6px 10px;
    font-size: 10px;
  }
  
  .btn-edit-rekening i, .btn-delete-rekening i {
    font-size: 10px;
  }
}

/* ==================== SETTING PAGE PREMIUM ==================== */

.setting-premium-container {
  padding: 4px 0 20px 0;
}

.setting-header-premium {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

/* PERBAIKAN: Tambahkan flexbox agar sejajar */
.setting-title-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.setting-title-premium h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.setting-title-premium h2 i {
    color: var(--primary);
    font-size: 22px;
}

.setting-subtitle {
    font-size: 12px;
    color: var(--gray);
    margin: 0 0 0 48px; /* Sesuaikan dengan lebar tombol + gap */
}

/* Tombol Back untuk Setting */
.setting-title-premium .back-btn-page {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    flex-shrink: 0;
}

.setting-title-premium .back-btn-page i {
    font-size: 16px;
    color: #475569;
}

.setting-title-premium .back-btn-page:hover {
    background: #f8fafc;
    transform: translateX(-2px);
}

/* Form Setting Premium */
.setting-form-premium {
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.setting-form-premium .form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2f6;
}

.setting-form-premium .form-header i {
  font-size: 22px;
  color: var(--primary);
}

.setting-form-premium .form-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.input-group-setting {
  margin-bottom: 18px;
}

.input-group-setting label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.input-group-setting label i {
  color: var(--primary);
  font-size: 14px;
}

.input-group-setting input,
.input-group-setting textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  transition: all 0.2s;
}

.input-group-setting input:focus,
.input-group-setting textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-group-setting textarea {
  resize: vertical;
  min-height: 60px;
}

.input-hint {
  display: block;
  font-size: 10px;
  color: var(--gray-light);
  margin-top: 4px;
}

.btn-save-setting {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 14px;
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-save-setting:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* Preview Data Toko */
.setting-preview-premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.preview-header-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-header-setting i {
  font-size: 18px;
  color: white;
}

.preview-header-setting h3 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0;
  flex: 1;
}

.preview-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  color: white;
}

.preview-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.preview-logo {
  font-size: 48px;
  margin-bottom: 12px;
}

.preview-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.preview-address {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 4px;
}

.preview-phone {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 12px;
}

.preview-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 12px auto;
  border-radius: 2px;
}

.preview-struk {
  font-size: 10px;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-struk i {
  font-size: 12px;
  color: var(--primary);
}

/* Informasi Tambahan */
.setting-info-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item-setting {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2e8f0;
}

.info-item-setting i {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.info-desc {
  font-size: 11px;
  color: var(--gray);
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .setting-title-premium h2 {
    font-size: 18px;
  }
  
  .setting-title-premium h2 i {
    font-size: 18px;
  }
  
  .setting-subtitle {
    font-size: 11px;
    margin-left: 28px;
  }
  
  .setting-form-premium {
    padding: 16px;
  }
  
  .setting-form-premium .form-header i {
    font-size: 18px;
  }
  
  .setting-form-premium .form-header h3 {
    font-size: 14px;
  }
  
  .input-group-setting input,
  .input-group-setting textarea {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .preview-logo {
    font-size: 40px;
  }
  
  .preview-name {
    font-size: 16px;
  }
  
  .preview-address,
  .preview-phone {
    font-size: 10px;
  }
  
  .info-item-setting {
    padding: 12px;
  }
  
  .info-item-setting i {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .info-title {
    font-size: 12px;
  }
  
  .info-desc {
    font-size: 10px;
  }
}

/* ==================== REGISTER PAGE PREMIUM ==================== */

.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}



.register-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 30px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.register-header {
  text-align: center;
  margin-bottom: 28px;
}

.register-logo {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.register-logo i {
  font-size: 35px;
  color: white;
}

.register-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.register-subtitle {
  font-size: 13px;
  color: #64748b;
}

.register-body {
  margin-top: 8px;
}

.input-group-register {
  position: relative;
  margin-bottom: 18px;
}

.input-group-register i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  z-index: 1;
}

.input-group-register input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  background: #f8fafc;
  transition: all 0.2s;
}

.input-group-register input:focus {
  outline: none;
  border-color: #7c3aed;
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-group-register .input-hint {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  margin-left: 48px;
}

.btn-register {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  border: none;
  padding: 14px;
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.register-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.register-footer p {
  font-size: 13px;
  color: #64748b;
}

.login-link {
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
}

.login-link:hover {
  text-decoration: underline;
}

/* Link register di halaman login */
.register-link {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #64748b;
}

.register-link-text {
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
}

.register-link-text:hover {
  text-decoration: underline;
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .register-card {
    padding: 24px 20px;
  }
  
  .register-title {
    font-size: 24px;
  }
  
  .input-group-register input {
    padding: 12px 16px 12px 44px;
    font-size: 13px;
  }
  
  .btn-register {
    padding: 12px;
    font-size: 14px;
  }
}

/* Style untuk input yang hanya boleh angka */
input[type="tel"] {
  -webkit-appearance: none;
  appearance: none;
}

/* Hilangkan spinner pada input number di browser tertentu */
input[type="tel"]::-webkit-inner-spin-button,
input[type="tel"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==================== UPLOAD LOGO ==================== */
.logo-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
  margin-bottom: 12px;
}

.logo-upload-area:hover {
  border-color: var(--primary);
  background: #f1f5f9;
}

.logo-upload-area i {
  font-size: 32px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.logo-upload-area p {
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 4px;
}

.logo-upload-area small {
  font-size: 10px;
  color: var(--gray);
}

.btn-remove-logo {
  background: #fee2e2;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  color: #ef4444;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.btn-remove-logo:hover {
  background: #ef4444;
  color: white;
}

/* Preview logo di card */
.preview-logo-img {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.preview-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 80px;
}

.preview-logo i {
  font-size: 48px;
  color: #7c3aed;
}

/* Sembunyikan icon default saat ada gambar logo */
.preview-logo.has-image i {
  display: none;
}

/* Style untuk edit form di modal struk */
.edit-struk-form {
  background: #f8fafc;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.edit-struk-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.2s;
}

.edit-struk-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.btn-apply-edit {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  border: none;
  padding: 8px;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Style untuk form edit di modal struk */
.edit-struk-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.2s;
}

.edit-struk-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

#btnEditStruk {
  transition: all 0.2s;
}

#btnEditStruk:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

#btnSimpanEdit {
  transition: all 0.2s;
}

#btnSimpanEdit:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ==================== HALAMAN FORM STRUK (BUKAN MODAL) ==================== */

/* Background halaman */
.manual-struk-container {
    padding: 0 16px 30px 16px;
    min-height: 70vh;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

/* Header Premium */
.page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    padding: 20px 16px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;  /* kiri, tengah, kanan */
}

.back-btn-page {
    background: #7c3aed;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;  /* jangan mengecil */
}

.back-btn-page:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.back-btn-page i {
    font-size: 18px;
    color: white;
}

.page-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin: 0;  /* ubah dari 12px 0 0 0 menjadi 0 */
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 i {
    font-size: 22px;
    color: white;
}

/* Form Manual Struk Premium */
.manual-struk-form {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

/* Total Box Premium */
.total-box-halaman {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.total-box-halaman span:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
}

.total-box-halaman span:last-child {
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Form Actions Premium */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 16px;
    border-radius: 60px;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:active {
    background: #e2e8f0;
    transform: scale(0.97);
}

.btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 16px;
    border-radius: 60px;
    color: white;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px -5px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px -3px rgba(124, 58, 237, 0.4);
}

.btn-submit i {
    font-size: 16px;
}

/* Upload Area Premium */
.upload-area-halaman {
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 28px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area-halaman:active {
    border-color: #7c3aed;
    background: #f8fafc;
    transform: scale(0.98);
}

.upload-area-halaman i {
    font-size: 48px;
    color: #7c3aed;
    margin-bottom: 16px;
}

.upload-area-halaman p {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.upload-area-halaman small {
    font-size: 11px;
    color: #64748b;
}

/* Info Card Premium */
.info-card-halaman {
    background: #fef3c7;
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #fde68a;
}

.info-card-halaman i {
    font-size: 24px;
    color: #f59e0b;
}

.info-card-halaman .info-text {
    flex: 1;
}

.info-card-halaman .info-title {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.info-card-halaman .info-desc {
    font-size: 11px;
    color: #b45309;
}

/* Animasi untuk halaman */
.manual-struk-container {
    animation: fadeInPage 0.3s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk form */
.manual-struk-form {
    animation: slideUp 0.4s ease backwards;
    animation-delay: 0.05s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .page-header h2 {
        font-size: 18px;
    }
    
    .manual-struk-form {
        padding: 16px;
    }
    
    .total-box-halaman span:last-child {
        font-size: 18px;
    }
    
    .btn-cancel, .btn-submit {
        padding: 14px;
        font-size: 14px;
    }
}

/* ==================== HALAMAN PREVIEW STRUK (LAYAR PENUH) ==================== */

.preview-struk-container {
  min-height: 100vh;
  background: #f1f5f9;
  padding: 5px;
  padding-bottom: 20px;
}

/* Header Preview */
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.preview-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-header h2 i {
  color: var(--primary);
}

.preview-actions-header {
  display: flex;
  gap: 8px;
}

.btn-edit-preview {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  color: var(--warning);
  font-size: 18px;
}

.btn-edit-preview:hover {
  background: var(--warning);
  color: white;
  transform: scale(1.05);
}

/* Template Selector */
.template-selector {
  background: var(--white);
  border-radius: 20px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.template-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.template-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.template-btn-page {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  background: white;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.template-btn-page.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}


/* Form Edit */
.edit-struk-form-page {
  background: var(--white);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.edit-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2f6;
}

.edit-form-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.edit-form-header h3 i {
  color: var(--primary);
  margin-right: 6px;
}

.close-edit-form {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray);
}

.edit-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
}

.edit-section-title {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.edit-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.edit-col {
  flex: 1;
  min-width: 100px;
}

.edit-col label {
  display: block;
  font-size: 9px;
  color: var(--gray);
  margin-bottom: 4px;
}

.edit-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  background: #f8fafc;
  transition: all 0.2s;
}

.edit-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.edit-total-display {
  padding: 8px 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.edit-actions {
  margin-top: 16px;
}

.btn-save-edit {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  padding: 12px;
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-save-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Tombol Aksi Cetak */

.action-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.print-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bluetooth-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.bluetooth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
  .preview-struk-container {
    padding: 5px;
    padding-bottom: 30px;
  }
  
  .edit-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .template-buttons {
    gap: 6px;
  }
  
  .template-btn-page {
    padding: 6px 12px;
    font-size: 10px;
  }
  
  .action-btn {
    padding: 12px;
    font-size: 12px;
  }
}

/* Pastikan previewStrukPage tersembunyi secara default */
#previewStrukPage {
  display: none;
}

/* ==================== TOMBOL AKSI PREVIEW STRUK ==================== */

.preview-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--dark);
}

.preview-action-btn i {
  font-size: 16px;
}

.preview-action-btn span {
  font-size: 13px;
}

/* Edit Button */
.preview-action-btn.edit-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.preview-action-btn.edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* Print Button */
.preview-action-btn.print-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.preview-action-btn.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* Bluetooth Button */
.preview-action-btn.bluetooth-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.preview-action-btn.bluetooth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* Active state saat di klik */
.preview-action-btn:active {
  transform: scale(0.98);
}

/* Responsif untuk layar kecil */
@media (max-width: 480px) {

  .preview-action-btn {
    padding: 12px 8px;
    font-size: 11px;
  }
  
  .preview-action-btn i {
    font-size: 14px;
  }
  
  .preview-action-btn span {
    font-size: 11px;
  }
}

/* Share Button */
.preview-action-btn.share-btn {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
}

.preview-action-btn.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

/* Custom styling untuk SweetAlert pilihan cetak */
.swal2-print-manual {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  margin: 8px !important;
}

.swal2-print-bluetooth {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  margin: 8px !important;
}

.swal2-print-cancel {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  margin: 8px !important;
}

/* Share options styling */
.share-option-btn {
  transition: all 0.2s ease;
}

.share-option-btn:hover {
  transform: translateX(4px);
  border-color: #7c3aed !important;
}

/* Pastikan span pada tombol preview action terlihat */
.preview-action-btn span {
  display: inline-block !important;
  margin-left: 8px;
  font-size: 13px;
}

/* Untuk tampilan mobile tetap terlihat */
@media (max-width: 480px) {
  .preview-action-btn span {
    display: inline-block !important;
    font-size: 10px;
    margin-left: 4px;
  }
}

/* Filter row horizontal - 1 line untuk mobile */
.filter-row-horizontal {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-wrap: nowrap;
}

.filter-row-horizontal .filter-group-premium {
  flex: 1;
  min-width: 120px;
}

.filter-row-horizontal .filter-group-premium:last-child {
  min-width: 100px;
}

/* Responsive untuk layar sangat kecil */
@media (max-width: 480px) {
  .filter-row-horizontal {
    gap: 8px;
  }
  
  .filter-row-horizontal .filter-group-premium {
    min-width: 110px;
  }
  
  .filter-row-horizontal .filter-group-premium:last-child {
    min-width: 90px;
  }
  
  .filter-input-premium {
    padding: 8px 8px;
    font-size: 12px;
  }
  
  .filter-group-premium label {
    font-size: 10px;
  }
}

.loading-packages {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
  margin: 20px 0;
}

.empty-packages {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
  color: var(--gray);
}

/* Premium Loading Animation */
.swal2-popup {
  border-radius: 32px !important;
  padding: 24px !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
  border-radius: 40px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4) !important;
}

.swal2-cancel {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-radius: 40px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
}

.swal2-cancel:hover {
  background: #e2e8f0 !important;
}

/* Premium Payment Popup - Mobile Optimized */
.premium-payment-popup {
  border-radius: 28px !important;
  padding: 16px !important;
  max-width: 92% !important;
  width: auto !important;
}

/* Tombol Bayar Sekarang */
.premium-confirm-btn {
  background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
  border-radius: 40px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  margin-right: 8px !important;
}

.premium-confirm-btn:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

/* Tombol Batal */
.premium-cancel-btn {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-radius: 40px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  margin-left: 8px !important;
}

.premium-cancel-btn:hover {
  background: #e2e8f0 !important;
}

/* Tombol container di SweetAlert */
.swal2-actions {
  display: flex !important;
  gap: 12px !important;
  margin-top: 16px !important;
  width: 100% !important;
}

.swal2-confirm, .swal2-cancel {
  width: 100% !important;
  margin: 0 !important;
}

/* Responsive untuk layar sangat kecil */
@media (max-width: 380px) {
  .premium-payment-popup {
    padding: 12px !important;
  }
  
  .premium-confirm-btn, .premium-cancel-btn {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
  
  .swal2-title {
    font-size: 18px !important;
  }
}

/* Profile Edit Name Button */
.profile-edit-name-btn {
  width: 32px;
  height: 32px;
  background: #eef2ff;
  border: none;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--primary);
}

.profile-edit-name-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.profile-edit-name-btn i {
  font-size: 14px;
}

/* ================================================================
   PERBAIKAN MODAL / SWEETALERT2 - SCROLLABLE TANPA PULL-TO-REFRESH
   ================================================================ */

/* Container SweetAlert */
.swal2-container {
    z-index: 20000 !important;
    overscroll-behavior: contain !important;
}

/* Popup SweetAlert - FLEX COLUMN */
.swal2-popup {
    border-radius: 28px !important;
    padding: 20px !important;
    max-width: 92% !important;
    width: 420px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    overscroll-behavior: contain !important;
}

/* Title - Tetap di atas */
.swal2-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 0 0 16px 0 !important;
    margin: 0 0 8px 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* HTML Container - Bisa SCROLL (HAPUS touch-action) */
.swal2-html-container {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 4px 8px 4px !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    max-height: 55vh !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    /* 🔥 HAPUS touch-action: pan-y !important; */
}

/* Scrollbar styling */
.swal2-html-container::-webkit-scrollbar {
    width: 4px !important;
}

.swal2-html-container::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
}

.swal2-html-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

.swal2-html-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Actions (Tombol) - Tetap di bawah */
.swal2-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #eef2f6 !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

/* Tombol Konfirmasi & Cancel */
.swal2-confirm,
.swal2-cancel {
    border-radius: 40px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    min-width: 120px !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25) !important;
}

.swal2-confirm:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35) !important;
}

.swal2-cancel {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: none !important;
}

.swal2-cancel:hover {
    background: #e2e8f0 !important;
}

/* ========== PERBAIKAN INPUT FIELD DI SWEETALERT ========== */

/* Reset style SweetAlert bawaan */
.swal2-html-container .swal2-input {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 16px 0 !important;
    padding: 12px 16px 12px 42px !important;
    font-size: 14px !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    display: block !important;
}

/* Input group wrapper */
.edit-profile-form,
.change-password-form {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Input group di dalam form */
.edit-profile-form .input-group,
.change-password-form .input-group {
    position: relative;
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.edit-profile-form .input-group i,
.change-password-form .input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

/* Input di dalam input group */
.edit-profile-form .input-group input,
.change-password-form .input-group input {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px 12px 42px !important;
    font-size: 14px !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    display: block !important;
    margin: 0 !important;
}

.edit-profile-form .input-group input:focus,
.change-password-form .input-group input:focus {
    outline: none !important;
    border-color: #7c3aed !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

/* ================================================================
   RESPONSIF MOBILE
   ================================================================ */

@media (max-width: 480px) {
    .swal2-popup {
        padding: 16px !important;
        max-width: 95% !important;
        width: 95% !important;
        max-height: 95vh !important;
        border-radius: 24px !important;
    }

    .swal2-title {
        font-size: 18px !important;
        padding: 0 0 12px 0 !important;
    }

    .swal2-html-container {
        max-height: 50vh !important;
        padding: 6px 2px 6px 2px !important;
        font-size: 13px !important;
    }

    .swal2-actions {
        gap: 8px !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        flex-direction: column !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        width: 100% !important;
        min-width: unset !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    .swal2-confirm {
        order: 1 !important;
    }

    .swal2-cancel {
        order: 2 !important;
    }

    /* Input mobile */
    .edit-profile-form .input-group input,
    .change-password-form .input-group input {
        padding: 10px 12px 10px 38px !important;
        font-size: 13px !important;
    }

    .edit-profile-form .input-group i,
    .change-password-form .input-group i {
        left: 12px;
        font-size: 13px;
    }

    .edit-profile-form .input-group,
    .change-password-form .input-group {
        margin-bottom: 16px !important;
    }
}

@media (max-width: 380px) {
    .swal2-popup {
        padding: 12px !important;
        border-radius: 20px !important;
        max-height: 95vh !important;
    }

    .swal2-title {
        font-size: 16px !important;
        padding: 0 0 10px 0 !important;
    }

    .swal2-html-container {
        max-height: 45vh !important;
        font-size: 12px !important;
    }

    .edit-profile-form .input-group input,
    .change-password-form .input-group input {
        padding: 8px 10px 8px 34px !important;
        font-size: 12px !important;
    }

    .edit-profile-form .input-group i,
    .change-password-form .input-group i {
        left: 10px;
        font-size: 12px;
    }

    .swal2-actions {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
}

/* ================================================================
   KHUSUS OCR POPUP - KONTEN LEBIH PANJANG
   ================================================================ */

.ocr-popup .swal2-popup {
    max-width: 95% !important;
    width: 480px !important;
    max-height: 92vh !important;
}

.ocr-popup .swal2-html-container {
    max-height: 60vh !important;
}

@media (max-width: 480px) {
    .ocr-popup .swal2-popup {
        width: 95% !important;
        max-height: 95vh !important;
    }
    
    .ocr-popup .swal2-html-container {
        max-height: 50vh !important;
    }
}

/* ==================== HALAMAN SYARAT & KETENTUAN / PRIVASI ==================== */

.legal-page-container {
  min-height: 100vh;
  background: var(--gray-bg);
  padding: 16px;
}

.legal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.legal-page-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-page-header h2 i {
  color: var(--primary);
  font-size: 20px;
}

.legal-page-content {
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.legal-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef2f6;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-section h3 i {
  color: var(--primary);
  font-size: 16px;
}

.legal-section p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 8px;
}

.legal-section ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-section li {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 6px;
}

.legal-footer {
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  border-top: 1px solid #eef2f6;
}

.legal-footer p {
  font-size: 11px;
  color: var(--gray-light);
}

/* Responsive */
@media (max-width: 480px) {
  .legal-page-container {
    padding: 12px;
  }
  
  .legal-page-content {
    padding: 20px;
  }
  
  .legal-section h3 {
    font-size: 14px;
  }
  
  .legal-section p,
  .legal-section li {
    font-size: 12px;
  }
}

/* ==================== HALAMAN KONFIRMASI PEMBAYARAN PREMIUM ==================== */

.payment-confirmation-container,
.payment-detail-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2ff 100%);
  padding: 16px;
  padding-bottom: 30px;
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.payment-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-header h2 i {
  color: var(--primary);
  font-size: 22px;
}

/* Package Card Premium */
.payment-package-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
  border-radius: 32px;
  padding: 28px;
  margin-bottom: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 35px -10px rgba(124, 58, 237, 0.4);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px -12px rgba(124, 58, 237, 0.5);
}

/* Efek background blur circle */
.payment-package-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.payment-package-card::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(217,70,239,0.15) 0%, rgba(217,70,239,0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.package-badge-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.package-name-large {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.3px;
}

.package-name-large i {
  font-size: 32px;
  background: rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 24px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.discount-badge-large {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.3);
}

.package-duration {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: 40px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.package-duration i {
  font-size: 14px;
}

/* Price Breakdown */
.price-breakdown {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.15);
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.price-row .original-price {
  text-decoration: line-through;
  opacity: 0.75;
}

.price-row .discount-amount {
  color: #fbbf24;
  font-weight: 600;
}

.price-row.total {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 14px;
  margin-top: 8px;
  font-weight: 800;
  font-size: 18px;
}

.price-row.total span:first-child {
  font-size: 14px;
}

.price-row.total span:last-child {
  font-size: 22px;
  color: #fbbf24;
}

/* Payment Method Section Premium */
.payment-method-section {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255,255,255,0.5);
}

.payment-method-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2ff;
}

.payment-method-title i {
  color: var(--primary);
  font-size: 18px;
}

.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.payment-method-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.payment-method-item.active {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #f8f4ff, #faf5ff);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.method-icon {
  width: 56px;
  height: 56px;
  background: #f8fafc;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.payment-method-item.active .method-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.payment-method-item.active .method-icon i,
.payment-method-item.active .method-icon img {
  color: white;
  filter: brightness(0) invert(1);
}

.method-icon i {
  font-size: 28px;
  transition: all 0.3s ease;
}

.method-icon img {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

/* Warna icon per metode */
.method-icon .fa-qrcode { color: #10b981; }
.method-icon .fa-university { color: #3b82f6; }
.method-icon .fa-wallet { color: #00A9B0; }

.method-info {
  flex: 1;
}

.method-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 4px;
}

.method-desc {
  font-size: 11px;
  color: var(--gray);
}

.method-radio {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-radio i {
  font-size: 22px;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.payment-method-item.active .method-radio i {
  color: var(--primary);
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f058';
}

/* Total Section */
.payment-total-section {
  background: linear-gradient(135deg, #ffffff, #fef9e6);
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.payment-total-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.payment-total-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #f59e0b, #d946ef);
  border-radius: 28px 28px 0 0;
}

.total-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.total-icon i {
  font-size: 28px;
  color: #f59e0b;
}

.total-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.total-amount {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.total-saving {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.total-saving i {
  font-size: 12px;
}

/* Price breakdown di total card */
.total-price-detail {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.total-price-detail span {
  font-size: 11px;
  color: #64748b;
}

.total-price-detail strong {
  color: #1e293b;
}

/* Buttons */
.payment-actions,
.payment-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.payment-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn {
  background: white;
  color: var(--gray);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.cancel-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.proceed-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.proceed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Payment Detail Page */
.payment-detail-card {
  background: white;
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.qr-code-area {
  background: white;
  padding: 24px;
  border-radius: 24px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #eef2f6;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
  border: 1px dashed #cbd5e1;
}

.virtual-account-number {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 24px;
  border-radius: 20px;
  margin: 20px 0;
  text-align: center;
}

.va-number {
  font-size: 28px;
  font-weight: 800;
  font-family: monospace;
  color: var(--primary);
  letter-spacing: 3px;
  margin: 12px 0;
}

.copy-btn {
  background: white;
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 40px;
  color: var(--primary);
  cursor: pointer;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--primary);
  color: white;
}

.payment-instruction {
  text-align: left;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

.payment-instruction h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--dark);
}

.payment-instruction ol {
  padding-left: 20px;
}

.payment-instruction li {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Benefit List */
.payment-benefits {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 16px;
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.benefits-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 30px;
}

.benefit-item i {
  font-size: 10px;
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 480px) {
  .payment-confirmation-container,
  .payment-detail-container {
    padding: 12px;
  }
  .payment-package-card {
    padding: 20px;
  }
  
  .payment-header h2 {
    font-size: 18px;
  }
  
  .package-name-large {
    font-size: 20px;
  }
  
    .package-name-large i {
    font-size: 26px;
    padding: 8px;
  }
  
    .benefits-list {
    gap: 8px;
  }
  
  .benefit-item {
    font-size: 10px;
    padding: 4px 10px;
  }
  
    .price-row.total span:last-child {
    font-size: 18px;
  }
  
  .total-amount {
    font-size: 26px;
  }
  
  .payment-method-item {
    padding: 12px;
    gap: 12px;
  }
  
  .method-icon {
    width: 48px;
    height: 48px;
  }
  
  .method-icon i {
    font-size: 24px;
  }
  
  .va-number {
    font-size: 20px;
    letter-spacing: 2px;
  }
  
  .payment-btn {
    padding: 14px;
    font-size: 14px;
  }
  
    .total-price-detail {
    gap: 12px;
  }
  
}

/* Halaman Pembayaran Langsung */
.payment-direct-container {
    min-height: 100vh;
    background: #f8fafc;
    padding: 20px 16px;
}

.qr-code-box {
    background: white;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.qr-code-box img {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.va-number-box {
    background: white;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
}

.va-number {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #7c3aed;
    margin: 16px 0;
}

.copy-va-btn {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
}

.payment-status-card {
    background: #fef3c7;
    border-radius: 20px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== PAYMENT PAGE PREMIUM - MOBILE RESPONSIVE ==================== */

/* Container Utama */
.payment-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 12px 30px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.payment-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.back-btn-premium {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.back-btn-premium:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

.payment-header-premium h2 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.payment-header-premium h2 i {
    font-size: 20px;
}

/* Card Premium */
.payment-card-premium {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    width: 100%;
}

/* Card Header */
.payment-card-header {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    padding: 18px 16px;
    text-align: center;
}

.payment-card-header i {
    font-size: 32px;
    color: white;
    margin-bottom: 6px;
}

.payment-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Card Body */
.payment-card-body {
    padding: 20px 16px;
}

/* ========== VA SECTION ========== */
.va-card-premium {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 24px;
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.va-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.va-icon i {
    font-size: 28px;
    color: #3b82f6;
}

.va-bank-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.va-number {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1e293b;
    background: white;
    padding: 14px 12px;
    border-radius: 16px;
    margin: 12px 0;
    word-break: break-all;
    font-family: monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
}

/* ========== QR SECTION ========== */
.qr-card-premium {
    background: #f8fafc;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.qr-image {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    background: white;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== AMOUNT BOX ========== */
.amount-box-premium {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 20px;
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.amount-label {
    font-size: 12px;
    color: #166534;
    font-weight: 500;
    margin-bottom: 4px;
}

.amount-value {
    font-size: 26px;
    font-weight: 800;
    color: #10b981;
}

.amount-value small {
    font-size: 12px;
    font-weight: normal;
}

/* ========== INSTRUCTION BOX ========== */
.instruction-box-premium {
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

.instruction-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-title i {
    color: #7c3aed;
    font-size: 14px;
}

.instruction-list {
    padding-left: 18px;
    margin: 0;
}

.instruction-list li {
    font-size: 12px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.instruction-list li strong {
    color: #1e293b;
    font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn-copy-premium {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    box-sizing: border-box;
}

.btn-copy-premium:active {
    transform: scale(0.97);
}

.btn-check-premium {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-sizing: border-box;
}

.btn-check-premium:active {
    transform: scale(0.97);
    background: #059669;
}

/* ========== TIMER ========== */
.timer-premium {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timer-premium i {
    color: #f59e0b;
    font-size: 12px;
}

.timer-premium span {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

/* ========== STATUS CARD ========== */
.status-card {
    background: #fef3c7;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.status-card i {
    font-size: 20px;
    color: #f59e0b;
}

.status-card .status-text {
    flex: 1;
    font-size: 12px;
    color: #92400e;
}

.status-card .status-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

/* ========== RESPONSIVE SMALL MOBILE ========== */
@media (max-width: 480px) {
    .payment-page-container {
        padding: 12px 10px 24px;
    }
    
    .payment-card-body {
        padding: 16px 12px;
    }
    
    .va-number {
        font-size: 15px;
        padding: 12px 10px;
    }
    
    .qr-image {
        width: 150px;
        height: 150px;
    }
    
    .amount-value {
        font-size: 22px;
    }
    
    .instruction-list li {
        font-size: 11px;
    }
    
    .back-btn-premium {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .payment-header-premium h2 {
        font-size: 16px;
    }
    
    .btn-copy-premium, .btn-check-premium {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ========== EXTRA SMALL (max width 360px) ========== */
@media (max-width: 360px) {
    .payment-card-body {
        padding: 12px 10px;
    }
    
    .va-number {
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .qr-image {
        width: 130px;
        height: 130px;
    }
    
    .va-icon {
        width: 48px;
        height: 48px;
    }
    
    .va-icon i {
        font-size: 24px;
    }
    
    .instruction-list {
        padding-left: 14px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-card-premium {
    animation: fadeInUp 0.3s ease-out;
}

/* ==================== PAYMENT PAGE - TIDAK FULL PAGE ==================== */
.payment-page-standalone {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 32px;
    padding: 20px 16px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Untuk mobile */
@media (max-width: 480px) {
    .payment-page-standalone {
        max-width: 92%;
        width: 92%;
        padding: 16px 12px;
        border-radius: 24px;
    }
}

/* Header di payment page standalone */
.payment-page-standalone .payment-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.payment-page-standalone .back-btn-premium {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
}

.payment-page-standalone .back-btn-premium:active {
    transform: scale(0.95);
}

.payment-page-standalone h2 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Overlay background gelap */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Untuk menandai bank yang dipilih */
.payment-method-item.bank-option.selected {
    border: 2px solid #7c3aed;
    background: linear-gradient(135deg, #f8f4ff, #faf5ff);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.payment-method-item.bank-option.selected .method-radio i {
    color: #7c3aed;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f058';
}

/* Countdown Timer */
.countdown-timer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 60px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.countdown-timer i {
    color: #f59e0b;
    font-size: 18px;
}

.countdown-timer .label {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.countdown-timer .time {
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 40px;
    font-family: monospace;
    font-size: 18px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 2px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .countdown-timer {
        padding: 6px 14px;
        gap: 8px;
    }
    
    .countdown-timer i {
        font-size: 14px;
    }
    
    .countdown-timer .label {
        font-size: 10px;
    }
    
    .countdown-timer .time {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* Saat timer habis */
.countdown-timer .time.expired {
    color: #ef4444;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== HEADER ACTIONS ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification Icon */
.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-icon:hover {
    background: #eef2ff;
    transform: scale(1.05);
}

.notification-icon i {
    font-size: 18px;
    color: var(--gray);
}

.notification-icon.active i {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.user-avatar i {
    font-size: 18px;
    color: white;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .header-actions {
        gap: 8px;
    }
    
    .notification-icon, .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .notification-icon i, .user-avatar i {
        font-size: 16px;
    }
}

/* ==================== HALAMAN QRIS PREMIUM ==================== */

/* Untuk halaman QRIS */
#qrisPaymentPageNew .manual-struk-form {
    background: white;
    border-radius: 28px;
    padding: 20px;
}

/* Timer Countdown */
#qrisCountdown {
    font-family: monospace;
    font-weight: 800;
    letter-spacing: 1px;
}

/* QR Code Image */
#qrisPaymentPageNew img {
    max-width: 100%;
    height: auto;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    #qrisPaymentPageNew .manual-struk-form {
        padding: 16px;
    }
    
    #qrisPaymentPageNew .payment-method-item {
        padding: 12px;
    }
    
    #qrisPaymentPageNew .method-icon {
        width: 44px;
        height: 44px;
    }
    
    #qrisPaymentPageNew .method-icon i {
        font-size: 22px;
    }
    
    #qrisPaymentPageNew .method-name {
        font-size: 14px;
    }
    
    #qrisPaymentPageNew .method-desc {
        font-size: 10px;
    }
    
    #qrisCountdown {
        font-size: 14px;
        padding: 3px 8px;
    }
    
    /* Timer wrapper responsive */
    #qrisPaymentPageNew [style*="border-radius: 60px"] {
        padding: 6px 12px !important;
        gap: 6px !important;
    }
    
    #qrisPaymentPageNew [style*="font-size: 28px"] {
        font-size: 22px !important;
    }
    
    /* QR Code box responsive */
    #qrisPaymentPageNew [style*="width: 200px"] {
        width: 150px !important;
        height: 150px !important;
    }
}

/* ==================== SUBSCRIPTION HISTORY PREMIUM CARDS ==================== */
/* Semua selector menggunakan #subscriptionHistoryPage agar tidak mengganggu halaman lain */

#subscriptionHistoryPage .subscription-history-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0 20px 0;
}

#subscriptionHistoryPage .subscription-history-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
}

#subscriptionHistoryPage .subscription-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#subscriptionHistoryPage .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

#subscriptionHistoryPage .package-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#subscriptionHistoryPage .package-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#subscriptionHistoryPage .package-icon i {
    font-size: 24px;
    color: #f59e0b;
}

#subscriptionHistoryPage .package-details {
    flex: 1;
}

#subscriptionHistoryPage .package-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

#subscriptionHistoryPage .order-id {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

#subscriptionHistoryPage .order-id i {
    font-size: 10px;
}

#subscriptionHistoryPage .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    background: #fef3c7;
    color: #f59e0b;
}

#subscriptionHistoryPage .card-body {
    margin-bottom: 16px;
}

#subscriptionHistoryPage .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
}

#subscriptionHistoryPage .info-row:last-child {
    border-bottom: none;
}

#subscriptionHistoryPage .info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

#subscriptionHistoryPage .info-label i {
    width: 18px;
    font-size: 14px;
    color: #7c3aed;
}

#subscriptionHistoryPage .info-value {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

#subscriptionHistoryPage .info-value.amount {
    font-size: 16px;
    font-weight: 800;
    color: #10b981;
}

#subscriptionHistoryPage .history-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

#subscriptionHistoryPage .btn-continue-payment {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 12px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#subscriptionHistoryPage .btn-continue-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

#subscriptionHistoryPage .btn-cancel-transaction {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 12px;
    border-radius: 30px;
    color: #ef4444;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#subscriptionHistoryPage .btn-cancel-transaction:hover {
    background: #fee2e2;
}

#subscriptionHistoryPage .btn-view-detail {
    width: 100%;
    background: #f1f5f9;
    border: none;
    padding: 12px;
    border-radius: 30px;
    color: #7c3aed;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#subscriptionHistoryPage .btn-view-detail:hover {
    background: #eef2ff;
}

/* Status colors */
#subscriptionHistoryPage .status-pending .status-badge {
    background: #fef3c7;
    color: #f59e0b;
}

#subscriptionHistoryPage .status-success .status-badge {
    background: #d1fae5;
    color: #10b981;
}

#subscriptionHistoryPage .status-expired .status-badge {
    background: #fee2e2;
    color: #ef4444;
}

#subscriptionHistoryPage .status-cancel .status-badge {
    background: #f1f5f9;
    color: #64748b;
}

/* Empty state */
#subscriptionHistoryPage .empty-transaction {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 28px;
}

#subscriptionHistoryPage .empty-transaction i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

#subscriptionHistoryPage .empty-transaction h4 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 8px;
}

#subscriptionHistoryPage .empty-transaction p {
    font-size: 13px;
    color: #64748b;
}

/* ========== RESPONSIVE MOBILE (TIDAK MENGUBAH DASHBOARD) ========== */
@media (max-width: 600px) {
    #subscriptionHistoryPage .subscription-history-card {
        padding: 14px !important;
        border-radius: 20px !important;
    }
    
    #subscriptionHistoryPage .package-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    #subscriptionHistoryPage .package-icon i {
        font-size: 18px !important;
    }
    
    #subscriptionHistoryPage .package-name {
        font-size: 14px !important;
    }
    
    #subscriptionHistoryPage .order-id {
        font-size: 9px !important;
    }
    
    #subscriptionHistoryPage .status-badge {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }
    
    #subscriptionHistoryPage .info-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
    }
    
    #subscriptionHistoryPage .info-label {
        font-size: 12px !important;
    }
    
    #subscriptionHistoryPage .info-value {
        font-size: 13px !important;
        text-align: right !important;
    }
    
    #subscriptionHistoryPage .info-value.amount {
        font-size: 15px !important;
    }
    
    #subscriptionHistoryPage .history-card-actions {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    #subscriptionHistoryPage .btn-continue-payment,
    #subscriptionHistoryPage .btn-cancel-transaction {
        padding: 9px !important;
        font-size: 11px !important;
    }
    
    #subscriptionHistoryPage .empty-transaction {
        padding: 40px 20px !important;
    }
    
    #subscriptionHistoryPage .empty-transaction i {
        font-size: 48px !important;
    }
    
    #subscriptionHistoryPage .empty-transaction h4 {
        font-size: 16px !important;
    }
}

@media (max-width: 380px) {
    #subscriptionHistoryPage .subscription-history-card {
        padding: 12px !important;
    }
    
    #subscriptionHistoryPage .package-icon {
        width: 34px !important;
        height: 34px !important;
    }
    
    #subscriptionHistoryPage .info-label {
        font-size: 11px !important;
    }
    
    #subscriptionHistoryPage .info-value {
        font-size: 12px !important;
    }
    
    #subscriptionHistoryPage .btn-continue-payment,
    #subscriptionHistoryPage .btn-cancel-transaction {
        font-size: 10px !important;
        padding: 8px !important;
    }
}

/* ==================== EDIT SECTION STYLE ==================== */
.edit-section {
    margin-bottom: 24px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
}

.edit-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.edit-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.edit-col {
    flex: 1;
    min-width: 150px;
}

.edit-col label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.edit-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.edit-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.edit-input[readonly] {
    background: #f1f5f9;
    cursor: default;
}

.edit-total-display {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #475569;
}

.btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: white;
}

@media (max-width: 600px) {
    .edit-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==================== SECTION TITLE CUSTOM ==================== */
.section-title-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    margin-top: 8px;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title-icon i {
    font-size: 18px;
    color: white;
}

.section-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

/* Responsive */
@media (max-width: 480px) {
    .section-title-icon {
        width: 30px;
        height: 30px;
    }
    
    .section-title-icon i {
        font-size: 14px;
    }
    
    .section-title-text {
        font-size: 14px;
    }
}

/* Warna berbeda untuk setiap jenis transaksi di riwayat dashboard */
.riwayat-item .nama {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Transfer Bank - Biru */
.riwayat-item .nama[style*="color: #3b82f6"] {
    /* Transfer Bank */
}

/* Token PLN - Kuning/Oranye */
.riwayat-item .nama[style*="color: #f59e0b"] {
    /* Token PLN */
}

/* Tagihan - Ungu */
.riwayat-item .nama[style*="color: #7c3aed"] {
    /* Tagihan */
}

/* Ikon berbeda untuk setiap jenis */
.riwayat-info .nama i {
    margin-right: 6px;
}

/* Tombol Bluetooth - Satu Tombol */
.btn-connect-premium {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 14px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-connect-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-connect-premium:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* Device List Item */
.device-list-premium .device-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f2f5;
    transition: all 0.2s;
    cursor: pointer;
}

.device-list-premium .device-item:hover {
    border-color: #7c3aed;
    transform: translateX(4px);
}

.device-list-premium .device-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
}

.device-list-premium .device-icon i {
    font-size: 22px;
    color: #7c3aed;
}

.device-list-premium .device-info {
    flex: 1;
}

.device-list-premium .device-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.device-list-premium .device-address {
    font-size: 10px;
    color: #64748b;
    font-family: monospace;
}

.device-list-premium .device-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.device-list-premium .device-status.connecting {
    background: #fef3c7;
    color: #f59e0b;
}

.device-list-premium .device-status.connected {
    background: #d1fae5;
    color: #10b981;
}

.device-list-premium .device-status.error {
    background: #fee2e2;
    color: #ef4444;
}

/* Loading state */
.device-list-premium .loading-device {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.device-list-premium .loading-device i {
    font-size: 32px;
    margin-bottom: 12px;
}

/* Empty state */
.empty-device-premium {
    text-align: center;
    padding: 50px 24px;
    background: white;
    border-radius: 24px;
    border: 1px dashed #cbd5e1;
}

.empty-device-premium i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty-device-premium h4 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-device-premium p {
    font-size: 12px;
    color: #64748b;
}

/* ==================== PASSWORD TOGGLE - FORCE RIGHT ==================== */
.input-group {
    position: relative !important;
}

/* Icon mata DIPAKSA di kanan */
.password-toggle {
    position: absolute !important;
    right: 16px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    z-index: 999 !important;
    background: transparent !important;
}

.password-toggle:hover {
    color: #7c3aed !important;
}

/* Input punya padding kanan yang cukup */
.input-group input {
    padding-right: 45px !important;
    padding-left: 45px !important;
}


/* Logo di halaman login & register */
.login-logo img,
.register-logo img {
    border-radius: 20px;
    object-fit: contain;
}

/* ==================== LOADING OVERLAY PREMIUM (SEDERHANA) ==================== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-card {
    background: white;
    border-radius: 32px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-width: 260px;
}

/* Logo Animation (Denyut) */
.loading-logo {
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo img {
    width: 60px;
    height: auto;
}

/* Teks Memuat Data */
.loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Progress Bar */
.loading-progress {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    border-radius: 3px;
    animation: progressMove 1.2s ease-in-out infinite;
}

/* ========== KEYFRAMES ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes progressMove {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 70%;
        margin-left: 0%;
    }
    100% {
        width: 100%;
        margin-left: 100%;
    }
}

/* ==================== HALAMAN VERIFIKASI PREMIUM ==================== */

/* Container utama - background gradient premium */
.verification-container-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2e1a5e 100%);
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Card utama - glassmorphism effect */
.verification-card-premium {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 32px 24px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.4);
    animation: fadeInUp 0.5s ease-out;
}

/* Animasi masuk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon lingkaran gradient */
.verification-icon-premium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.verification-icon-premium i {
    font-size: 40px;
    color: white;
}

/* Typography */
.verification-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #f0abfc, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.verification-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* User Info Card */
.user-info-card-premium {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.info-row-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.info-row-premium:last-child {
    border-bottom: none;
}

.info-label-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.info-label-premium i {
    font-size: 14px;
    color: #a855f7;
}

.info-value-premium {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

/* Status Badge */
.status-badge-premium {
    background: rgba(245, 158, 11, 0.15);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
    animation: pulsePremium 1.5s infinite;
}

@keyframes pulsePremium {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Steps */
.steps-premium {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    text-align: left;
}

.step-premium {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-number-premium {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.step-text-premium {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Tombol WA */
.btn-wa-premium {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 15px;
    border-radius: 48px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa-premium:active {
    transform: scale(0.97);
}

/* Tombol Back */
.btn-back-premium {
    width: 100%;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.5);
    padding: 13px;
    border-radius: 48px;
    color: #c084fc;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-back-premium:active {
    transform: scale(0.97);
    background: rgba(124, 58, 237, 0.25);
}

/* Note */
.verification-note-premium {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    font-size: 11px;
    color: #a855f7;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.verification-note-premium i {
    margin-right: 6px;
    color: #d946ef;
}

/* ==================== RESPONSIVE UNTUK ANDROID WEBVIEW ==================== */
@media (max-width: 480px) {
    .verification-card-premium {
        padding: 28px 20px;
        margin: 0 10px;
    }
    
    .verification-title {
        font-size: 22px;
    }
    
    .verification-subtitle {
        font-size: 12px;
    }
    
    .user-info-card-premium {
        padding: 12px 16px;
    }
    
    .info-row-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .info-value-premium {
        max-width: 100%;
        text-align: left;
    }
    
    .step-text-premium {
        font-size: 12px;
    }
    
    .btn-wa-premium, 
    .btn-back-premium {
        padding: 13px;
        font-size: 14px;
    }
    
    .verification-icon-premium {
        width: 70px;
        height: 70px;
    }
    
    .verification-icon-premium i {
        font-size: 35px;
    }
}

/* Untuk layar sangat kecil (320px) */
@media (max-width: 360px) {
    .verification-card-premium {
        padding: 20px 16px;
    }
    
    .verification-title {
        font-size: 20px;
    }
    
    .step-number-premium {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-text-premium {
        font-size: 11px;
    }
}

/* ==================== HALAMAN AUTH (LOGIN, REGISTER, VERIFIKASI) ==================== */
#loginPage,
#registerPage,
#verificationPage {
    display: none;
    width: 100%;
    min-height: 100vh;
}

/* Default tampilan pertama */
#loginPage {
    display: flex;
}

/* Pastikan tidak ada position: fixed yang mengganggu */
#loginPage,
#registerPage,
#verificationPage {
    position: relative;
}

/* ==================== HALAMAN LUPA PASSWORD PREMIUM ==================== */
#forgotPasswordPage .forgot-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2e1a5e 100%);
    padding: 20px;
}

#forgotPasswordPage .forgot-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 40px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#forgotPasswordPage .forgot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

#forgotPasswordPage .forgot-icon i {
    font-size: 40px;
    color: white;
}

#forgotPasswordPage .forgot-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #f0abfc, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

#forgotPasswordPage .forgot-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.5;
}

#forgotPasswordPage .input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

#forgotPasswordPage .input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    font-size: 16px;
    z-index: 1;
}

#forgotPasswordPage .input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    font-size: 14px;
    color: white;
    outline: none;
    transition: all 0.2s;
}

#forgotPasswordPage .input-wrapper input:focus {
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

#forgotPasswordPage .btn-forgot-wa {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 14px;
    border-radius: 48px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

#forgotPasswordPage .btn-forgot-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

#forgotPasswordPage .btn-forgot-back {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(124, 58, 237, 0.5);
    padding: 12px;
    border-radius: 48px;
    color: #c084fc;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

#forgotPasswordPage .btn-forgot-back:hover {
    background: rgba(124, 58, 237, 0.1);
}

#forgotPasswordPage .forgot-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    font-size: 11px;
    color: #a855f7;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

#forgotPasswordPage .forgot-note i {
    margin-right: 6px;
    color: #d946ef;
}

/* Responsive */
@media (max-width: 480px) {
    #forgotPasswordPage .forgot-card {
        padding: 28px 20px;
    }
    
    #forgotPasswordPage .forgot-title {
        font-size: 22px;
    }
    
    #forgotPasswordPage .forgot-subtitle {
        font-size: 12px;
    }
}

/* ==================== TRANSFER MANUAL PREMIUM ==================== */
.manual-transfer-premium-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 20px 16px 30px;
}

/* Header */
.transfer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.back-btn-premium {
    width: 40px;
    height: 40px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9d5ff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn-premium i {
    font-size: 18px;
    color: #7c3aed;
}

.back-btn-premium:hover {
    background: #f3e8ff;
}

.transfer-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-header-title i {
    font-size: 22px;
    color: #7c3aed;
}

.transfer-header-title h2 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Countdown Card */
.countdown-premium-card {
    background: white;
    border-radius: 24px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6ff;
}

.countdown-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-icon i {
    font-size: 24px;
    color: #f59e0b;
}

.countdown-text {
    flex: 1;
}

.countdown-text span {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.countdown-text strong {
    font-size: 28px;
    font-weight: 800;
    color: #d97706;
    font-family: monospace;
    letter-spacing: 2px;
}

/* Bank List */
.bank-list-premium {
    margin-bottom: 20px;
}

.bank-list-premium h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.bank-list-premium h3 i {
    color: #7c3aed;
    margin-right: 6px;
}

.bank-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* BANK CARD - 3 BARIS */
.bank-card-premium {
    background: white;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #e9d5ff;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.bank-card-premium:hover {
    border-color: #c084fc;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.bank-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.bank-row:not(:last-child) {
    border-bottom: 1px solid #f0e6ff;
}

.bank-label {
    width: 100px;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.bank-value {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.bank-value .bank-name-text {
    color: #7c3aed;
    font-weight: 700;
}

.bank-value .bank-number-text {
    font-family: monospace;
    letter-spacing: 1px;
}

.bank-value .bank-owner-text {
    font-size: 12px;
    font-weight: normal;
    color: #475569;
}

.btn-copy-bank {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-copy-bank:hover {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
}

/* DETAIL PEMBAYARAN PREMIUM */
.payment-detail-premium-card {
    background: white;
    border-radius: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6ff;
}

.payment-detail-header {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-detail-header i {
    font-size: 20px;
    color: white;
}

.payment-detail-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.detail-list-premium {
    padding: 20px;
}

.detail-row-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row-premium:last-child {
    border-bottom: none;
}

.detail-label-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
}

.detail-label-premium i {
    font-size: 18px;
    width: 24px;
    color: #7c3aed;
}

/* Harga Paket - font besar */
.detail-value-premium {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.detail-row-premium.highlight {
    background: linear-gradient(135deg, #f3e8ff, #fae8ff);
    margin: 0 -20px;
    padding: 12px 20px;
}

/* Kode Unik - Badge besar */
.unique-code-badge {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 800;
    font-family: monospace;
    display: inline-block;
}

/* Total Row - dengan tombol di bawah */
.detail-row-premium.total-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px dashed #e9d5ff;
    flex-direction: column;
    align-items: stretch;
}

.total-row .detail-label-premium {
    margin-bottom: 8px;
    justify-content: center;
}

.total-row .detail-value-premium {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 16px;
}

/* Tombol Salin Total Transfer */
.btn-copy-total-transfer {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border: none;
    padding: 12px 16px;
    border-radius: 40px;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-copy-total-transfer:hover {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
}

/* Instruction Card */
.instruction-premium-card {
    background: #fffbeb;
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 3px solid #f59e0b;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.instruction-header i {
    font-size: 16px;
    color: #f59e0b;
}

.instruction-header span {
    font-weight: 600;
    color: #b45309;
    font-size: 13px;
}

.instruction-steps {
    margin: 0;
    padding-left: 20px;
}

.instruction-steps li {
    color: #475569;
    font-size: 12px;
    margin-bottom: 8px;
}

.instruction-steps li strong {
    color: #d97706;
}

.instruction-steps li small {
    color: #94a3b8;
    font-size: 10px;
}

/* Action Buttons */
.transfer-actions-premium {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-cancel-transfer {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 40px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-transfer:hover {
    background: #e2e8f0;
}

.btn-confirm-transfer {
    flex: 1;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 14px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-confirm-transfer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-confirm-transfer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loading-banks-premium {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9d5ff;
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .manual-transfer-premium-container {
        padding: 16px 12px 24px;
    }
    
    .countdown-text strong {
        font-size: 22px;
    }
    
    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .bank-label {
        width: auto;
    }
    
    .btn-copy-bank {
        margin-top: 12px;
    }
    
    .detail-value-premium {
        font-size: 15px;
    }
    
    .unique-code-badge {
        font-size: 16px;
        padding: 4px 12px;
    }
    
    .total-row .detail-value-premium {
        font-size: 20px;
    }
    
    .btn-copy-total-transfer {
        padding: 10px;
        font-size: 13px;
    }
    
    .transfer-actions-premium {
        flex-direction: column;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #64748b;
    background: white;
    border-radius: 20px;
}

/* Selected Bank Card */
.selected-bank-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #e9d5ff;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.selected-bank-card:hover {
    border-color: #c084fc;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* Package Info Row */
.detail-row-premium.package-info {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(217, 70, 239, 0.05));
    border-radius: 12px;
    margin: 0 -20px;
    padding: 12px 20px;
}

.detail-row-premium.package-info .detail-label-premium i {
    color: #d946ef;
}

.detail-row-premium.package-info .detail-value-premium {
    font-weight: 800;
    color: #d946ef;
}

/* Modal Pending Payment */
.pending-detail-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
}

.pending-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.pending-row:last-child {
    border-bottom: none;
}

.pending-label {
    font-weight: 600;
    color: #64748b;
}

.pending-label i {
    color: #7c3aed;
    margin-right: 8px;
    width: 20px;
}

.pending-value {
    font-weight: 600;
    color: #1e293b;
}

.btn-cancel-pending {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 40px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-pending:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-continue-pending {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue-pending:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}


/* Tombol Close Modal */
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 400;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Countdown di History Card */
.history-countdown {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 12px;
    font-size: 12px;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-countdown i {
    font-size: 14px;
}

.history-countdown .countdown-time {
    font-weight: 700;
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ========== NOTIFIKASI PAGE ========== */
.notifikasi-container {
    min-height: 100vh;
    background: #f8fafc;
}

/* Header Notifikasi - Perbaikan */
.notifikasi-header {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.notifikasi-header .back-btn {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.notifikasi-header .back-btn:active {
    background: #e2e8f0;
}

.notifikasi-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notifikasi-header h2 i {
    color: #7c3aed;  /* Icon bell warna ungu */
    font-size: 18px;
}

.mark-all-read {
    background: none;
    border: 1px solid #7c3aed;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    transition: all 0.2s;
}

.mark-all-read:active {
    background: #7c3aed;
    color: white;
}

.notifikasi-list {
    padding: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.notifikasi-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.notifikasi-item.unread {
    background: #faf9ff;
    border-left: 4px solid #7c3aed;
}

.notifikasi-icon {
    width: 48px;
    height: 48px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notifikasi-icon i {
    font-size: 22px;
}

.notifikasi-icon.success { background: #d1fae5; color: #10b981; }
.notifikasi-icon.warning { background: #fef3c7; color: #f59e0b; }
.notifikasi-icon.error { background: #fee2e2; color: #ef4444; }
.notifikasi-icon.info { background: #e0e7ff; color: #7c3aed; }
.notifikasi-icon.promo { background: #fae8ff; color: #d946ef; }

.notifikasi-content { flex: 1; }
.notifikasi-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: #1e293b; }
.notifikasi-message { font-size: 12px; color: #64748b; margin-bottom: 8px; line-height: 1.4; }
.notifikasi-time { font-size: 10px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.notifikasi-badge { width: 8px; height: 8px; background: #ef4444; border-radius: 10px; flex-shrink: 0; }

.loading-notifikasi, .empty-notifikasi {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.loading-notifikasi i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #7c3aed;
}

/* Metode pembayaran nonaktif */
.payment-method-item.disabled {
    opacity: 0.6;
    filter: grayscale(0.3);
    pointer-events: none;
    cursor: not-allowed;
}

.payment-method-item.disabled .method-radio i {
    color: #94a3b8 !important;
}

.payment-method-item.disabled .method-name {
    color: #64748b;
}

.payment-method-item.disabled .method-desc {
    color: #94a3b8;
}

/* ==================== MANUAL BANK SELECTION PAGE PREMIUM ==================== */
/* ==================== MANUAL BANK SELECTION PAGE ==================== */
#manualBankSelectionPage {
    background: #f8fafc;
    min-height: 70vh;
    padding-bottom: 50px;
}

/* Header */
#manualBankSelectionPage .manual-bank-header {
    background: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 20px;
}

#manualBankSelectionPage .manual-bank-header .back-btn {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
}

#manualBankSelectionPage .manual-bank-header .header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
}

#manualBankSelectionPage .manual-bank-header .header-title i {
    color: #7c3aed;
}

/* Content */
#manualBankSelectionPage .manual-bank-content {
    padding: 0 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Info Banner */
#manualBankSelectionPage .info-banner {
    background: #eef2ff;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

#manualBankSelectionPage .info-banner i {
    color: #7c3aed;
    font-size: 20px;
}

#manualBankSelectionPage .info-banner strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

#manualBankSelectionPage .info-banner p {
    font-size: 12px;
    color: #475569;
    margin: 0;
}

/* Bank List */
#manualBankSelectionPage .bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* Bank Card - Simple & Clean */
#manualBankSelectionPage .bank-option-manual {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

#manualBankSelectionPage .bank-option-manual:hover {
    border-color: #7c3aed;
    background: #faf9ff;
}

#manualBankSelectionPage .bank-option-manual.selected {
    border: 2px solid #7c3aed;
    background: #faf9ff;
}

/* Radio */
#manualBankSelectionPage .bank-option-manual .method-radio {
    width: 22px;
}

#manualBankSelectionPage .bank-option-manual .method-radio i {
    font-size: 18px;
    color: #cbd5e1;
}

#manualBankSelectionPage .bank-option-manual.selected .method-radio i {
    color: #7c3aed;
}

/* Icon */
#manualBankSelectionPage .bank-option-manual .method-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#manualBankSelectionPage .bank-option-manual .method-icon i {
    font-size: 24px;
    color: #1e293b;
}

/* Info */
#manualBankSelectionPage .bank-option-manual .method-info {
    flex: 1;
}

#manualBankSelectionPage .bank-option-manual .method-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

#manualBankSelectionPage .bank-option-manual .method-desc {
    font-size: 12px;
    color: #64748b;
}

/* Payment Summary */
#manualBankSelectionPage .payment-summary {
    margin-top: 20px;
}

#manualBankSelectionPage .summary-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

#manualBankSelectionPage .summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 12px;
}

#manualBankSelectionPage .summary-title i {
    color: #7c3aed;
}

#manualBankSelectionPage .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

#manualBankSelectionPage .summary-item.highlight {
    background: #fef3c7;
    margin: 0 -16px;
    padding: 10px 16px;
}

#manualBankSelectionPage .summary-item.total {
    font-weight: 700;
    border-top: 1px solid #eef2f6;
    margin-top: 8px;
    padding-top: 12px;
}

#manualBankSelectionPage .summary-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
    font-size: 12px;
    color: #ef4444;
}

/* Action Buttons */
#manualBankSelectionPage .bank-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#manualBankSelectionPage .btn-cancel {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

#manualBankSelectionPage .btn-continue {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

#manualBankSelectionPage .btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
#manualBankSelectionPage .loading-banks {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Pagination Notifikasi */
.notifikasi-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eef2f6;
    margin-top: 10px;
}

.notifikasi-pagination .pagination-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.notifikasi-pagination .pagination-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.notifikasi-pagination .pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #7c3aed;
}

.notifikasi-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notifikasi-pagination .page-number {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
    text-align: center;
}

.notifikasi-pagination .page-number.active {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
}

.notifikasi-pagination .page-number:hover:not(.active) {
    background: #f1f5f9;
    border-color: #7c3aed;
}

.notifikasi-pagination .page-number.ellipsis {
    border: none;
    background: none;
    cursor: default;
}

/* ========== HALAMAN PILIH JENIS STRUK PREMIUM ========== */

#pilihJenisStrukPage {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    min-height: 70vh;
    padding-bottom: 30px;
}

#pilihJenisStrukPage .page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    padding: 20px 16px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;  /* ← PUSATKAN */
    }

#pilihJenisStrukPage .page-header .back-button {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    left: 16px; 
}

#pilihJenisStrukPage .page-header .back-button:active {
    background: rgba(255,255,255,0.4);
    transform: scale(0.95);
}

#pilihJenisStrukPage .page-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin: 12px 0 0 0;
    letter-spacing: -0.5px;
}

/* Container */
.jenis-struk-container {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card Premium */
.jenis-struk-card {
    background: white;
    border-radius: 28px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.jenis-struk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(217, 70, 239, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jenis-struk-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jenis-struk-card:active::before {
    opacity: 1;
}

/* Icon Premium */
.jenis-struk-icon {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

.jenis-struk-card:active .jenis-struk-icon {
    transform: scale(0.95);
}

.jenis-struk-icon i {
    font-size: 30px;
    color: white;
}

/* Info Text */
.jenis-struk-info {
    flex: 1;
}

.jenis-struk-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.jenis-struk-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Arrow Icon */
.jenis-struk-arrow {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.jenis-struk-card:active .jenis-struk-arrow {
    background: #7c3aed;
    transform: translateX(5px);
}

.jenis-struk-card:active .jenis-struk-arrow i {
    color: white;
}

.jenis-struk-arrow i {
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

/* Tambahan efek shimmer untuk card tertentu */
.jenis-struk-card:nth-child(1):active .jenis-struk-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.4);
}

.jenis-struk-card:nth-child(2):active .jenis-struk-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 8px 20px -5px rgba(245, 158, 11, 0.4);
}

.jenis-struk-card:nth-child(3):active .jenis-struk-icon {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .jenis-struk-icon {
        width: 56px;
        height: 56px;
        border-radius: 28px;
    }
    
    .jenis-struk-icon i {
        font-size: 26px;
    }
    
    .jenis-struk-info h3 {
        font-size: 16px;
    }
    
    .jenis-struk-card {
        padding: 16px;
    }
}

/* Animasi fade in untuk halaman */
#pilihJenisStrukPage {
    animation: fadeInPage 0.3s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk cards */
.jenis-struk-card {
    animation: slideUp 0.4s ease backwards;
}

.jenis-struk-card:nth-child(1) { animation-delay: 0.05s; }
.jenis-struk-card:nth-child(2) { animation-delay: 0.1s; }
.jenis-struk-card:nth-child(3) { animation-delay: 0.15s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MANUAL PLN PAGE - PREMIUM STYLE ========== */

#manualPlnPage {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    min-height: 100vh;
}

/* Header Premium */
#manualPlnPage .page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    padding: 20px 16px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;  /* ← PUSATKAN */
}

#manualPlnPage .page-header .back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 16px;
}

#manualPlnPage .page-header .back-button:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

#manualPlnPage .page-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin: 12px 0 0 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}



#manualPlnPage .page-header h2 i {
    font-size: 22px;
    color: white;
    margin-right: 8px;
}

/* Container */
.manual-pln-container {
    padding: 0 16px 30px 16px;
}

/* Form Section Premium */
.manual-pln-container .form-section {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.manual-pln-container .form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-pln-container .form-section-title i {
    color: #7c3aed;
    font-size: 20px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Form Row & Col */
.manual-pln-container .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.manual-pln-container .form-row:last-child {
    margin-bottom: 0;
}

.manual-pln-container .form-col {
    flex: 1;
    min-width: 140px;
}

.manual-pln-container .form-col label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.manual-pln-container .form-col label i {
    margin-right: 6px;
    font-size: 12px;
    color: #7c3aed;
}

/* Form Input Premium */
.manual-pln-container .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.manual-pln-container .form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.manual-pln-container .form-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* Total Display Premium */
.manual-pln-container .total-display {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 20px;
    padding: 14px 16px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    letter-spacing: 0.5px;
}

/* Tombol Submit Premium */
.manual-pln-container .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.manual-pln-container .btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 16px 20px;
    border-radius: 60px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px -5px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.manual-pln-container .btn-submit:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px -3px rgba(124, 58, 237, 0.4);
}

.manual-pln-container .btn-submit i {
    font-size: 18px;
}

/* Animasi Fade In */
#manualPlnPage {
    animation: fadeInPage 0.3s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk form section */
.manual-pln-container .form-section {
    animation: slideUp 0.4s ease backwards;
}

.manual-pln-container .form-section:first-child {
    animation-delay: 0.05s;
}

.manual-pln-container .form-section:last-child {
    animation-delay: 0.1s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .manual-pln-container .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .manual-pln-container .form-col {
        min-width: 100%;
    }
    
    .manual-pln-container .page-header h2 {
        font-size: 20px;
    }
    
    .manual-pln-container .form-section {
        padding: 16px;
    }
    
    .manual-pln-container .btn-submit {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* ========== MANUAL TAGIHAN PAGE ========== */

#manualTagihanPage {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    min-height: 100vh;
}

#manualTagihanPage .page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    padding: 20px 16px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#manualTagihanPage .page-header .back-button {
    position: absolute;
    left: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#manualTagihanPage .page-header .back-button:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

#manualTagihanPage .page-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#manualTagihanPage .page-header h2 i {
    font-size: 20px;
}

/* Container */
.manual-tagihan-container {
    padding: 0 16px 30px 16px;
}

/* Form Section */
.manual-tagihan-container .form-section {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.manual-tagihan-container .form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-tagihan-container .form-section-title i {
    color: #7c3aed;
    font-size: 18px;
}

/* Form Row & Col */
.manual-tagihan-container .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.manual-tagihan-container .form-row:last-child {
    margin-bottom: 0;
}

.manual-tagihan-container .form-col {
    flex: 1;
    min-width: 140px;
}

.manual-tagihan-container .form-col label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.manual-tagihan-container .form-col label i {
    margin-right: 6px;
    font-size: 12px;
    color: #7c3aed;
}

/* Form Input */
.manual-tagihan-container .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.manual-tagihan-container .form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Total Display */
.manual-tagihan-container .total-display {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 20px;
    padding: 14px 16px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Tombol Submit */
.manual-tagihan-container .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.manual-tagihan-container .btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 16px 20px;
    border-radius: 60px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px -5px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.manual-tagihan-container .btn-submit:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px -3px rgba(124, 58, 237, 0.4);
}

/* Animasi */
#manualTagihanPage {
    animation: fadeInPage 0.3s ease;
}

.manual-tagihan-container .form-section {
    animation: slideUp 0.4s ease backwards;
}

.manual-tagihan-container .form-section:first-child {
    animation-delay: 0.05s;
}

.manual-tagihan-container .form-section:last-child {
    animation-delay: 0.1s;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .manual-tagihan-container .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .manual-tagihan-container .form-col {
        min-width: 100%;
    }
    
    #manualTagihanPage .page-header h2 {
        font-size: 18px;
    }
    
    .manual-tagihan-container .form-section {
        padding: 16px;
    }
    
    .manual-tagihan-container .btn-submit {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Modal Edit */
#modalEditStruk {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

#modalEditStruk .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#modalEditStruk .modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#modalEditStruk .modal-header {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalEditStruk .modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

#modalEditStruk .modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 32px;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#modalEditStruk .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

#modalEditStruk .modal-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
}

#modalEditStruk .btn-cancel {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 12px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
}

#modalEditStruk .btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ========== FORM DI DALAM MODAL EDIT ========== */

#modalEditStruk .form-section {
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

#modalEditStruk .form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

#modalEditStruk .form-section-title i {
    color: #7c3aed;
    font-size: 14px;
}

#modalEditStruk .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

#modalEditStruk .form-row:last-child {
    margin-bottom: 0;
}

#modalEditStruk .form-col {
    flex: 1;
    min-width: 120px;
}

#modalEditStruk .form-col label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

#modalEditStruk .form-col label i {
    margin-right: 4px;
    font-size: 10px;
}

#modalEditStruk .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

#modalEditStruk .form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

#modalEditStruk .total-display {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    #modalEditStruk .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    #modalEditStruk .form-col {
        min-width: 100%;
    }
    
    #modalEditStruk .modal-container {
        width: 95%;
    }
    
    #modalEditStruk .modal-body {
        padding: 16px;
    }
}

/* ========== CSS PREMIUM LIGHT UNTUK PREVIEW HALAMAN (OVERRIDE) ========== */

/* Container utama halaman preview */
#previewStrukPage {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%) !important;
    padding: 10px 10px !important;
    min-height: 100vh !important;
    position: relative !important;
}

/* Card tempat struk berada */
.struk-card {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Container preview content */
#strukPreviewContent {
    background: transparent !important;
    overflow-x: auto !important;
    display: flex !important;
    justify-content: center !important;
}

/* ========== PREMIUM HEADER ========== */
.preview-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(124, 58, 237, 0.15) !important;
    transition: all 0.3s ease !important;
}

.preview-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.preview-header h2 i {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* ========== PREMIUM TEMPLATE SELECTOR ========== */
.template-selector {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(124, 58, 237, 0.15) !important;
    transition: all 0.3s ease !important;
}

.template-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b21a5 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.template-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;  /* tidak turun ke baris baru */
    gap: 8px !important;
    overflow-x: auto !important;    /* scroll jika terlalu panjang */
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
}

.template-btn-page {
    flex-shrink: 0 !important;      /* tombol tidak mengecil */
    padding: 6px 14px !important;
    font-size: 11px !important;
    white-space: nowrap !important;  /* teks dalam tombol tidak turun */
}

/* Hilangkan scrollbar (opsional, biar lebih rapi) */
.template-buttons::-webkit-scrollbar {
    height: 2px !important;
}

.template-buttons::-webkit-scrollbar-track {
    background: #e2e8f0 !important;
    border-radius: 10px !important;
}

.template-buttons::-webkit-scrollbar-thumb {
    background: #7c3aed !important;
    border-radius: 10px !important;
}

.template-btn-page.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

.template-btn-page:active:not(.active) {
    background: #eef2ff !important;
    transform: translateY(-1px) !important;
}

/* ========== PREMIUM TOMBOL AKSI ========== */
.preview-action-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;  /* jangan turun ke baris baru */
}

.preview-action-btn {
    flex: 1 !important;
    padding: 10px 8px !important;  /* kurangi padding */
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;  /* kurangi jarak icon dan teks */
    transition: all 0.3s ease !important;
    border: none !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    color: #475569 !important;
    white-space: nowrap !important;  /* teks tidak turun */
}

.preview-action-btn.edit-btn {
    background: linear-gradient(135deg, #fef3c7, #fffbeb) !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.preview-action-btn.edit-btn i {
    color: #f59e0b !important;
}

.preview-action-btn i {
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.preview-action-btn.print-btn {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Hover Effect */
.preview-action-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.preview-action-btn:hover i {
    transform: scale(1.1) !important;
}


.preview-action-btn.print-btn i {
    color: #10b981 !important;
}

.preview-action-btn.share-btn {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    color: #6d28d9 !important;
    border: 1px solid #c4b5fd !important;
}

.preview-action-btn.share-btn i {
    color: #8b5cf6 !important;
}

.preview-action-btn:active {
    transform: translateY(0) !important;
}

/* Animasi fade in untuk halaman */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#previewStrukPage .preview-header,
#previewStrukPage .template-selector,
#previewStrukPage .struk-card,
#previewStrukPage .preview-action-buttons {
    animation: fadeInUp 0.4s ease forwards !important;
}

#previewStrukPage .preview-header { animation-delay: 0s; }
#previewStrukPage .template-selector { animation-delay: 0.1s; }
#previewStrukPage .struk-card { animation-delay: 0.2s; }
#previewStrukPage .preview-action-buttons { animation-delay: 0.3s; }

/* Responsive untuk mobile */
@media (max-width: 480px) {
    #previewStrukPage {
        padding: 10px 10px !important;
    }
    
    .preview-header,
    .template-selector {
        padding: 16px 10px !important;
        border-radius: 20px !important;
    }
    
    .preview-header h2 {
        font-size: 18px !important;
    }
    
    .preview-action-btn {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    .template-btn-page {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }
}




/* ========== KERTAS STRUK (YANG AKAN DICETAK) ========== */
.struk-paper {
    width: 58mm;
    max-width: 58mm;
    margin: 0 auto;
    background: white;
    padding: 6px 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 9px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}

.struk-paper > div {
    width: 100%;
    display: block;
    margin: 1px 0 !important;
}

/* Semua teks dalam struk */
.struk-paper *,
#strukPreviewContent * {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 9px;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Setiap baris dasar */
.struk-paper > div,
#strukPreviewContent > div {
    width: 100%;
    display: block;
    margin: 2px 0;
}

/* ========== BARIS DENGAN FORMAT JUSTIFY (RATA KIRI-KANAN) ========== */
/* Baris dengan format justify */
.struk-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
    margin: 1px 0 !important;
    padding: 0 2px !important;
}

/* Label di kiri */
.struk-row span:first-child {
    text-align: left;
    white-space: nowrap;
    margin-right: 8px;
}

/* Value di kanan */
.struk-row span:last-child {
    text-align: right;
    word-break: break-word;
    max-width: 65%;
}

/* Teks tengah */
.struk-center {
    text-align: center !important;
    width: 100% !important;
    margin: 2px 0 !important;
}

/* Garis pemisah */
.struk-line {
    text-align: center !important;
    width: 100% !important;
    margin: 2px 0 !important;
    letter-spacing: normal !important;
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .preview-action-buttons {
        gap: 8px !important;
    }
    
    .preview-action-btn {
        padding: 8px 6px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    
    .preview-action-btn i {
        font-size: 12px !important;
    }
    
    .preview-action-btn span {
        display: inline-block !important;
    }
}

/* Untuk layar yang sangat sempit (opsional) */
@media (max-width: 360px) {
    .preview-action-btn span {
        display: none !important;
    }
    
    .preview-action-btn {
        max-width: 50px !important;
        padding: 12px !important;
    }
    
    .preview-action-btn i {
        font-size: 16px !important;
        margin: 0 !important;
    }
}


/* ========== KHUSUS MOBILE (LEBAR ≤ 480px) ========== */
@media (max-width: 480px) {
    .app-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        border-radius: 0 !important;
        padding : 50px 20px 12px 20px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
    }
    
    .app-container {
        padding-top: 110px !important;
        padding-bottom: 135px !important;
    }
}

/* ================================================================
   REFERRAL PAGE - MINIMALIS VIOLET-FUCHSIA
   ================================================================ */

.referral-page {
    background: #f8faff;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* ================================================================
   REFERRAL HEADER - PREMIUM MODERN
   ================================================================ */

.referral-header {
    background: linear-gradient(145deg, #5B21B6, #7C3AED, #A855F7, #D946EF);
    background-size: 300% 300%;
    padding: 20px 16px 28px;
    border-radius: 0 0 36px 36px;
    color: white;
    position: relative;
    overflow: hidden;
    animation: gradientMove 8s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- DECORATIVE ELEMENTS ---------- */
.referral-header .bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.referral-header .bg-circle.c1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
    animation: floatCircle 10s ease-in-out infinite;
}

.referral-header .bg-circle.c2 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: -40px;
    animation: floatCircle 12s ease-in-out infinite reverse;
}

.referral-header .bg-circle.c3 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 40%;
    background: rgba(255, 255, 255, 0.03);
    animation: floatCircle 6s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* ---------- GLOW ORB ---------- */
.referral-header .glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.2), transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    filter: blur(40px);
}

/* ---------- HEADER TOP ---------- */
.referral-header .header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.referral-header .header-top .back-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-header .header-top .back-btn:active {
    transform: scale(0.92);
}

.referral-header .header-top h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    letter-spacing: -0.3px;
}

/* ---------- BADGE LEVEL - GLASSMORPHISM ---------- */
.referral-header .header-top .level-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.referral-header .header-top .level-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---------- SALDO CARD ---------- */
.saldo-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 18px 16px;
    margin-top: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.saldo-card .label {
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.saldo-card .amount {
    font-size: 32px;
    font-weight: 800;
    margin: 2px 0 14px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- ACTION BUTTONS 50:50 ---------- */
.saldo-card .actions {
    display: flex;
    gap: 8px;
}

.saldo-card .actions button {
    flex: 1;
    padding: 10px 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.saldo-card .actions .btn-primary {
    background: #d946ef;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 2px 12px rgba(217, 70, 239, 0.3);
}

.saldo-card .actions .btn-primary:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.28);
}

.saldo-card .actions .btn-secondary {
    background: #d946ef;  /* ← FUCHSIA SOLID */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 2px 12px rgba(217, 70, 239, 0.2);  /* ← TAMBAHKAN SHADOW */
}

.saldo-card .actions .btn-secondary:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.17);
}

/* ---------- CUSTOM BADGE LEVEL DI HEADER ---------- */
/* ---------- BADGE LEVEL - FONT AWESOME ---------- */
.level-badge-custom {
    background: #d946ef;  /* ← FUCHSIA GRADIENT */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(217, 70, 239, 0.25);  /* ← TAMBAHKAN SHADOW */
}

.level-badge-custom .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.level-badge-custom .badge-text {
    letter-spacing: 0.3px;
    color: white;
}

.level-badge-custom .badge-level {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Badge Pro - Warna Emas */
.level-badge-custom.pro {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.2);
}

.level-badge-custom.pro .badge-level {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

/* ---------- LEVEL CARD ---------- */
.level-card {
    background: white;
    border-radius: 24px;
    padding: 22px 20px 20px;
    margin: 10px 16px 0;
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.08);
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

/* ---------- DECORATIVE TOP LINE ---------- */
.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #d946ef, #7c3aed);
    border-radius: 0 0 4px 4px;
    opacity: 0.6;
}

/* ---------- LEVEL HEADER ---------- */
.level-card .level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.level-card .level-info .level-name {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-card .level-info .level-name .level-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.level-card .level-info .level-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    font-size: 10px;
    padding: 3px 12px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.level-card .level-info .level-badge.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.level-card .level-info .level-commission {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.level-card .level-info .level-commission strong {
    color: #7c3aed;
    font-weight: 700;
}

.level-card .level-stats {
    text-align: right;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 14px;
}

.level-card .level-stats .stat-number {
    font-weight: 800;
    font-size: 20px;
    color: #0f172a;
    line-height: 1.2;
}

.level-card .level-stats .stat-number.glow {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.level-card .level-stats .stat-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- PROGRESS ---------- */
.level-card .progress-container {
    margin-top: 14px;
}

.level-card .progress-container .progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.level-card .progress-container .progress-header .progress-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.level-card .progress-container .progress-header .progress-label i {
    font-size: 10px;
    color: #7c3aed;
}

.level-card .progress-container .progress-track {
    background: #f1f5f9;
    border-radius: 100px;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
}

.level-card .progress-container .progress-track .progress-fill {
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    height: 100%;
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0%;
    position: relative;
}

.level-card .progress-container .progress-track .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.level-card .progress-container .progress-message {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.level-card .progress-container .progress-message strong {
    color: #7c3aed;
    font-weight: 700;
}

/* ---------- STATS MINI ---------- */
.level-card .stats-mini {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.level-card .stats-mini .stat-item {
    flex: 1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.level-card .stats-mini .stat-item:hover {
    border-color: #e2e8f0;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.level-card .stats-mini .stat-item .number {
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
}

.level-card .stats-mini .stat-item .number.violet {
    color: #7c3aed;
}

.level-card .stats-mini .stat-item .number.green {
    color: #10b981;
}

.level-card .stats-mini .stat-item .number.gold {
    color: #f59e0b;
}

.level-card .stats-mini .stat-item .label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
      .level-card {
        padding: 18px 16px 16px;
        margin: 8px 12px 0;
        border-radius: 20px;
    }
    
    .level-card .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .level-card .level-stats {
        text-align: left;
        width: 100%;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .level-card .level-stats .stat-number {
        font-size: 18px;
    }
    
    .level-card .level-stats .stat-label {
        font-size: 10px;
    }
    
    .level-card .level-info .level-name {
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .level-card .level-info .level-name .level-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    /* ---------- PROGRESS MOBILE - LEBIH JELAS ---------- */
    .level-card .progress-container .progress-header {
        font-size: 10px;
        padding: 0;
    }
    
    .level-card .progress-container .progress-header .progress-text {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    /* ✅ PROGRESS TRACK LEBIH TEBAL DI MOBILE */
    .level-card .progress-container .progress-track {
        height: 10px;
        margin-top: 8px;
    }
    
    .level-card .progress-container .progress-message {
        font-size: 10px;
        padding: 6px 10px;
        border-radius: 10px;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    
    .level-card .progress-container .progress-message .msg-icon {
        font-size: 12px;
    }
    
    .level-card .stats-mini {
        gap: 8px;
        margin-top: 14px;
        padding-top: 12px;
        flex-wrap: wrap;
    }
    
    .level-card .stats-mini .stat-item {
        flex: calc(50% - 4px);
        padding: 10px 6px;
        border-radius: 12px;
    }
    
    .level-card .stats-mini .stat-item .number {
        font-size: 16px;
    }
}

/* ---------- SHARE CARD ---------- */
.share-card {
    background: white;
    border-radius: 24px;
    padding: 20px 20px 18px;
    margin: 14px 16px 0;
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ---------- DECORATIVE ---------- */
.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #d946ef, #7c3aed);
    opacity: 0.5;
}

.share-card .share-title {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.share-card .share-title .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.share-card .share-title .title-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.share-card .share-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
    padding-left: 36px;
}

.share-card .share-subtitle strong {
    color: #7c3aed;
    font-weight: 700;
}

/* ---------- CODE DISPLAY ---------- */
.share-card .code-display {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 16px;
    padding: 16px 18px;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.share-card .code-display:hover {
    border-color: rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.share-card .code-display .code-label {
    font-size: 8px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.share-card .code-display .code-value {
    font-family: 'Inter', monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #5b21b6;
}

.share-card .code-display .code-copy-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #94a3b8;
    opacity: 0;
    transition: all 0.3s ease;
}

.share-card .code-display:hover .code-copy-hint {
    opacity: 1;
}

/* ---------- CODE ACTIONS - TOMBOL LEBIH TINGGI ---------- */
.share-card .code-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-card .code-actions button {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 12px 14px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-card .code-actions button:active {
    transform: scale(0.94);
}

/* ---------- TOMBOL SALIN ---------- */
.share-card .code-actions .btn-copy {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.share-card .code-actions .btn-copy:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

/* ---------- TOMBOL WHATSAPP ---------- */
.share-card .code-actions .btn-wa {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

.share-card .code-actions .btn-wa:hover {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

/* ---------- TOMBOL UBAH ---------- */
.share-card .code-actions .btn-edit {
    background: #f1f5f9;
    color: #475569;
}

.share-card .code-actions .btn-edit:hover {
    background: #e2e8f0;
}

/* ---------- RESPONSIVE MOBILE (TOMBOL LEBIH TINGGI) ---------- */
@media (max-width: 480px) {
    .share-card {
        padding: 16px 16px 14px;
        border-radius: 20px;
        margin: 12px 12px 0;
    }
    
    .share-card .share-title {
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .share-card .share-title .title-badge {
        font-size: 7px;
        padding: 2px 8px;
    }
    
    .share-card .share-title .title-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .share-card .share-subtitle {
        font-size: 11px;
        padding-left: 0;
        margin-bottom: 12px;
    }
    
    .share-card .code-display {
        padding: 14px 12px;
        border-radius: 14px;
    }
    
    .share-card .code-display .code-value {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .share-card .code-display .code-copy-hint {
        display: none;
    }
    
    /* ✅ TOMBOL SHARE LEBIH TINGGI DI MOBILE */
    .share-card .code-actions {
        gap: 8px;
    }
    
    .share-card .code-actions button {
        padding: 14px 10px;
        font-size: 12px;
        border-radius: 30px;
        min-width: calc(50% - 4px);
    }
    
    .share-card .code-actions button i {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .share-card .code-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .share-card .code-actions button {
        width: 100%;
        min-width: 100%;
        padding: 14px 12px;
    }
}

/* ---------- TOAST NOTIFICATION ---------- */
.share-card .copy-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    pointer-events: none;
}

.share-card .copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.share-card .copy-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ---------- BONUS CARD ---------- */
.bonus-card {
    background: white;
    border-radius: 24px;
    padding: 18px 20px 16px;
    margin: 12px 16px 0;
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.06);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ---------- DECORATIVE ---------- */
.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d946ef, #7c3aed, #d946ef);
    opacity: 0.5;
}

.bonus-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.04), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.bonus-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.bonus-card:active {
    transform: scale(0.98);
}

/* ---------- BONUS TITLE ---------- */
.bonus-card .bonus-title {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bonus-card .bonus-title .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.bonus-card .bonus-title .info-tip {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
    transition: all 0.3s ease;
}

.bonus-card:hover .bonus-title .info-tip {
    color: #7c3aed;
    transform: scale(1.1);
}

.bonus-card .bonus-title .click-hint {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.bonus-card:hover .bonus-title .click-hint {
    background: #ede9fe;
    color: #7c3aed;
}

/* ---------- LEVEL ROADMAP ---------- */
.bonus-card .level-roadmap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px 0;
}

/* ---------- LEVEL ITEM ---------- */
.bonus-card .level-roadmap .level-item {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border-radius: 14px;
    background: #f8fafc;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.bonus-card .level-roadmap .level-item.active {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.1);
    transform: scale(1.02);
}

.bonus-card .level-roadmap .level-item .icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}

.bonus-card .level-roadmap .level-item .name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.bonus-card .level-roadmap .level-item .range {
    font-size: 8px;
    opacity: 0.6;
    font-weight: 500;
    display: block;
}

.bonus-card .level-roadmap .level-item .percent {
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
    display: block;
}

.bonus-card .level-roadmap .level-item.active .percent {
    color: white;
}

/* ---------- LEVEL ARROW ---------- */
.bonus-card .level-roadmap .level-arrow {
    color: #cbd5e1;
    font-size: 14px;
    flex-shrink: 0;
    padding: 0 2px;
    font-weight: 300;
}

.bonus-card .level-roadmap .level-arrow i {
    transition: all 0.3s ease;
}

.bonus-card:hover .level-roadmap .level-arrow i {
    color: #7c3aed;
}

/* ---------- PROGRESS BAR DI BONUS CARD ---------- */
.bonus-card .bonus-progress {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.bonus-card .bonus-progress .bonus-progress-text {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bonus-card .bonus-progress .bonus-progress-text strong {
    color: #7c3aed;
    font-weight: 700;
}

.bonus-card .bonus-progress .bonus-progress-track {
    background: #f1f5f9;
    border-radius: 100px;
    height: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.bonus-card .bonus-progress .bonus-progress-track .bonus-progress-fill {
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s ease;
    width: 0%;
}

/* ================================================================
   RESPONSIVE BONUS CARD
   ================================================================ */

@media (max-width: 480px) {
    .bonus-card {
        padding: 14px 14px 12px;
        margin: 10px 12px 0;
        border-radius: 20px;
    }
    
    .bonus-card .bonus-title {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .bonus-card .bonus-title .title-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .bonus-card .bonus-title .click-hint {
        font-size: 8px;
        padding: 1px 8px;
    }
    
    .bonus-card .level-roadmap .level-item {
        padding: 8px 4px;
        border-radius: 12px;
    }
    
    .bonus-card .level-roadmap .level-item .icon {
        font-size: 18px;
    }
    
    .bonus-card .level-roadmap .level-item .name {
        font-size: 9px;
    }
    
    .bonus-card .level-roadmap .level-item .percent {
        font-size: 11px;
    }
    
    .bonus-card .level-roadmap .level-arrow {
        font-size: 11px;
    }
    
    .bonus-card .bonus-progress .bonus-progress-text {
        font-size: 10px;
    }
}

/* ---------- GUIDE CARD ---------- */
.guide-card {
    background: white;
    border-radius: 24px;
    padding: 16px 20px 14px;
    margin: 10px 16px 0;
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.06);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ---------- DECORATIVE ---------- */
.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #d946ef, #7c3aed);
    opacity: 0.4;
}

.guide-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.03), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.guide-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

.guide-card:active {
    transform: scale(0.98);
}

/* ---------- GUIDE TITLE ---------- */
.guide-card .guide-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-card .guide-title .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.guide-card .guide-title .info-tip {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-title .info-tip {
    color: #7c3aed;
    transform: scale(1.1);
}

.guide-card .guide-title .guide-arrow {
    color: #cbd5e1;
    font-size: 12px;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-title .guide-arrow {
    color: #7c3aed;
    transform: translateX(4px);
}

.guide-card .guide-title .click-hint {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-title .click-hint {
    background: #ede9fe;
    color: #7c3aed;
}

/* ---------- GUIDE PREVIEW ---------- */
.guide-card .guide-preview {
    margin-top: 4px;
    padding-left: 36px;
}

.guide-card .guide-preview .guide-hint {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-card .guide-preview .guide-hint i {
    font-size: 10px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-preview .guide-hint i {
    color: #7c3aed;
}

/* ---------- GUIDE BADGE (Jumlah Aturan) ---------- */
.guide-card .guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-badge {
    background: #ede9fe;
    color: #7c3aed;
}

/* ================================================================
   POPUP GUIDE - STYLE
   ================================================================ */

.guide-popup .swal2-popup {
    border-radius: 24px;
    padding: 20px;
    max-width: 420px;
}

.guide-popup .swal2-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.guide-popup .guide-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.guide-popup .guide-detail-item:last-child {
    border-bottom: none;
}

.guide-popup .guide-detail-item .icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    margin-top: 2px;
}

.guide-popup .guide-detail-item .content .title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.guide-popup .guide-detail-item .content .desc {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
    line-height: 1.4;
}

.guide-popup .guide-detail-item .content .desc strong {
    color: #7c3aed;
}

.guide-popup .guide-footer {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guide-popup .guide-footer i {
    color: #f59e0b;
    font-size: 16px;
}

/* ================================================================
   RESPONSIVE GUIDE CARD
   ================================================================ */

@media (max-width: 480px) {
    .guide-card {
        padding: 14px 14px 12px;
        margin: 8px 12px 0;
        border-radius: 20px;
    }
    
    .guide-card .guide-title {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .guide-card .guide-title .title-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .guide-card .guide-title .click-hint {
        font-size: 8px;
        padding: 1px 8px;
    }
    
    .guide-card .guide-preview {
        padding-left: 0;
        margin-top: 6px;
    }
    
    .guide-card .guide-preview .guide-hint {
        font-size: 11px;
    }
    
    .guide-card .guide-badge {
        font-size: 8px;
        padding: 1px 8px;
    }
}

@media (max-width: 380px) {
    .guide-card {
        padding: 12px 10px 10px;
        margin: 6px 10px 0;
        border-radius: 18px;
    }
    
    .guide-card .guide-title {
        font-size: 12px;
    }
    
    .guide-card .guide-preview .guide-hint {
        font-size: 10px;
    }
}

/* ---------- GUIDE POPUP RESPONSIVE ---------- */
@media (max-width: 480px) {
    .guide-popup .swal2-popup {
        padding: 16px;
        max-width: 95%;
    }
    
    .guide-popup .swal2-title {
        font-size: 17px;
    }
    
    .guide-popup .guide-detail-item {
        padding: 12px 0;
        gap: 12px;
    }
    
    .guide-popup .guide-detail-item .icon {
        font-size: 18px;
        width: 28px;
    }
    
    .guide-popup .guide-detail-item .content .title {
        font-size: 13px;
    }
    
    .guide-popup .guide-detail-item .content .desc {
        font-size: 12px;
    }
    
    .guide-popup .guide-footer {
        font-size: 11px;
        padding: 10px 12px;
        flex-wrap: wrap;
    }
}

/* ---------- REDEEM CARD ---------- */
.redeem-card {
    background: white;
    border-radius: 24px;
    padding: 18px 20px 16px;
    margin: 10px 16px 0;
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ---------- DECORATIVE ---------- */
.redeem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d946ef, #7c3aed, #d946ef);
    opacity: 0.5;
}

.redeem-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.05), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.redeem-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

/* ---------- REDEEM TITLE ---------- */
.redeem-card .redeem-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.redeem-card .redeem-title .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.redeem-card .redeem-title .discount-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- REDEEM SUBTITLE ---------- */
.redeem-card .redeem-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
    padding-left: 36px;
}

.redeem-card .redeem-subtitle strong {
    color: #7c3aed;
    font-weight: 700;
}

/* ---------- INPUT GROUP ---------- */
.redeem-card .redeem-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.redeem-card .redeem-input-group .input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #fafbfc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.redeem-card .redeem-input-group .input-wrapper:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
    background: white;
}

.redeem-card .redeem-input-group .input-wrapper .input-icon {
    padding: 0 0 0 14px;
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.redeem-card .redeem-input-group .input-wrapper:focus-within .input-icon {
    color: #7c3aed;
}

.redeem-card .redeem-input-group .input-wrapper input {
    flex: 1;
    padding: 12px 14px 12px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    font-family: 'Inter', monospace;
    color: #0f172a;
    min-width: 80px;
}

.redeem-card .redeem-input-group .input-wrapper input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.redeem-card .redeem-input-group .input-wrapper .input-clear {
    padding: 0 12px;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.redeem-card .redeem-input-group .input-wrapper .input-clear.visible {
    opacity: 1;
}

/* ---------- BUTTON REDEEM ---------- */
.redeem-card .redeem-input-group .btn-redeem {
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.redeem-card .redeem-input-group .btn-redeem:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

.redeem-card .redeem-input-group .btn-redeem:active {
    transform: scale(0.94);
}

.redeem-card .redeem-input-group .btn-redeem:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- REDEEM STATUS ---------- */
.redeem-card .redeem-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    display: none;
    align-items: center;
    gap: 8px;
}

.redeem-card .redeem-status.show {
    display: flex;
}

.redeem-card .redeem-status.success {
    background: #d1fae5;
    color: #065f46;
}

.redeem-card .redeem-status.success i {
    color: #10b981;
}

.redeem-card .redeem-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.redeem-card .redeem-status.error i {
    color: #ef4444;
}

.redeem-card .redeem-status.info {
    background: #dbeafe;
    color: #1e40af;
}

.redeem-card .redeem-status.info i {
    color: #3b82f6;
}

/* ================================================================
   RESPONSIVE REDEEM CARD
   ================================================================ */

@media (max-width: 480px) {
    .redeem-card {
        padding: 14px 14px 12px;
        margin: 8px 12px 0;
        border-radius: 20px;
    }
    
    .redeem-card .redeem-title {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .redeem-card .redeem-title .title-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .redeem-card .redeem-title .discount-badge {
        font-size: 8px;
        padding: 2px 10px;
    }
    
    .redeem-card .redeem-subtitle {
        font-size: 11px;
        padding-left: 0;
        margin-bottom: 12px;
    }
    
    .redeem-card .redeem-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .redeem-card .redeem-input-group .input-wrapper {
        border-radius: 12px;
    }
    
    .redeem-card .redeem-input-group .input-wrapper input {
        padding: 14px 14px 14px 8px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .redeem-card .redeem-input-group .btn-redeem {
        padding: 14px 20px;
        font-size: 13px;
        border-radius: 12px;
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    
    .redeem-card .redeem-status {
        font-size: 11px;
        padding: 8px 12px;
    }
}

@media (max-width: 380px) {
    .redeem-card {
        padding: 12px 10px 10px;
        margin: 6px 10px 0;
        border-radius: 18px;
    }
    
    .redeem-card .redeem-title {
        font-size: 12px;
    }
    
    .redeem-card .redeem-subtitle {
        font-size: 10px;
    }
    
    .redeem-card .redeem-input-group .input-wrapper input {
        font-size: 12px;
        padding: 12px 10px 12px 6px;
        min-height: 44px;
    }
    
    .redeem-card .redeem-input-group .btn-redeem {
        font-size: 12px;
        padding: 12px 16px;
        min-height: 44px;
    }
}

/* ---------- ACTIVITY CARD ---------- */
/* ================================================================
   ACTIVITY CARD - PREMIUM
   ================================================================ */

.activity-card {
    background: white;
    border-radius: 24px;
    padding: 18px 20px 16px;
    margin: 10px 16px 20px;
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ---------- DECORATIVE ---------- */
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #d946ef, #7c3aed);
    opacity: 0.4;
}

/* ---------- TITLE ---------- */
.activity-card .activity-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.activity-card .activity-title .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.activity-card .activity-title .activity-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 12px;
    border-radius: 30px;
}

/* ---------- TABS ---------- */
.activity-card .activity-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 14px;
}

.activity-card .activity-tabs .tab {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    border-radius: 12px;
    border: none;
    background: none;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.activity-card .activity-tabs .tab i {
    font-size: 13px;
}

.activity-card .activity-tabs .tab .tab-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 30px;
    background: #e2e8f0;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.activity-card .activity-tabs .tab.active {
    background: white;
    color: #7c3aed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.activity-card .activity-tabs .tab.active .tab-badge {
    background: #ede9fe;
    color: #7c3aed;
}

.activity-card .activity-tabs .tab:hover:not(.active) {
    color: #475569;
}

/* ---------- CONTENT ---------- */
.activity-card .activity-content {
    min-height: 100px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

/* ---------- SCROLLBAR ---------- */
.activity-card .activity-content::-webkit-scrollbar {
    width: 4px;
}

.activity-card .activity-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.activity-card .activity-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.activity-card .activity-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---------- EMPTY STATE ---------- */
.activity-card .activity-content .empty-state {
    text-align: center;
    padding: 28px 16px;
}

.activity-card .activity-content .empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.3;
}

.activity-card .activity-content .empty-state .empty-icon i {
    color: #94a3b8;
}

.activity-card .activity-content .empty-state .empty-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.activity-card .activity-content .empty-state .empty-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ---------- ACTIVITY ITEMS ---------- */
.activity-card .activity-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.referral-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.3s ease;
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

.referral-activity-item:nth-child(1) { animation-delay: 0.05s; }
.referral-activity-item:nth-child(2) { animation-delay: 0.1s; }
.referral-activity-item:nth-child(3) { animation-delay: 0.15s; }
.referral-activity-item:nth-child(4) { animation-delay: 0.2s; }
.referral-activity-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.referral-activity-item:hover {
    background: #f8fafc;
}

.referral-activity-item:last-child {
    border-bottom: none;
}

/* ---------- AVATAR ---------- */
.referral-activity-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.referral-activity-item .avatar.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.referral-activity-item .avatar.gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.referral-activity-item .avatar.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ---------- INFO ---------- */
.referral-activity-item .info {
    flex: 1;
    min-width: 0;
}

.referral-activity-item .info .name {
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
}

.referral-activity-item .info .detail {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.referral-activity-item .info .detail .date {
    font-size: 10px;
    color: #cbd5e1;
}

/* ---------- STATUS BADGE ---------- */
.referral-activity-item .status-badge {
    font-size: 9px;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.referral-activity-item .status-badge.success {
    background: #d1fae5;
    color: #10b981;
}

.referral-activity-item .status-badge.pending {
    background: #fef3c7;
    color: #f59e0b;
}

.referral-activity-item .status-badge.failed {
    background: #fee2e2;
    color: #ef4444;
}

/* ---------- AMOUNT ---------- */
.referral-activity-item .amount {
    font-weight: 700;
    font-size: 14px;
    color: #10b981;
    text-align: right;
    flex-shrink: 0;
    padding-left: 8px;
}

.referral-activity-item .amount.negative {
    color: #ef4444;
}

.referral-activity-item .amount .currency {
    font-size: 10px;
    opacity: 0.6;
}

/* ================================================================
   RESPONSIVE ACTIVITY CARD
   ================================================================ */

@media (max-width: 480px) {
    .activity-card {
        padding: 14px 14px 12px;
        margin: 8px 12px 16px;
        border-radius: 20px;
    }
    
    .activity-card .activity-title {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .activity-card .activity-title .title-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .activity-card .activity-title .activity-count {
        font-size: 10px;
        padding: 1px 10px;
    }
    
    .activity-card .activity-tabs .tab {
        font-size: 10px;
        padding: 8px 4px;
        flex-direction: column;
        gap: 2px;
    }
    
    .activity-card .activity-tabs .tab i {
        font-size: 14px;
    }
    
    .activity-card .activity-tabs .tab .tab-badge {
        font-size: 8px;
        padding: 0 6px;
    }
    
    .referral-activity-item {
        padding: 8px 10px;
        border-radius: 12px;
        gap: 10px;
    }
    
    .referral-activity-item .avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .referral-activity-item .info .name {
        font-size: 12px;
    }
    
    .referral-activity-item .info .detail {
        font-size: 10px;
    }
    
    .referral-activity-item .amount {
        font-size: 12px;
    }
    
    .activity-card .activity-content .empty-state .empty-icon {
        font-size: 32px;
    }
    
    .activity-card .activity-content .empty-state .empty-title {
        font-size: 13px;
    }
    
    .activity-card .activity-content .empty-state .empty-desc {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .activity-card {
        padding: 12px 10px 10px;
        margin: 6px 10px 14px;
        border-radius: 18px;
    }
    
    .activity-card .activity-tabs .tab {
        font-size: 9px;
        padding: 6px 2px;
    }
    
    .activity-card .activity-tabs .tab i {
        font-size: 12px;
    }
    
    .referral-activity-item .avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .referral-activity-item .info .name {
        font-size: 11px;
    }
    
    .referral-activity-item .amount {
        font-size: 11px;
    }
}

/* ================================================================
   BONUS POPUP - PREMIUM STYLE
   ================================================================ */

.bonus-popup-premium .swal2-popup {
    border-radius: 28px;
    padding: 20px 24px 24px;
    max-width: 440px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.bonus-popup-premium .swal2-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    padding: 0 0 8px 0;
}

.bonus-popup-premium .swal2-close {
    color: #94a3b8;
    font-size: 28px;
    transition: all 0.3s ease;
}

.bonus-popup-premium .swal2-close:hover {
    color: #7c3aed;
}

/* ---------- POPUP ITEMS ---------- */
.bonus-popup-premium .bonus-popup-item {
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bonus-popup-premium .bonus-popup-item.active {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.bonus-popup-premium .bonus-popup-item.pro-active {
    border-color: #f59e0b;
    background: #fef3c7;
}

/* ---------- POPUP LEVEL HEADER ---------- */
.bonus-popup-premium .popup-level-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bonus-popup-premium .popup-level-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bonus-popup-premium .popup-level-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- BADGE STATUS ---------- */
.bonus-popup-premium .badge-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.bonus-popup-premium .badge-status.active-badge {
    background: #d1fae5;
    color: #10b981;
}

.bonus-popup-premium .badge-status.active-badge.gold {
    background: #fef3c7;
    color: #d97706;
}

.bonus-popup-premium .badge-status.inactive-badge {
    background: #f1f5f9;
    color: #94a3b8;
}

/* ---------- POPUP LEVEL GRID ---------- */
.bonus-popup-premium .popup-level-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.bonus-popup-premium .grid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 2px 0;
}

.bonus-popup-premium .grid-item .grid-label {
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bonus-popup-premium .grid-item .grid-label i {
    font-size: 12px;
    color: #7c3aed;
}

.bonus-popup-premium .grid-item .grid-value {
    color: #0f172a;
    font-weight: 600;
}

.bonus-popup-premium .grid-item .grid-value.highlight {
    color: #7c3aed;
    font-weight: 700;
}

/* ---------- DIVIDER ---------- */
.bonus-popup-premium .popup-divider {
    border: none;
    border-top: 2px dashed #e2e8f0;
    margin: 12px 0 14px 0;
}

/* ---------- SUMMARY ---------- */
.bonus-popup-premium .popup-summary {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.bonus-popup-premium .summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bonus-popup-premium .summary-header .summary-icon {
    font-size: 16px;
    color: #7c3aed;
}

.bonus-popup-premium .summary-header .summary-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.bonus-popup-premium .summary-level {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bonus-popup-premium .summary-level .level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

.bonus-popup-premium .summary-level .level-badge.basic {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
}

.bonus-popup-premium .summary-level .level-badge.pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.bonus-popup-premium .summary-level .level-rate {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

/* ---------- PROGRESS ---------- */
.bonus-popup-premium .summary-progress {
    margin-top: 4px;
}

.bonus-popup-premium .summary-progress .progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.bonus-popup-premium .summary-progress .progress-text strong {
    color: #0f172a;
    font-weight: 700;
}

.bonus-popup-premium .summary-progress .progress-track {
    background: #e2e8f0;
    border-radius: 100px;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
}

.bonus-popup-premium .summary-progress .progress-track .progress-fill {
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s ease;
    width: 0%;
}

.bonus-popup-premium .summary-progress .progress-remaining {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.bonus-popup-premium .summary-progress .progress-remaining strong {
    color: #7c3aed;
    font-weight: 700;
}

/* ---------- CONGRATS ---------- */
.bonus-popup-premium .summary-congrats {
    text-align: center;
    padding: 8px 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.bonus-popup-premium .summary-congrats i {
    color: #f59e0b;
    font-size: 18px;
    margin-right: 8px;
}

/* ---------- BONUS INFO ---------- */
.bonus-popup-premium .popup-bonus-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 2px;
}

.bonus-popup-premium .bonus-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 12px;
}

.bonus-popup-premium .bonus-info-item i {
    font-size: 14px;
    flex-shrink: 0;
}

.bonus-popup-premium .bonus-info-item strong {
    color: #0f172a;
    font-weight: 600;
}

/* ---------- CONFIRM BUTTON ---------- */
.bonus-popup-premium .btn-premium-confirm {
    padding: 12px 32px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2) !important;
    transition: all 0.3s ease !important;
}

.bonus-popup-premium .btn-premium-confirm:active {
    transform: scale(0.94) !important;
}

/* ================================================================
   RESPONSIVE BONUS POPUP
   ================================================================ */

@media (max-width: 480px) {
    .bonus-popup-premium .swal2-popup {
        padding: 16px 16px 20px;
        border-radius: 24px;
        max-width: 95%;
    }
    
    .bonus-popup-premium .swal2-title {
        font-size: 17px;
    }
    
    .bonus-popup-premium .bonus-popup-item {
        padding: 14px 14px;
        border-radius: 16px;
    }
    
    .bonus-popup-premium .popup-level-header {
        gap: 10px;
    }
    
    .bonus-popup-premium .popup-level-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    
    .bonus-popup-premium .popup-level-name {
        font-size: 14px;
    }
    
    .bonus-popup-premium .popup-level-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
    }
    
    .bonus-popup-premium .grid-item {
        font-size: 12px;
    }
    
    .bonus-popup-premium .popup-summary {
        padding: 14px 14px;
        border-radius: 16px;
    }
    
    .bonus-popup-premium .summary-level .level-badge {
        font-size: 12px;
        padding: 3px 12px;
    }
    
    .bonus-popup-premium .bonus-info-item {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 380px) {
    .bonus-popup-premium .swal2-popup {
        padding: 12px 12px 16px;
        border-radius: 20px;
    }
    
    .bonus-popup-premium .popup-level-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .bonus-popup-premium .grid-item {
        font-size: 11px;
        padding: 1px 0;
    }
    
    .bonus-popup-premium .summary-level {
        flex-wrap: wrap;
    }
}

/* ================================================================
   WITHDRAW ACCOUNT PAGE
   ================================================================ */

.withdraw-account-page {
    background: #f8faff;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ---------- HEADER ---------- */
.withdraw-account-page .wa-header {
    background: linear-gradient(135deg, #5B21B6, #7C3AED, #A855F7, #D946EF);
    padding: 20px 16px 28px;
    border-radius: 0 0 32px 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.withdraw-account-page .wa-header .wa-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.withdraw-account-page .wa-header .wa-top .wa-back {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.withdraw-account-page .wa-header .wa-top .wa-back:active {
    transform: scale(0.92);
}

.withdraw-account-page .wa-header .wa-top .wa-title h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.withdraw-account-page .wa-header .wa-top .wa-title p {
    font-size: 12px;
    opacity: 0.7;
    margin: 2px 0 0;
}

/* ---------- SALDO CARD ---------- */
.withdraw-account-page .wa-saldo {
    background: white;
    border-radius: 20px;
    padding: 16px 18px;
    margin: 10px 14px 0;
    box-shadow: 0 8px 32px rgba(124,58,237,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 3;
}

.withdraw-account-page .wa-saldo .wa-saldo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.withdraw-account-page .wa-saldo .wa-saldo-info {
    flex: 1;
}

.withdraw-account-page .wa-saldo .wa-saldo-info .wa-saldo-label {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

.withdraw-account-page .wa-saldo .wa-saldo-info .wa-saldo-amount {
    font-size: 20px;
    font-weight: 800;
    color: #10b981;
}

.withdraw-account-page .wa-saldo .wa-saldo-min {
    font-size: 10px;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 12px;
    border-radius: 30px;
    white-space: nowrap;
}

.withdraw-account-page .wa-saldo .wa-saldo-min i {
    color: #f59e0b;
    margin-right: 4px;
}

/* ---------- SECTION ---------- */
.withdraw-account-page .wa-section {
    margin: 16px 14px 0;
}

.withdraw-account-page .wa-section .wa-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.withdraw-account-page .wa-section .wa-section-head .wa-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdraw-account-page .wa-section .wa-section-head .wa-section-title i {
    color: #7c3aed;
}

.withdraw-account-page .wa-section .wa-section-head .wa-section-count {
    background: #f1f5f9;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 30px;
    color: #94a3b8;
}

.withdraw-account-page .wa-section .wa-section-head .wa-btn-add {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.withdraw-account-page .wa-section .wa-section-head .wa-btn-add:active {
    transform: scale(0.94);
}

/* ---------- ACCOUNT LIST ---------- */
.withdraw-account-page .wa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.withdraw-account-page .wa-item {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.withdraw-account-page .wa-item:hover {
    border-color: #7c3aed;
}

.withdraw-account-page .wa-item.wa-default {
    border-color: #7c3aed;
    background: #faf8ff;
}

.withdraw-account-page .wa-item .wa-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.withdraw-account-page .wa-item .wa-item-left .wa-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #7c3aed;
    flex-shrink: 0;
}

.withdraw-account-page .wa-item .wa-item-left .wa-item-info {
    flex: 1;
    min-width: 0;
}

.withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-bank {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-bank .wa-badge-default {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    font-size: 7px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 30px;
}

.withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-number {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
}

.withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-owner {
    font-size: 10px;
    color: #94a3b8;
}

.withdraw-account-page .wa-item .wa-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.withdraw-account-page .wa-item .wa-item-actions button {
    padding: 4px 10px;
    border-radius: 30px;
    border: none;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.withdraw-account-page .wa-item .wa-item-actions .wa-btn-default {
    background: #d1fae5;
    color: #10b981;
}

.withdraw-account-page .wa-item .wa-item-actions .wa-btn-delete {
    background: #fee2e2;
    color: #ef4444;
}

/* ---------- EMPTY ---------- */
.withdraw-account-page .wa-empty {
    background: white;
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    border: 2px dashed #e2e8f0;
}

.withdraw-account-page .wa-empty .wa-empty-icon {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.withdraw-account-page .wa-empty .wa-empty-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.withdraw-account-page .wa-empty .wa-empty-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 14px;
}

.withdraw-account-page .wa-empty .wa-empty-btn {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- FORM ---------- */
.withdraw-account-page .wa-form {
    background: white;
    border-radius: 20px;
    padding: 18px;
    margin: 12px 14px 0;
    border: 2px solid #7c3aed;
    display: none;
    animation: slideUp 0.4s ease;
}

.withdraw-account-page .wa-form .wa-form-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.withdraw-account-page .wa-form .wa-form-head .wa-form-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdraw-account-page .wa-form .wa-form-head .wa-form-title i {
    color: #7c3aed;
}

.withdraw-account-page .wa-form .wa-form-head .wa-form-close {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.withdraw-account-page .wa-form .wa-form-group {
    margin-bottom: 12px;
}

.withdraw-account-page .wa-form .wa-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 3px;
}

.withdraw-account-page .wa-form .wa-form-group label i {
    color: #7c3aed;
    margin-right: 4px;
}

.withdraw-account-page .wa-form .wa-form-group select,
.withdraw-account-page .wa-form .wa-form-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    background: #fafbfc;
    font-family: inherit;
}

.withdraw-account-page .wa-form .wa-form-group select:focus,
.withdraw-account-page .wa-form .wa-form-group input:focus {
    border-color: #7c3aed;
    outline: none;
    background: white;
}

.withdraw-account-page .wa-form .wa-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.withdraw-account-page .wa-form .wa-form-actions .wa-btn-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    color: #64748b;
}

.withdraw-account-page .wa-form .wa-form-actions .wa-btn-save {
    flex: 2;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---------- WITHDRAW BUTTON ---------- */
.withdraw-account-page .wa-action {
    margin: 18px 14px 0;
    padding-bottom: 20px;
}

.withdraw-account-page .wa-action .wa-btn-withdraw {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.withdraw-account-page .wa-action .wa-btn-withdraw:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.withdraw-account-page .wa-action .wa-btn-withdraw:active {
    transform: scale(0.96);
}

.withdraw-account-page .wa-action .wa-note {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
    .withdraw-account-page .wa-saldo {
        padding: 14px 14px;
        margin: 10px 12px 0;
        border-radius: 18px;
        flex-wrap: wrap;
    }
    
    .withdraw-account-page .wa-saldo .wa-saldo-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .withdraw-account-page .wa-saldo .wa-saldo-info .wa-saldo-amount {
        font-size: 18px;
    }
    
    .withdraw-account-page .wa-saldo .wa-saldo-min {
        font-size: 9px;
        padding: 2px 10px;
    }
    
    .withdraw-account-page .wa-item {
        padding: 12px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .withdraw-account-page .wa-item .wa-item-left {
        gap: 10px;
    }
    
    .withdraw-account-page .wa-item .wa-item-left .wa-item-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-bank {
        font-size: 12px;
    }
    
    .withdraw-account-page .wa-item .wa-item-actions {
        width: auto;
        justify-content: flex-end;  /* ← Ubah ke flex-end agar di kanan */
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
        margin-top: 4px;
    }
    
    .withdraw-account-page .wa-form {
        padding: 14px;
        margin: 10px 12px 0;
        border-radius: 18px;
    }
    
    .withdraw-account-page .wa-form .wa-form-actions {
        flex-direction: column;
    }
    
    .withdraw-account-page .wa-form .wa-form-actions .wa-btn-cancel,
    .withdraw-account-page .wa-form .wa-form-actions .wa-btn-save {
        width: 100%;
    }
    
    .withdraw-account-page .wa-action {
        margin: 14px 12px 0;
    }
    
    .withdraw-account-page .wa-action .wa-btn-withdraw {
        padding: 12px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .withdraw-account-page .wa-section {
        margin: 12px 12px 0;
    }
}

@media (max-width: 380px) {
    .withdraw-account-page .wa-saldo {
        padding: 12px 12px;
    }
    
    .withdraw-account-page .wa-saldo .wa-saldo-info .wa-saldo-amount {
        font-size: 16px;
    }
    
    .withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-bank {
        font-size: 11px;
    }
    
    .withdraw-account-page .wa-item .wa-item-left .wa-item-info .wa-item-number {
        font-size: 11px;
    }
}

/* ============================================================
   SETTING PAGE - ACCORDION CARD STYLE
   ============================================================ */

.setting-card-accordion {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.setting-card-accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ========== HEADER CARD ========== */
.setting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.setting-card-header:hover {
    background: #f8fafc;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 18px;
}

.card-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

.card-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 1px;
}

.card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.card-status {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    background: #f1f5f9;
    color: #94a3b8;
}

.card-status.filled {
    background: #dcfce7;
    color: #16a34a;
}

.card-status.has-logo {
    background: #dbeafe;
    color: #2563eb;
}

.card-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.card-arrow.open {
    transform: rotate(180deg);
}

/* ========== BODY CARD ========== */
.setting-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                opacity 0.3s ease;
    padding: 0 20px;
    opacity: 0;
    border-top: 1px solid transparent;
}

.setting-card-body.open {
    max-height: 900px;
    padding: 16px 20px 20px 20px;
    opacity: 1;
    border-top-color: #f1f5f9;
}

/* ========== FORM ELEMENTS ========== */
.input-group-setting {
    margin-bottom: 16px;
}

.input-group-setting label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.input-group-setting label i {
    color: #7c3aed;
    width: 18px;
}

.input-group-setting input,
.input-group-setting textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.input-group-setting input:focus,
.input-group-setting textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-group-setting textarea {
    resize: vertical;
    min-height: 60px;
}

/* ========== LOGO UPLOAD ========== */
.logo-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: #fafafa;
}

.logo-upload-area:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.logo-upload-area i {
    font-size: 32px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.logo-upload-area p {
    font-size: 14px;
    color: #1e293b;
    margin: 0;
}

.logo-upload-area small {
    font-size: 12px;
    color: #94a3b8;
}

.logo-preview-wrapper {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.logo-preview-img {
    max-width: 80px;
    max-height: 50px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: contain;
}

.btn-remove-logo {
    background: #fef2f2;
    border: none;
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-logo:hover {
    background: #fee2e2;
}

/* ========== SAVE BUTTON ========== */
.btn-save-setting {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.btn-save-setting:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-save-setting:active {
    transform: scale(0.97);
}


/* ========== INFO CARDS ========== */
.preview-info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item-setting {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-item-setting > i {
    font-size: 18px;
    color: #7c3aed;
    margin-top: 2px;
}

.info-content .info-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

.info-content .info-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .card-header-left {
        gap: 10px;
    }
    
    .card-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 15px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .card-status {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .setting-card-header {
        padding: 14px 16px;
    }
    
    .setting-card-body.open {
        padding: 12px 16px 16px 16px;
    }
}


/* ================================================================
   ADMIN BERTINGKAT - PREMIUM STYLING
   ================================================================ */

/* ===== CARD UTAMA ===== */
.setting-card-accordion.admin-card {
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.setting-card-accordion.admin-card .admin-card-icon {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d97706;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.setting-card-accordion.admin-card .card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.setting-card-accordion.admin-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.setting-card-accordion.admin-card .card-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.setting-card-accordion.admin-card .card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.setting-card-accordion.admin-card .card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #94a3b8;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.setting-card-accordion.admin-card .card-status.filled {
    background: #ecfdf5;
    color: #10b981;
}

.setting-card-accordion.admin-card .card-arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.setting-card-accordion.admin-card .card-arrow.open {
    transform: rotate(180deg);
}

/* ===== BODY CARD ===== */
.setting-card-accordion.admin-card .setting-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}

.setting-card-accordion.admin-card .setting-card-body.open {
    max-height: 2000px;
    padding: 0 18px 18px 18px;
}

/* ===== ADMIN RULES CONTAINER ===== */
.admin-rules-container {
    padding: 8px 0;
}

/* ===== SECTION PER JENIS ===== */
.admin-type-section {
    background: #fafbfc;
    border-radius: 16px;
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.admin-type-section:last-child {
    margin-bottom: 0;
}

.admin-type-section:hover {
    border-color: #e2e8f0;
}

/* ===== HEADER SECTION ===== */
.admin-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-type-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-type-header h4 .type-icon {
    font-size: 14px;
}

.admin-type-header .type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
}

/* ===== TOMBOL TAMBAH ===== */
.btn-add-admin {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    flex-shrink: 0;
}

.btn-add-admin:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-add-admin:active {
    transform: scale(0.94);
}

.btn-add-admin i {
    font-size: 11px;
}

/* ===== LIST RULES ===== */
.admin-rules-list {
    padding: 2px 0;
}

/* ===== ITEM RULE ===== */
.admin-rule-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-rule-item:last-child {
    border-bottom: none;
}

.admin-rule-item:hover {
    background: #f8fafc;
}

/* ===== RANGE ===== */
.rule-range {
    flex: 1;
    min-width: 120px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    font-family: 'JetBrains Mono', monospace, 'Courier New';
    letter-spacing: 0.2px;
}

.rule-range .range-icon {
    font-size: 11px;
    color: #94a3b8;
    margin-right: 4px;
}

/* ===== ARROW ===== */
.rule-arrow {
    margin: 0 6px;
    color: #cbd5e1;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== ADMIN VALUE ===== */
.rule-admin {
    font-weight: 700;
    font-size: 14px;
    color: #7c3aed;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
    background: #f5f3ff;
    padding: 2px 12px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace, 'Courier New';
}

/* ===== ACTIONS ===== */
.rule-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-edit-rule,
.btn-delete-rule {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-edit-rule {
    background: #eef2ff;
    color: #7c3aed;
}

.btn-edit-rule:hover {
    background: #c7d2fe;
    transform: scale(1.08);
}

.btn-delete-rule {
    background: #fef2f2;
    color: #ef4444;
}

.btn-delete-rule:hover {
    background: #fecaca;
    transform: scale(1.08);
}

/* ===== EMPTY STATE ===== */
.empty-rules {
    padding: 24px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.empty-rules .empty-icon {
    font-size: 28px;
    color: #e2e8f0;
    display: block;
    margin-bottom: 8px;
}

.empty-rules .empty-text {
    font-weight: 500;
    color: #64748b;
}

.empty-rules .empty-hint {
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 4px;
}

/* ===== FOOTER ACTIONS ===== */
.admin-save-footer {
    padding: 14px 0 4px 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.btn-save-admin-rules {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.25);
}

.btn-save-admin-rules:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-reset-admin-rules {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-reset-admin-rules:hover {
    background: #e2e8f0;
    color: #475569;
}

/* ================================================================
   ADMIN POPUP - PREMIUM MODAL
   ================================================================ */

.admin-popup-content {
    text-align: left;
    padding: 4px 0;
}

.admin-popup-content .popup-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-popup-content .popup-title .title-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
    font-size: 16px;
}

.admin-popup-content .popup-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    padding-left: 46px;
}

/* ===== FORM GROUP ===== */
.admin-popup-content .form-group {
    margin-bottom: 16px;
}

.admin-popup-content .form-group:last-of-type {
    margin-bottom: 18px;
}

.admin-popup-content .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.admin-popup-content .form-group label .label-icon {
    margin-right: 6px;
}

.admin-popup-content .form-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-popup-content .form-group .input-prefix {
    position: absolute;
    left: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
}

.admin-popup-content .form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
    background: #fafbfc;
    color: #1e293b;
}

.admin-popup-content .form-group input:focus {
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.admin-popup-content .form-group input::placeholder {
    font-weight: 400;
    color: #cbd5e1;
}

.admin-popup-content .form-group input.input-with-prefix {
    padding-left: 38px;
}

.admin-popup-content .form-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-popup-content .form-hint i {
    font-size: 12px;
    color: #cbd5e1;
}

/* ===== PREVIEW BOX ===== */
.admin-preview-box {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
    margin-top: 4px;
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.admin-preview-box .preview-label {
    font-size: 10px;
    color: #7c3aed;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.admin-preview-box .preview-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace, 'Courier New';
}

.admin-preview-box .preview-value .highlight {
    color: #7c3aed;
}

.admin-preview-box .preview-value .separator {
    color: #cbd5e1;
    margin: 0 6px;
}

/* ================================================================
   RESPONSIVE - MOBILE FIRST
   ================================================================ */

/* Mobile <= 480px */
@media (max-width: 480px) {
    /* ===== CARD ===== */
    .setting-card-accordion.admin-card .card-header-left {
        gap: 10px;
    }
    
    .setting-card-accordion.admin-card .admin-card-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .setting-card-accordion.admin-card .card-title {
        font-size: 14px;
    }
    
    .setting-card-accordion.admin-card .card-subtitle {
        font-size: 11px;
    }
    
    .setting-card-accordion.admin-card .card-status {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    /* ===== SECTION ===== */
    .admin-type-header {
        padding: 12px 14px;
    }
    
    .admin-type-header h4 {
        font-size: 12px;
    }
    
    .btn-add-admin {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .btn-add-admin i {
        font-size: 10px;
    }
    
    /* ===== ITEM RULE ===== */
    .admin-rule-item {
        padding: 10px 14px;
        gap: 6px;
    }
    
    .rule-range {
        font-size: 12px;
        min-width: 80px;
        flex: 1 1 100%;
        order: 1;
    }
    
    .rule-arrow {
        display: none;
    }
    
    .rule-admin {
        font-size: 13px;
        min-width: 60px;
        padding: 2px 10px;
        order: 2;
    }
    
    .rule-actions {
        order: 3;
        margin-left: auto;
    }
    
    .btn-edit-rule,
    .btn-delete-rule {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    /* ===== FOOTER ===== */
    .admin-save-footer {
        flex-direction: column;
        gap: 8px;
        padding: 14px 0 2px 0;
    }
    
    .btn-save-admin-rules,
    .btn-reset-admin-rules {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 13px;
    }
    
    /* ===== POPUP ===== */
    .admin-popup-content .popup-title {
        font-size: 16px;
    }
    
    .admin-popup-content .popup-title .title-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .admin-popup-content .popup-subtitle {
        font-size: 12px;
        padding-left: 42px;
    }
    
    .admin-popup-content .form-group input {
        font-size: 14px;
        padding: 11px 14px;
        border-radius: 12px;
    }
    
    .admin-preview-box {
        padding: 14px 16px;
    }
    
    .admin-preview-box .preview-value {
        font-size: 17px;
    }
    
    /* ===== SWAL CUSTOM ===== */
    .swal2-popup {
        border-radius: 24px !important;
        padding: 20px 16px !important;
    }
    
    .swal2-title {
        font-size: 17px !important;
        padding: 0 !important;
    }
    
    .swal2-html-container {
        padding: 12px 0 !important;
    }
    
    .swal2-actions {
        gap: 8px !important;
    }
    
    .swal2-confirm {
        font-size: 13px !important;
        padding: 12px 24px !important;
        border-radius: 30px !important;
        min-width: 120px !important;
    }
    
    .swal2-cancel {
        font-size: 13px !important;
        padding: 12px 20px !important;
        border-radius: 30px !important;
    }
}

/* Tablet 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .admin-rule-item {
        padding: 10px 16px;
    }
    
    .rule-range {
        font-size: 12px;
        flex: 1;
    }
    
    .admin-save-footer {
        gap: 12px;
    }
    
    .btn-save-admin-rules,
    .btn-reset-admin-rules {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Desktop > 768px */
@media (min-width: 769px) {
    .admin-rule-item {
        padding: 10px 20px;
    }
    
    .admin-type-header {
        padding: 16px 20px;
    }
    
    .admin-rules-container {
        padding: 12px 0;
    }
    
    .btn-add-admin {
        padding: 8px 18px;
        font-size: 12px;
    }
}

/* ================================================================
   ANIMATION
   ================================================================ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-rule-item {
    animation: slideDown 0.25s ease forwards;
}

.admin-rule-item:nth-child(2) {
    animation-delay: 0.05s;
}

.admin-rule-item:nth-child(3) {
    animation-delay: 0.1s;
}

.admin-rule-item:nth-child(4) {
    animation-delay: 0.15s;
}

/* ================================================================
   DARK MODE SUPPORT (opsional)
   ================================================================ */

@media (prefers-color-scheme: dark) {
    .setting-card-accordion.admin-card {
        background: #1e293b;
        border-color: rgba(124, 58, 237, 0.15);
    }
    
    .setting-card-accordion.admin-card .card-title {
        color: #f1f5f9;
    }
    
    .setting-card-accordion.admin-card .card-subtitle {
        color: #94a3b8;
    }
    
    .admin-type-section {
        background: #0f172a;
        border-color: #1e293b;
    }
    
    .admin-type-header {
        background: #1e293b;
        border-color: #0f172a;
    }
    
    .admin-type-header h4 {
        color: #f1f5f9;
    }
    
    .admin-rule-item {
        border-color: #1e293b;
    }
    
    .admin-rule-item:hover {
        background: #1e293b;
    }
    
    .rule-range {
        color: #f1f5f9;
    }
    
    .rule-admin {
        background: rgba(124, 58, 237, 0.2);
        color: #a78bfa;
    }
    
    .admin-popup-content .popup-title {
        color: #f1f5f9;
    }
    
    .admin-popup-content .form-group input {
        background: #0f172a;
        border-color: #1e293b;
        color: #f1f5f9;
    }
    
    .admin-popup-content .form-group input:focus {
        border-color: #7c3aed;
        background: #1e293b;
    }
    
    .admin-preview-box {
        background: linear-gradient(135deg, #1e1b3a, #2d1b4a);
        border-color: rgba(124, 58, 237, 0.2);
    }
    
    .admin-preview-box .preview-value {
        color: #f1f5f9;
    }
    
    .btn-reset-admin-rules {
        background: #1e293b;
        color: #94a3b8;
    }
    
    .btn-reset-admin-rules:hover {
        background: #0f172a;
    }
}

/* ================================================================
   SWAL CUSTOM - ADMIN POPUP
   ================================================================ */

.admin-popup-premium {
    border-radius: 28px !important;
    background: white !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
}

.admin-popup-premium .swal2-title {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
}

.admin-popup-premium .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.admin-confirm-btn {
    background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3) !important;
    transition: all 0.25s ease !important;
}

.admin-confirm-btn:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4) !important;
}

.admin-confirm-btn:active {
    transform: scale(0.96) !important;
}

.admin-cancel-btn {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.25s ease !important;
}

.admin-cancel-btn:hover {
    background: #e2e8f0 !important;
}

@media (max-width: 480px) {
    .admin-popup-premium {
        border-radius: 20px !important;
        padding: 4px !important;
        margin: 8px !important;
    }
    
    .admin-confirm-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        min-width: 100px !important;
    }
    
    .admin-cancel-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* ================================================================
   TOMBOL TEST FULL
   ================================================================ */

.btn-test-full {
    margin-top: 12px;
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d946ef);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-test-full:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.btn-test-full:active {
    transform: scale(0.96);
}

/* ===== SHARED IMAGE INDICATOR ===== */
.share-indicator {
    position: fixed;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    animation: slideInRight 0.5s ease-out;
    cursor: pointer;
}

.share-indicator i {
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== DETECT RESULT STYLES ===== */
.detect-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detect-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.detect-row:last-child {
    border-bottom: none;
}

.detect-row span:first-child {
    color: #64748b;
}

.detect-row span:last-child {
    color: #1e293b;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.detect-row span:last-child strong {
    font-weight: 700;
}

/* Loading spinner untuk detect */
.loading-spinner-generate {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid #e2e8f0;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   SWEETALERT2 - PREMIUM OVERRIDE
   ================================================================ */

/* Pastikan modal tampil di atas semua elemen */
.swal2-container {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Overlay gelap */
.swal2-backdrop {
    background: rgba(15, 23, 42, 0.7) !important;
}

/* Popup premium */
.swal2-popup {
    position: relative !important;
    margin: 0 auto !important;
    max-width: 420px !important;
    width: 95% !important;
    border-radius: 32px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    padding: 24px 20px 20px !important;
    border: none !important;
}

/* Animasi masuk */
.swal2-popup.swal2-show {
    animation: swal2Show 0.3s ease-out !important;
}

@keyframes swal2Show {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animasi keluar */
.swal2-popup.swal2-hide {
    animation: swal2Hide 0.2s ease-in !important;
}

@keyframes swal2Hide {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* ================================================================
   PREMIUM LOADER - KOMPONEN DI DALAM MODAL
   ================================================================ */

.premium-loader-container {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 8px 0 4px 0;
}

/* Floating particles */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1.5s; width: 4px; height: 4px; }
.particle:nth-child(3) { left: 50%; animation-delay: 3s; }
.particle:nth-child(4) { left: 70%; animation-delay: 0.8s; width: 8px; height: 8px; background: rgba(217, 70, 239, 0.2); }
.particle:nth-child(5) { left: 90%; animation-delay: 2.2s; }
.particle:nth-child(6) { left: 20%; animation-delay: 4s; width: 3px; height: 3px; background: rgba(16, 185, 129, 0.2); }
.particle:nth-child(7) { left: 60%; animation-delay: 1s; width: 5px; height: 5px; background: rgba(245, 158, 11, 0.2); }
.particle:nth-child(8) { left: 80%; animation-delay: 3.5s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-60px) scale(1.5); opacity: 0.8; }
}

/* Icon dengan glow */
.premium-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.premium-icon-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(217, 70, 239, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}

.premium-icon-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #d946ef, #7c3aed);
    background-size: 300% 300%;
    animation: gradientSpin 3s ease-in-out infinite;
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
}

@keyframes gradientSpin {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.premium-icon-glow i {
    font-size: 36px;
    color: #7c3aed;
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Title */
.premium-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

/* Subtitle */
.premium-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Progress bar */
.premium-progress-container {
    background: #f1f5f9;
    border-radius: 60px;
    height: 6px;
    overflow: hidden;
    margin: 0 4px 16px 4px;
    position: relative;
}

.premium-progress-bar {
    height: 100%;
    border-radius: 60px;
    background: linear-gradient(90deg, #7c3aed, #d946ef, #7c3aed);
    background-size: 200% 100%;
    animation: shimmerProgress 2s ease-in-out infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes shimmerProgress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Status text */
.premium-status {
    text-align: center;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    min-height: 20px;
}

.premium-status .highlight {
    color: #7c3aed;
    font-weight: 600;
}

/* Footer */
.premium-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.premium-footer i {
    color: #7c3aed;
    font-size: 12px;
}

.premium-footer .dot {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* Loading dots */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Loading spinner untuk detect */
.loading-spinner-generate {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid #e2e8f0;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ================================================================
   BLUETOOTH POPUP
   ================================================================ */

.bluetooth-popup-premium {
    border-radius: 32px !important;
    padding: 20px 20px 16px !important;
}

.bluetooth-popup-premium .swal2-close {
    color: #94a3b8 !important;
}

.bluetooth-device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bluetooth-device-item:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bluetooth-device-item:active {
    transform: scale(0.98);
}

.bluetooth-device-item.connected {
    border-color: #10b981;
    background: #f0fdf4;
}

.bluetooth-device-item .device-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bluetooth-device-item .device-icon i {
    color: #7c3aed;
    font-size: 16px;
}

.bluetooth-device-item .device-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.bluetooth-device-item .device-address {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.bluetooth-device-item .device-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.bluetooth-device-item .device-status.connected {
    background: #10b981;
    color: white;
}

.bluetooth-device-item .device-status.disconnected {
    background: #e2e8f0;
    color: #64748b;
}

/* ================================================================
   PRINT OPTIONS POPUP
   ================================================================ */

.print-options-popup {
    border-radius: 32px !important;
    padding: 20px !important;
}

.print-options-popup .swal2-confirm {
    border-radius: 40px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
}

/* ================================================================
   OCR SUCCESS POPUP
   ================================================================ */

.ocr-success-popup {
    border-radius: 32px !important;
    padding: 20px !important;
}

.ocr-success-popup .swal2-icon {
    border: none !important;
}


/* ========== LOGO SIZE SELECTOR ========== */
.logo-size-selector {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.logo-size-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
}

.logo-size-btn:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.logo-size-btn.active {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.logo-size-btn .size-preview {
    display: block;
    line-height: 1;
}

/* ========== PREVIEW LOGO SIZES ========== */
.preview-logo.logo-small .preview-logo-img {
    max-width: 40px !important;
    max-height: 40px !important;
}
.preview-logo.logo-small #previewLogoEmoji {
    font-size: 32px !important;
}

.preview-logo.logo-medium .preview-logo-img {
    max-width: 60px !important;
    max-height: 60px !important;
}
.preview-logo.logo-medium #previewLogoEmoji {
    font-size: 48px !important;
}

.preview-logo.logo-large .preview-logo-img {
    max-width: 80px !important;
    max-height: 80px !important;
}
.preview-logo.logo-large #previewLogoEmoji {
    font-size: 64px !important;
}

.profile-menu-item .menu-icon .fa-broom {
    color: #f59e0b;
}

/* ================================================================
   BONUS KUOTA CETAK CARD - PREMIUM GOLD
   ================================================================ */

.bonus-card-premium {
    position: relative;
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border-radius: 24px;
    padding: 20px 24px 16px 24px;
    margin: 12px 0 18px 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 
        0 8px 32px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bonus-card-premium:active {
    transform: scale(0.97);
}

.bonus-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ========== BACKGROUND DECORATION ========== */
.bonus-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bonus-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.bonus-bg-circle.c1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
}

.bonus-bg-circle.c2 {
    width: 120px;
    height: 120px;
    bottom: -40px;
    right: 40px;
    background: radial-gradient(circle, #d97706, transparent 70%);
}

.bonus-bg-circle.c3 {
    width: 80px;
    height: 80px;
    top: 30px;
    right: 100px;
    background: radial-gradient(circle, #fbbf24, transparent 70%);
}

/* ========== BADGE STATUS - POJOK KANAN ATAS ========== */
.bonus-badge-status {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 14px 4px 10px;
    border-radius: 30px;
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
    transition: all 0.4s ease;
}

.bonus-badge-status .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot-bonus 1.8s ease-in-out infinite;
}

@keyframes pulse-dot-bonus {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.6);
    }
}

.bonus-badge-status.claimed {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.1);
}

.bonus-badge-status.claimed .badge-dot {
    background: #94a3b8;
    animation: none;
}

/* ========== KONTEN UTAMA ========== */
.bonus-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bonus-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* ========== ICON WRAPPER ========== */
.bonus-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.bonus-icon-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f59e0b, #d97706, #fbbf24, #f59e0b);
    opacity: 0.3;
    filter: blur(8px);
    animation: spin-glow 6s linear infinite;
}

@keyframes spin-glow {
    to {
        transform: rotate(360deg);
    }
}

.bonus-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.bonus-icon i {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========== INFO ========== */
.bonus-info {
    flex: 1;
    min-width: 0;
}

.bonus-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
    margin-bottom: 2px;
}

.bonus-desc {
    font-size: 13px;
    color: #92400e;
    margin-bottom: 6px;
}

.bonus-desc strong {
    color: #d97706;
    font-weight: 800;
}

.bonus-features {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #92400e;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 10px 2px 8px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.feature-tag i {
    font-size: 9px;
}

.feature-tag .fa-infinity {
    color: #d97706;
}

.feature-tag .fa-check-circle {
    color: #10b981;
}

/* ========== ARROW ========== */
.bonus-right {
    flex-shrink: 0;
    padding-left: 4px;
}

.bonus-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bonus-card-premium:hover .bonus-arrow {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateX(3px);
}

.bonus-arrow i {
    font-size: 12px;
    color: #b45309;
    transition: all 0.3s ease;
}

.bonus-card-premium:hover .bonus-arrow i {
    color: #d97706;
}

/* ========== BOTTOM BAR ========== */
.bonus-bottom-bar {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.bonus-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bonus-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706, #fbbf24);
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0%;
}

/* ========== STATUS CLAIMED ========== */
.bonus-card-premium.claimed {
    opacity: 0.6;
    cursor: default;
}

.bonus-card-premium.claimed .bonus-icon {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
}

.bonus-card-premium.claimed .bonus-icon-glow {
    opacity: 0.05;
    animation: none;
}

.bonus-card-premium.claimed .bonus-title {
    color: #64748b;
}

.bonus-card-premium.claimed .bonus-desc strong {
    color: #94a3b8;
}

.bonus-card-premium.claimed .bonus-arrow i {
    color: #94a3b8;
}

.bonus-card-premium.claimed .bonus-progress-fill {
    background: linear-gradient(90deg, #94a3b8, #64748b);
    width: 100% !important;
}

.bonus-card-premium.claimed .feature-tag {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.2);
}

.bonus-card-premium.claimed .feature-tag i {
    color: #94a3b8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .bonus-card-premium {
        padding: 16px 18px 14px 18px;
        border-radius: 20px;
        margin: 10px 0 14px 0;
    }
    
    .bonus-icon-wrapper {
        width: 44px;
        height: 44px;
    }
    
    .bonus-icon i {
        font-size: 18px;
    }
    
    .bonus-title {
        font-size: 14px;
    }
    
    .bonus-desc {
        font-size: 12px;
    }
    
    .bonus-badge-status {
        font-size: 9px;
        padding: 3px 10px 3px 8px;
        top: 10px;
        right: 12px;
    }
    
    .bonus-features {
        gap: 8px;
    }
    
    .feature-tag {
        font-size: 9px;
        padding: 1px 8px 1px 6px;
    }
    
    .bonus-arrow {
        width: 28px;
        height: 28px;
    }
    
    .bonus-arrow i {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .bonus-card-premium {
        padding: 14px 14px 12px 14px;
        border-radius: 16px;
    }
    
    .bonus-left {
        gap: 12px;
    }
    
    .bonus-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .bonus-icon i {
        font-size: 16px;
    }
    
    .bonus-title {
        font-size: 13px;
    }
    
    .bonus-desc {
        font-size: 11px;
    }
    
    .bonus-badge-status {
        font-size: 8px;
        padding: 2px 8px 2px 6px;
        top: 8px;
        right: 10px;
    }
    
    .feature-tag {
        font-size: 8px;
        padding: 1px 6px 1px 5px;
    }
    
    .bonus-arrow {
        width: 24px;
        height: 24px;
    }
    
    .bonus-arrow i {
        font-size: 9px;
    }
}

/* ================================================================
   BONUS POPUP - MODERN ELEGANT
   ================================================================ */

.bonus-popup-modern-wrapper {
    border-radius: 32px !important;
    padding: 24px 20px 20px !important;
    max-width: 420px !important;
    width: 95% !important;
    background: linear-gradient(145deg, #ffffff, #fafafa) !important;
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.08) !important;
}

.bonus-popup-modern-wrapper .swal2-html-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ========== HEADER ========== */
.popup-header-modern {
    text-align: center;
    margin-bottom: 20px;
}

.popup-icon-modern {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
    position: relative;
}

.popup-icon-modern::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    opacity: 0.15;
    filter: blur(8px);
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

.popup-icon-modern i {
    font-size: 28px;
    color: #ffffff;
}

.popup-title-modern {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}

.popup-subtitle-modern {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.popup-subtitle-modern strong {
    color: #d97706;
    font-weight: 700;
}

/* ========== STATS GRID ========== */
.popup-stats-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.stat-item-modern {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.stat-item-modern.highlight-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.stat-item-modern.highlight-gold .stat-number-modern {
    color: #d97706;
}

.stat-number-modern {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label-modern {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

.stat-label-modern i {
    font-size: 10px;
    margin-right: 4px;
}

.stat-item-modern.highlight-gold .stat-label-modern {
    color: #92400e;
}

/* ========== TOTAL - FULL WIDTH ========== */
.popup-total-modern {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.popup-total-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
    border-radius: 50%;
}

.total-icon-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.total-icon-modern i {
    font-size: 16px;
    color: #d97706;
}

.total-content-modern {
    flex: 1;
    position: relative;
    z-index: 1;
}

.total-label-modern {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-number-modern {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-top: 2px;
}

.total-badge-modern {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.total-badge-modern i {
    font-size: 10px;
}

/* ========== DESKRIPSI ========== */
.popup-desc-modern {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.popup-desc-modern i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.popup-desc-modern strong {
    color: #d97706;
}

/* ========== SYARAT ========== */
.popup-syarat-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.syarat-item-modern {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    border: 1px solid #f1f5f9;
}

.syarat-item-modern i {
    font-size: 14px;
    flex-shrink: 0;
}

.syarat-item-modern strong {
    color: #1e293b;
}

/* ========== ACTIONS ========== */
.popup-actions-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action-modern {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-action-modern:active {
    transform: scale(0.96);
}

/* Rating Button */
.btn-action-modern.btn-rating {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-action-modern.btn-rating:hover {
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.btn-action-modern.btn-rating i {
    color: #fcd34d;
}

/* WhatsApp Button */
.btn-action-modern.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.btn-action-modern.btn-wa:hover {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

/* Claimed Button */
.btn-action-modern.btn-claimed {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.btn-action-modern.btn-claimed i {
    color: #64748b;
}

/* ========== CLOSE BUTTON ========== */
.btn-close-modern {
    padding: 10px 28px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
}

.btn-close-modern:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .bonus-popup-modern-wrapper {
        padding: 18px 14px 16px !important;
        border-radius: 24px !important;
    }
    
    .popup-icon-modern {
        width: 52px;
        height: 52px;
    }
    
    .popup-icon-modern i {
        font-size: 22px;
    }
    
    .popup-title-modern {
        font-size: 17px;
    }
    
    .popup-subtitle-modern {
        font-size: 13px;
    }
    
    .stat-number-modern {
        font-size: 22px;
    }
    
    .popup-total-modern {
        padding: 14px 16px;
        border-radius: 14px;
    }
    
    .total-number-modern {
        font-size: 22px;
    }
    
    .total-badge-modern {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .popup-desc-modern {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .popup-syarat-modern {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .syarat-item-modern {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .btn-action-modern {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 30px;
    }
}

@media (max-width: 380px) {
    .bonus-popup-modern-wrapper {
        padding: 14px 10px 12px !important;
        border-radius: 20px !important;
    }
    
    .popup-icon-modern {
        width: 44px;
        height: 44px;
    }
    
    .popup-icon-modern i {
        font-size: 18px;
    }
    
    .popup-title-modern {
        font-size: 15px;
    }
    
    .stat-number-modern {
        font-size: 18px;
    }
    
    .popup-stats-modern {
        gap: 6px;
    }
    
    .stat-item-modern {
        padding: 10px 8px;
    }
    
    .popup-total-modern {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .total-number-modern {
        font-size: 18px;
    }
    
    .total-icon-modern {
        width: 32px;
        height: 32px;
    }
    
    .total-icon-modern i {
        font-size: 13px;
    }
    
    .total-badge-modern {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .syarat-item-modern {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .btn-action-modern {
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
    }
}

/* ================================================================
   BONUS CARD - HIDE/DISPLAY
   ================================================================ */

/* Sembunyikan card bonus jika sudah diklaim */
.bonus-card-premium.hidden {
    display: none !important;
}

/* Sembunyikan card bonus untuk user premium */
.bonus-card-premium.premium-user {
    display: none !important;
}

/* Atau gunakan class .bonus-hidden untuk menyembunyikan */
.bonus-hidden {
    display: none !important;
}

/* ================================================================
   BONUS CARD - HIDE/SHOW
   ================================================================ */

/* Sembunyikan card jika sudah diklaim atau user premium */
.bonus-card-premium.hidden,
.bonus-card-premium.premium-user {
    display: none !important;
}

/* Tampilkan card untuk user free yang belum klaim */
.bonus-card-premium:not(.hidden):not(.premium-user) {
    display: flex !important;
}

/* ===== TOMBOL HAPUS RIWAYAT ===== */
.btn-delete-history-premium {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-delete-history-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-delete-history-premium:active {
    transform: scale(0.95);
}

.btn-delete-history-premium:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== MODAL KONFIRMASI HAPUS ===== */
.delete-history-modal-content {
    text-align: left;
    padding: 4px 0;
}

.delete-history-modal-content .warning-icon {
    font-size: 48px;
    color: #ef4444;
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.delete-history-modal-content .info-text {
    background: #fef3c7;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: #92400e;
}

.delete-history-modal-content .info-text i {
    color: #f59e0b;
    margin-right: 8px;
}

.delete-history-modal-content .period-info {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: #1e293b;
}

.delete-history-modal-content .period-info strong {
    color: #7c3aed;
}

.delete-history-modal-content .count-info {
    background: #eff6ff;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: #1e293b;
    text-align: center;
}

.delete-history-modal-content .count-info strong {
    color: #3b82f6;
    font-size: 18px;
}

.swal2-confirm.btn-delete-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.swal2-confirm.btn-delete-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .filter-actions-premium {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-delete-history-premium {
        padding: 8px 14px;
        font-size: 11px;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   HOT PROMO CARD - ELEGANT PREMIUM DESIGN
   Ukuran SAMA dengan card biasa, tapi lebih mencolok
   ============================================================ */

/* === TITLE SECTION === */
.hot-promo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #7c2d12;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-left: 4px;
}

.hot-promo-crown {
    font-size: 16px;
    animation: crown-bounce 2s ease-in-out infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

.hot-promo-badge {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fef3c7;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); 
    }
    50% { 
        box-shadow: 0 2px 16px rgba(220, 38, 38, 0.6); 
    }
}

/* === CARD UTAMA === */
.package-card.hot-promo-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
    border: 1.5px solid #fbbf24;
    border-radius: 20px;
    box-shadow: 
        0 4px 16px rgba(251, 191, 36, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ✅ GLOW AURA EFFECT */
.package-card.hot-promo-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.3), 
        rgba(220, 38, 38, 0.15), 
        rgba(251, 191, 36, 0.3));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: aura-rotate 3s linear infinite;
}

.package-card.hot-promo-card:hover::before {
    opacity: 1;
}

@keyframes aura-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.package-card.hot-promo-card:hover {
    transform: translateX(6px);
    border-color: #f59e0b;
    box-shadow: 
        0 8px 28px rgba(251, 191, 36, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.package-card.hot-promo-card:active {
    transform: translateX(6px) scale(0.98);
}

/* === BADGE EMAS PREMIUM === */
.package-badge.hot-elegant {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fef3c7;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 
        0 2px 8px rgba(220, 38, 38, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.package-badge.hot-elegant i {
    color: #fbbf24;
    font-size: 9px;
}

/* === PAKET NAME === */
.hot-package-name {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-package-name::before {
    content: '✦';
    color: #f59e0b;
    font-size: 14px;
}

/* === DESCRIPTION === */
.hot-package-desc {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

/* === HARGA ELEGAN === */
.package-price-discount.hot-price {
    color: #b91c1c;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(185, 28, 28, 0.1);
    position: relative;
}

/* Garis bawah emas tipis di bawah harga */
.package-price-discount.hot-price::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
}

/* ✅ HAPUS double Rp kalau ada CSS lama */
.package-price-discount.hot-price::before {
    content: '' !important;
}

/* === SAVE BADGE ELEGAN === */
.package-save.hot-save {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 700;
    font-size: 10px;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.15);
}

.package-save.hot-save i {
    color: #d97706;
    font-size: 10px;
}

/* === ARROW SELECT EMAS === */
.package-select.hot-select {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.package-select.hot-select i {
    color: #d97706;
    font-size: 14px;
    transition: all 0.3s ease;
}

.package-card.hot-promo-card:hover .package-select.hot-select {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: scale(1.05);
}

.package-card.hot-promo-card:hover .package-select.hot-select i {
    color: #ffffff;
    transform: translateX(2px);
}

/* === SPARKLE ANIMATION (opsional, biar lebih hidup) === */
.package-card.hot-promo-card .package-info {
    position: relative;
}

.package-card.hot-promo-card .package-info::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
    box-shadow: 
        8px 4px 0 0 rgba(251, 191, 36, 0.6),
        -4px 12px 0 0 rgba(251, 191, 36, 0.4);
}

@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .hot-promo-title {
        font-size: 13px;
        gap: 8px;
    }
    
    .hot-promo-crown {
        font-size: 14px;
    }
    
    .hot-promo-badge {
        font-size: 8px;
        padding: 2px 8px;
    }
    
    .hot-package-name {
        font-size: 14px;
    }
    
    .hot-package-name::before {
        font-size: 12px;
    }
    
    .package-price-discount.hot-price {
        font-size: 16px;
    }
    
    .package-badge.hot-elegant {
        font-size: 9px;
        padding: 3px 10px;
        top: 10px;
        right: 10px;
    }
    
    .package-save.hot-save {
        font-size: 9px;
        padding: 2px 10px;
    }
}

@media (max-width: 380px) {
    .hot-promo-title {
        font-size: 12px;
    }
    
    .hot-package-name {
        font-size: 13px;
    }
    
    .package-price-discount.hot-price {
        font-size: 15px;
    }
}

/* ================================================================
   STRUK PULSA - CUSTOM STYLES (FULL KONSISTEN - TANPA LINGKARAN)
   ================================================================ */

/* --- 1. CARD PULSA DI DASHBOARD (SAMA PERSIS DENGAN CARD LAIN) --- */
.upload-card.pulsa-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35) !important;
}

.upload-card.pulsa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45) !important;
}

.upload-card.pulsa-card .upload-icon i {
    color: white;
    font-size: 28px;
}

.upload-card.pulsa-card .upload-title {
    color: white !important;
    font-weight: 700;
    font-size: 12px;
}

.upload-card.pulsa-card .upload-desc {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 9px;
}

/* --- 2. CARD PULSA DI HALAMAN PILIH JENIS --- */
.jenis-struk-card.pulsa-card {
    background: white !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    
    /* ✅ TAMBAHKAN ANIMASI SAMA DENGAN CARD LAIN */
    animation: slideUp 0.4s ease backwards;
    animation-delay: 0.2s;  /* ← SAMA DENGAN nth-child(4) */
}

/* ✅ PASTIKAN KEYFRAME slideUp ADA (jika belum ada di CSS utama) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jenis-struk-card.pulsa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(109, 40, 217, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jenis-struk-card.pulsa-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.jenis-struk-card.pulsa-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jenis-struk-card.pulsa-card:active::before {
    opacity: 1;
}

.jenis-struk-card.pulsa-card .jenis-struk-icon {
    width: 56px;
    height: 56px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    box-shadow: 0 8px 20px -5px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.jenis-struk-card.pulsa-card .jenis-struk-icon i {
    font-size: 30px;
    color: white;
}

.jenis-struk-card.pulsa-card:active .jenis-struk-icon {
    transform: scale(0.95);
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
}

.jenis-struk-card.pulsa-card .jenis-struk-info {
    flex: 1;
}

.jenis-struk-card.pulsa-card .jenis-struk-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: black;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.jenis-struk-card.pulsa-card .jenis-struk-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.jenis-struk-card.pulsa-card .jenis-struk-arrow {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jenis-struk-card.pulsa-card .jenis-struk-arrow i {
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.jenis-struk-card.pulsa-card:active .jenis-struk-arrow {
    background: #8b5cf6;
    transform: translateX(5px);
}

.jenis-struk-card.pulsa-card:active .jenis-struk-arrow i {
    color: white;
}

/* --- 3. MANUAL PULSA PAGE --- */
.manual-pulsa-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px 30px 16px;
}

/* --- Form Section - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .form-section {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

/* --- Form Section Title - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-pulsa-container .form-section-title i {
    color: #8b5cf6;
    font-size: 18px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Form Row - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.manual-pulsa-container .form-row:last-child {
    margin-bottom: 0;
}

/* --- Form Col - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .form-col {
    flex: 1;
    min-width: 140px;
}

.manual-pulsa-container .form-col label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.manual-pulsa-container .form-col label i {
    margin-right: 6px;
    font-size: 12px;
    color: #8b5cf6;
}

/* --- Form Input - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.manual-pulsa-container .form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.manual-pulsa-container .form-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.manual-pulsa-container .form-input[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: default;
}

/* --- Select Dropdown - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.manual-pulsa-container select.form-input option {
    padding: 8px;
}

/* --- Total Display - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .total-display {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 20px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    letter-spacing: 0.5px;
}

/* --- Form Actions - SAMA DENGAN FORM LAIN --- */
.manual-pulsa-container .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.manual-pulsa-container .btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    padding: 16px 20px;
    border-radius: 60px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px -5px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.manual-pulsa-container .btn-submit:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px -3px rgba(139, 92, 246, 0.4);
}

.manual-pulsa-container .btn-submit i {
    font-size: 18px;
}

/* --- Animasi --- */
.manual-pulsa-container .form-section {
    animation: slideUp 0.4s ease backwards;
}

.manual-pulsa-container .form-section:first-child {
    animation-delay: 0.05s;
}

.manual-pulsa-container .form-section:last-child {
    animation-delay: 0.1s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   RESPONSIVE MOBILE
   ================================================================ */

@media (max-width: 480px) {
    .manual-pulsa-container {
        padding: 0 12px 20px 12px;
    }
    
    .manual-pulsa-container .form-section {
        padding: 16px;
        border-radius: 24px;
        margin-bottom: 16px;
    }
    
    .manual-pulsa-container .form-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .manual-pulsa-container .form-col {
        min-width: 100%;
    }
    
    .manual-pulsa-container .form-section-title {
        font-size: 14px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .manual-pulsa-container .form-section-title i {
        font-size: 16px;
    }
    
    .manual-pulsa-container .form-input {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .manual-pulsa-container .total-display {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .manual-pulsa-container .btn-submit {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 50px;
    }
    
    .manual-pulsa-container .form-actions {
        flex-direction: column;
    }
}

/* --- 4. TOTAL DISPLAY PULSA --- */
.total-display-pulsa {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* --- 5. UPLOAD AREA PULSA --- */
.upload-pulsa-area {
    border: 2px dashed #d8b4fe;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #faf8ff;
}

.upload-pulsa-area:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.upload-pulsa-area i {
    font-size: 48px;
    color: #8b5cf6;
    margin-bottom: 12px;
}

.upload-pulsa-area p {
    font-size: 14px;
    color: #1e293b;
    margin: 8px 0;
}

.upload-pulsa-area small {
    font-size: 12px;
    color: #94a3b8;
}

/* --- 6. OCR PULSA --- */
#ocrPulsaPage .manual-struk-form {
    padding: 0 4px;
}

#ocrPulsaPage .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0;
}

#ocrPulsaPage .form-actions .btn-cancel {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 14px;
    border-radius: 40px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

#ocrPulsaPage .form-actions .btn-cancel:hover {
    background: #e2e8f0;
}

#ocrPulsaPage .form-actions .btn-submit {
    flex: 2;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    padding: 14px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

#ocrPulsaPage .form-actions .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* --- 7. EDIT PULSA --- */
#editPulsaProvider {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px !important;
}

/* --- 8. RIWAYAT PULSA --- */
.history-type-icon.pulsa {
    background: #ede9fe !important;
}

.history-type-icon.pulsa i {
    color: #8b5cf6 !important;
}

.history-type-text.pulsa {
    color: #6d28d9 !important;
}

.history-nominal.pulsa {
    color: #8b5cf6 !important;
}

/* --- 9. TEMPLATE BUTTONS PULSA --- */
.template-btn-page[data-template="standard"] {
    background: #f1f5f9;
    color: #475569;
}

.template-btn-page[data-template="minimalis"] {
    background: #f1f5f9;
    color: #475569;
}

.template-btn-page[data-template="modern"] {
    background: #f1f5f9;
    color: #475569;
}

.template-btn-page[data-template="premium"] {
    background: #f1f5f9;
    color: #475569;
}

.template-btn-page.active[data-template="standard"] {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.template-btn-page.active[data-template="minimalis"] {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.template-btn-page.active[data-template="modern"] {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.template-btn-page.active[data-template="premium"] {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* --- 10. RESPONSIVE PULSA --- */
@media (max-width: 480px) {
    .manual-pulsa-container .form-col {
        min-width: 100%;
    }
    
    .manual-pulsa-container .form-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .upload-pulsa-area {
        padding: 24px 16px;
    }
    
    .upload-pulsa-area i {
        font-size: 36px;
    }
    
    #ocrPulsaPage .form-actions {
        flex-direction: column;
    }
    
    #ocrPulsaPage .form-actions .btn-cancel,
    #ocrPulsaPage .form-actions .btn-submit {
        flex: none;
        width: 100%;
    }
    
    .upload-card.pulsa-card .upload-title {
        font-size: 11px;
    }
    
    .upload-card.pulsa-card .upload-desc {
        font-size: 8px;
    }
    
    .upload-card.pulsa-card .upload-icon i {
        font-size: 22px;
    }
    
    .upload-card.tarik-tunai-card .upload-icon i {
        font-size: 22px;
    }
}

/* --- 11. DARK MODE PULSA --- */
@media (prefers-color-scheme: dark) {
    .upload-card.pulsa-card {
        background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    }
    
    .manual-pulsa-container .form-section {
        background: #1e293b;
        border-color: #334155;
    }
    
    .manual-pulsa-container .form-section-title {
        color: #f1f5f9;
        border-bottom-color: #334155;
    }
    
    .manual-pulsa-container .form-col label {
        color: #94a3b8;
    }
    
    .manual-pulsa-container .form-col .form-input {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .manual-pulsa-container .form-col .form-input:focus {
        border-color: #8b5cf6;
        background: #1e293b;
    }
    
    .manual-pulsa-container .form-col .form-input[readonly] {
        background: #1e293b;
        color: #94a3b8;
    }
    
    .upload-pulsa-area {
        background: #1e293b;
        border-color: #4c1d95;
    }
    
    .upload-pulsa-area:hover {
        background: #2d1b69;
        border-color: #8b5cf6;
    }
    
    .upload-pulsa-area p {
        color: #f1f5f9;
    }
    
    #ocrPulsaPage .form-actions .btn-cancel {
        background: #1e293b;
        color: #94a3b8;
    }
    
    #ocrPulsaPage .form-actions .btn-cancel:hover {
        background: #334155;
    }
    
    .jenis-struk-card.pulsa-card {
        background: linear-gradient(145deg, #1e293b, #2d1b69);
        border-color: #4c1d95;
    }
    
    .jenis-struk-card.pulsa-card .jenis-struk-info h3 {
        color: #a78bfa;
    }
    
    .jenis-struk-card.pulsa-card .jenis-struk-info p {
        color: #94a3b8;
    }
}

/* --- Page Header untuk Manual Pulsa --- */
#manualPulsaPage .page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    padding: 20px 16px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;  /* ← Tambahkan agar ada padding dalam border */
}

/* Tombol Back - POSISI ABSOLUTE DI KIRI */
#manualPulsaPage .page-header .back-btn-page {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#manualPulsaPage .page-header .back-btn-page:active {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(0.95);
}

#manualPulsaPage .page-header .back-btn-page i {
    color: white;
    font-size: 18px;
}

/* Title - TETAP DI TENGAH */
#manualPulsaPage .page-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

#manualPulsaPage .page-header h2 i {
    font-size: 20px;
    color: white;
}

/* Spacer untuk menjaga keseimbangan */
#manualPulsaPage .page-header .spacer {
    width: 40px;
    flex-shrink: 0;
}


/* ================================================================
   RESPONSIVE MOBILE
   ================================================================ */

@media (max-width: 480px) {
    #manualPulsaPage .page-header {
        padding: 20px 12px;
        border-radius: 0 0 24px 24px;
        min-height: 50px;
    }
    
    #manualPulsaPage .page-header h2 {
        font-size: 17px;
    }
    
    #manualPulsaPage .page-header h2 i {
        font-size: 17px;
    }
    
    #manualPulsaPage .page-header .back-btn-page {
        width: 34px;
        height: 34px;
        font-size: 15px;
        left: 12px;
    }
    
    #manualPulsaPage .page-header .back-btn-page i {
        font-size: 15px;
    }
    
    #manualPulsaPage .page-header .spacer {
        width: 34px;
    }
}

/* Pulsa Button - SAMA PERSIS DENGAN YANG LAIN */
.share-option-btn.pulsa {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
.share-option-btn.pulsa .share-option-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.share-option-btn.pulsa:active {
    background: linear-gradient(135deg, #ede9fe, #d8b4fe);
}
.share-option-btn.pulsa .share-option-icon i {
    color: white;
}

/* ================================================================
   PREVIEW STRUK PREMIUM - THERMAL PAPER STYLE (FULL)
   DENGAN GARIS PUTUS-PUTUS FULL LEBAR & TOTAL ROW RAPI
   ================================================================ */

/* ===== TAB NAVIGATION - 1 LINE ===== */
.preview-tabs {
    display: flex;
    gap: 6px;
    padding: 0 0 14px 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.preview-tabs::-webkit-scrollbar {
    display: none;
}

.preview-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 40px;
    border: 2px solid transparent;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.preview-tab i {
    font-size: 13px;
}

.preview-tab .tab-badge {
    font-size: 8px;
    padding: 1px 8px;
    border-radius: 30px;
    background: #e2e8f0;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.preview-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: translateY(-1px);
}

.preview-tab.active {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.preview-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ===== PREVIEW CONTENT ===== */
.preview-content-wrapper {
    padding-top: 4px;
}

.preview-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.preview-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   STRUK CARD - THERMAL PAPER 58mm
   ================================================================ */

/* ===== STRUK WRAPPER ===== */
.preview-struk-wrapper {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* ===== STRUK CARD ===== */
.preview-struk-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    max-width: 220px;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.preview-struk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.08);
}

/* Efek kertas thermal */
.preview-struk-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
    border-radius: 8px;
}

/* ===== STRUK CARD HEADER ===== */
.struk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #eef2f6;
}

.struk-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #1e293b;
    font-size: 9px;
    letter-spacing: 0.3px;
}

.struk-card-title i {
    font-size: 12px;
}

.struk-card-badge {
    font-size: 6px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ================================================================
   STRUK CARD BODY - THERMAL PAPER
   ================================================================ */
.struk-card-body {
    padding: 10px 10px;
    font-family: 'Courier New', 'Courier', monospace !important;
    font-size: 7.5px;
    line-height: 1.4;
    background: #fcfcfd;
    color: #1e293b;
    position: relative;
}

/* ✅ SEMUA ELEMEN DI DALAM BODY PAKAI MONOSPACE */
.struk-card-body * {
    font-family: 'Courier New', 'Courier', monospace !important;
}

/* Efek kertas thermal bergelombang */
.struk-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.002) 2px,
            rgba(0, 0, 0, 0.002) 4px);
    pointer-events: none;
}

/* ===== STRUK LOGO ===== */
.struk-logo-preview {
    text-align: center;
    margin-bottom: 3px;
}

.struk-logo-preview img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.struk-logo-preview .logo-emoji {
    font-size: 32px;
    display: block;
    line-height: 1;
}

/* ===== STRUK STORE INFO ===== */
.struk-store-info {
    text-align: center;
    margin-bottom: 3px;
}

.struk-store-info .store-name {
    font-weight: 800;
    font-size: 9px;
    color: #0f172a;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace !important;
}

.struk-store-info .store-address {
    font-size: 6.5px;
    color: #64748b;
    letter-spacing: 0.2px;
    font-family: 'Courier New', monospace !important;
}

.struk-store-info .store-phone {
    font-size: 6.5px;
    color: #64748b;
    font-family: 'Courier New', monospace !important;
}

/* ================================================================
   🔥 GARIS PEMBATAS - FULL LEBAR DARI KIRI KE KANAN
   ================================================================ */

/* ===== GARIS PUTUS-PUTUS (DEFAULT) - FULL LEBAR ===== */
.struk-divider {
    text-align: center;
    color: #94a3b8;
    font-size: 7px;
    padding: 0.5px 0;
    font-family: 'Courier New', monospace !important;
    width: 100% !important;
    display: block !important;
}

.struk-divider::before {
    content: '----------------------------------------';
    color: #94a3b8;
    font-weight: 300;
    display: block;
    width: 100%;
}

/* ===== GARIS TEBAL (UNTUK TOTAL) - FULL LEBAR ===== */
.struk-divider-thick {
    text-align: center;
    color: #94a3b8;
    font-size: 7px;
    padding: 0.5px 0;
    font-family: 'Courier New', monospace !important;
    width: 100% !important;
    display: block !important;
}

.struk-divider-thick::before {
    content: '========================================';
    color: #7c3aed;
    font-weight: 800;
    display: block;
    width: 100%;
}

/* ===== GARIS PUTUS-PUTUS ALTERNATIF (DASHED) - FULL LEBAR ===== */
.struk-divider-dashed {
    text-align: center;
    color: #94a3b8;
    font-size: 7px;
    padding: 0.5px 0;
    font-family: 'Courier New', monospace !important;
    width: 100% !important;
    display: block !important;
}

.struk-divider-dashed::before {
    content: '----------------------------------------';
    color: #cbd5e1;
    display: block;
    width: 100%;
}

/* ===== STRUK TEXT STYLES ===== */
.struk-type-title {
    text-align: center;
    font-weight: 800;
    font-size: 8.5px;
    color: #0f172a;
    letter-spacing: 1px;
    padding: 2px 0;
    text-transform: uppercase;
    font-family: 'Courier New', monospace !important;
}

.struk-sub-title {
    text-align: center;
    font-weight: 700;
    font-size: 7.5px;
    color: #475569;
    padding: 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace !important;
}

/* ================================================================
   🔥 STRUK ROW - FORMAT PRESISI (LABEL & VALUE SEJAJAR)
   ================================================================ */
.struk-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
    padding: 1px 0 !important;
    font-size: 7.5px !important;
    color: #1e293b !important;
    font-family: 'Courier New', monospace !important;
    line-height: 1.3 !important;
}

/* ✅ LABEL - LEBAR TETAP 10 KARAKTER */
.struk-row .label {
    display: inline-block !important;
    width: 10ch !important;
    min-width: 10ch !important;
    flex-shrink: 0 !important;
    color: #64748b !important;
    font-weight: 500 !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.2px !important;
}

/* ✅ VALUE - RATA KANAN DENGAN LEBAR FLEKSIBEL */
.struk-row .value {
    display: inline-block !important;
    text-align: right !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    font-family: 'Courier New', monospace !important;
    word-break: break-word !important;
    max-width: 58% !important;
}

/* ================================================================
   🔥 TOTAL ROW - RAPI & TIDAK TERLALU KE KIRI
   ================================================================ */
.struk-row.total {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    padding: 3px 10px !important;
    margin: 0 -10px !important;
    border-top: 1px solid #e9d5ff !important;
    border-bottom: 1px solid #e9d5ff !important;
    font-size: 8.5px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: auto !important;
}

.struk-row.total .label {
    font-weight: 800 !important;
    color: #7c3aed !important;
    width: 10ch !important;
    min-width: 10ch !important;
    font-size: 8.5px !important;
    flex-shrink: 0 !important;
}

.struk-row.total .value {
    font-weight: 800 !important;
    color: #7c3aed !important;
    font-size: 9px !important;
    text-align: right !important;
}

/* ===== STRUK TOKEN DISPLAY ===== */
.struk-token-display {
    text-align: center;
    padding: 6px 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 4px;
    margin: 3px 0;
    border: 1px solid rgba(245, 158, 11, 0.15);
    font-family: 'Courier New', monospace !important;
}

.struk-token-display .token-label {
    font-size: 5.5px;
    color: #92400e;
    display: block;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace !important;
}

.struk-token-display .token-value {
    font-size: 10px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace !important;
    word-break: break-all;
    line-height: 1.5 !important;
}

/* Token 2 baris - untuk token panjang */
.struk-token-display .token-value .token-line2 {
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace !important;
}

/* ===== STRUK FOOTER ===== */
.struk-footer {
    text-align: center;
    padding-top: 3px;
}

.struk-footer .footer-text {
    font-size: 6px;
    font-style: italic;
    color: #7c3aed;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: 'Courier New', monospace !important;
}

.struk-footer .store-name {
    font-weight: 800;
    font-size: 7.5px;
    color: #0f172a;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Courier New', monospace !important;
}

/* ===== STRUK INFO BADGE ===== */
.struk-info-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 5px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== PREVIEW FOOTER ACTIONS ===== */
.preview-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-footer-actions .preview-note {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-footer-actions .preview-note i {
    color: #7c3aed;
    font-size: 11px;
}

.btn-refresh-preview {
    background: #f1f5f9;
    border: none;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.btn-refresh-preview:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-refresh-preview:active {
    transform: scale(0.95);
}

/* ================================================================
   RESPONSIVE MOBILE
   ================================================================ */

@media (max-width: 480px) {
    .preview-tabs {
        gap: 4px;
        padding: 0 0 10px 0;
        margin-bottom: 12px;
    }

    .preview-tab {
        padding: 6px 10px;
        font-size: 10px;
        gap: 4px;
        border-radius: 30px;
    }

    .preview-tab i {
        font-size: 11px;
    }

    .preview-tab .tab-badge {
        font-size: 7px;
        padding: 1px 6px;
    }

    .preview-struk-card {
        max-width: 200px;
    }

    .struk-card-body {
        padding: 10px 8px;
        font-size: 6.5px;
    }

    .struk-card-body .struk-row {
        font-size: 6.5px !important;
        padding: 0.5px 0 !important;
    }

    .struk-card-body .struk-row .label {
        width: 8ch !important;
        min-width: 8ch !important;
    }

    .struk-card-body .struk-row .value {
        font-size: 6.5px !important;
        max-width: 55% !important;
    }

    .struk-card-body .struk-row.total {
        padding: 2px 8px !important;
        margin: 0 -8px !important;
        font-size: 7.5px !important;
    }

    .struk-card-body .struk-row.total .label,
    .struk-card-body .struk-row.total .value {
        font-size: 7.5px !important;
    }

    .struk-card-body .struk-type-title {
        font-size: 7.5px;
        padding: 1.5px 0;
    }

    .struk-card-body .struk-sub-title {
        font-size: 6.5px;
        padding: 1.5px 0;
    }

    .struk-store-info .store-name {
        font-size: 8px;
    }

    .struk-store-info .store-address {
        font-size: 5.5px;
    }

    .struk-store-info .store-phone {
        font-size: 5.5px;
    }

    .struk-token-display .token-value {
        font-size: 8.5px;
    }

    .struk-logo-preview img {
        max-width: 36px;
        max-height: 36px;
    }

    .struk-logo-preview .logo-emoji {
        font-size: 26px;
    }

    .struk-footer .footer-text {
        font-size: 5.5px;
    }

    .struk-footer .store-name {
        font-size: 6.5px;
    }

    .preview-footer-actions {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding-top: 10px;
        margin-top: 10px;
    }

    .preview-footer-actions .preview-note {
        font-size: 9px;
    }

    .btn-refresh-preview {
        padding: 5px 12px;
        font-size: 9px;
    }

    .struk-divider::before {
        content: '------------------------------------';
    }

    .struk-divider-thick::before {
        content: '====================================';
    }

    .struk-divider-dashed::before {
        content: '------------------------------------';
    }
}

@media (max-width: 380px) {
    .preview-struk-card {
        max-width: 170px;
    }

    .struk-card-body {
        padding: 8px 6px;
        font-size: 6px;
    }

    .struk-card-body .struk-row {
        font-size: 6px !important;
        padding: 0.5px 0 !important;
    }

    .struk-card-body .struk-row .label {
        width: 7ch !important;
        min-width: 7ch !important;
    }

    .struk-card-body .struk-row .value {
        font-size: 6px !important;
        max-width: 52% !important;
    }

    .struk-card-body .struk-row.total {
        padding: 2px 6px !important;
        margin: 0 -6px !important;
        font-size: 7px !important;
    }

    .struk-card-body .struk-row.total .label,
    .struk-card-body .struk-row.total .value {
        font-size: 7px !important;
    }

    .struk-card-body .struk-type-title {
        font-size: 7px;
    }

    .struk-card-body .struk-sub-title {
        font-size: 6px;
    }

    .struk-store-info .store-name {
        font-size: 7px;
    }

    .struk-store-info .store-address {
        font-size: 5px;
    }

    .struk-store-info .store-phone {
        font-size: 5px;
    }

    .struk-token-display .token-value {
        font-size: 7.5px;
    }

    .struk-logo-preview img {
        max-width: 30px;
        max-height: 30px;
    }

    .struk-logo-preview .logo-emoji {
        font-size: 22px;
    }

    .struk-divider::before {
        content: '----------------------------------';
    }

    .struk-divider-thick::before {
        content: '==================================';
    }

    .struk-divider-dashed::before {
        content: '----------------------------------';
    }
}

/* ================================================================
   LANDSCAPE MODE - TAB TETAP 1 LINE
   ================================================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .preview-tabs {
        gap: 4px;
        padding: 0 0 8px 0;
        margin-bottom: 10px;
    }

    .preview-tab {
        padding: 4px 10px;
        font-size: 9px;
        border-radius: 20px;
    }

    .preview-tab i {
        font-size: 10px;
    }

    .preview-tab .tab-badge {
        font-size: 6px;
        padding: 0 6px;
    }

    .struk-card-body {
        padding: 8px 8px;
        font-size: 6.5px;
    }

    .struk-card-body .struk-row {
        font-size: 6.5px !important;
        padding: 0.5px 0 !important;
    }

    .struk-card-body .struk-type-title {
        font-size: 7px;
        padding: 1px 0;
    }

    .preview-struk-card {
        max-width: 200px;
    }

    .struk-token-display .token-value {
        font-size: 8px;
    }
}

/* ================================================================
   DARK MODE SUPPORT
   ================================================================ */

@media (prefers-color-scheme: dark) {
    .preview-struk-card {
        background: #1e293b;
        border-color: #334155;
    }

    .preview-struk-card::after {
        display: none;
    }

    .struk-card-header {
        background: linear-gradient(135deg, #0f172a, #1e293b);
        border-color: #334155;
    }

    .struk-card-title {
        color: #f1f5f9;
    }

    .struk-card-body {
        background: #1a1a2e;
        color: #e2e8f0;
    }

    .struk-card-body::before {
        display: none;
    }

    .struk-store-info .store-name {
        color: #f1f5f9;
    }

    .struk-store-info .store-address {
        color: #94a3b8;
    }

    .struk-store-info .store-phone {
        color: #94a3b8;
    }

    .struk-type-title {
        color: #f1f5f9;
    }

    .struk-sub-title {
        color: #94a3b8;
    }

    .struk-row {
        color: #e2e8f0;
    }

    .struk-row .label {
        color: #94a3b8;
    }

    .struk-row .value {
        color: #f1f5f9;
    }

    .struk-row.total {
        background: linear-gradient(135deg, #2d1b69, #1e1b4b) !important;
        border-top-color: #4c1d95 !important;
        border-bottom-color: #4c1d95 !important;
    }

    .struk-row.total .label {
        color: #a78bfa !important;
    }

    .struk-row.total .value {
        color: #a78bfa !important;
    }

    .struk-token-display {
        background: linear-gradient(135deg, #3d2e14, #2d1f0e);
        border-color: #5b3d1a;
    }

    .struk-token-display .token-label {
        color: #fbbf24;
    }

    .struk-token-display .token-value {
        color: #fcd34d;
    }

    .struk-token-display .token-value .token-line2 {
        color: #fcd34d;
    }

    .struk-footer .footer-text {
        color: #a78bfa;
    }

    .struk-footer .store-name {
        color: #f1f5f9;
    }

    .preview-tab {
        background: #1e293b;
        color: #94a3b8;
    }

    .preview-tab:hover {
        background: #334155;
        color: #f1f5f9;
    }

    .preview-tab.active {
        background: linear-gradient(135deg, #7c3aed, #d946ef);
        color: white;
    }

    .preview-tab .tab-badge {
        background: #334155;
        color: #94a3b8;
    }

    .preview-tab.active .tab-badge {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .preview-footer-actions {
        border-top-color: #334155;
    }

    .preview-footer-actions .preview-note {
        color: #64748b;
    }

    .btn-refresh-preview {
        background: #1e293b;
        color: #94a3b8;
    }

    .btn-refresh-preview:hover {
        background: #334155;
        color: #f1f5f9;
    }

    .struk-divider::before {
        color: #475569;
    }

    .struk-divider-dashed::before {
        color: #475569;
    }

    .struk-divider-thick::before {
        color: #a78bfa;
    }
}

/* ===== LOGO UNTUK SEMUA TAB PREVIEW ===== */
.preview-struk-card .struk-logo-preview img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    display: none; /* default hidden, akan ditampilkan oleh JS jika ada logo */
}

.preview-struk-card .struk-logo-preview span {
    font-size: 48px;
    display: inline-block;
    line-height: 1;
}

/* Ukuran logo sesuai setting */
.preview-struk-card .struk-logo-preview img.logo-small {
    max-width: 40px;
    max-height: 40px;
}

.preview-struk-card .struk-logo-preview img.logo-medium {
    max-width: 60px;
    max-height: 60px;
}

.preview-struk-card .struk-logo-preview img.logo-large {
    max-width: 80px;
    max-height: 80px;
}

/* ================================================================
   TARIK TUNAI STYLE
   ================================================================ */
.upload-card.tarik-tunai-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35) !important;
}

.upload-card.tarik-tunai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45) !important;
}

.upload-card.tarik-tunai-card .upload-icon i {
    color: white;
    font-size: 22px;
}

.upload-card.tarik-tunai-card .upload-title {
    color: white !important;
    font-weight: 700;
    font-size: 11px;
}

.upload-card.tarik-tunai-card .upload-desc {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 8px;
}

.jenis-struk-card.tarik-tunai-card {
    background: white !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    
    /* ✅ TAMBAHKAN ANIMASI SAMA DENGAN CARD LAIN */
    animation: slideUp 0.4s ease backwards;
    animation-delay: 0.2s;  /* ← SAMA DENGAN nth-child(4) */
}

.jenis-struk-card.tarik-tunai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(109, 40, 217, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jenis-struk-card.tarik-tunai-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.jenis-struk-card.tarik-tunai-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jenis-struk-card.tarik-tunai-card:active::before {
    opacity: 1;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-icon {
    width: 56px;
    height: 56px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f65c73, #d92848) !important;
    box-shadow: 0 8px 20px -5px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-icon i {
    font-size: 30px;
    color: white;
}

.jenis-struk-card.tarik-tunai-card:active .jenis-struk-icon {
    transform: scale(0.95);
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-info {
    flex: 1;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: black;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-arrow {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jenis-struk-card.tarik-tunai-card .jenis-struk-arrow i {
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.jenis-struk-card.tarik-tunai-card:active .jenis-struk-arrow {
    background: #8b5cf6;
    transform: translateX(5px);
}

.jenis-struk-card.tarik-tunai-card:active .jenis-struk-arrow i {
    color: white;
}

/* Struk Preview Tarik Tunai */
.struk-tarik-tunai .total-tunai-highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin-top: 4px;
}

/* Total Tunai Display */
#manualTtTotal,
#ocrTtTotal {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 800;
    font-size: 18px;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Badge Tarik Tunai di riwayat */
.riwayat-tarik-tunai {
    color: #10b981 !important;
}


/* ================================================================
   PREMIUM CARD: KAMERA OCR
   ================================================================ */

.kamera-ocr-card-premium {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 96px;
    padding: 16px 18px;
    margin: 8px 0 16px 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    box-shadow: 
        0 8px 24px rgba(124, 58, 237, 0.35),
        0 4px 12px rgba(217, 70, 239, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: kameraFloatIn 0.6s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.kamera-ocr-card-premium:active {
    transform: scale(0.97);
    box-shadow: 
        0 4px 16px rgba(124, 58, 237, 0.4),
        0 2px 8px rgba(217, 70, 239, 0.3);
}

/* ===== Dekorasi Background ===== */
.kamera-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

.kamera-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(40px);
}

.kamera-bg-circle.c1 {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -20px;
    animation: kameraPulse 3s ease-in-out infinite;
}

.kamera-bg-circle.c2 {
    width: 80px;
    height: 80px;
    bottom: -30px;
    left: 30%;
    background: rgba(255, 255, 255, 0.1);
    animation: kameraPulse 4s ease-in-out infinite reverse;
}

.kamera-bg-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: kameraShimmer 3s ease-in-out infinite;
}

/* ===== Content Container ===== */
.kamera-ocr-content {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 2;
}

/* ===== Icon Wrapper ===== */
.kamera-ocr-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 14px;
}

.kamera-ocr-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kamera-ocr-icon i {
    font-size: 26px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.kamera-ocr-icon-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    opacity: 0.6;
    z-index: 1;
    animation: kameraGlow 2s ease-in-out infinite;
}

.kamera-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: kameraPulseRing 2s ease-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* ===== Text Content ===== */
.kamera-ocr-text {
    flex: 1;
    min-width: 0;
    z-index: 2;
}

.kamera-ocr-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.kamera-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.kamera-ai-badge i {
    font-size: 10px;
    animation: aiSparkle 1.5s ease-in-out infinite;
}

.kamera-ocr-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.3;
}

.kamera-ocr-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.kamera-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.kamera-feature-tag i {
    font-size: 10px;
}

/* ===== Arrow ===== */
.kamera-ocr-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.kamera-ocr-card-premium:active .kamera-ocr-arrow {
    transform: translateX(4px);
}

.kamera-ocr-arrow i {
    color: white;
    font-size: 14px;
}

/* ===== Animasi ===== */
@keyframes kameraFloatIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes kameraPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
    }
}

@keyframes kameraShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes kameraPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes kameraGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes aiSparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* ===== Responsive ===== */
@media (max-width: 380px) {
    .kamera-ocr-card-premium {
        min-height: 86px;
        padding: 14px 14px;
        border-radius: 20px;
    }
    
    .kamera-ocr-icon-wrapper,
    .kamera-ocr-icon {
        width: 52px;
        height: 52px;
    }
    
    .kamera-ocr-icon i {
        font-size: 22px;
    }
    
    .kamera-ocr-title {
        font-size: 14px;
    }
    
    .kamera-ocr-subtitle {
        font-size: 11px;
    }
    
    .kamera-feature-tag {
        font-size: 9px;
        padding: 2px 8px;
    }
}

/* ================================================================
   MODAL PICKER JENIS STRUK (KAMERA OCR) - FIXED SCROLLABLE
   ================================================================ */

.kamera-picker-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35) !important;
    animation: kameraFloatIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    /* ✅ FIX: Batasi tinggi maksimum */
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.kamera-picker-html {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    /* ✅ FIX: Izinkan flex untuk konten */
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.kamera-picker-modal {
    padding: 0;
    background: #ffffff;
    /* ✅ FIX: Flex column untuk layout */
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    min-height: 0;
    flex: 1;
}

/* Header - FIXED (tidak scroll) */
.kamera-picker-header {
    text-align: center;
    padding: 24px 20px 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    position: relative;
    overflow: hidden;
    /* ✅ FIX: Header fixed, tidak ikut scroll */
    flex-shrink: 0;
}

.kamera-picker-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: kameraPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.kamera-picker-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 2;
}

.kamera-picker-icon i {
    font-size: 28px;
    color: white;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.kamera-picker-title {
    position: relative;
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    z-index: 2;
}

.kamera-picker-subtitle {
    position: relative;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    z-index: 2;
}

/* ✅ FIX: Grid SCROLLABLE */
.kamera-picker-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* ✅ SCROLLABLE AREA */
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scroll di iOS */
    min-height: 0;
    max-height: none;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom scrollbar untuk Chrome/Safari */
.kamera-picker-grid::-webkit-scrollbar {
    width: 6px;
}

.kamera-picker-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.kamera-picker-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.kamera-picker-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Item Picker */
.kamera-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    font-family: inherit;
    width: 100%;
    /* ✅ FIX: Pastikan item tidak mengecil */
    flex-shrink: 0;
}

.kamera-picker-item:active {
    transform: scale(0.98);
}

/* Icon container per jenis */
.kamera-picker-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Warna per jenis */
.kamera-picker-item.transfer .kamera-picker-item-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.kamera-picker-item.transfer {
    border-color: #dbeafe;
}
.kamera-picker-item.transfer:active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.kamera-picker-item.pln .kamera-picker-item-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.kamera-picker-item.pln {
    border-color: #fef3c7;
}
.kamera-picker-item.pln:active {
    background: #fffbeb;
    border-color: #f59e0b;
}

.kamera-picker-item.tagihan .kamera-picker-item-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}
.kamera-picker-item.tagihan {
    border-color: #d1fae5;
}
.kamera-picker-item.tagihan:active {
    background: #ecfdf5;
    border-color: #10b981;
}

.kamera-picker-item.pulsa .kamera-picker-item-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.kamera-picker-item.pulsa {
    border-color: #ede9fe;
}
.kamera-picker-item.pulsa:active {
    background: #f5f3ff;
    border-color: #8b5cf6;
}

.kamera-picker-item.tarik-tunai .kamera-picker-item-icon {
    background: linear-gradient(135deg, #10b981, #047857);
}
.kamera-picker-item.tarik-tunai {
    border-color: #d1fae5;
}
.kamera-picker-item.tarik-tunai:active {
    background: #ecfdf5;
    border-color: #10b981;
}

/* Info */
.kamera-picker-item-info {
    flex: 1;
    min-width: 0;
}

.kamera-picker-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.kamera-picker-item-desc {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.kamera-picker-item-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 14px;
    transition: transform 0.2s;
}

.kamera-picker-item:active .kamera-picker-item-arrow {
    transform: translateX(3px);
    color: #7c3aed;
}

/* ✅ FIX: Footer FIXED (tidak scroll) */
.kamera-picker-footer {
    padding: 12px 16px 16px;
    display: flex;
    justify-content: center;
    /* ✅ Footer fixed */
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    /* ✅ Subtle shadow agar jelas terpisah dari scroll area */
    box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}

.kamera-picker-cancel {
    background: #f1f5f9;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    max-width: 240px;
    justify-content: center;
}

.kamera-picker-cancel:active {
    background: #e2e8f0;
    transform: scale(0.97);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .kamera-picker-popup {
        background: #1e293b !important;
    }
    
    .kamera-picker-modal {
        background: #1e293b;
    }
    
    .kamera-picker-grid {
        scrollbar-color: #475569 #1e293b;
    }
    
    .kamera-picker-grid::-webkit-scrollbar-track {
        background: #1e293b;
    }
    
    .kamera-picker-grid::-webkit-scrollbar-thumb {
        background: #475569;
    }
    
    .kamera-picker-item {
        background: #0f172a;
        border-color: #334155;
    }
    
    .kamera-picker-item-title {
        color: #f1f5f9;
    }
    
    .kamera-picker-item-desc {
        color: #94a3b8;
    }
    
    .kamera-picker-footer {
        background: #1e293b;
        border-top-color: #334155;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    }
    
    .kamera-picker-cancel {
        background: #334155;
        color: #cbd5e1;
    }
}

/* ================================================================
   FOOTER ADMIN RULES — 3 TOMBOL SEJAJAR
   (Reset Default | Download | Simpan Semua)
   ================================================================ */

.admin-save-footer {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 0 4px !important;
    border-top: 2px solid #f1f5f9 !important;
    margin-top: 12px !important;
    flex-wrap: nowrap !important;
}

.admin-save-footer button {
    flex: 1 !important;
    padding: 12px 8px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.admin-save-footer button:active {
    transform: scale(0.96) !important;
}

.admin-save-footer button i {
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

/* === Reset Default (merah) === */
.admin-save-footer .btn-reset-admin-rules {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #dc2626 !important;
    border: 1.5px solid #fca5a5 !important;
}

.admin-save-footer .btn-reset-admin-rules:hover {
    background: linear-gradient(135deg, #fecaca, #fca5a5) !important;
}

/* === Download (ungu — warna brand StrukMax) === */
.admin-save-footer .btn-download-admin-rules {
    background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

.admin-save-footer .btn-download-admin-rules:hover {
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.45) !important;
    transform: translateY(-1px) !important;
}

.admin-save-footer .btn-download-admin-rules:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* === Simpan Semua (hijau) === */
.admin-save-footer .btn-save-admin-rules {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.admin-save-footer .btn-save-admin-rules:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
}

/* === Responsive: di layar kecil, teks jadi kecil tapi tetap 1 baris === */
@media (max-width: 380px) {
    .admin-save-footer {
        gap: 6px !important;
    }
    .admin-save-footer button {
        font-size: 11px !important;
        padding: 10px 4px !important;
        gap: 4px !important;
    }
    .admin-save-footer button i {
        font-size: 11px !important;
    }
}

/* === Dark mode (optional) === */
@media (prefers-color-scheme: dark) {
    .admin-save-footer {
        border-top-color: #334155 !important;
    }
    .admin-save-footer .btn-reset-admin-rules {
        background: linear-gradient(135deg, #7f1d1d, #991b1b) !important;
        color: #fecaca !important;
        border-color: #b91c1c !important;
    }
}