/* ==========================================================================
   Kumari Flowers - Admin Panel Stylesheet (Royal Gold & Obsidian Theme)
   Sidebar Navigation Layout
   ========================================================================== */

:root {
  --bg-dark: #0d0c0b;
  --bg-sidebar: #12100e;
  --bg-card: #161412;
  --bg-card-hover: #1f1b18;
  --bg-input: #100e0c;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #99750a;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-main: #fdfcf9;
  --text-muted: #9c9287;
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-focus: #d4af37;
  --danger: #e53e3e;
  --success: #38a169;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-width: 270px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
}

/* ==========================================================================
   Layout with Left Sidebar Navigation
   ========================================================================== */

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

/* Sidebar Styles */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.sidebar-close-btn:hover {
  color: #fff;
}

.sidebar-user-card {
  padding: 0.75rem 1rem;
  margin: 0.85rem 0.85rem 0.4rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #8e6a05);
  color: #0d0c0b;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.84rem;
  color: #fff;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  color: var(--gold-light);
}

.sidebar-nav {
  padding: 0.5rem 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 0.85rem 0.65rem 0.35rem;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  color: var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
  font-weight: 700;
}

.nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.nav-text {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #0f0d0c;
}

.sidebar-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-view-site {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  border-color: var(--border-gold);
}
.btn-view-site:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}

.btn-logout {
  background: rgba(229, 62, 62, 0.1);
  color: #ff9999;
  border-color: rgba(229, 62, 62, 0.25);
}
.btn-logout:hover {
  background: rgba(229, 62, 62, 0.2);
  border-color: var(--danger);
}

/* Main Content Wrap */
.admin-main-wrap {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  background: #12100e;
  border-bottom: 1px solid var(--border-gold);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(8px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  display: none;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}

.topbar-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #a0e0a0;
  background: rgba(56, 161, 105, 0.12);
  border: 1px solid rgba(56, 161, 105, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48bb78;
  box-shadow: 0 0 6px #48bb78;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Container */
.admin-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem;
  flex-grow: 1;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #0d0c0b;
  border: 1px solid #d4af37;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e5c158, #bf9415);
  box-shadow: 0 0 12px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.btn-danger {
  background: rgba(229, 62, 62, 0.15);
  color: #ff8b8b;
  border: 1px solid rgba(229, 62, 62, 0.3);
}
.btn-danger:hover {
  background: rgba(229, 62, 62, 0.3);
  border-color: var(--danger);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

/* Section Header */
.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-bar-title h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
}
.section-bar-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-bar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-box, .select-box {
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}
.search-box:focus, .select-box:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-glow);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 12, 11, 0.85);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--gold-primary);
}

.status-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.status-visible {
  background: rgba(56, 161, 105, 0.85);
  color: #fff;
}
.status-hidden {
  background: rgba(229, 62, 62, 0.85);
  color: #fff;
}

.product-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.72rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
  line-height: 1.35;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #161412;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-gold);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #110f0d;
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.img-preview-box {
  width: 100%;
  height: 170px;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  background: #0d0c0b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0.5rem;
  position: relative;
}

.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-preview-placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Tables */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

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

.admin-table th {
  background: #110f0d;
  color: var(--gold-light);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-gold);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1a1715;
  color: #fff;
  border: 1px solid var(--gold-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
}

.toast.toast-error {
  border-color: var(--danger);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Login Modal */
.login-backdrop {
  position: fixed;
  inset: 0;
  background: #0d0c0b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.login-card {
  background: #161412;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.login-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.login-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  }
  .sidebar-close-btn {
    display: block;
  }
  .admin-main-wrap {
    margin-left: 0;
  }
  .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 999;
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .topbar-heading {
    font-size: 1rem;
  }
}

/* ==========================================================================
   ADMIN MOBILE APP-LIKE RESPONSIVENESS & BOTTOM BAR (< 900px & < 768px)
   ========================================================================== */

/* Admin Mobile Bottom Navigation Bar */
.admin-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 74px !important;
  }

  .admin-main-wrap {
    margin-left: 0 !important;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .sidebar-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

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

  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 16, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.65rem 1rem;
  }

  .topbar-date {
    display: none !important;
  }

  /* Fixed Bottom Navigation for Admin */
  .admin-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(18, 16, 13, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 9990;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.25rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.8);
  }

  .admin-nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9d9487;
    font-size: 0.65rem;
    font-weight: 500;
    gap: 3px;
    padding: 6px 6px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-width: 52px;
  }

  .admin-nav-item:active {
    transform: scale(0.92);
  }

  .admin-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
  }

  .admin-nav-item.active {
    color: var(--gold-light);
    font-weight: 600;
  }

  .admin-nav-item.active .admin-nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(229, 169, 60, 0.6));
  }

  .admin-nav-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: #e5a93c;
    color: #0d0c0b;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .admin-content {
    padding: 1rem !important;
  }

  /* 2x2 Stats Grid on Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  .stat-card {
    padding: 1rem 0.85rem !important;
    gap: 0.75rem !important;
  }

  .stat-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.35rem !important;
  }

  .stat-val {
    font-size: 1.35rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
  }

  /* Action headers & Filters */
  .tab-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .tab-header .btn {
    width: 100% !important;
    justify-content: center;
  }

  .filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .search-box {
    width: 100% !important;
  }

  .search-box input {
    width: 100% !important;
    font-size: 16px !important;
  }

  .filter-select {
    width: 100% !important;
    font-size: 16px !important;
  }

  /* 1-Column Product and Decor Cards on Mobile */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .product-card {
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }

  .product-img-wrap {
    height: 180px !important;
  }

  .product-details {
    padding: 1rem !important;
  }

  .product-actions {
    flex-direction: column !important;
    gap: 0.45rem !important;
  }

  .product-actions .btn {
    width: 100% !important;
    padding: 0.55rem !important;
  }

  /* Responsive Table Card Layout for Enquiries & Categories */
  .table-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

    .admin-table,
  .data-table,
  .admin-table thead,
  .data-table thead,
  .admin-table tbody,
  .data-table tbody,
  .admin-table th,
  .data-table th,
  .admin-table td,
  .data-table td,
  .admin-table tr,
  .data-table tr {
    display: block !important;
    width: 100% !important;
  }

  .admin-table thead,
  .data-table thead {
    display: none !important;
  }

  .admin-table tbody tr,
  .data-table tbody tr {
    background: #171512 !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    border-radius: 14px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  }

  .admin-table td,
  .data-table td {
    padding: 0.45rem 0 !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.88rem !important;
    text-align: right;
  }

  .admin-table td:not(:last-child),
  .data-table td:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .admin-table td::before,
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    text-align: left;
  }

  .admin-table td .btn-group,
  .data-table td .btn-group,
  .admin-table td .actions-wrap,
  .data-table td .actions-wrap {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .admin-table td .btn,
  .data-table td .btn {
    flex: 1;
    justify-content: center;
  }

  /* Bottom-Sheet Modals on Mobile */
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

    .modal,
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
    border-bottom: none !important;
  }

  .modal-header {
    flex-shrink: 0;
    padding: 1.15rem 1.25rem !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  }

  .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem !important;
    flex-grow: 1;
  }

  .modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem !important;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    display: flex;
    gap: 0.75rem;
  }

  .modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem !important;
  }

  /* Form controls font size (prevent auto-zoom on iOS) */
  .form-control, input, select, textarea {
    font-size: 16px !important;
  }
}
