/* ============================================================
   MAYYY MAKEUP — ENHANCED LUXE STYLES (ELEGANT FLOATING SIDEBAR TOGGLE)
   ============================================================ */

:root {
  --primary-pink: #FF69B4;
  --primary-dark-pink: #D81B60;
  --secondary-rose: #FFB6C1;
  --accent-gold: #E6C280;
  --bg-gradient: linear-gradient(145deg, #FFF0F5 0%, #FFE4E1 40%, #FFF5F7 100%);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(255, 182, 193, 0.45);
  --text-main: #2B1B1F;
  --text-muted: #6C5B60;
  --shadow-soft: 0 12px 32px rgba(216, 27, 96, 0.08);
  --shadow-hover: 0 20px 40px rgba(216, 27, 96, 0.16);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Admin Sidebar Colors */
  --sidebar-bg: #211216;
  --sidebar-hover: rgba(255, 105, 180, 0.15);
  --sidebar-active: linear-gradient(135deg, #FF69B4, #D81B60);
}

/* DARK MODE PALETTE */
body.dark-mode {
  --bg-gradient: linear-gradient(145deg, #180C10 0%, #251219 50%, #1A0D12 100%);
  --card-bg: rgba(38, 20, 27, 0.94);
  --card-border: rgba(255, 105, 180, 0.25);
  --text-main: #FFF0F5;
  --text-muted: #D0B8C0;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: var(--bg-gradient) !important;
  color: var(--text-main) !important;
}

body.dark-mode .card,
body.dark-mode .modal-card,
body.dark-mode .app-header,
body.dark-mode .admin-topbar,
body.dark-mode .package-card {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  color: var(--text-main) !important;
}

body.dark-mode .form-control {
  background: #1C0F14 !important;
  border-color: rgba(255, 105, 180, 0.3) !important;
  color: #FFF0F5 !important;
}

body.dark-mode .table th {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #FFB6C1 !important;
}

body.dark-mode .table td {
  border-bottom-color: rgba(255, 105, 180, 0.15) !important;
  color: #FFF0F5 !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 90px;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

body.admin-layout-body {
  padding-bottom: 0;
  background: #FDF6F8;
}

/* Background Ambient Glow Effects */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.bg-glow-1 {
  width: 380px;
  height: 380px;
  background: rgba(255, 105, 180, 0.35);
  top: -80px;
  right: -80px;
}

.bg-glow-2 {
  width: 320px;
  height: 320px;
  background: rgba(255, 182, 193, 0.4);
  bottom: 150px;
  left: -80px;
}

h1, h2, h3, .brand-title, .section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Header & Navbar (Customer) */
.app-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(216, 27, 96, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.header-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-dark-pink));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.35);
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--primary-dark-pink);
  letter-spacing: 0.3px;
}

.brand-tag {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* Right-Aligned Header Menu Wrapper */
.header-right-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Desktop Navigation WITH ELEGANT BOTTOM INDICATOR LINE */
.desktop-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Bottom Line Indicator Pseudo Element */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 85%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-dark-pink));
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(216, 27, 96, 0.4);
}

.nav-link:hover {
  color: var(--primary-dark-pink);
}

.nav-link.active {
  color: var(--primary-dark-pink);
  font-weight: 800;
}

.nav-link.active::after, .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* COMPACT PRODUCT CARD (CUSTOMER VIEW) */
.package-card.compact-card {
  border-radius: 20px;
}

.package-card.compact-card .package-img {
  height: 165px;
}

.package-card.compact-card .package-body {
  padding: 16px;
}

.package-card.compact-card .package-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.package-card.compact-card .package-price {
  font-size: 20px;
  margin-bottom: 10px;
}

.package-desc-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.package-desc-full {
  display: block;
  white-space: pre-line;
  margin-bottom: 10px;
}

.btn-read-more {
  background: transparent;
  border: none;
  color: var(--primary-dark-pink);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  display: inline-block;
  text-decoration: underline;
}

/* CUSTOMER KOSMETIK SHOP CAROUSEL SLIDER VIEW */
.shop-slider-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.shop-slider-container .package-card {
  min-width: 260px;
  max-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* 6-DOTS DRAG REORDER HANDLE */
.drag-handle-6dots {
  cursor: grab;
  color: var(--text-muted);
  font-size: 18px;
  user-select: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  display: inline-block;
}

.drag-handle-6dots:hover {
  background: rgba(255, 105, 180, 0.15);
  color: var(--primary-dark-pink);
}

tr.dragging-row {
  opacity: 0.4;
  background: rgba(255, 105, 180, 0.15) !important;
}

/* TABLE PAGINATION CONTROLS */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-info {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.pagination-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: white;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn.active {
  background: var(--primary-dark-pink);
  color: white;
  border-color: var(--primary-dark-pink);
}

/* FILTER BAR & HORIZONTAL DATE RANGE ROW */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 182, 193, 0.12);
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--card-border);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-export-xls {
  background: linear-gradient(135deg, #28A745, #218838);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-export-xls:hover {
  transform: translateY(-1px);
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  padding: 8px 8px 12px;
  z-index: 1000;
  justify-content: space-around;
  box-shadow: 0 -6px 25px rgba(216, 27, 96, 0.08);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.mobile-nav-item .icon {
  font-size: 22px;
}

.mobile-nav-item.active {
  color: var(--primary-dark-pink);
}

.mobile-nav-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--primary-dark-pink);
  border-radius: 0 0 4px 4px;
  transition: transform 0.3s;
}

.mobile-nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Floating WhatsApp Button */
.float-wa-btn {
  position: fixed;
  bottom: 85px;
  right: 18px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 999;
  transition: transform 0.3s ease;
}

.float-wa-btn:hover {
  transform: scale(1.1);
}

/* Bank Transfer Account Card Box */
.payment-info-card {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.08), rgba(216, 27, 96, 0.12));
  border: 1px dashed var(--primary-pink);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.payment-bank-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark-pink);
}

.payment-account-number {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2B1B1F;
  margin: 4px 0;
  font-family: monospace;
}

.payment-account-holder {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

/* FOOTER BUSINESS INFO */
.app-footer {
  background: #211216;
  color: white;
  padding: 48px 20px 30px;
  margin-top: 60px;
  border-top: 3px solid var(--primary-pink);
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-bottom: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--secondary-rose);
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-title {
  font-size: 16px;
  color: white;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid var(--primary-pink);
  padding-bottom: 6px;
  display: inline-block;
  width: max-content;
}

.footer-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-item {
  color: var(--secondary-rose);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-link-item:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 24px 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   ADMIN SIDEBAR & ELEGANT FLOATING TOGGLE BUTTON
   ============================================================ */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 270px;
  background: var(--sidebar-bg);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  box-shadow: 6px 0 25px rgba(0,0,0,0.15);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ELEGANT MINIMALIST FLOATING SIDEBAR TOGGLE BADGE */
.sidebar-floating-toggle {
  position: absolute;
  top: 24px;
  right: -13px;
  width: 26px;
  height: 26px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark-pink);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 600;
  transition: transform 0.25s ease, background 0.2s;
  padding: 0;
}

.sidebar-floating-toggle:hover {
  background: var(--primary-pink);
  color: white;
  transform: scale(1.12);
}

/* MINIMIZED COLLAPSED SIDEBAR */
.admin-sidebar.sidebar-minimized {
  width: 75px;
}

.admin-sidebar.sidebar-minimized .sidebar-brand-name,
.admin-sidebar.sidebar-minimized .sidebar-brand-tag,
.admin-sidebar.sidebar-minimized .sidebar-text {
  display: none !important;
}

.admin-sidebar.sidebar-minimized .sidebar-link {
  justify-content: center;
  padding: 14px;
}

.admin-sidebar.sidebar-minimized .sidebar-icon {
  font-size: 22px;
}

.admin-sidebar.sidebar-minimized + .admin-main {
  margin-left: 75px;
  width: calc(100% - 75px);
}

.sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-name {
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: white;
}

.sidebar-brand-tag {
  font-size: 10px;
  color: var(--secondary-rose);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu {
  padding: 16px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sidebar-link .sidebar-icon {
  font-size: 18px;
}

.sidebar-link:hover {
  color: white;
  background: var(--sidebar-hover);
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: white;
  box-shadow: 0 4px 16px rgba(216, 27, 96, 0.4);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Main Admin Content (Right Side) */
.admin-main {
  margin-left: 270px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - 270px);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 28px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 450;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* STANDARDIZED ADMIN SECTION HEADER & STICKY FREEZE HEADER */
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.sticky-section-header {
  position: sticky;
  top: 65px;
  z-index: 380;
}

/* STICKY TABLE HEADERS ON SCROLL */
.table-responsive {
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #FFF0F5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* DARK MODE OVERRIDES FOR STICKY HEADERS */
body.dark-mode .admin-topbar {
  background: rgba(33, 18, 22, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .admin-section-header,
body.dark-mode .sticky-section-header {
  background: rgba(45, 24, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .table thead th {
  background: #3D1F28;
  color: var(--secondary-rose);
}

.topbar-title {
  font-size: 20px;
  color: var(--primary-dark-pink);
}

.admin-user-chip {
  background: rgba(255, 105, 180, 0.12);
  color: var(--primary-dark-pink);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.admin-content-body {
  padding: 28px;
  flex-grow: 1;
}

.admin-tab-view {
  display: none;
}

.admin-tab-view.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

/* Status Toggle Switch Button */
.status-toggle-btn {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
}

.status-toggle-btn.active {
  background: linear-gradient(135deg, #28A745, #218838);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.status-toggle-btn.inactive {
  background: linear-gradient(135deg, #6C757D, #5A6268);
  box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.status-toggle-btn:hover {
  transform: scale(1.05);
}

/* Horizontal Modal Layout & Standardized Close Button */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  overflow-y: auto;
}

.modal-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.modal-card-wide {
  max-width: 860px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.modal-title {
  font-size: 22px;
  color: var(--primary-dark-pink);
}

.modal-horizontal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.modal-col-left {
  display: flex;
  flex-direction: column;
}

.modal-col-right {
  display: flex;
  flex-direction: column;
}

/* File Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--primary-pink);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 240, 245, 0.6);
  transition: all 0.3s ease;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone:hover {
  background: rgba(255, 105, 180, 0.12);
  border-color: var(--primary-dark-pink);
}

.photo-preview-box {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Minimalist Action Icon Buttons */
.btn-icon-minimal {
  background: transparent;
  border: 1px solid var(--card-border);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-icon-minimal:hover {
  background: rgba(255, 105, 180, 0.12);
  color: var(--primary-dark-pink);
  border-color: var(--primary-pink);
  transform: translateY(-1px);
}

.edit-icon-btn {
  color: #007AFF;
  border-color: rgba(0, 122, 255, 0.3);
}

.edit-icon-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  color: #0056B3;
}

.delete-icon-btn {
  color: #FF3B30;
  border-color: rgba(255, 59, 48, 0.3);
}

.delete-icon-btn:hover {
  background: rgba(255, 59, 48, 0.1);
  color: #C0392B;
}

.close-btn {
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

/* Cards & Glassmorphism */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.card-glow {
  box-shadow: 0 14px 40px rgba(216, 27, 96, 0.12);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 245, 0.88));
  border-radius: 24px;
  padding: 36px 20px;
  text-align: center;
  margin-bottom: 30px;
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 35px rgba(216, 27, 96, 0.08);
}

.hero-chip {
  display: inline-block;
  background: rgba(255, 105, 180, 0.15);
  color: var(--primary-dark-pink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 105, 180, 0.3);
}

.hero-title {
  font-size: 32px;
  color: var(--primary-dark-pink);
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.sub-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--primary-dark-pink);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: 26px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Package Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.package-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(216, 27, 96, 0.16);
  border-color: var(--primary-pink);
}

.package-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #FF69B4, #D81B60);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.35);
  z-index: 2;
}

.package-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #FFB6C1, #FFF0F5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark-pink);
  font-size: 44px;
}

.package-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.package-name {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.package-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark-pink);
  margin-bottom: 14px;
}

.package-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  white-space: pre-line;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-dark-pink));
  color: white;
  box-shadow: 0 6px 20px rgba(216, 27, 96, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark-pink), #B71C1C);
  box-shadow: 0 8px 25px rgba(216, 27, 96, 0.4);
}

.btn-outline {
  background: white;
  border: 2px solid var(--primary-pink);
  color: var(--primary-dark-pink);
}

.btn-outline:hover {
  background: rgba(255, 105, 180, 0.12);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: white;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

/* Radio Group */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.radio-card {
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.radio-card input {
  display: none;
}

.radio-card .radio-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.radio-card .radio-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.radio-card.active {
  border-color: var(--primary-pink);
  background: rgba(255, 105, 180, 0.08);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.15);
}

/* Summary Box */
.summary-box {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.9), rgba(255, 228, 225, 0.7));
  border: 1px solid var(--card-border);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.summary-divider {
  border: none;
  border-top: 1px dashed var(--card-border);
  margin: 10px 0;
}

.total-row {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark-pink);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-pending {
  background: #FFF3CD;
  color: #856404;
}

.badge-confirmed {
  background: #D1ECF1;
  color: #0C5460;
}

.badge-done {
  background: #D4EDDA;
  color: #155724;
}

.badge-cancel {
  background: #F8D7DA;
  color: #721C24;
}

/* Table Responsive Horizontal Scroll System */
.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 14px;
  box-sizing: border-box;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  min-width: 620px; /* Force scrollbar on narrow mobile screens */
}

.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
  font-size: 13px;
  white-space: nowrap;
}

.table th {
  background: rgba(255, 182, 193, 0.18);
  color: var(--primary-dark-pink);
  font-weight: 700;
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  font-size: 28px;
}

.kpi-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 2px;
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark-pink);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (STRICT MOBILE FIT & STACKING)
   ============================================================ */

@media (max-width: 900px) {
  .modal-horizontal-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .admin-sidebar {
    width: 220px;
  }
  .admin-main {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px 12px;
  }
  .card {
    padding: 20px 14px !important;
    border-radius: 18px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .hero-banner {
    padding: 24px 14px;
    border-radius: 18px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .radio-group {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100% !important;
    position: relative;
    box-shadow: none;
  }
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .admin-topbar {
    position: relative;
  }
  .admin-hamburger-btn {
    display: block !important;
  }
  .sidebar-floating-toggle {
    display: none !important;
  }
  .admin-sidebar {
    width: 100% !important;
    position: relative !important;
    padding: 16px !important;
    transition: all 0.3s ease;
  }
  .admin-sidebar .sidebar-menu,
  .admin-sidebar .sidebar-footer {
    display: none !important;
  }
  .admin-sidebar.sidebar-open .sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 16px !important;
    gap: 8px !important;
    overflow-x: visible !important;
    white-space: normal !important;
    border-bottom: none !important;
  }
  .admin-sidebar.sidebar-open .sidebar-footer {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 16px !important;
    gap: 8px !important;
  }
  .admin-sidebar.sidebar-open .sidebar-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    border-radius: var(--radius-md) !important;
  }

  /* Force inline styled grid columns to stack on mobile devices */
  .grid-3[style*="grid-template-columns"],
  .admin-tab-view .grid-3,
  main.container .grid-3,
  .admin-tab-view div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .table-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .filter-group {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .filter-group input, 
  .filter-group select,
  .table-filter-bar button,
  .table-filter-bar input {
    max-width: 100% !important;
    width: 100% !important;
  }

  .kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-content-body {
    padding: 16px 12px !important;
  }
}
