/**
 *  Admin Panel — Dedicated Stylesheet
 * File: public/backend/css/admin.css
 * Completely independent from frontend CSS
 */

:root {
  --admin-bg-body: #110F0C;
  --admin-bg-sidebar: #16130F;
  --admin-bg-card: #1D1914;
  --admin-bg-card-hover: #221D17;
  --admin-bg-input: #231E18;
  --admin-gold: #C59E53;
  --admin-gold-hover: #D6AD60;
  --admin-gold-glow: rgba(197, 158, 83, 0.25);
  --admin-text-main: #EFECE6;
  --admin-text-muted: #8E877B;
  --admin-border: rgba(255, 255, 255, 0.06);
  --admin-border-focus: rgba(197, 158, 83, 0.4);
  --admin-red: #E05252;
  --admin-red-bg: rgba(224, 82, 82, 0.12);
  --admin-green: #25D366;
  --admin-green-bg: rgba(37, 211, 102, 0.12);
  --admin-sidebar-width: 236px;
  --admin-header-height: 68px;
  --admin-radius: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--admin-bg-body);
  color: var(--admin-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================================================
   Global Custom Dark Luxury Scrollbars (Eliminates white scrollbars)
   ======================================================== */
html, body, * {
  scrollbar-color: #383127 #110F0C;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #110F0C;
}

::-webkit-scrollbar-thumb {
  background: #383127;
  border-radius: 4px;
}

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

/* ========================================================
   Admin Layout Shell
   ======================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ========================================================
   Sidebar
   ======================================================== */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background-color: var(--admin-bg-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--admin-gold);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
}

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

.sidebar-item {
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--admin-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--admin-text-main);
  background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  background-color: var(--admin-gold);
  color: #14110C;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--admin-gold-glow);
}

.sidebar-link.active .sidebar-icon svg {
  stroke: #14110C;
  color: #14110C;
}

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-link .badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-text-main);
}

/* ========================================================
   Main Container & Topbar
   ======================================================== */
.admin-main {
  margin-left: var(--admin-sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--admin-bg-body);
}

.admin-header {
  height: var(--admin-header-height);
  background-color: var(--admin-bg-sidebar);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 20px;
  cursor: pointer;
  display: none;
  padding: 6px;
  border-radius: 6px;
}

.sidebar-toggle-btn:hover {
  color: var(--admin-text-main);
}

.header-home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-home-link:hover {
  color: var(--admin-gold);
}

/* Search Bar */
.header-search {
  position: relative;
  width: 320px;
}

.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 40px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.header-search input::placeholder {
  color: #6A6356;
}

.header-search input:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 2px var(--admin-gold-glow);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7A7264;
  pointer-events: none;
  display: flex;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-action-icon {
  position: relative;
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.header-action-icon:hover {
  color: var(--admin-text-main);
  background: rgba(255, 255, 255, 0.04);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: var(--admin-red);
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--admin-bg-sidebar);
}

/* User Profile Pill */
.header-profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 20px;
  transition: background 0.2s;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.profile-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #2E2820;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-border);
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.profile-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-main);
}

.profile-arrow {
  color: var(--admin-text-muted);
  font-size: 11px;
}

/* Profile Dropdown Menu */
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.profile-menu.is-active {
  display: block;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--admin-text-main);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-gold);
}

.profile-menu-divider {
  height: 1px;
  background: var(--admin-border);
  margin: 4px 0;
}

/* ========================================================
   Content Container
   ======================================================== */
.admin-content {
  padding: 28px;
  flex-grow: 1;
}

/* ========================================================
   Metric Stat Cards (4 Cards Grid)
   ======================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(197, 158, 83, 0.2);
  transform: translateY(-2px);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--admin-text-main);
  line-height: 1.1;
}

.stat-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #25201A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-gold);
  flex-shrink: 0;
}

.stat-icon-box.is-danger {
  background: var(--admin-red-bg);
  color: var(--admin-red);
}

/* ========================================================
   Activity Chart Card
   ======================================================== */
.chart-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title-clean {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text-main);
}

.chart-container-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

/* ========================================================
   Bottom Section: Enquiries Table & Quick Action Buttons
   ======================================================== */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
}

.table-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 22px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  color: var(--admin-text-muted);
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 14px;
  color: var(--admin-text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.whatsapp-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #394229;
  color: #92D35A;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(146, 211, 90, 0.2);
}

.whatsapp-pill-btn:hover {
  background: #465530;
  color: #B5E888;
  transform: translateY(-1px);
}

/* Quick Action Buttons Column */
.quick-actions-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-admin-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--admin-gold);
  color: #14110C;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--admin-gold-glow);
}

.btn-admin-primary:hover {
  background: var(--admin-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 158, 83, 0.35);
}

/* ========================================================
   Login Page Styling — Roop Hair Studio
   ======================================================== */
.login-body {
  position: relative;
  background-color: #0C0A08;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-body::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(197, 158, 83, 0.12) 0%, rgba(197, 158, 83, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #15120E;
  border: 1px solid rgba(197, 158, 83, 0.28);
  border-radius: 16px;
  padding: 38px 32px 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  text-align: center;
}

.login-header-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(197, 158, 83, 0.1);
  border: 1px solid rgba(197, 158, 83, 0.35);
  color: var(--admin-gold);
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(197, 158, 83, 0.18);
}

.login-brand {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--admin-gold);
  margin-bottom: 4px;
  line-height: 1.2;
}

.login-tagline {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

.login-branch-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 158, 83, 0.25);
  border-radius: 999px;
  font-size: 11px;
  color: #C59E53;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #A9A296;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-control-wrap {
  position: relative;
}

.form-control-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8E877B;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  background: #1C1813;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(197, 158, 83, 0.22);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #8E877B;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--admin-gold);
}

.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin: 18px 0 22px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  accent-color: var(--admin-gold);
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.back-to-store-link {
  color: var(--admin-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.back-to-store-link:hover {
  color: var(--admin-gold);
}

.login-demo-hint {
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(197, 158, 83, 0.08);
  border: 1px dashed rgba(197, 158, 83, 0.35);
  border-radius: 8px;
  font-size: 12px;
  color: #D6AD60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
}

.login-demo-hint code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  color: #FFF;
  font-size: 11.5px;
}

.login-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert.is-danger {
  background: var(--admin-red-bg);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: #FF8F8F;
}

.login-alert.is-success {
  background: var(--admin-green-bg);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #92D35A;
}

/* ========================================================
   Admin Flash Alert (Auto-dismissing Luxury Toast)
   ======================================================== */
.admin-flash-alert {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80px;
}

.admin-flash-alert.is-success {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #9CE35A;
}

.admin-flash-alert.is-danger {
  background: rgba(224, 82, 82, 0.08);
  border: 1px solid rgba(224, 82, 82, 0.28);
  color: #FF8F8F;
}

.flash-alert-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flash-alert-text {
  font-weight: 500;
  line-height: 1.4;
}

.flash-alert-close {
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.2s, background 0.2s;
  flex-shrink: 0;
  margin-left: 14px;
}

.flash-alert-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.flash-alert-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  animation: flashTimerProgress 3s linear forwards;
}

@keyframes flashTimerProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.admin-flash-alert.is-dismissing {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.login-demo-hint {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
  font-size: 12px;
  color: var(--admin-text-muted);
  text-align: center;
}

.login-demo-hint code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--admin-gold);
}

/* ========================================================
   Categories List Table & Modal Styles (Matching Screenshot)
   ======================================================== */
.category-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.category-page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--admin-text-main);
}

.category-thumb-tile {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #241F18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  flex-shrink: 0;
}

.category-thumb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-thumb-placeholder {
  color: var(--admin-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Switch Toggle Component */
.switch-toggle-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.switch-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #383229;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #FAF7F2;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.switch-toggle-label input:checked + .switch-slider {
  background-color: var(--admin-gold);
}

.switch-toggle-label input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Action Buttons */
.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-edit {
  background: var(--admin-gold);
  color: #14110C;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-edit:hover {
  background: var(--admin-gold-hover);
  transform: translateY(-1px);
}

.btn-action-delete {
  background: #1C1813;
  color: var(--admin-text-main);
  border: 1px solid var(--admin-border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-delete:hover {
  background: var(--admin-red-bg);
  border-color: rgba(224, 82, 82, 0.4);
  color: var(--admin-red);
}

/* ========================================================
   Add / Edit Category Modal (Matching Screenshot)
   ======================================================== */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.admin-modal-card {
  width: 100%;
  max-width: 490px;
  background: var(--admin-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3A3329 transparent;
}

.admin-modal-card::-webkit-scrollbar {
  width: 5px;
}

.admin-modal-card::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.admin-modal-card::-webkit-scrollbar-thumb {
  background: #3A3329;
  border-radius: 10px;
}

.admin-modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--admin-gold);
}

.admin-modal-backdrop.is-open .admin-modal-card {
  transform: scale(1);
}

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

.modal-title-clean {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--admin-text-main);
}

.modal-form-group {
  margin-bottom: 12px;
}

.modal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--admin-text-main);
  margin-bottom: 5px;
}

.modal-input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus, .modal-textarea:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 2px var(--admin-gold-glow);
}

.modal-input::placeholder, .modal-textarea::placeholder {
  color: #6A6356;
}

.modal-textarea {
  width: 100%;
  height: 60px;
  padding: 8px 12px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 13px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
}

/* Custom Modal Select Dropdown */
.modal-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-select {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 13px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-select:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 2px var(--admin-gold-glow);
}

.modal-select option {
  background: #1B1712;
  color: #EDE8DF;
  padding: 8px;
}

.modal-select-icon {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: var(--admin-text-muted);
  transition: transform 0.2s;
}

.modal-select:focus + .modal-select-icon {
  color: var(--admin-gold);
}

.modal-field-hint {
  font-size: 11px;
  color: #8C8476;
  margin-top: 5px;
  line-height: 1.4;
}

/* Category Hierarchy Display in Table */
.category-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-main-indicator,
.category-sub-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-arrow {
  color: var(--admin-gold);
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.category-name-text {
  font-weight: 500;
  color: var(--admin-text-main);
  font-size: 14px;
}

.category-name-text.is-parent {
  font-weight: 600;
  color: #FFFFFF;
}

.badge-hierarchy {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.badge-hierarchy.badge-sub {
  background: rgba(197, 158, 83, 0.12);
  border: 1px solid rgba(197, 158, 83, 0.3);
  color: var(--admin-gold);
}

.badge-hierarchy.badge-parent {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #8FD854;
}

.badge-hierarchy.badge-main-only {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--admin-text-muted);
}

/* Banner Upload Row */
.banner-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-preview-box {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #241F18;
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-gold);
  flex-shrink: 0;
  overflow: hidden;
}

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

.banner-dropzone {
  flex-grow: 1;
  height: 44px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8E877B;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.banner-dropzone:hover {
  border-color: var(--admin-gold);
  color: var(--admin-gold);
  background: rgba(197, 158, 83, 0.04);
}

/* Modal Status Row */
.modal-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.modal-status-text {
  font-size: 13px;
  color: var(--admin-text-main);
  font-weight: 500;
}

/* Modal Footer Buttons */
.modal-footer-clean {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}

.btn-modal-cancel {
  padding: 8px 18px;
  background: #25201A;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: var(--admin-text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-cancel:hover {
  background: #2E2821;
}

.btn-modal-save {
  padding: 8px 20px;
  background: var(--admin-gold);
  border: 1px solid var(--admin-gold);
  border-radius: 6px;
  color: #14110C;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-save:hover {
  background: var(--admin-gold-hover);
}

/* ========================================================
   Delete Confirmation Modal (Luxury Dark Alert)
   ======================================================== */
.delete-modal-card {
  max-width: 410px;
  text-align: center;
  padding: 30px 26px 24px;
}

.delete-modal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(224, 82, 82, 0.12);
  border: 1px solid rgba(224, 82, 82, 0.28);
  color: #FF6B6B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px rgba(224, 82, 82, 0.15);
}

.delete-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text-main);
  margin-bottom: 8px;
}

.delete-modal-desc {
  font-size: 13.5px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.delete-modal-desc strong {
  color: var(--admin-gold);
  font-weight: 600;
}

.delete-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.delete-modal-actions .btn-modal-cancel {
  flex: 1;
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-confirm-delete {
  flex: 1;
  padding: 10px 18px;
  background: #E05252;
  border: 1px solid #E05252;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(224, 82, 82, 0.28);
}

.btn-confirm-delete:hover {
  background: #C73E3E;
  border-color: #C73E3E;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 82, 82, 0.4);
}

/* ========================================================
   Size Master Page Styles
   ======================================================== */
.filter-pill-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filter-pill-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
}

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

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1C1813;
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--admin-text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: rgba(197, 158, 83, 0.4);
  color: var(--admin-text-main);
  background: #231E18;
}

.filter-pill.is-active {
  background: var(--admin-gold);
  border-color: var(--admin-gold);
  color: #14110C;
  font-weight: 600;
}

.size-cat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.size-cat-name {
  font-weight: 600;
  color: var(--admin-text-main);
  font-size: 13.5px;
}

.size-cat-sub {
  font-size: 11px;
  color: var(--admin-gold);
}

.size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  background: #241F18;
  border: 1px solid rgba(197, 158, 83, 0.35);
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sort-order-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ========================================================
   Product Management Styles (Matching Screenshot)
   ======================================================== */
.product-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-serif-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 600;
  color: #C59E53;
  letter-spacing: 0.5px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-back-link:hover {
  color: var(--admin-gold);
}

.btn-product-save {
  padding: 10px 24px;
  background: var(--admin-gold);
  border: 1px solid var(--admin-gold);
  border-radius: 8px;
  color: #14110C;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(197, 158, 83, 0.25);
}

.btn-product-save:hover {
  background: var(--admin-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(197, 158, 83, 0.35);
}

.product-card-body {
  background: var(--admin-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.product-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.product-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--admin-text-main);
  margin-bottom: 8px;
}

.product-sub-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
}

.product-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-input:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 2px var(--admin-gold-glow);
}

.product-input::placeholder {
  color: #6A6356;
}

/* Size Chips Selector (Matching Screenshot) */
.size-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 44px;
}

.size-chip {
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 20px;
  background: #25201A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8E877B;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.size-chip:hover {
  background: #2E2820;
  color: var(--admin-text-main);
  border-color: rgba(197, 158, 83, 0.3);
}

.size-chip.is-selected {
  background: var(--admin-gold);
  border-color: var(--admin-gold);
  color: #14110C;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(197, 158, 83, 0.3);
}

.size-chips-hint {
  font-size: 12.5px;
  color: var(--admin-text-muted);
  font-style: italic;
  padding: 8px 0;
}

/* Quantity Stepper (Matching Screenshot) */
.quantity-stepper-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  height: 44px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.quantity-stepper-box:focus-within {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 2px var(--admin-gold-glow);
}

.stepper-input {
  flex-grow: 1;
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: none;
  color: var(--admin-text-main);
  font-size: 14px;
  outline: none;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-controls {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 1px solid var(--admin-border);
}

.stepper-btn {
  width: 38px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.stepper-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-main);
}

/* Media Manager Section */
.media-manager-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--admin-border);
}

.media-manager-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text-main);
  margin-bottom: 16px;
}

.media-manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-upload-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.featured-dropzone {
  flex-grow: 1;
  height: 80px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--admin-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.featured-dropzone:hover {
  border-color: var(--admin-gold);
  color: var(--admin-gold);
  background: rgba(197, 158, 83, 0.04);
}

.featured-preview-tile {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #241F18;
  border: 1px solid var(--admin-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.preview-tile-placeholder {
  color: #6A6356;
}

/* Gallery Section */
.gallery-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gallery-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--admin-gold);
  cursor: pointer;
  transition: color 0.2s;
}

.gallery-add-btn:hover {
  color: var(--admin-gold-hover);
}

.gallery-preview-tiles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 80px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.gallery-empty-hint {
  font-size: 12px;
  color: var(--admin-text-muted);
  width: 100%;
  text-align: center;
  padding: 14px 0;
}

.gallery-tile-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #241F18;
  border: 1px solid var(--admin-border);
  flex-shrink: 0;
}

.gallery-tile-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  color: #FF7B7B;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-remove-btn:hover {
  background: #E05252;
  color: #FFFFFF;
}

/* Video Section */
.media-video-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.video-upload-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-dropzone {
  flex: 1;
  height: 44px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--admin-text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.video-dropzone:hover {
  border-color: var(--admin-gold);
  color: var(--admin-gold);
}

.video-url-field {
  flex: 1;
}

.video-preview-wrapper {
  position: relative;
  margin-top: 12px;
  max-width: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  background: #000;
}

.video-preview-wrapper video {
  width: 100%;
  height: 200px;
  display: block;
}

.video-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
}

/* Rich Description Editor */
.product-desc-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--admin-border);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #201B15;
  border: 1px solid var(--admin-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 6px 10px;
}

.editor-tool-btn {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.editor-tool-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--admin-text-main);
}

.editor-sep {
  width: 1px;
  height: 18px;
  background: var(--admin-border);
  margin: 0 4px;
}

.product-textarea {
  width: 100%;
  height: 120px;
  padding: 12px 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 0 0 8px 8px;
  color: var(--admin-text-main);
  font-size: 13.5px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.2s;
}

.product-textarea:focus {
  border-color: var(--admin-gold);
}

/* Product Status Block */
.product-status-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
}

/* Table Filter & Size Chips in List */
.product-filter-bar {
  margin-bottom: 20px;
}

.product-filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 380px;
}

.filter-search-box svg {
  position: absolute;
  left: 14px;
  color: var(--admin-text-muted);
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  font-size: 13px;
  outline: none;
}

.filter-search-input:focus {
  border-color: var(--admin-gold);
}

.btn-filter-submit {
  padding: 0 18px;
  height: 40px;
  background: var(--admin-gold);
  border: 1px solid var(--admin-gold);
  border-radius: 8px;
  color: #14110C;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-filter-clear {
  padding: 0 14px;
  height: 40px;
  background: #25201A;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-filter-clear:hover {
  color: var(--admin-text-main);
}

.table-sizes-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-size-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #28221B;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--admin-text-main);
  font-size: 11.5px;
  font-weight: 600;
}

.stock-qty-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.stock-qty-badge.in-stock {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #8FD854;
}

.stock-qty-badge.low-stock {
  background: rgba(197, 158, 83, 0.1);
  border: 1px solid rgba(197, 158, 83, 0.25);
  color: var(--admin-gold);
}

.stock-qty-badge.out-of-stock {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.25);
  color: #FF8F8F;
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

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

  .admin-main {
    margin-left: 0;
  }

  .sidebar-toggle-btn {
    display: block;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-col {
    flex-direction: row;
  }

  .quick-actions-col > * {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .header-search {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-header {
    padding: 0 16px;
  }

  .category-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ========================================================
   13. Settings Workspace Styles (Two Addresses, Social, SEO)
   ======================================================== */
.settings-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.settings-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--admin-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.settings-nav-tab:hover {
  color: var(--admin-text-main);
  background: rgba(255, 255, 255, 0.03);
}

.settings-nav-tab.is-active {
  color: var(--admin-gold);
  background: rgba(197, 158, 83, 0.12);
  border-color: rgba(197, 158, 83, 0.28);
  font-weight: 600;
}

.settings-nav-tab .tab-pill {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(197, 158, 83, 0.25);
  color: var(--admin-gold);
}

.settings-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.settings-tab-pane.is-active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.settings-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.settings-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(197, 158, 83, 0.12);
  border: 1px solid rgba(197, 158, 83, 0.28);
  color: var(--admin-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text-main);
  margin: 0 0 3px 0;
}

.settings-card-sub {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin: 0;
}

.settings-field {
  margin-bottom: 18px;
}

.settings-field:last-child {
  margin-bottom: 0;
}

.input-with-icon-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
}

.input-prefix-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-muted);
  user-select: none;
}

.social-prefix-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  flex-shrink: 0;
}

.social-prefix-icon.insta {
  color: #E1306C;
}

.social-prefix-icon.fb {
  color: #1877F2;
}

.product-input.has-prefix {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-test-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-left: none;
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-test-wa:hover {
  background: rgba(37, 211, 102, 0.2);
}

.char-count-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--admin-text-muted);
  float: right;
}

/* Google SERP Simulator Box */
.google-serp-box {
  background: #202124;
  border: 1px solid #3c4043;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.google-serp-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #bdc1c6;
  margin-bottom: 6px;
}

.google-favicon-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--admin-gold);
  color: #0E0C0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.google-serp-title {
  font-size: 17px;
  font-weight: 400;
  color: #8ab4f8;
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  word-break: break-word;
}

.google-serp-title:hover {
  text-decoration: underline;
}

.google-serp-desc {
  font-size: 13px;
  color: #bdc1c6;
  line-height: 1.45;
  word-break: break-word;
}

/* ========================================================
   Section / Gender Filter Tabs (Men, Women, All)
   ======================================================== */
.section-tabs-nav,
.settings-tabs-nav {
  display: inline-flex;
  align-items: center;
  background: #191510;
  border: 1px solid var(--admin-border);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.section-tab-btn,
.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
  text-decoration: none !important;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.section-tab-btn:hover,
.settings-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.section-tab-btn.active,
.settings-tab-btn.active {
  background: var(--admin-gold) !important;
  color: #120F0C !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(197, 158, 83, 0.35);
  border-color: var(--admin-gold);
}

.section-tab-btn .tab-badge,
.settings-tab-btn .tab-badge,
.section-tab-btn .tab-badge-count,
.settings-tab-btn span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  margin-left: 4px;
  transition: all 0.2s;
}

.section-tab-btn.active .tab-badge,
.settings-tab-btn.active .tab-badge,
.section-tab-btn.active span:nth-child(2),
.settings-tab-btn.active span:nth-child(2) {
  background: rgba(0, 0, 0, 0.22) !important;
  color: #120F0C !important;
}

/* ========================================================
   Admin Pagination Luxury Gold Styles
   ======================================================== */
.pagination-wrapper {
  padding: 16px 22px;
  background: var(--admin-bg-card);
  border-top: 1px solid var(--admin-border);
}

/* Hard protection against unconstrained SVG icons anywhere in pagination */
.pagination-wrapper svg,
.admin-pagination svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-pagination-info {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.admin-pagination-info .highlight {
  color: #fff;
  font-weight: 600;
}

.admin-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #1C1813;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--admin-text-main);
  text-decoration: none !important;
  transition: all 0.18s ease;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
  background: #262018;
  border-color: rgba(197, 158, 83, 0.4);
  color: var(--admin-gold);
}

.pagination-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--admin-text-muted);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: #1C1813;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.pagination-page-btn:hover:not(.active) {
  background: #262018;
  border-color: rgba(197, 158, 83, 0.4);
  color: var(--admin-gold);
}

.pagination-page-btn.active {
  background: var(--admin-gold);
  border-color: var(--admin-gold);
  color: #14110C;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(197, 158, 83, 0.3);
}

.pagination-ellipsis {
  font-size: 13px;
  color: var(--admin-text-muted);
  padding: 0 4px;
}



