/* ==========================================================================
   SaldoKita - Modern, Sleek & Polished Merchant Fintech Design System
   Silky Canvas | Soft Multi-layer Shadows | Rounded Elegant Cards | Smooth Transitions
   Zero Emojis | Pure SVG Icons & Fluid Cubic-Bezier Micro-Interactions
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;

  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-green: #00f59b;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-blue: #0284c7;
  --accent-pink: #ec4899;

  --bg-canvas: #f8fafc;
  --border-line: #e2e8f0;
  --border-focus: #059669;

  --card-bg: #ffffff;
  --card-border: #e2e8f0;

  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.05), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 48px -6px rgba(15, 23, 42, 0.16), 0 8px 16px -3px rgba(15, 23, 42, 0.06);

  /* Legacy mappings mapped to sleek, modern smooth shadows */
  --shadow-neo: var(--shadow-md);
  --shadow-neo-lg: var(--shadow-lg);
  --shadow-neo-sm: var(--shadow-sm);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-pill: 9999px;
  --radius-input: 12px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    radial-gradient(at 0% 0%, rgba(0, 245, 155, 0.06) 0px, transparent 45%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.045) 0px, transparent 40%),
    radial-gradient(at 50% 100%, rgba(2, 132, 199, 0.035) 0px, transparent 50%);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Bottom padding ONLY applied when bottom navigation bar exists */
body.has-bottom-nav {
  padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px));
}

body.auth-page,
body.landing-page,
body.no-bottom-nav {
  padding-bottom: 0 !important;
}

a, button, .btn, .bottom-nav-item, .bottom-nav-center-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

/* Micro-haptic tactile active state for app-like feeling */
button:active:not(:disabled),
.btn:active:not(:disabled),
.bottom-nav-item:active,
.neo-badge:active {
  transform: scale(0.96) !important;
  transition: transform 0.12s var(--ease-spring) !important;
}

/* ==========================================================================
   Smooth Micro-Animations
   ========================================================================== */

@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.animate-fade-in {
  animation: smoothFadeIn 0.28s var(--ease-spring) forwards;
}

/* ==========================================================================
   Brand & Top Bar (Refined, Modern Header)
   ========================================================================== */

.topbar {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.5rem 0.85rem;
    min-height: 56px;
  }
}

/* 3D S Icon Container - Pitch Black Luxury Finish */
.brand-icon-box {
  width: 44px;
  height: 44px;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-spring);
}

.brand-icon-box:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 245, 155, 0.25);
  border-color: rgba(0, 245, 155, 0.4);
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.brand-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title-text {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.brand-title-text span {
  color: #00f59b;
  background: linear-gradient(135deg, #00f59b 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 1px;
}

.topbar-badge-chip {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topbar-balance-pill {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  transition: all 0.2s var(--ease-spring);
}

.topbar-balance-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.main-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Polished Modern Fintech Cards (No Sharp Boxes, No Burik)
   ========================================================================== */

.card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease-spring);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-header-tag {
  background: #f1f5f9;
  border-bottom: 1.5px solid var(--border-line);
  margin: -1.5rem -1.5rem 1.25rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.card-header-pink { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #ffffff; border-bottom: none; }
.card-header-green { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: #ffffff; border-bottom: none; }
.card-header-blue { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #ffffff; border-bottom: none; }
.card-header-red { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); color: #ffffff; border-bottom: none; }
.card-header-dark { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #ffffff; border-bottom: none; }

/* ==========================================================================
   Modern Fintech Buttons (Smooth, Tactile, Fluid Feedback)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.4rem;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary Vibrant Emerald Action */
.btn-primary {
  background: linear-gradient(135deg, #00f59b 0%, #059669 100%);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 245, 155, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 245, 155, 0.5);
  background: linear-gradient(135deg, #10f7a3 0%, #047857 100%);
}

/* Secondary Clean White */
.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--border-line);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Mint Vibrant Green */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Danger Soft Crimson */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

/* Yellow Accent */
.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #d97706;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.02rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Form Inputs & Controls
   ========================================================================== */

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-input, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s var(--ease-spring);
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   Polished Badges & Status Chips
   ========================================================================== */

.badge, .neo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s var(--ease-spring);
}

.badge-success, .neo-badge-green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge-warning, .neo-badge-yellow { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge-danger, .neo-badge-red, .neo-badge-danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.badge-info, .neo-badge-blue { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-purple, .neo-badge-purple { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.neo-badge-black { background: #0f172a; color: #ffffff; }

/* ==========================================================================
   Floating Bottom Navigation Bar & Center Action Button
   ========================================================================== */

.bottom-nav-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 36px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 1000;
  user-select: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 12px;
  transition: all 0.2s var(--ease-spring);
  flex: 1;
  text-align: center;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item:hover {
  color: #0f172a;
}

.bottom-nav-item:hover svg {
  transform: translateY(-2px);
}

.bottom-nav-item.active {
  color: #8b5cf6;
}

.bottom-nav-item.active svg {
  stroke: #8b5cf6;
}

/* Floating Elevated Center Button - Perfectly Aligned & Circular */
.bottom-nav-center-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f59b 0%, #059669 100%);
  border: 3.5px solid #ffffff;
  box-shadow: 0 8px 22px -2px rgba(0, 245, 155, 0.6), 0 3px 8px rgba(15, 23, 42, 0.1);
  margin-top: -34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
  outline: none;
  position: relative;
}

.bottom-nav-center-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px -2px rgba(0, 245, 155, 0.75);
}

.bottom-nav-center-btn:active {
  transform: translateY(-1px) scale(0.96);
  box-shadow: 0 4px 12px rgba(0, 245, 155, 0.4);
}

.bottom-nav-center-btn svg {
  width: 26px;
  height: 26px;
  fill: #0f172a;
  stroke: #0f172a;
  stroke-width: 0.5;
}

@media (max-width: 360px) {
  .bottom-nav-bar {
    width: calc(100% - 12px);
    padding: 6px 8px;
    border-radius: 28px;
  }
  .bottom-nav-item {
    font-size: 0.58rem;
    padding: 2px;
  }
  .bottom-nav-item svg {
    width: 19px;
    height: 19px;
  }
  .bottom-nav-center-btn {
    width: 50px;
    height: 50px;
    margin-top: -28px;
  }
}

/* ==========================================================================
   QR Toko Hero Card & Upload Elements
   ========================================================================== */

.qris-hero-card {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
  transition: all 0.25s var(--ease-spring);
}

.qris-hero-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.qris-code-box {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: auto;
  max-width: min(85vw, 340px);
  box-sizing: border-box;
  position: relative;
  cursor: zoom-in;
  transition: all 0.25s var(--ease-spring);
}

.qris-code-box:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: #059669;
}

.qris-code-box img {
  width: 100%;
  max-width: 310px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.qris-zoom-hint {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
  pointer-events: none;
}

/* Close button for alert notification banners */
.banner-close-btn {
  background: transparent;
  border: none;
  color: #065f46;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.banner-close-btn:hover {
  background: rgba(5, 150, 105, 0.15);
  color: #064e3b;
  transform: scale(1.1);
}

/* Official Spec Google Login Button */
.google-login-btn {
  width: 100%;
  min-height: 46px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.google-login-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.google-login-btn:active {
  transform: scale(0.98);
}

/* QR Lightbox / Zoom Modal */
.qr-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qr-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.qr-lightbox-box {
  background: #ffffff;
  border-radius: 24px;
  max-width: min(92vw, 440px);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modalPop 0.25s var(--ease-spring);
}

.qr-lightbox-header {
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-lightbox-body {
  padding: 1.5rem;
  overflow-y: auto;
  text-align: center;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  background: #ffffff;
  padding: 10px;
}

.qr-lightbox-footer {
  padding: 1rem 1.25rem;
  border-top: 1.5px solid #f1f5f9;
  display: flex;
  gap: 10px;
}

.upload-zone {
  border: 2px dashed #94a3b8;
  border-radius: 16px;
  background: #f8fafc;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-zone:hover, .upload-zone.dragover {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}

.upload-preview-box {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.upload-preview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--border-line);
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

/* ==========================================================================
   Modals & Popups (Smooth Backdrop Blur & Elastic Scale)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-box {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  position: relative;
  transform: scale(0.95) translateY(8px);
  transition: transform 0.28s var(--ease-spring);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  border-radius: 10px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.18s var(--ease-spring);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
  transform: scale(1.06);
}

.modal-close-btn:active {
  transform: scale(0.94);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  animation: toastSlideIn 0.28s var(--ease-spring) forwards;
}

.toast-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.toast-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.toast-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.toast-info { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }

/* ==========================================================================
   Table Presentation
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--border-line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  text-align: left;
  padding: 0.85rem 1.15rem;
  border-bottom: 1.5px solid var(--border-line);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-line);
  color: #1e293b;
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Print Mode Styling
   ========================================================================== */

@media print {
  body, html {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
  }

  .topbar, .bottom-nav-bar, .modal-overlay, #toast-container, .btn, .card:not(.qris-hero-card), .no-print {
    display: none !important;
  }

  .main-wrapper {
    margin: 0 !important;
    padding: 1rem 0 !important;
    max-width: 100% !important;
  }

  .qris-hero-card {
    border: 1.5px solid #000000 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
    page-break-inside: avoid !important;
    text-align: center !important;
  }

  .qris-hero-card .btn,
  .qris-hero-card button,
  .qris-hero-card .action-buttons-wrap {
    display: none !important;
  }

  .qris-code-box {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    padding: 12px !important;
  }
}

/* ==========================================================================
   Responsive Utilities & Landing Page Navbar (Index.html only)
   ========================================================================== */

body.landing-page {
  padding-bottom: 0 !important;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .show-mobile-flex {
    display: flex !important;
  }
  .show-mobile-block {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .show-mobile-flex,
  .show-mobile-block,
  .mobile-only {
    display: none !important;
  }
}

/* Hamburger button for index.html */
.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
}

.hamburger-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hamburger-btn:active {
  transform: scale(0.95);
}

.hamburger-line {
  width: 20px;
  height: 2.2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
}

/* Mobile Slide-Down Menu Drawer for index.html */
.mobile-nav-drawer {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  padding: 1.25rem 1.25rem 1.5rem;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  animation: smoothFadeIn 0.25s var(--ease-spring) forwards;
}

.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  border: 1.5px solid var(--border-line);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
}

.mobile-nav-link:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.mobile-nav-link:active {
  transform: scale(0.98);
}
