/**
 * Gold Saving — Premium 2025 components
 * Luxury fintech · Elegant SaaS · High trust
 */

/* ========== Section spacing (white space rhythm) ========== */
.section {
  margin-bottom: var(--section-gap);
}
.section:last-child { margin-bottom: 0; }
.section-sm { margin-bottom: var(--section-gap-sm); }
.section-xl { margin-bottom: var(--space-3xl); }
.section-title {
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: var(--tracking-tight);
}
.section-subtitle {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: var(--content-narrow);
}
.content-wrap {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
@media (min-width: 992px) {
  .content-wrap { padding-left: var(--space-xl); padding-right: var(--space-xl); }
}

/* ========== Image framing (consistent radius + shadow) ========== */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(231, 229, 228, 0.6);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame.img-frame-elevated {
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.hero-banner-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}
.card-img-premium {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--light-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ========== Glassmorphism ========== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ========== Premium Wallet Card (หน้าบัตร/แอปธนาคาร) ========== */
.wallet-card {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gold-gradient-dark);
  box-shadow: var(--shadow-soft-lg), var(--shadow-gold);
  position: relative;
}
.wallet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-gradient-card);
  pointer-events: none;
}
.wallet-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.wallet-card .wallet-content {
  position: relative;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}
.wallet-card .wallet-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wallet-card .wallet-balance {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.wallet-card .wallet-value {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}
.wallet-card .wallet-actions {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.wallet-card .wallet-actions .btn {
  border-radius: var(--radius);
  font-weight: 600;
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wallet-card .wallet-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
}
.wallet-card .wallet-actions .btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--charcoal);
  border: none;
}
.wallet-card .wallet-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ========== Price Chart Section ========== */
.price-chart-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-chart-card .card-header {
  background: linear-gradient(180deg, var(--off-white) 0%, #FAFAF9 100%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: var(--text-body-sm);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.price-chart-card .price-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}
.price-badge.up { background: var(--success-light); color: var(--success); }
.price-badge.down { background: var(--danger-light); color: var(--danger); }
.price-badge.flat { background: var(--warning-light); color: var(--warning); }

/* ========== Quick Action Buttons ========== */
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(231, 229, 228, 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
  min-height: 100%;
}
.quick-action-btn:hover {
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(212, 168, 75, 0.2);
}
.quick-action-btn .qa-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--soft-gold-bg) 0%, rgba(232, 197, 71, 0.12) 100%);
  box-shadow: var(--shadow-xs);
}
.quick-action-btn .qa-label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-normal);
}
.card-gold .list-group-item {
  border-radius: var(--radius-sm);
  margin: 0 0.5rem;
  width: calc(100% - 1rem);
}
.card-gold .list-group-item:last-child { margin-bottom: 0.5rem; }
.card-gold .list-group-item-action:hover { background: var(--soft-gold-bg); }

/* ========== Cards — elevation + radius consistency ========== */
.card-gold {
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: box-shadow 0.25s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card-gold:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(212, 168, 75, 0.15);
}
.card-gold.card-elevated {
  box-shadow: var(--shadow-soft);
}
.card-gold.card-elevated:hover {
  box-shadow: var(--shadow-soft-md);
}
.card-gold .card-header {
  background: linear-gradient(180deg, var(--off-white) 0%, #FAFAF9 100%);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: var(--text-body-sm);
  color: var(--charcoal);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  letter-spacing: var(--tracking-normal);
}
.card-gold .card-body {
  padding: var(--space-lg);
}
.card-gold .card-body.py-2 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }

/* Goal progress — premium */
.goal-progress-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, var(--soft-gold-bg) 100%);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.goal-progress-card .progress {
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(231, 229, 228, 0.8);
  overflow: hidden;
}
.goal-progress-card .progress-bar {
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  box-shadow: 0 0 12px rgba(212, 168, 75, 0.35);
}

/* ========== Buttons — Elevation ========== */
.btn-elevation {
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-elevation:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* ========== Page header (role-based storytelling) ========== */
.page-header {
  margin-bottom: var(--space-xl);
}
.page-title {
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xs);
}
.page-subtitle {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  line-height: var(--line-normal);
}
.page-header .breadcrumb-wrapper {
  margin-bottom: var(--space-md);
}

/* ========== Product Cards ========== */
.product-card {
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(212, 168, 75, 0.2);
}
.product-card .product-img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--light-bg);
}
.product-card .product-body {
  padding: 1rem;
}
.product-card .product-points-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
}
.product-card .badge.bg-warning {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
}

/* Category cards */
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 140px;
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card .category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.category-card .category-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ========== Filter Pills — หมวดหมู่สะอาดตา ========== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pills .filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pills .filter-pill:hover {
  border-color: var(--gold-mid);
  color: var(--charcoal);
}
.filter-pills .filter-pill.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--charcoal);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

/* ========== Chart container ========== */
.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
}
.chart-container canvas {
  max-height: 220px;
}

/* ========== Branch detail drawer (offcanvas) ========== */
.offcanvas-end.branch-detail-offcanvas { width: 100%; max-width: 420px; }
.offcanvas-end.branch-detail-offcanvas.slip-review-mode { max-width: 480px; }
@media (min-width: 576px) {
  .offcanvas-end.branch-detail-offcanvas { max-width: 440px; }
  .offcanvas-end.branch-detail-offcanvas.slip-review-mode { max-width: 520px; }
}
.slip-review-drawer .slip-preview-box { min-width: 120px; }
.branch-slip-actions .btn-link { font-size: 0.875rem; }
.table-row-clickable:hover { background-color: rgba(0, 0, 0, 0.03); }

/* ========== Modal — Smooth transition ========== */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}
.modal .modal-content {
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-soft-lg);
}

/* ========== Loading overlay (สำหรับปุ่มยืนยัน) ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}
.loading-overlay .spinner-premium {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--gold-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-overlay .loading-text {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Toast ========== */
.toast-container-demo {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast-container-demo .alert {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft-md);
  border: none;
}

/* ========== Customer Notification Center (โมดูลลูกค้าเท่านั้น) ========== */
.customer-notif-badge {
  min-width: 1.1rem;
  font-weight: 600;
}
.customer-notif-unread-badge {
  font-weight: 500;
}
.customer-notif-filters {
  margin-bottom: var(--space-md);
}
.customer-notif-chip {
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--light-bg);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.customer-notif-chip:hover {
  background: var(--soft-gold-bg);
  color: var(--gold-deep);
  border-color: rgba(212, 168, 75, 0.3);
}
.customer-notif-chip.active {
  background: var(--gold-gradient);
  color: var(--charcoal);
  border-color: var(--gold-mid);
}
.customer-notif-list {
  display: flex;
  flex-direction: column;
}
.customer-notif-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, background 0.2s;
}
.customer-notif-card:hover {
  box-shadow: var(--shadow-soft);
}
.customer-notif-card-unread {
  background: linear-gradient(90deg, rgba(246, 231, 193, 0.2) 0%, var(--white) 100%);
  border-left: 3px solid var(--gold-mid);
}
.customer-notif-card-unread:hover {
  background: linear-gradient(90deg, rgba(246, 231, 193, 0.28) 0%, var(--off-white) 100%);
}
.customer-notif-icon {
  color: var(--charcoal);
}
.customer-notif-icon .lucide {
  color: inherit;
}
.customer-notif-time {
  font-size: var(--text-caption);
  white-space: nowrap;
}
body.customer-layout .customer-notif-card a:hover {
  color: var(--charcoal);
}
body.customer-layout #notifModalBody .customer-notif-card {
  margin-bottom: 0.5rem;
}
body.customer-layout #notifModalBody .customer-notif-card a {
  padding: 0.75rem 1rem;
}

/* ========== Premium Navigation — Design System ========== */

/* ---- App Sidebar (Branch / HQ) ---- */
.app-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--nav-bg);
  border-right: 1px solid var(--nav-border);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1020;
  box-shadow: 4px 0 24px rgba(31, 41, 55, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform var(--nav-transition), box-shadow var(--nav-transition);
}
.app-sidebar .sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--sidebar-header-border);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.app-sidebar .sidebar-header a {
  text-decoration: none;
  font-weight: 700;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.app-sidebar .sidebar-header a .logo-icon,
.app-sidebar .sidebar-header .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--nav-radius);
  background: var(--gold-gradient);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.2);
}
.app-sidebar .sidebar-header .text-primary { color: var(--gold-deep) !important; }
.app-sidebar .sidebar-header .sidebar-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-left: calc(36px + 0.65rem);
}
.app-sidebar .nav {
  flex: 1;
  padding: 0.5rem 0.75rem 1rem;
  overflow-y: auto;
}
.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--nav-item-gap);
  min-height: var(--nav-item-height);
  padding: 0 1rem;
  margin-bottom: 2px;
  border-radius: var(--nav-radius);
  color: var(--nav-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--nav-transition), color var(--nav-transition), border-color var(--nav-transition), box-shadow var(--nav-transition);
}
.app-sidebar .nav-link i,
.app-sidebar .nav-link .lucide {
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  flex-shrink: 0;
  opacity: 0.9;
}
.app-sidebar .nav-link:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-text-hover);
}
.app-sidebar .nav-link.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-left-color: var(--gold-mid);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(184, 134, 11, 0.08);
}
.app-sidebar .nav-link.active i,
.app-sidebar .nav-link.active .lucide { opacity: 1; }
.app-sidebar hr {
  margin: 0.75rem 1rem;
  border: 0;
  border-top: 1px solid var(--nav-border);
}
.app-sidebar .nav-link.text-muted { color: var(--text-muted); }
.app-sidebar .nav-link.text-muted:hover { color: var(--nav-text-hover); }
.app-main { margin-left: var(--sidebar-width); min-height: 100vh; background: var(--off-white); }
.app-main.no-sidebar { margin-left: 0; }
.app-main .p-4 {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
@media (min-width: 992px) {
  .app-main .p-4 {
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
    padding-bottom: var(--space-3xl);
  }
}
@media (max-width: 575.98px) {
  .app-main .p-4 {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .section-gap { margin-bottom: var(--space-lg); }
}

/* ---- Topbar ---- */
.app-topbar {
  min-height: var(--navbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}
.app-topbar .btn-link {
  color: var(--charcoal);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--nav-transition);
}
.app-topbar .btn-link:hover { background: var(--nav-hover-bg); }
.app-topbar .fw-600 { font-size: 1rem; letter-spacing: -0.01em; }
.app-topbar .text-muted { font-size: 0.8125rem; }

/* ---- Breadcrumb & Page Header ---- */
.breadcrumb-wrapper {
  padding: 0.75rem 0 1rem;
  margin-bottom: 0.25rem;
}
.breadcrumb-wrapper .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  flex-wrap: wrap;
}
.breadcrumb-wrapper .breadcrumb-item a {
  color: var(--breadcrumb-link);
  text-decoration: none;
  transition: color var(--nav-transition);
}
.breadcrumb-wrapper .breadcrumb-item a:hover { color: var(--gold-deep); }
.breadcrumb-wrapper .breadcrumb-item.active {
  color: var(--breadcrumb-active);
  font-weight: 600;
}
.breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
  opacity: 0.7;
}
.page-content-wrap { padding: 0 1.5rem 2rem; }
@media (min-width: 992px) {
  .page-content-wrap { padding: 0 2rem 2.5rem; }
}

/* ---- Mobile sidebar overlay ---- */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .app-sidebar.show {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }
  .app-main { margin-left: 0; }
}
body.sidebar-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1015;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
@media (max-width: 991.98px) {
  body.sidebar-open::before { opacity: 1; pointer-events: auto; }
}

/* ---- Bottom nav (Customer mobile) ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--nav-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}
.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color var(--nav-transition), transform var(--nav-transition);
}
.bottom-nav .nav-item i,
.bottom-nav .nav-item .lucide { width: 22px; height: 22px; flex-shrink: 0; }
.bottom-nav .nav-item:hover { color: var(--nav-text-hover); }
.bottom-nav .nav-item.active {
  color: var(--nav-active-text);
  font-weight: 600;
}

/* ========== Customer layout — Sidebar (desktop) + Bottom nav (mobile) ========== */
.customer-app-wrap { display: flex; min-height: 100vh; }
.customer-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--nav-bg);
  border-right: 1px solid var(--nav-border);
  padding: 0;
  display: none;
  box-shadow: 4px 0 24px rgba(31, 41, 55, 0.04);
  flex-direction: column;
}
@media (min-width: 992px) {
  .customer-sidebar { display: flex; }
  .customer-main-wrap { flex: 1; margin-left: 0; }
  body.customer-layout { padding-bottom: 0; }
}
@media (max-width: 991.98px) {
  .customer-sidebar { display: none !important; }
  .customer-main-wrap { flex: 1; }
}
.customer-main-wrap .navbar {
  min-height: var(--navbar-height);
  padding: 0 1rem;
  background: var(--topbar-bg) !important;
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.customer-main-wrap .navbar .navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.customer-main-wrap .navbar .btn-link {
  color: var(--charcoal);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--nav-transition);
}
.customer-main-wrap .navbar .btn-link:hover { background: var(--nav-hover-bg); }
.customer-sidebar .sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--sidebar-header-border);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.customer-sidebar .sidebar-brand a {
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.customer-sidebar .sidebar-brand .text-primary { color: var(--gold-deep) !important; }
.customer-sidebar .sidebar-brand .logo-icon,
.customer-sidebar .sidebar-brand [class*="icon-wrap-gold"] {
  width: 36px;
  height: 36px;
  border-radius: var(--nav-radius);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.2);
}
.customer-sidebar nav { flex: 1; padding: 0.5rem 0.75rem 1rem; overflow-y: auto; }
.customer-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--nav-item-gap);
  min-height: var(--nav-item-height);
  padding: 0 1rem;
  margin-bottom: 2px;
  border-radius: var(--nav-radius);
  color: var(--nav-text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-left: 3px solid transparent;
  transition: background var(--nav-transition), color var(--nav-transition), border-color var(--nav-transition), box-shadow var(--nav-transition);
}
.customer-sidebar .nav-link i,
.customer-sidebar .nav-link .lucide { width: var(--nav-icon-size); height: var(--nav-icon-size); flex-shrink: 0; opacity: 0.9; }
.customer-sidebar .nav-link:hover { background: var(--nav-hover-bg); color: var(--nav-text-hover); }
.customer-sidebar .nav-link.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-left-color: var(--gold-mid);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(184, 134, 11, 0.08);
}
.customer-sidebar .nav-link.active i,
.customer-sidebar .nav-link.active .lucide { opacity: 1; }
.status-badge-approved {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--success-light);
  color: var(--success);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.2);
}
.status-badge-approved .lucide { width: 16px; height: 16px; flex-shrink: 0; }

/* ========== States ========== */
.state-empty, .state-loading, .state-success {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
}
.state-success .icon-success {
  font-size: 2.5rem;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.table-dashboard {
  font-size: var(--text-body-sm);
}
.table-dashboard th {
  font-weight: 600;
  font-size: var(--text-caption);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  letter-spacing: var(--tracking-wide);
}
.table-dashboard td {
  vertical-align: middle;
  padding: var(--space-md);
  color: var(--text-primary);
}
.table-responsive {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.card-gold .table-responsive { margin: 0; }

.slip-card {
  border-left: 4px solid var(--gold-mid, #c9a227);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}
.slip-card:hover { box-shadow: var(--shadow-soft-lg); }
.queue-badge { font-size: 0.75rem; padding: 0.25rem 0.5rem; }

/* ========== Landing — Design จาก img1 (ครีม/ทอง นุ่ม) ========== */
body.landing-page {
  background-color: #F8F6F1;
  background-image: radial-gradient(ellipse at 20% 20%, rgba(246, 231, 193, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 197, 71, 0.08) 0%, transparent 50%);
}
.landing-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.landing-hero .hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.landing-hero .hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.landing-hero .hero-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}
.landing-hero .hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}
.landing-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-cta-btn:hover {
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
}
.landing-device-wrap {
  position: relative;
}
.landing-device-wrap .device-img {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  max-height: 380px;
  width: 100%;
  object-fit: cover;
}
.landing-feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-md);
}
.landing-feature-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--soft-gold-bg) 0%, rgba(232, 197, 71, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.landing-feature-card .feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.landing-feature-card .feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}
.landing-product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
.landing-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-md);
  color: inherit;
}
.landing-product-card .product-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-bg);
}
.landing-product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landing-product-card .product-info {
  padding: 1rem 1.25rem;
}
.landing-product-card .product-info .product-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.landing-product-card .product-info .product-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}
.landing-section-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.landing-section-sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.landing-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gold-gradient);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.landing-feature-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft-md); }
.landing-feature-img img { width: 100%; height: 220px; object-fit: cover; }
.landing-cta {
  background: var(--gold-gradient-dark);
  color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft-lg);
}

/* ========== Premium Entry & Login (High-fidelity) ========== */
.entry-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #FDFBF7 0%, #F8F4EC 25%, #F2EBDC 50%, #EDE4D4 100%);
  background-attachment: fixed;
}
.entry-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(246, 231, 193, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(232, 197, 71, 0.12) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.entry-header .logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.entry-header .logo .logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft-md), 0 2px 12px rgba(184, 134, 11, 0.25);
}
.entry-header .logo .brand { color: var(--gold-deep); }
.entry-title {
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.entry-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.entry-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: var(--shadow-soft-md);
  overflow: hidden;
  height: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
.entry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(212, 168, 75, 0.35);
  color: inherit;
}
.entry-card .card-visual {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--soft-gold-bg) 0%, rgba(232, 197, 71, 0.08) 100%);
  position: relative;
}
.entry-card .card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.entry-card:hover .card-visual img { transform: scale(1.04); }
.entry-card .card-visual .card-visual-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.entry-card .card-body-custom {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.entry-card .card-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.entry-card .card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.5;
}
.entry-card .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  background: var(--gold-gradient);
  color: var(--charcoal);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), 0 2px 8px rgba(184, 134, 11, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.entry-card:hover .btn-cta {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md), 0 4px 16px rgba(184, 134, 11, 0.25);
}
.entry-footer {
  padding: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.entry-footer .tagline {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.entry-footer .sub { color: var(--text-muted); font-size: 0.75rem; }

/* Entry hero — ใช้รูปจาก image/ เท่านั้น */
.shadow-premium { box-shadow: var(--shadow-premium); }
.entry-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .entry-hero { min-height: 320px; }
}
.entry-hero-bg {
  position: absolute;
  inset: 0;
}
.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.entry-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,41,55,0.6) 0%, rgba(31,41,55,0.35) 50%, rgba(184,134,11,0.25) 100%);
}
.entry-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.entry-hero-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.entry-hero-desc {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.25rem;
}
.entry-hero-cta {
  background: rgba(255,255,255,0.95) !important;
  color: var(--charcoal) !important;
  border: none;
  box-shadow: var(--shadow-soft-md);
}
.entry-hero-cta:hover {
  background: #fff !important;
  color: var(--charcoal) !important;
  transform: translateY(-2px);
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #FDFBF7 0%, #F8F4EC 40%, #F2EBDC 100%);
  background-attachment: fixed;
}
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(246, 231, 193, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.login-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  padding: 2rem 2rem 2.25rem;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.login-title { font-size: 1.5rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.login-subtitle { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.login-form-card .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--soft-gold-bg) 0%, rgba(232, 197, 71, 0.15) 100%);
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(212, 168, 75, 0.25);
}
.login-form-card .form-control-lg { border-radius: var(--radius); border: 1px solid var(--border); }
.login-form-card .btn-primary { padding: 0.75rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }
.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.login-trust span { display: inline-flex; align-items: center; gap: 0.25rem; }
.login-visual {
  min-height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255,255,255,0.2);
}
.login-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-visual .overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,41,55,0.15) 0%, rgba(31,41,55,0.5) 50%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.login-visual .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem;
  color: rgba(255,255,255,0.98);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.login-visual-premium {
  min-height: 420px;
  border: 1px solid rgba(212,168,75,0.2);
  box-shadow: var(--shadow-premium), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.login-visual-premium img { min-height: 420px; object-position: center center; }
.btn-line {
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0.65rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-line:hover { background: #05b04c; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35); }
.divider-text { font-size: 0.8125rem; color: var(--text-muted); margin: 1rem 0; }

/* ========== OTP Modal (Premium) ========== */
.otp-modal-content {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border);
}
.otp-modal-content .modal-title {
  font-weight: 700;
  color: var(--charcoal);
}
.otp-input-wrap .otp-input {
  letter-spacing: 0.35em;
  font-weight: 600;
  font-size: 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}
.otp-input-wrap .otp-input:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.2);
}
.otp-modal-content .otp-resend-btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* ========== Customer Save Flow (ออมทอง + ชำระเงิน) ========== */
.save-amount-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.save-quick-amounts-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.save-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}
.save-quick-amount-btn {
  min-width: 4rem;
  min-height: 48px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border);
  background: var(--off-white);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.save-quick-amount-btn:hover {
  border-color: var(--gold-mid);
  background: var(--soft-gold-bg);
  color: var(--charcoal);
  box-shadow: 0 4px 12px rgba(180, 140, 70, 0.15);
}
.save-quick-amount-btn:active {
  transform: scale(0.98);
}
.save-quick-amount-btn.active {
  border-color: var(--gold-mid);
  background: var(--gold-gradient);
  color: var(--charcoal);
  box-shadow: 0 4px 14px rgba(180, 140, 70, 0.35);
}
.save-amount-input-wrap {
  margin-top: 0.25rem;
}
@media (max-width: 575.98px) {
  .save-quick-amounts {
    gap: 0.5rem;
  }
  .save-quick-amount-btn {
    min-width: calc(33.333% - 0.35rem);
    flex: 1 1 calc(33.333% - 0.35rem);
    max-width: none;
  }
}
.save-payment-option {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--off-white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
}
.save-payment-option:hover {
  border-color: var(--gold-mid);
  background: var(--soft-gold-bg);
  color: inherit;
}
.save-payment-option.active-option {
  border-color: var(--gold-mid);
  background: var(--soft-gold-bg);
  box-shadow: 0 0 0 1px var(--gold-mid);
}
.payment-block-qr,
.payment-block-transfer {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.payment-qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--off-white) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border: 2px dashed var(--border);
}
.payment-bank-details {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.save-slip-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  background: var(--off-white);
  transition: border-color 0.2s, background 0.2s;
}
.save-slip-upload-zone.dragover,
.save-slip-upload-zone:focus-within {
  border-color: var(--gold-mid);
  background: var(--soft-gold-bg);
}
.otp-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--soft-gold-bg);
  border: 2px solid var(--gold-mid);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.otp-demo-badge #otpDemoCode {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.otp-demo-prefill-hint {
  color: var(--success) !important;
}
.otp-demo-fill-btn {
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--gold-mid);
  color: var(--charcoal);
  border: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.otp-demo-fill-btn:hover {
  opacity: 0.9;
  color: var(--charcoal);
}

/* ========== Redemption fulfillment (วิธีรับสินค้า) ========== */
.redeem-fulfillment-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.redeem-fulfillment-card {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--off-white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.redeem-fulfillment-card:hover {
  border-color: var(--gold-mid);
  background: var(--soft-gold-bg);
  color: inherit;
}
.redeem-fulfillment-card.active {
  border-color: var(--gold-mid);
  background: var(--soft-gold-bg);
  box-shadow: 0 0 0 1px var(--gold-mid);
}
.redeem-fulfillment-card .fulfillment-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1rem;
  background: var(--light-bg);
}
.redeem-fulfillment-card.active .fulfillment-icon {
  background: var(--gold-gradient);
  color: var(--charcoal);
}
.redeem-summary-destination {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--light-bg);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}
.redeem-summary-destination .destination-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.redeem-summary-destination .destination-value {
  font-weight: 600;
  color: var(--charcoal);
}
.redeem-summary-destination .destination-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  margin-bottom: 0;
}
.redeem-product-summary-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.redeem-product-summary-card .product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ========== Page Action Footer (step / form pages) ========== */
/* Primary and secondary actions live at bottom of content, not top-right */
.page-action-footer {
  margin-top: var(--section-gap, 1.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-action-footer .btn-primary {
  order: 1;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}
.page-action-footer .btn-outline-secondary,
.page-action-footer .btn-outline-primary,
.page-action-footer .action-back {
  order: 2;
}
.page-action-footer .action-hint {
  order: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
/* Sticky bottom action bar (mobile long pages) */
.page-action-footer-sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--off-white);
  padding: 1rem 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  border-top: 1px solid var(--border);
  z-index: 10;
  margin-top: 1.5rem;
}
@media (min-width: 992px) {
  .page-action-footer-sticky {
    position: relative;
    padding: 1.25rem 0;
    padding-bottom: 1rem;
    box-shadow: none;
    border-radius: var(--radius-lg);
    background: var(--light-bg);
    padding: 1.25rem;
  }
}
/* Success state page actions */
.page-action-footer.success-actions {
  border-top: none;
  padding-top: 1.5rem;
  gap: 0.75rem;
}
.page-action-footer.success-actions .btn-primary { min-width: 200px; }

/* ========== Blueprint-inspired Dashboard (Branch & HQ only) ========== */
/* Visual/UX inspiration only — dense tables, clear bars, dark sidebar, strong hierarchy */
/* Customer pages are NOT targeted; they keep premium fintech / luxury commerce style */

/* ---- Dark sidebar (Branch / HQ) ---- */
body[data-branch-page] .app-sidebar,
body[data-hq-page] .app-sidebar {
  background: linear-gradient(180deg, #252a33 0%, #1c2128 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
body[data-branch-page] .app-sidebar .sidebar-header,
body[data-hq-page] .app-sidebar .sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body[data-branch-page] .app-sidebar .sidebar-header a,
body[data-hq-page] .app-sidebar .sidebar-header a {
  color: #e6edf3;
}
body[data-branch-page] .app-sidebar .sidebar-header .text-primary,
body[data-hq-page] .app-sidebar .sidebar-header .text-primary {
  color: var(--gold-light) !important;
}
body[data-branch-page] .app-sidebar .sidebar-subtitle,
body[data-hq-page] .app-sidebar .sidebar-subtitle {
  color: rgba(255, 255, 255, 0.5);
}
body[data-branch-page] .app-sidebar .nav-link,
body[data-hq-page] .app-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  border-left-color: transparent;
}
body[data-branch-page] .app-sidebar .nav-link:hover,
body[data-hq-page] .app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
body[data-branch-page] .app-sidebar .nav-link.active,
body[data-hq-page] .app-sidebar .nav-link.active {
  background: rgba(232, 197, 71, 0.18);
  color: var(--gold-light);
  border-left-color: var(--gold-mid);
  box-shadow: none;
}
body[data-branch-page] .app-sidebar hr,
body[data-hq-page] .app-sidebar hr {
  border-top-color: rgba(255, 255, 255, 0.08);
}
body[data-branch-page] .app-sidebar .nav-link.text-muted,
body[data-hq-page] .app-sidebar .nav-link.text-muted {
  color: rgba(255, 255, 255, 0.45);
}
body[data-branch-page] .app-sidebar .nav-link.text-muted:hover,
body[data-hq-page] .app-sidebar .nav-link.text-muted:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Compact topbar (Branch / HQ) ---- */
body[data-branch-page] .app-topbar,
body[data-hq-page] .app-topbar {
  min-height: 48px;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body[data-branch-page] .app-topbar .fw-600,
body[data-hq-page] .app-topbar .fw-600 {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---- Dense tables (Branch / HQ) ---- */
body[data-branch-page] .table-dashboard th,
body[data-hq-page] .table-dashboard th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
body[data-branch-page] .table-dashboard td,
body[data-hq-page] .table-dashboard td {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  vertical-align: middle;
}
body[data-branch-page] .table-dashboard tbody tr:hover,
body[data-hq-page] .table-dashboard tbody tr:hover {
  background: rgba(246, 231, 193, 0.12);
}
body[data-branch-page] .table-responsive,
body[data-hq-page] .table-responsive {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---- Action bar & Filter bar (Branch / HQ) ---- */
.bp-action-bar,
.bp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}
body[data-branch-page] .bp-filter-bar .form-control,
body[data-hq-page] .bp-filter-bar .form-control,
body[data-branch-page] .bp-filter-bar .form-select,
body[data-hq-page] .bp-filter-bar .form-select {
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  max-width: 100%;
}
.bp-action-bar .btn,
.bp-filter-bar .btn {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
}
.bp-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
body[data-branch-page] .breadcrumb-wrapper,
body[data-hq-page] .breadcrumb-wrapper {
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 0;
}
body[data-branch-page] .breadcrumb-wrapper .breadcrumb,
body[data-hq-page] .breadcrumb-wrapper .breadcrumb {
  font-size: 0.75rem;
}

/* ---- Badges (Branch / HQ) — consistent status colors ---- */
body[data-branch-page] .badge,
body[data-hq-page] .badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
body[data-branch-page] .badge.bg-success,
body[data-hq-page] .badge.bg-success { background-color: #238636 !important; color: #fff !important; }
body[data-branch-page] .badge.bg-warning,
body[data-hq-page] .badge.bg-warning { background-color: #9e6a03 !important; color: #fff !important; }
body[data-branch-page] .badge.bg-danger,
body[data-hq-page] .badge.bg-danger { background-color: #cf222e !important; color: #fff !important; }
body[data-branch-page] .badge.bg-info,
body[data-hq-page] .badge.bg-info { background-color: #0969da !important; color: #fff !important; }
body[data-branch-page] .badge.bg-secondary,
body[data-hq-page] .badge.bg-secondary { background-color: #6e7681 !important; color: #fff !important; }
body[data-branch-page] .badge.bg-light.text-dark,
body[data-hq-page] .badge.bg-light.text-dark {
  background-color: #f0f2f5 !important;
  color: var(--charcoal) !important;
  border: 1px solid var(--border);
}

/* ---- Cards (Branch / HQ) — structured, data-dense ---- */
body[data-branch-page] .card-gold,
body[data-hq-page] .card-gold {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body[data-branch-page] .card-gold .card-header,
body[data-hq-page] .card-gold .card-header {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
body[data-branch-page] .card-gold .card-body,
body[data-hq-page] .card-gold .card-body {
  padding: 0.75rem 1rem;
}
body[data-branch-page] .p-4,
body[data-hq-page] .p-4 {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 992px) {
  body[data-branch-page] .p-4,
  body[data-hq-page] .p-4 {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }
}

/* ---- Main content background (Branch / HQ) — subtle grid feel ---- */
body[data-branch-page] .app-main,
body[data-hq-page] .app-main {
  background: #f6f8fa;
}
body[data-branch-page] .app-main .p-4,
body[data-hq-page] .app-main .p-4 {
  max-width: 1400px;
}

/* ---- Table helper search bar: style as filter bar (Branch / HQ) ---- */
body[data-branch-page] .table-search-input,
body[data-hq-page] .table-search-input {
  font-size: 0.875rem !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  max-width: 280px !important;
}
body[data-branch-page] .pagination .page-link,
body[data-hq-page] .pagination .page-link {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

/* ---- Table panel wrapper (Branch / HQ) ---- */
body[data-branch-page] .bp-table-panel,
body[data-hq-page] .bp-table-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body[data-branch-page] .bp-table-panel .table-responsive,
body[data-hq-page] .bp-table-panel .table-responsive {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
body[data-branch-page] .bp-table-panel .mb-3:first-child,
body[data-hq-page] .bp-table-panel .mb-3:first-child {
  margin: 0.75rem 1rem 0.5rem;
}
body[data-branch-page] .bp-table-panel .pagination,
body[data-hq-page] .bp-table-panel .pagination {
  margin: 0.5rem 1rem 0.75rem;
}

/* ========== Customer: Premium fintech (no Blueprint) ========== */
/* Keep soft, elegant, mobile-friendly; do NOT apply dense/dark dashboard style */
body.customer-layout .customer-sidebar {
  background: linear-gradient(180deg, #FDFBF8 0%, #FAFAF9 100%);
  border-right: 1px solid var(--border);
}
body.customer-layout .customer-main-wrap {
  background: var(--off-white);
}
body.customer-layout .card-gold {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 168, 75, 0.12);
}
body.customer-layout .table-dashboard th {
  font-size: var(--text-caption);
  text-transform: none;
  letter-spacing: normal;
  padding: var(--space-sm) var(--space-md);
}
body.customer-layout .table-dashboard td {
  padding: var(--space-md);
}
body.customer-layout .badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* ========== Customer module — Responsive (mobile, tablet, desktop) ========== */
/* Breakpoints: 576 (sm), 768 (md), 992 (lg). Customer: sidebar at lg, bottom nav below lg. */
body.customer-layout .customer-main-wrap .container,
body.customer-layout .customer-main-wrap .container-fluid {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
@media (max-width: 991.98px) {
  body.customer-layout .customer-main-wrap .navbar {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  body.customer-layout .customer-main-wrap .navbar .navbar-brand {
    font-size: 0.9375rem;
  }
  body.customer-layout .page-header .page-title {
    font-size: 1.25rem;
  }
  body.customer-layout .wallet-card .wallet-balance {
    font-size: 1.5rem;
  }
  body.customer-layout .wallet-card .wallet-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  body.customer-layout .wallet-card .wallet-actions .btn {
    min-height: 44px;
  }
  body.customer-layout .goal-progress-card .fw-600,
  body.customer-layout .goal-progress-card .text-primary.fw-bold {
    font-size: 0.875rem;
  }
  body.customer-layout .price-chart-card .card-body .row .fw-bold {
    font-size: 1rem;
  }
  body.customer-layout .quick-action-btn {
    min-height: 72px;
    padding: 0.75rem;
  }
  body.customer-layout .quick-action-btn .qa-icon {
    width: 40px;
    height: 40px;
  }
  body.customer-layout .list-group-item {
    padding: 0.75rem 1rem;
  }
  body.customer-layout .card.card-gold .card-header {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
}
@media (max-width: 575.98px) {
  body.customer-layout .customer-main-wrap .container,
  body.customer-layout .customer-main-wrap .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  body.customer-layout .page-header .page-title {
    font-size: 1.125rem;
  }
  body.customer-layout .wallet-card .wallet-balance {
    font-size: 1.35rem;
  }
  body.customer-layout .goal-progress-card .text-primary.fw-bold {
    font-size: 0.8125rem;
    word-break: break-word;
  }
  body.customer-layout .goal-progress-card .small.text-muted {
    font-size: 0.75rem;
  }
  body.customer-layout .quick-action-btn .qa-label {
    font-size: 0.75rem;
  }
  body.customer-layout .section,
  body.customer-layout .section-sm {
    margin-bottom: 1rem;
  }
  body.customer-layout .breadcrumb {
    font-size: 0.8125rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.customer-layout .breadcrumb::-webkit-scrollbar {
    display: none;
  }
  body.customer-layout .promo-card .card-body {
    padding: 0.75rem;
  }
  body.customer-layout .promo-card .btn {
    min-height: 40px;
  }
}
/* Customer: dashboard row/col stacking */
@media (max-width: 767.98px) {
  body.customer-layout .row.g-2.mb-3 .col-12 .card-body {
    padding: 0.75rem;
  }
}
/* Customer: tables (history, etc.) — scroll on small screens */
body.customer-layout .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}
body.customer-layout .table-responsive .table {
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  body.customer-layout .table-dashboard th,
  body.customer-layout .table-dashboard td {
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
  }
  body.customer-layout .table-dashboard th:first-child,
  body.customer-layout .table-dashboard td:first-child {
    padding-left: 0.75rem;
  }
}
/* Customer: page action footer — sticky with safe area */
body.customer-layout .page-action-footer,
body.customer-layout .page-action-footer-sticky {
  padding-left: 0;
  padding-right: 0;
}
body.customer-layout .page-action-footer-sticky {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
body.customer-layout .page-action-footer .btn,
body.customer-layout .page-action-footer-sticky .btn {
  min-height: 48px;
}
/* Customer: redeem catalog product cards */
@media (max-width: 575.98px) {
  body.customer-layout .product-card .product-body,
  body.customer-layout .product-card .product-img {
    min-height: auto;
  }
  body.customer-layout .filter-pills {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  body.customer-layout .filter-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }
}
/* Customer: redeem fulfillment cards */
body.customer-layout .redeem-fulfillment-card {
  padding: 0.875rem 1rem;
}
@media (max-width: 575.98px) {
  body.customer-layout .redeem-fulfillment-card {
    padding: 0.75rem 1rem;
  }
  body.customer-layout .redeem-fulfillment-card .fulfillment-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
  }
}
/* Customer: redeem checkout summary */
body.customer-layout .redeem-product-summary-card .product-thumb {
  width: 72px;
  height: 72px;
}
@media (max-width: 575.98px) {
  body.customer-layout .redeem-product-summary-card .card-body {
    padding: 0.75rem;
  }
  body.customer-layout .redeem-summary-destination {
    padding: 0.875rem 1rem;
  }
}
/* Customer: orders page */
body.customer-layout .order-card .card-body {
  padding: 0.875rem;
}
@media (max-width: 575.98px) {
  body.customer-layout .order-card .card-body .row > [class*="col-"] {
    flex-basis: 100%;
  }
  body.customer-layout .order-card img[style*="72px"] {
    width: 56px !important;
    height: 56px !important;
  }
}
/* Customer: profile / My Account */
@media (max-width: 575.98px) {
  body.customer-layout .profile-header-card .card-body {
    padding: 1rem;
  }
  body.customer-layout .profile-header-card .d-flex.align-items-start {
    flex-wrap: wrap;
  }
  body.customer-layout .profile-header-card .profile-avatar {
    width: 56px !important;
    height: 56px !important;
  }
  body.customer-layout .list-group-item.d-flex {
    padding: 0.75rem 1rem;
  }
}
/* Customer: reports charts */
body.customer-layout .chart-container {
  min-height: 160px;
}
@media (max-width: 575.98px) {
  body.customer-layout .chart-container {
    min-height: 140px;
  }
}
/* Customer: OTP / modal */
@media (max-width: 575.98px) {
  body.customer-layout .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
  body.customer-layout .modal-content {
    border-radius: var(--radius-lg);
  }
  body.customer-layout .otp-modal-content .modal-body {
    padding: 1rem;
  }
  body.customer-layout .otp-demo-badge {
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
  }
}
/* Customer: order-detail / redeem-detail */
@media (max-width: 575.98px) {
  body.customer-layout .order-detail-hero .card-body .row.g-0 .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  body.customer-layout .order-detail-hero .card-body .row.g-0 .col-4.text-center {
    padding: 1rem !important;
  }
  body.customer-layout .order-detail-hero img[style*="140px"] {
    max-width: 120px !important;
    height: 120px !important;
  }
  body.customer-layout .card.card-gold img[style*="max-height: 320px"] {
    max-height: 240px !important;
  }
}
/* Customer: history summary cards */
body.customer-layout #historyRecentList .list-group-item {
  padding: 0.75rem 1rem;
}
/* Customer: success / empty states */
body.customer-layout .state-success {
  padding: 1rem 0;
}
@media (max-width: 575.98px) {
  body.customer-layout .state-success .icon-success {
    margin-bottom: 0.5rem;
  }
  body.customer-layout .state-success h5 {
    font-size: 1.125rem;
  }
  body.customer-layout .state-success .redeem-summary-destination {
    margin-top: 1rem !important;
  }
}
/* Customer: bottom nav tap targets */
body.customer-layout .bottom-nav .nav-item {
  min-height: 44px;
  padding: 0.5rem 0.35rem;
}
body.customer-layout .bottom-nav .nav-item span:not([class]) {
  font-size: 0.625rem;
}
@media (min-width: 992px) {
  body.customer-layout .bottom-nav {
    display: none !important;
  }
}

/* ========== Mobile (global) ========== */
@media (max-width: 767.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .app-sidebar.show { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .landing-hero { min-height: 70vh; }
  .landing-feature-img img { height: 180px; }
  .wallet-card .wallet-balance { font-size: 1.5rem; }
}
