/* ============================================
   GHN UNIFORM SHOP — Clean eCommerce Theme
   Light Mode, Clear Hierarchy, High Contrast
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #F26522; /* GHN Orange */
  --primary-light: #FF8A50;
  --primary-dark: #D84315;
  --primary-bg: #FFF3E0;

  /* Backgrounds */
  --bg-body: #F4F6F8;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFA;
  --bg-input: #FFFFFF;
  
  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-on-primary: #FFFFFF;

  /* Status Colors */
  --success: #00A650;
  --success-bg: #E8F5E9;
  --warning: #F5A623;
  --warning-bg: #FFF8E1;
  --danger: #D32F2F;
  --danger-bg: #FFEBEE;
  --info: #0277BD;
  --info-bg: #E1F5FE;

  /* Borders & Shadows */
  --border-color: #E0E0E0;
  --border-hover: #BDBDBD;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --transition: all 0.2s ease-in-out;
  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background: var(--bg-body); color: var(--text-primary); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: monospace; }

/* Layouts */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mt-3 { margin-top: 24px; }

/* --- Top Navigation --- */
.top-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex; align-items: center;
}
.nav-container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem; color: var(--primary);
}
.nav-tabs {
  display: flex; gap: 16px;
  background: var(--bg-body);
  padding: 4px; border-radius: var(--radius-full);
}
.nav-tab {
  padding: 8px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem; color: var(--text-secondary);
}
.nav-tab.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.nav-tab:hover:not(.active) { color: var(--text-primary); }

/* --- Secret Admin Dropdown (hidden inside logo) --- */
.brand-secret-trigger {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.admin-secret-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--border-color);
  min-width: 160px;
  z-index: 2000;
  overflow: hidden;
  animation: dropdownFade 0.2s ease;
}
.admin-secret-dropdown.open {
  display: block;
}
.admin-secret-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.admin-secret-dropdown a:hover,
.admin-secret-dropdown a.active-admin-link {
  background: var(--primary-bg);
  color: var(--primary);
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cart {
  position: relative; width: 44px; height: 44px;
  border-radius: 50%; background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; transition: var(--transition);
}
.nav-cart:hover { background: var(--primary); color: white; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--danger); color: white;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-md); border: none;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-body); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #EAEAEF; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #008C43; }
.btn-danger { background: var(--danger); color: white; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-body); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.form-input, .form-select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  font-size: 0.95rem; font-family: var(--font-family); color: var(--text-primary);
  background: var(--bg-input); transition: var(--transition);
}
.form-input:focus, .form-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15); }

/* --- Shop Cards (eCommerce style) --- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-color); overflow: hidden;
  transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.product-image {
  width: 100%; height: 260px; background: #F8F9FA;
  display: flex; justify-content: center; align-items: center; position: relative;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; color: var(--text-primary); }
.product-price { font-size: 1.4rem; font-weight: 800; color: var(--danger); margin-bottom: 16px; }
.size-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.size-btn {
  padding: 6px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  background: white; color: var(--text-secondary); cursor: pointer; font-weight: 600;
}
.size-btn:hover { border-color: var(--primary); color: var(--primary); }
.size-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.size-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
  color: #bbb;
  border-color: #e0e0e0;
  background: #fafafa;
  position: relative;
}
.size-btn.disabled::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  background: #ccc;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}

.qty-control {
  display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.qty-btn { width: 36px; height: 36px; border: none; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); }
.qty-btn:hover { color: var(--primary); }
.qty-value { width: 40px; text-align: center; font-weight: 600; }

.combo-card {
  background: linear-gradient(to right, #FFF3E0, #FFE0B2);
  border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid rgba(242, 101, 34, 0.2);
}
.combo-badge { background: var(--danger); color: white; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; display: inline-block; }

/* --- Checkout / Cart --- */
.cart-page { padding: 40px 0; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.cart-item { display: flex; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.cart-item img { width: 80px; height: 80px; object-fit: contain; background: #F8F9FA; border-radius: var(--radius-sm); }
.cart-summary { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); height: fit-content; }

/* --- Badge --- */
.badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; display: inline-block; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #EEEEEE; color: var(--text-secondary); }

/* --- Admin --- */
.admin-layout { display: flex; min-height: calc(100vh - var(--header-height)); background: var(--bg-body); }
.sidebar { width: 260px; background: white; border-right: 1px solid var(--border-color); padding: 24px 0; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--text-secondary); font-weight: 500; }
.sidebar-link:hover, .sidebar-link.active { background: var(--primary-bg); color: var(--primary); border-right: 3px solid var(--primary); }
.admin-main { flex: 1; padding: 32px; }
.stat-card { background: white; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin: 8px 0; }
.card { background: white; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: #F8F9FA; font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }

/* Helpers */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #333; color: white; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: slideUp 0.3s; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: black; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================
   RESPONSIVE (MOBILE COMPATIBILITY)
   ============================================ */

/* Product Modal Grid Default */
.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  /* Layouts */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Top Navigation */
  .nav-container {
    padding: 0 12px;
    justify-content: center;
  }
  .nav-tabs, .nav-actions {
    display: none !important;
  }
  
  /* Mobile Bottom Nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* Modals */
  .modal-product-grid {
    grid-template-columns: 1fr;
  }
  .modal-product-grid > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px !important;
  }
  .modal-product-grid > div:last-child {
    padding: 16px !important;
  }
  
  /* Shop Pages */
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 1.8rem !important;
  }
  .product-image {
    height: 220px;
  }
  #app {
    padding-bottom: 70px; /* Space for bottom nav */
  }
  
  /* Cart & Checkout */
  .cart-item {
    flex-direction: column;
    position: relative;
  }
  .cart-item > div.text-right {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
  }
  .cart-item > div.text-right > .btn-ghost {
    margin-top: 0 !important;
  }
}

/* ============================================
   ORDER DETAIL MODAL (Admin)
   ============================================ */

/* Overlay */
.odm-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

/* Modal container */
.odm-container {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: odm-slide-up 0.25s ease;
}

/* Section blocks */
.odm-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.odm-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grid layout for fields */
.odm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.odm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.odm-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.odm-value {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes odm-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar for modal */
.odm-container::-webkit-scrollbar {
  width: 6px;
}
.odm-container::-webkit-scrollbar-track {
  background: transparent;
}
.odm-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.odm-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Responsive */
@media (max-width: 600px) {
  .odm-container {
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 95vh;
  }
  .odm-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .odm-field[style*="grid-column"] {
    grid-column: auto !important;
  }
}

/* ============================================
   COMING SOON PAGE
   ============================================ */

/* Hide nav elements when coming-soon is active */
body.coming-soon-active .nav-tabs,
body.coming-soon-active .nav-actions {
  display: none !important;
}

body.coming-soon-active .top-nav {
  background: transparent;
  box-shadow: none;
  position: absolute;
  width: 100%;
}

body.coming-soon-active .nav-brand {
  color: #fff;
}

.cs-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

/* Animated gradient orbs */
.cs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: cs-float 8s ease-in-out infinite;
}

.cs-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #F26522 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.cs-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #FF8A50 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  animation-delay: -3s;
  animation-duration: 10s;
}

.cs-orb--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #f093fb 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes cs-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Particles */
.cs-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.cs-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: cs-particle-rise linear infinite;
}

@keyframes cs-particle-rise {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Main content card */
.cs-card {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 48px;
  max-width: 600px;
  width: 90%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cs-card-appear 1s ease-out;
}

@keyframes cs-card-appear {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo in card */
.cs-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #F26522, #FF8A50);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(242, 101, 34, 0.4);
  animation: cs-logo-pulse 3s ease-in-out infinite;
}

.cs-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(10);
}

@keyframes cs-logo-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(242, 101, 34, 0.4); }
  50% { box-shadow: 0 8px 48px rgba(242, 101, 34, 0.6), 0 0 80px rgba(242, 101, 34, 0.15); }
}

/* Title */
.cs-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cs-title-gradient {
  background: linear-gradient(135deg, #F26522, #FF8A50, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.cs-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

/* Divider */
.cs-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #F26522, #FF8A50);
  border-radius: 2px;
  margin: 0 auto 32px;
}

/* Status badge */
.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 101, 34, 0.15);
  border: 1px solid rgba(242, 101, 34, 0.3);
  padding: 10px 24px;
  border-radius: 999px;
  color: #FF8A50;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cs-status-dot {
  width: 8px;
  height: 8px;
  background: #F26522;
  border-radius: 50%;
  animation: cs-blink 1.5s ease-in-out infinite;
}

@keyframes cs-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Info text */
.cs-info {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-top: 16px;
}

.cs-info a {
  color: #FF8A50;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer brand */
.cs-footer {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
  .cs-card {
    padding: 40px 24px;
    border-radius: 24px;
  }
  .cs-title {
    font-size: 2rem;
  }
  .cs-subtitle {
    font-size: 0.95rem;
  }
  .cs-orb--1 { width: 250px; height: 250px; }
  .cs-orb--2 { width: 200px; height: 200px; }
  .cs-orb--3 { width: 150px; height: 150px; }
}

/* Mobile Bottom Nav Default */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}
.mb-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.mb-nav-item:hover, .mb-nav-item.active {
  color: var(--primary);
}
.mb-nav-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.mb-nav-text {
  font-size: 0.7rem;
  font-weight: 600;
}
.mb-cart-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--danger);
  color: white;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
}

/* Luôn hiển thị mũi tên cho input có list (datalist) bằng custom arrow */
input[list] {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px !important;
}

input[list]::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

/* ============================================================
   REPORT CHARTS (js/report-charts.js) — prefix rc- để không đụng app
   ============================================================ */
.rc-axlab { font-size: 10.5px; fill: #8A929E; }
.rc-xlab  { font-size: 11.5px; fill: #5A6472; }
.rc-vlab  { font-size: 11px; fill: #5A6472; font-weight: 700; }
.rc-hlab  { font-size: 12px; fill: #1A2027; }
.rc-hval  { font-size: 12px; font-weight: 700; fill: #5A6472; }
.rc-barhover { transition: opacity .1s; }
.rc-barhover:hover { opacity: .82; cursor: pointer; }
.rc-sb { display: block; max-width: 100%; height: auto; }

/* legend */
.rc-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: #5A6472; }
.rc-legend .rc-it { display: inline-flex; align-items: center; gap: 6px; }
.rc-legend .rc-sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* gauge / donut center */
.rc-gwrap { position: relative; display: grid; place-items: center; }
.rc-gctr { position: absolute; text-align: center; }
.rc-gctr .rc-gval { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.rc-gctr .rc-glab { font-size: 11px; color: #5A6472; }

/* proportion bar */
.rc-pbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: #EEF1F4; }
.rc-pbar span { display: block; min-width: 2px; }
.rc-pbleg { display: flex; flex-wrap: wrap; gap: 9px 12px; margin-top: 8px; font-size: 11.5px; color: #5A6472; }
.rc-pbleg .rc-lg { display: inline-flex; align-items: center; gap: 5px; }
.rc-pbleg i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* lưới biểu đồ 2 / 3 cột (responsive) */
.rc-grid2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-grid3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .rc-grid3 { grid-template-columns: 1fr; } }
@media (max-width: 820px)  { .rc-grid2 { grid-template-columns: 1fr; } }

/* mini tab card (Tổng quan) */
.rc-mini { cursor: pointer; transition: .12s; display: flex; flex-direction: column; gap: 9px; }
.rc-mini:hover { border-color: #F26522; box-shadow: 0 4px 12px rgba(242,101,34,.13); transform: translateY(-2px); }
.rc-mh { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.rc-mh .rc-arw { margin-left: auto; font-size: 11px; color: #8A929E; font-weight: 600; }
.rc-mbig { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.rc-mtag { font-size: 11px; font-weight: 600; color: #5A6472; }
.rc-msub { font-size: 11.5px; color: #5A6472; }

/* alerts band */
.rc-alerts { display: flex; flex-wrap: wrap; gap: 9px; }
.rc-alert { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; border: 1px solid; cursor: pointer; transition: .12s; }
.rc-alert:hover { filter: brightness(.97); transform: translateY(-1px); }
.rc-alert.danger { background: #FDECEC; border-color: #F6C9C9; color: #B42121; }
.rc-alert.warn   { background: #FDF3E2; border-color: #F1DCB0; color: #8A5A08; }
.rc-alert.good   { background: #E7F6ED; border-color: #BFE6CD; color: #0A7A3F; }
.rc-alert .rc-n { font-size: 15px; font-weight: 800; }

/* alert thresholds */
.rc-thresholds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #D7DCE2; font-size: 12.5px; color: #5A6472; }
.rc-thresholds .rc-thlab { font-weight: 700; color: #1A2027; }
.rc-thresholds .rc-th { display: inline-flex; align-items: center; gap: 6px; }
.rc-thresholds input { width: 60px; border: 1px solid #D7DCE2; border-radius: 7px; padding: 4px 7px; font-size: 12.5px; font-family: inherit; text-align: center; background: #fff; color: #1A2027; }
.rc-thresholds input:focus { outline: 2px solid #F26522; outline-offset: 1px; border-color: #F26522; }

/* tooltip */
#rc-tip { position: fixed; pointer-events: none; background: #1A2027; color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; opacity: 0; transition: opacity .08s; z-index: 9999; box-shadow: 0 4px 14px rgba(0,0,0,.2); white-space: nowrap; }
#rc-tip b { color: #fff; }

/* new/exist tag reused in report cards */
.rc-newtag { display: inline-flex; align-items: center; gap: 4px; background: #FFF3E9; color: #B4491C; border: 1px solid #F7C9AC; border-radius: 999px; padding: 2px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
