/* ================================================
   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: 12px 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-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;
}

/* ==================== 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: 12px;
  font-weight: 500;
}

/* 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: 100vh;
    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: 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;
    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 / SWEETALERT ==================== */

/* SweetAlert Container */
.swal2-popup {
  border-radius: 28px !important;
  padding: 20px !important;
  max-width: 92% !important;
  width: 380px !important; /* Ukuran tetap untuk desktop */
  overflow-x: hidden !important;
}

/* Title SweetAlert */
.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;
}

/* Body SweetAlert */
.swal2-html-container {
  overflow-x: hidden !important;
  padding: 8px 0 0 0 !important;
  margin: 0 !important;
}

/* ========== PERBAIKAN INPUT FIELD ========== */
/* 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;
}

/* Tombol di SweetAlert */
.swal2-actions {
  display: flex !important;
  gap: 12px !important;
  margin-top: 20px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  padding-top: 16px !important;
  border-top: 1px solid #eef2f6 !important;
}

.swal2-confirm,
.swal2-cancel {
  border-radius: 40px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-width: 120px !important;
}

/* Responsif untuk layar kecil (mobile) */
@media (max-width: 480px) {
  .swal2-popup {
    padding: 16px !important;
    max-width: 95% !important;
    width: 95% !important;
  }
  
  .swal2-title {
    font-size: 18px !important;
    padding: 0 0 12px 0 !important;
  }
  
  .swal2-html-container {
    font-size: 13px !important;
  }
  
  .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;
  }
  
  .swal2-actions {
    gap: 8px !important;
    margin-top: 16px !important;
    flex-direction: column !important;
  }
  
  .swal2-confirm,
  .swal2-cancel {
    width: 100% !important;
    min-width: unset !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  
  .swal2-confirm {
    order: 1 !important;
  }
  
  .swal2-cancel {
    order: 2 !important;
  }
}

/* Untuk layar sangat kecil (max 380px) */
@media (max-width: 380px) {
  .swal2-popup {
    padding: 12px !important;
  }
  
  .swal2-title {
    font-size: 16px !important;
    padding: 0 0 10px 0 !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: 12px !important;
  }
}

/* ==================== OCR POPUP STYLE ==================== */

.ocr-popup {
  border-radius: 28px !important;
  padding: 20px !important;
  max-width: 95% !important;
  width: 480px !important;
}

.ocr-select, .ocr-input {
  transition: all 0.2s ease !important;
}

.ocr-select:focus, .ocr-input:focus {
  outline: none !important;
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

.ocr-confirm-btn {
  background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
  border-radius: 40px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.ocr-cancel-btn {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-radius: 40px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
}

@media (max-width: 480px) {
  .ocr-popup {
    width: 95% !important;
    padding: 16px !important;
  }
  
  .ocr-confirm-btn, .ocr-cancel-btn {
    padding: 10px 16px !important;
    font-size: 13px !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: 100vh;
    padding-bottom: 30px;
}

/* 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: 100vh;
    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: 120px !important;
        padding-bottom: 135px !important;
    }
}