/* ============================================================
   LUMA BILLING — HIGH-PERFORMANCE 3D TACTILE LIGHT THEME
   ============================================================ */

/* ── 3D Design System Tokens (Optimized for GPU & Speed) ── */
:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Vibrant Clean Light Canvas */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --sidebar-bg: #ffffff;
  --sidebar-width: 260px;

  /* Primary Brand Theme */
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-darker: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.22);
  --accent-soft: rgba(37, 99, 235, 0.08);

  /* Deep Crisp Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* 3D Borders & Dividers */
  --border: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.85);
  --border-glow: rgba(37, 99, 235, 0.25);

  /* Functional Palettes */
  --success: #10b981;
  --success-dark: #059669;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --info: #06b6d4;
  --info-dark: #0891b2;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;

  /* 3D Radii */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Lightweight, High-FPS 3D Shadows */
  --shadow-3d-card: 0 4px 14px rgba(15, 23, 42, 0.05),
                    0 1px 2px rgba(15, 23, 42, 0.04),
                    inset 0 1px 0 #ffffff;

  --shadow-3d-hover: 0 10px 22px -3px rgba(15, 23, 42, 0.09),
                     0 3px 6px -2px rgba(15, 23, 42, 0.04),
                     inset 0 1px 0 #ffffff;

  --shadow-3d-inset: inset 0 2px 4px rgba(15, 23, 42, 0.04),
                     0 1px 0 #ffffff;

  --transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* ── Base Reset & Hardware Accelerated Layout ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  background-image: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 240px);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Smooth Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   3D LAYOUT & STRUCTURE
   ============================================================ */

#wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ── 3D Frosted Sidebar ── */
#sidebar-wrapper {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow: hidden;
  will-change: transform;
}

.sidebar-heading {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  min-height: 80px;
}

.sidebar-logo {
  max-width: 190px !important;
  max-height: 62px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: block !important;
  transition: var(--transition);
}

.sidebar-logo:hover {
  transform: scale(1.03);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-align: center;
  text-transform: uppercase;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  padding: 1.2rem 0.85rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 213, 225, 0.6) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.6);
  border-radius: 99px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.9rem 0.85rem 0.35rem;
}

/* 3D Sidebar Links */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.sidebar-link:hover {
  color: var(--accent);
  background: #f8fafc;
  transform: translateX(4px);
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--accent);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.9),
              inset 0 -1px 0 rgba(37, 99, 235, 0.1);
  font-weight: 700;
  transform: translateX(3px);
}

.sidebar-link .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-logout {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: #fcfdfe;
}

.sidebar-logout .sidebar-link {
  color: var(--danger);
}

.sidebar-logout .sidebar-link:hover {
  background: #fef2f2;
  color: var(--danger-dark);
}

/* ── Page Content Wrapper ── */
#page-content-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: margin-left;
  min-width: 0;
}

/* ── Sidebar Toggled & Responsive Rules ── */
/* Desktop (>= 992px): Smooth collapse sidebar off-screen & expand content */
@media (min-width: 992px) {
  #wrapper.toggled #sidebar-wrapper {
    transform: translateX(-100%);
  }
  #wrapper.toggled #page-content-wrapper {
    margin-left: 0 !important;
  }
}

/* Mobile & Tablet (< 992px): Off-canvas drawer with backdrop */
@media (max-width: 991.98px) {
  #sidebar-wrapper {
    transform: translateX(-100%);
    z-index: 1050;
    box-shadow: none;
  }
  #page-content-wrapper {
    margin-left: 0 !important;
  }
  #wrapper.toggled #sidebar-wrapper {
    transform: translateX(0);
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.2);
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.22s ease;
  }
  #wrapper.toggled .sidebar-backdrop {
    display: block;
    opacity: 1;
  }
  .topbar {
    padding: 0 1rem;
  }
}

/* ── 3D Frosted Topbar ── */
.topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3d-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.topbar-toggle:hover {
  background: #f8fafc;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.topbar-toggle:active,
#wrapper.toggled .topbar-toggle {
  background: #eff6ff;
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.3);
}

.topbar-breadcrumb {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 576px) {
  .topbar {
    padding: 0 0.75rem;
    gap: 0.65rem;
    height: 60px;
  }
  .topbar-breadcrumb {
    font-size: 0.95rem;
  }
  #pushNotificationBtn {
    padding: 3px 7px;
  }
}

/* 3D Smart Search */
.topbar-search input {
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 0 #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 99px !important;
  transition: var(--transition) !important;
}

.topbar-search input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
  width: 320px !important;
}

/* 3D User Chip */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3d-sm);
  border-radius: 99px;
  cursor: default;
  font-size: 0.85rem;
  font-weight: 600;
}

.topbar-user .user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* ── Main Content Area ── */
.main-content {
  padding: 2.2rem 2rem;
  flex: 1;
}

@media (max-width: 768px) {
  .main-content {
    padding: 1.25rem 1rem;
  }
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-title small {
  display: block;
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

@media (max-width: 576px) {
  .page-header {
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }
  .page-title {
    font-size: 1.4rem;
  }
  .page-title small {
    font-size: 0.8rem;
  }
  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   3D CARDS & CONTAINERS
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3d-card);
  transition: var(--transition);
  position: relative;
  overflow: visible;
}

.card:hover {
  box-shadow: var(--shadow-3d-hover);
  border-color: rgba(203, 213, 225, 0.8);
}

.card-header {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-header-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-header-title i {
  color: var(--accent);
}

.card-body {
  padding: 1.5rem;
}

/* Ensure dropdowns inside cards are not clipped and stay on top */
.card:has(.dropdown-menu.show) {
  z-index: 1020 !important;
}

/* ============================================================
   SUPER EYE-CATCHY 3D STAT CARDS
   ============================================================ */

.stat-card-3d {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-3d-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.stat-card-3d:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 28px 45px -12px rgba(15, 23, 42, 0.06);
}

/* 3D Isometric Icon Pedestal */
.stat-icon-3d {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.8),
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.stat-card-3d:hover .stat-icon-3d {
  transform: scale(1.1) rotate(4deg);
}

/* 3D Color Schemes */
.stat-theme-emerald .stat-icon-3d {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.35), inset 0 1px 1px #fff;
}

.stat-theme-sapphire .stat-icon-3d {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35), inset 0 1px 1px #fff;
}

.stat-theme-violet .stat-icon-3d {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.35), inset 0 1px 1px #fff;
}

.stat-theme-amber .stat-icon-3d {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35), inset 0 1px 1px #fff;
}

.stat-theme-crimson .stat-icon-3d {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.35), inset 0 1px 1px #fff;
}

.stat-number-3d {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 6px 0 4px;
}

.stat-label-3d {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-pill-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Dashboard Payment Mode Interactive Tags */
.pm-tags-nav {
  display: flex;
  gap: 4px;
  margin: 6px 0 4px;
  flex-wrap: wrap;
}

.btn-pm-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  line-height: 1.35;
  transition: all 0.16s ease;
  user-select: none;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.btn-pm-tag:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-pm-tag.active {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-pm-tag[data-mode="upi"].active {
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-pm-tag[data-mode="cash"].active {
  background: #059669;
  border-color: #047857;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.btn-pm-tag[data-mode="bank"].active {
  background: #7c3aed;
  border-color: #6d28d9;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.btn-pm-tag[data-mode="cheque"].active {
  background: #d97706;
  border-color: #b45309;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.stat-pill-trend.positive {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.stat-pill-trend.neutral {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.stat-pill-trend.alert {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Backward compatibility for legacy stat cards */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d-card);
  transition: var(--transition);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3d-hover);
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #f1f5f9;
  color: var(--accent);
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ============================================================
   TACTILE 3D PUSHABLE BUTTONS
   ============================================================ */

.btn {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.25rem;
  transition: all 0.12s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  user-select: none;
}

/* 3D Primary Button */
.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #1d4ed8,
              0 8px 18px rgba(37, 99, 235, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1d4ed8,
              0 12px 24px rgba(37, 99, 235, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-primary:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #1d4ed8,
              0 3px 8px rgba(37, 99, 235, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 3D Success Button */
.btn-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #047857,
              0 8px 18px rgba(16, 185, 129, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #047857,
              0 12px 24px rgba(16, 185, 129, 0.45) !important;
}

.btn-success:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #047857,
              0 3px 8px rgba(16, 185, 129, 0.25) !important;
}

/* 3D Danger Button */
.btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #b91c1c,
              0 8px 18px rgba(239, 68, 68, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b91c1c,
              0 12px 24px rgba(239, 68, 68, 0.45) !important;
}

.btn-danger:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #b91c1c,
              0 3px 8px rgba(239, 68, 68, 0.25) !important;
}

/* 3D Warning Button */
.btn-warning {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #b45309,
              0 8px 18px rgba(245, 158, 11, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b45309,
              0 12px 24px rgba(245, 158, 11, 0.45) !important;
}

.btn-warning:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #b45309,
              0 3px 8px rgba(245, 158, 11, 0.25) !important;
}

/* 3D Info Button */
.btn-info {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #0e7490,
              0 8px 18px rgba(6, 182, 212, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-info:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 6px 0 #0e7490,
              0 12px 24px rgba(6, 182, 212, 0.45) !important;
}

.btn-info:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #0e7490,
              0 3px 8px rgba(6, 182, 212, 0.25) !important;
}

/* ============================================================
   3D TACTILE TABLE ACTION BUTTONS (Edit, Print, Delete, View)
   ============================================================ */
.btn-3d-action {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
}

.btn-3d-action i {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  pointer-events: none;
}

/* 3D Edit Action (Amber/Orange) */
.btn-3d-action.btn-3d-edit,
.btn-3d-edit {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #b45309,
              0 5px 12px rgba(245, 158, 11, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn-3d-action.btn-3d-edit:hover,
.btn-3d-edit:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 5px 0 #b45309,
              0 8px 16px rgba(245, 158, 11, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
.btn-3d-action.btn-3d-edit:active,
.btn-3d-edit:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #b45309,
              0 2px 4px rgba(245, 158, 11, 0.25) !important;
}

/* 3D Print / Info Action (Cyan/Sky) */
.btn-3d-action.btn-3d-print,
.btn-3d-action.btn-3d-info,
.btn-3d-print,
.btn-3d-info {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #0e7490,
              0 5px 12px rgba(6, 182, 212, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn-3d-action.btn-3d-print:hover,
.btn-3d-action.btn-3d-info:hover,
.btn-3d-print:hover,
.btn-3d-info:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 5px 0 #0e7490,
              0 8px 16px rgba(6, 182, 212, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
.btn-3d-action.btn-3d-print:active,
.btn-3d-action.btn-3d-info:active,
.btn-3d-print:active,
.btn-3d-info:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #0e7490,
              0 2px 4px rgba(6, 182, 212, 0.25) !important;
}

/* 3D Delete Action (Crimson/Red) */
.btn-3d-action.btn-3d-delete,
.btn-3d-action.btn-3d-danger,
.btn-3d-delete {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #b91c1c,
              0 5px 12px rgba(239, 68, 68, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn-3d-action.btn-3d-delete:hover,
.btn-3d-action.btn-3d-danger:hover,
.btn-3d-delete:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 5px 0 #b91c1c,
              0 8px 16px rgba(239, 68, 68, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
.btn-3d-action.btn-3d-delete:active,
.btn-3d-action.btn-3d-danger:active,
.btn-3d-delete:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #b91c1c,
              0 2px 4px rgba(239, 68, 68, 0.25) !important;
}

/* 3D View / Primary Action (Blue) */
.btn-3d-action.btn-3d-view,
.btn-3d-action.btn-3d-primary,
.btn-3d-view {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #1d4ed8,
              0 5px 12px rgba(37, 99, 235, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn-3d-action.btn-3d-view:hover,
.btn-3d-action.btn-3d-primary:hover,
.btn-3d-view:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 5px 0 #1d4ed8,
              0 8px 16px rgba(37, 99, 235, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
.btn-3d-action.btn-3d-view:active,
.btn-3d-action.btn-3d-primary:active,
.btn-3d-view:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #1d4ed8,
              0 2px 4px rgba(37, 99, 235, 0.25) !important;
}

/* Fallback styles for outline classes to ensure 3D bevel and visibility */
.btn-outline-warning {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 3px 0 #f59e0b, 0 4px 8px rgba(245, 158, 11, 0.15) !important;
}
.btn-outline-warning:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
.btn-outline-info {
  background: #ecfeff !important;
  color: #0e7490 !important;
  border: 1px solid #a5f3fc !important;
  box-shadow: 0 3px 0 #06b6d4, 0 4px 8px rgba(6, 182, 212, 0.15) !important;
}
.btn-outline-info:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
.btn-outline-danger {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  box-shadow: 0 3px 0 #ef4444, 0 4px 8px rgba(239, 68, 68, 0.15) !important;
}
.btn-outline-danger:hover {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* 3D Neutral / Secondary Button */
.btn-secondary, .btn-light {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 3px 0 #cbd5e1,
              0 6px 12px rgba(15, 23, 42, 0.05),
              inset 0 1px 0 #ffffff !important;
}

.btn-secondary:hover, .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #cbd5e1,
              0 8px 16px rgba(15, 23, 42, 0.08) !important;
}

.btn-secondary:active, .btn-light:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #cbd5e1,
              0 2px 4px rgba(15, 23, 42, 0.05) !important;
}

.btn-outline-primary {
  background: #ffffff !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: 0 3px 0 rgba(37, 99, 235, 0.25), 0 4px 10px rgba(37, 99, 235, 0.1) !important;
}

.btn-outline-primary:hover {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #1d4ed8, 0 8px 18px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   3D HERO BANNER (Dashboard)
   ============================================================ */

.hero-banner-3d {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #eff6ff 100%);
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-3d-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner-3d::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner-3d h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-banner-3d h2 span {
  color: var(--accent);
}

.hero-banner-3d p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 6px 0 0;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .hero-banner-3d {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .hero-banner-3d h2 {
    font-size: 1.35rem;
  }
  .hero-banner-3d .d-flex.align-items-center.gap-2.flex-wrap {
    width: 100%;
  }
  .hero-banner-3d .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    font-size: 0.92rem;
    padding: 0.65rem 1rem;
  }
}

@media (max-width: 576px) {
  .hero-banner-3d {
    padding: 1.25rem 1rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
  }
  .hero-banner-3d h2 {
    font-size: 1.2rem;
  }
  .hero-banner-3d p {
    font-size: 0.85rem;
  }
  .hero-banner-3d .d-flex.align-items-center.gap-2.flex-wrap {
    flex-direction: column;
    align-items: stretch !important;
  }
  .hero-banner-3d .btn {
    width: 100%;
  }
}

/* ============================================================
   3D ACTION LAUNCH TILES
   ============================================================ */

.action-tile-3d {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-3d-card);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.action-tile-3d:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--accent-light);
  text-decoration: none;
}

.action-tile-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1), inset 0 1px 1px #fff;
  flex-shrink: 0;
}

.action-tile-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.action-tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   TABLES & DATATABLES (Clean 3D Tactile Light Theme)
   ============================================================ */

.table-wrapper {
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-3d-card);
  -webkit-overflow-scrolling: touch;
}

/* Force generous padding across all standard tables (overriding Bootstrap 5's specificity) */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-primary) !important;
  background-color: transparent !important;
}

.table > :not(caption) > * > *,
.table th,
.table td,
.table thead th,
.table tbody td,
.table tfoot td,
.table tfoot th,
table.dataTable > thead > tr > th,
table.dataTable > tbody > tr > td {
  padding: 0.95rem 1.15rem !important;
  vertical-align: middle;
}

/* Table header styling */
.table thead,
table.dataTable thead {
  background: #f8fafc !important;
}

.table thead th,
table.dataTable thead th {
  padding: 0.9rem 1.15rem !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary) !important;
  border-bottom: 2px solid var(--border) !important;
  white-space: nowrap;
  background: #f8fafc !important;
}

/* Row hover and smooth transition */
.table tbody tr,
table.dataTable tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04) !important;
  transform: translateY(-1px);
}

/* Cell borders and typography */
.table tbody td,
table.dataTable tbody td {
  color: var(--text-primary) !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.table tbody tr:last-child td,
table.dataTable tbody tr:last-child td {
  border-bottom: none !important;
}

/* First & Last Column Comfortable Edge Spacing */
.table > :not(caption) > * > *:first-child,
.table thead th:first-child,
.table tbody td:first-child,
table.dataTable thead th:first-child,
table.dataTable tbody td:first-child {
  padding-left: 1.4rem !important;
}

.table > :not(caption) > * > *:last-child,
.table thead th:last-child,
.table tbody td:last-child,
table.dataTable thead th:last-child,
table.dataTable tbody td:last-child {
  padding-right: 1.4rem !important;
}

/* Compact Tables (e.g. Optical Eye Grid, Prescriptions, Dense Sub-tables) */
.table-sm > :not(caption) > * > *,
.table-sm th,
.table-sm td {
  padding: 0.55rem 0.75rem !important;
}

.table-sm > :not(caption) > * > *:first-child,
.table-sm th:first-child,
.table-sm td:first-child {
  padding-left: 0.9rem !important;
}

.table-sm > :not(caption) > * > *:last-child,
.table-sm th:last-child,
.table-sm td:last-child {
  padding-right: 0.9rem !important;
}

/* Billing Screen: Dynamic Items Table Row Spacing */
#itemTable td {
  padding: 0.65rem 0.75rem !important;
  vertical-align: middle;
}
#itemTable td:first-child {
  padding-left: 1rem !important;
}
#itemTable td:last-child {
  padding-right: 1rem !important;
}

/* DataTables styling & mobile responsiveness */
div.dataTables_wrapper {
  padding: 1.25rem 1.25rem 0.75rem !important;
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

div.dataTables_wrapper div.dataTables_length select {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.42rem 0.85rem !important;
  font-size: 0.88rem !important;
  outline: none !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.42rem 0.85rem !important;
  font-size: 0.88rem !important;
  min-width: 220px;
  outline: none !important;
  transition: var(--transition) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

div.dataTables_wrapper .row.dt-row,
div.dataTables_wrapper div.col-sm-12:has(> table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_paginate {
  padding-top: 1rem !important;
  padding-bottom: 0.5rem !important;
}

@media (max-width: 767.98px) {
  div.dataTables_wrapper {
    padding: 0.85rem 0.85rem 0.5rem !important;
  }
  div.dataTables_wrapper div.dataTables_filter,
  div.dataTables_wrapper div.dataTables_length {
    text-align: left !important;
    margin-bottom: 0.5rem;
  }
  div.dataTables_wrapper div.dataTables_filter input {
    width: 100% !important;
    min-width: 0 !important;
  }
  div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: center !important;
    margin-top: 0.75rem;
    flex-wrap: wrap;
  }
}

/* ============================================================
   3D FORMS & INPUTS
   ============================================================ */

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  font-size: 0.9rem !important;
  padding: 0.65rem 0.95rem !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 0 #ffffff !important;
  transition: var(--transition) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
  outline: none !important;
}

.form-control-sm,
.form-select-sm {
  font-size: 0.88rem !important;
  padding: 0.42rem 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  min-height: 36px !important;
  line-height: 1.4 !important;
}

/* ============================================================
   OPTICAL EYE RX PRESCRIPTION GRID & INPUTS
   ============================================================ */

.rx-grid-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  border: 1.5px solid var(--border) !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
}

.rx-grid-table thead th {
  background: #f8fafc !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-display);
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 0.65rem 0.5rem !important;
  border-bottom: 1.5px solid var(--border) !important;
  border-right: 1px solid var(--border-light) !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.rx-grid-table thead th:last-child {
  border-right: none !important;
}

.rx-grid-table tbody td {
  padding: 0.45rem 0.35rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-right: 1px solid var(--border-light) !important;
  text-align: center !important;
}

.rx-grid-table tbody tr:last-child td {
  border-bottom: none !important;
}

.rx-grid-table tbody td:last-child {
  border-right: none !important;
}

.rx-grid-table .eye-label-cell {
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  white-space: nowrap !important;
  padding: 0.5rem 0.75rem !important;
  background: #f8fafc !important;
}

/* Big, Clear, Legible Rx Power Inputs */
.rx-grid-table input.form-control,
.rx-grid-table input.form-control-sm,
.rx-power-input,
.rx-va-input {
  font-family: var(--font-main) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  padding: 0.42rem 0.35rem !important;
  text-align: center !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  min-width: 65px !important;
  width: 100% !important;
  height: 38px !important;
  letter-spacing: -0.01em !important;
  transition: all 0.15s ease !important;
}

.rx-grid-table input.form-control::placeholder,
.rx-grid-table input.form-control-sm::placeholder,
.rx-power-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

.rx-grid-table input.form-control:focus,
.rx-grid-table input.form-control-sm:focus,
.rx-power-input:focus,
.rx-va-input:focus {
  border-color: var(--accent) !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  outline: none !important;
}

.input-group-text {
  background: #f8fafc !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-muted) !important;
  font-weight: 600;
}

/* ============================================================
   3D EMBOSSED BADGES
   ============================================================ */

.badge {
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4em 0.85em;
  border-radius: 99px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3) !important;
}

.badge.bg-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3) !important;
}

.badge.bg-secondary {
  background: #f1f5f9 !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
}

/* ============================================================
   MODALS & ALERTS
   ============================================================ */

.modal-content {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25) !important;
}

.modal-header {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  padding: 1.25rem 1.75rem !important;
}

.modal-footer {
  border-top: 1px solid var(--border) !important;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
  padding: 1.25rem 1.75rem !important;
  background: #fbfcfe !important;
}

.alert {
  border-radius: var(--radius-lg);
  font-weight: 600;
  box-shadow: var(--shadow-3d-sm);
  padding: 1rem 1.25rem;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Responsive Sidebar Toggle */
@media (max-width: 991px) {
  #sidebar-wrapper {
    transform: translateX(calc(-1 * var(--sidebar-width)));
  }

  #page-content-wrapper {
    margin-left: 0;
  }

  #wrapper.toggled #sidebar-wrapper {
    transform: translateX(0);
    box-shadow: 8px 0 35px rgba(15, 23, 42, 0.15);
  }

  #wrapper.toggled::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
}

/* ============================================================
   3D AUTH PAGES (Login, Register, Subscription Lock) - LIGHT THEME
   ============================================================ */

.login-page, .auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: #f4f7fb;
  background-image: 
    radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.08) 0px, transparent 40%),
    radial-gradient(at 90% 10%, rgba(139, 92, 246, 0.08) 0px, transparent 40%),
    radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
}

.login-container, .auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
}

.auth-container-lg {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 10;
}

.login-card, .auth-card-3d {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02),
              0 20px 40px -8px rgba(15, 23, 42, 0.08),
              0 35px 60px -15px rgba(37, 99, 235, 0.07),
              inset 0 1px 0 #ffffff !important;
  overflow: hidden;
  transition: var(--transition);
}

.login-card:hover, .auth-card-3d:hover {
  box-shadow: 0 8px 12px rgba(15, 23, 42, 0.03),
              0 25px 50px -6px rgba(15, 23, 42, 0.12),
              0 40px 70px -12px rgba(37, 99, 235, 0.1),
              inset 0 1px 0 #ffffff !important;
}

.login-header, .auth-header {
  padding: 2.25rem 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.login-logo, .auth-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.25),
              0 4px 6px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 #ffffff;
  border: 2px solid #ffffff;
  transition: var(--transition);
}

.login-logo img, .auth-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
}

.login-logo:hover, .auth-logo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.35);
}

.login-header h2, .auth-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.login-header p, .auth-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
  font-weight: 500;
}

.login-body, .auth-body {
  padding: 2rem;
}

.login-footer, .auth-footer {
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #fbfcfe;
  border-top: 1px solid var(--border);
}

/* ============================================================
   3D INVOICE & BILLING COMPONENTS
   ============================================================ */

.billing-totals-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-3d-card);
}

.grand-total-pedestal {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.4),
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.grand-total-pedestal .total-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.grand-total-pedestal .total-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.payment-pill-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-3d-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.payment-pill-btn:hover {
  background: #f8fafc;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.payment-pill-btn.active {
  background: #eff6ff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 3px 0 var(--accent), 0 6px 14px rgba(37, 99, 235, 0.15);
}

/* 3D Autocomplete Dropdown */
.autocomplete-items {
  position: absolute;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  max-height: 280px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-active {
  background: #eff6ff;
  color: var(--accent);
}

/* 3D Plan Feature Badges */
.feature-badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* ============================================================
   SLOW FADE-IN-UP & NUMBER PROGRESS ENTRANCE ANIMATIONS
   ============================================================ */

@keyframes slowFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: slowFadeInUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

/* Snappy, lightweight cascade across panels */
.row > .fade-in-up:nth-child(1), .fade-delay-1 { animation-delay: 0.03s; }
.row > .fade-in-up:nth-child(2), .fade-delay-2 { animation-delay: 0.06s; }
.row > .fade-in-up:nth-child(3), .fade-delay-3 { animation-delay: 0.09s; }
.row > .fade-in-up:nth-child(4), .fade-delay-4 { animation-delay: 0.12s; }
.row > .fade-in-up:nth-child(5), .fade-delay-5 { animation-delay: 0.15s; }
.row > .fade-in-up:nth-child(6), .fade-delay-6 { animation-delay: 0.18s; }

.hero-banner-3d.fade-in-up,
.page-header.fade-in-up {
  animation-duration: 0.3s;
}

/* Number Progress Animation Styling */
.count-up {
  display: inline-block;
  will-change: transform, opacity;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s ease-out;
}

.count-up.animating {
  opacity: 0.95;
}

.count-up.finished {
  opacity: 1;
  animation: numberPulse 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes numberPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ============================================================
   3D PAYMENT METHOD SELECTOR & TACTILE BADGES
   ============================================================ */
.pm-3d-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #ffffff;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.dropdown-item:hover .pm-3d-badge,
.pm-dropdown-btn:hover .pm-3d-badge {
  transform: scale(1.12) rotate(2deg);
}

/* 3D Cash - Emerald Gradient with Depth */
.pm-3d-cash {
  background: linear-gradient(145deg, #10b981 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.38),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(4, 120, 87, 0.9);
}

/* 3D UPI / QR - Sapphire Gradient with Depth */
.pm-3d-upi {
  background: linear-gradient(145deg, #38bdf8 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(29, 78, 216, 0.9);
}

/* 3D Bank Transfer - Royal Violet Gradient with Depth */
.pm-3d-bank {
  background: linear-gradient(145deg, #a78bfa 0%, #6d28d9 100%);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.38),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(91, 33, 182, 0.9);
}

/* 3D Cheque - Warm Amber Gradient with Depth */
.pm-3d-cheque {
  background: linear-gradient(145deg, #fbbf24 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.38),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(180, 83, 9, 0.9);
}

/* 3D Other - Slate / Titanium Gradient with Depth */
.pm-3d-other {
  background: linear-gradient(145deg, #94a3b8 0%, #334155 100%);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(30, 41, 59, 0.9);
}

/* 3D Crimson - Ruby / Red Gradient with Depth (Credit / Unpaid) */
.pm-3d-crimson {
  background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.38),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(153, 27, 27, 0.9);
}

/* 3D Indigo - Deep Tech Blue-Violet Gradient */
.pm-3d-indigo {
  background: linear-gradient(145deg, #818cf8 0%, #4338ca 100%);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.36),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(49, 46, 129, 0.9);
}

/* 3D Amber - Golden Orange Gradient */
.pm-3d-amber {
  background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.36),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(146, 64, 14, 0.9);
}

/* 3D Pink / Rose - Beauty & Salon Gradient */
.pm-3d-pink {
  background: linear-gradient(145deg, #f472b6 0%, #be185d 100%);
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.35),
              inset 0 1.5px 1.5px rgba(255, 255, 255, 0.75),
              inset 0 -2px 0 rgba(131, 24, 67, 0.9);
}

/* Custom 3D Dropdown Menu */
.pm-dropdown .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 6px;
  min-width: 100%;
}

.pm-dropdown .dropdown-menu.pm-dropdown-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.pm-dropdown .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  transition: var(--transition);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.pm-dropdown .dropdown-item:hover,
.pm-dropdown .dropdown-item:focus {
  background: #eff6ff;
  color: var(--accent);
}

.pm-dropdown .dropdown-item.active {
  background: #dbeafe;
  color: var(--accent-dark);
  font-weight: 700;
}

.pm-dropdown-btn {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 0 #ffffff !important;
  transition: var(--transition) !important;
  width: 100%;
  text-align: left;
}

.pm-dropdown-btn:focus,
.pm-dropdown-btn:active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
}