/* ==========================================================================
   School Infra Solutions (SIS) - Admin Panel CSS
   Institutional Frontend Aligned Theme (Navy, Royal Blue & Gold)
   Ultra-User-Friendly, Icon-Rich & Classy SEO Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Exact Frontend Palette */
  --color-navy-dark: #050A18;
  --color-navy-section: #050B19;
  --color-navy-card: #081024;
  --color-navy-card-hover: #0c1630;
  --color-navy-border: rgba(255, 255, 255, 0.12);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Primary Royal Blue */
  --color-blue-primary: #1D61E7;
  --color-blue-hover: #144EC2;
  --color-blue-light: rgba(29, 97, 231, 0.15);
  --color-blue-badge: #DBEAFE;
  --color-blue-text: #60A5FA;
  --color-blue-border: rgba(29, 97, 231, 0.35);
  
  /* Warm Amber Gold (Signature SIS Institutional Accents) */
  --color-gold: #F59E0B;
  --color-gold-hover: #D97706;
  --color-gold-light: rgba(245, 158, 11, 0.15);
  --color-gold-border: rgba(245, 158, 11, 0.3);
  
  /* Emerald Success */
  --color-emerald: #10B981;
  --color-emerald-light: rgba(16, 185, 129, 0.15);
  --color-emerald-border: rgba(16, 185, 129, 0.3);
  
  /* Danger / Alert */
  --color-danger: #EF4444;
  --color-danger-hover: #DC2626;
  --color-danger-light: rgba(239, 68, 68, 0.15);
  --color-danger-border: rgba(239, 68, 68, 0.3);

  /* Info / Cyan */
  --color-info: #06B6D4;
  --color-info-light: rgba(6, 182, 212, 0.15);
  --color-info-border: rgba(6, 182, 212, 0.3);

  /* Purple / Special */
  --color-purple: #8B5CF6;
  --color-purple-light: rgba(139, 92, 246, 0.15);
  --color-purple-border: rgba(139, 92, 246, 0.3);

  /* Text Hierarchy */
  --color-text-pure: #FFFFFF;
  --color-text-main: #F8FAFC;
  --color-text-sub: #CBD5E1;
  --color-text-muted: #94A3B8;
  --color-text-dark: #64748B;

  /* Legacy Aliases */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --bg-cosmos: #050A18;
  --bg-card: #081024;
  --text-pure: #FFFFFF;
  --text-main: #F8FAFC;
  --text-sub: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #64748B;
  --gold: #F59E0B;
  
  /* Typography Matching Frontend */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Outfit", var(--font-sans);
  --font-mono: "JetBrains Mono", monospace;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.55);
  --shadow-blue: 0 8px 24px -4px rgba(29, 97, 231, 0.45);
  --shadow-gold: 0 6px 20px rgba(245, 158, 11, 0.3);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-navy-dark);
  background-image: 
    linear-gradient(180deg, rgba(5, 10, 24, 0.96) 0%, #050a18 100%),
    radial-gradient(circle at 85% 10%, rgba(29, 97, 231, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--color-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Headings with Frontend Prestigious Serif */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--color-text-pure);
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 10, 24, 0.85);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Sidebar Navigation (Frontend Aligned Deep Navy with Gold Accents)
   ========================================================================== */
.admin-sidebar {
  width: 270px;
  background: var(--color-navy-section);
  border-right: 1px solid var(--color-navy-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 1.25rem 1.15rem;
  border-bottom: 1px solid var(--color-navy-border);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(5, 10, 24, 0.6);
}

.sidebar-logo-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sidebar-logo {
  height: 100%;
  width: auto;
  max-width: none;
  max-height: none;
  transform: scale(2.6);
  transform-origin: 25.2% 50%;
  display: block;
}

.sidebar-brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-pure);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sidebar-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold-border);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 2px;
}

.sidebar-brand-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 6px var(--color-gold);
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-group-title {
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
  padding: 0.85rem 0.75rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  color: var(--color-text-sub);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 3px;
  border: 1px solid transparent;
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-pure);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.sidebar-link:hover svg {
  color: #fff;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(29, 97, 231, 0.28) 0%, rgba(29, 97, 231, 0.10) 100%);
  color: #60a5fa;
  font-weight: 600;
  border: 1px solid rgba(29, 97, 231, 0.4);
  box-shadow: 0 2px 12px rgba(29, 97, 231, 0.25);
}

.sidebar-link.active svg {
  color: #60a5fa;
}

.nav-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-link.active .nav-pill-badge {
  background: rgba(29, 97, 231, 0.3);
  color: #93c5fd;
  border-color: rgba(29, 97, 231, 0.4);
}

.sidebar-footer {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--color-navy-border);
  background: rgba(5, 10, 24, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-blue-primary), var(--color-blue-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(29, 97, 231, 0.4);
  position: relative;
}

.user-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  border: 2px solid var(--color-navy-section);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-pure);
  line-height: 1.2;
}

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

.btn-sidebar-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-sidebar-icon:hover {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Main Layout & Topbar (Matching Frontend Header)
   ========================================================================== */
.admin-main {
  margin-left: 270px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 270px);
}

.admin-topbar {
  height: 70px;
  background: rgba(5, 10, 24, 0.88);
  border-bottom: 1px solid var(--color-navy-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-dark);
}

.topbar-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-breadcrumb a:hover {
  color: #fff;
}

.topbar-breadcrumb .separator {
  color: var(--color-text-dark);
}

.topbar-breadcrumb .current {
  color: var(--color-text-pure);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.db-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-view-site {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-navy-border);
  color: var(--color-text-pure);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-view-site:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.admin-body {
  padding: 2rem;
  flex-grow: 1;
}

/* ==========================================================================
   Page Headers (Playfair Display Matching Frontend)
   ========================================================================== */
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-tag-sm {
  color: #60a5fa;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.page-headline {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text-pure);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-subheadline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   Buttons (Frontend Pill Buttons with Shadows)
   ========================================================================== */
.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-blue-primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-blue);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}

.btn-admin-primary:hover {
  background-color: var(--color-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -2px rgba(29, 97, 231, 0.55);
}

.btn-admin-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-navy-card);
  border: 1px solid var(--color-navy-border);
  color: var(--color-text-pure);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}

.btn-admin-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-admin-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-gold);
  color: #050A18;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s;
}

.btn-admin-gold:hover {
  background: var(--color-gold-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-admin-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-danger-light);
  border: 1px solid var(--color-danger-border);
  color: #f87171;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-admin-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

/* ==========================================================================
   Metric Cards Grid (Matching Frontend Hero Stats)
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.metric-card {
  background: var(--color-navy-card);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 97, 231, 0.45);
  box-shadow: var(--shadow-lg);
}

.metric-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-border);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29, 97, 231, 0.25);
}

.metric-icon-box.gold {
  background: var(--color-gold-light);
  border-color: var(--color-gold-border);
  color: var(--color-gold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.metric-icon-box.green {
  background: var(--color-emerald-light);
  border-color: var(--color-emerald-border);
  color: var(--color-emerald);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text-pure);
  line-height: 1.1;
}

.metric-num.gold {
  color: var(--color-gold);
}

.metric-label {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.metric-badge {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 700;
  color: #34d399;
  background: var(--color-emerald-light);
  border: 1px solid var(--color-emerald-border);
  padding: 1px 7px;
  border-radius: 4px;
  margin-top: 3px;
}

/* ==========================================================================
   Admin Cards & Panels (Frontend Section & Glassmorphic Cards)
   ========================================================================== */
.admin-card {
  background: var(--color-navy-card);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-navy-border);
  flex-wrap: wrap;
  gap: 0.85rem;
}

.card-title-clean {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-pure);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-desc-clean {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* Search Box inside Header */
.table-search-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(5, 10, 24, 0.65);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  transition: all 0.2s;
}

.table-search-box:focus-within {
  border-color: var(--color-blue-primary);
  box-shadow: 0 0 0 3px rgba(29, 97, 231, 0.25);
}

.table-search-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.825rem;
  outline: none;
  width: 170px;
}

.table-search-box input::placeholder {
  color: var(--color-text-dark);
}

/* ==========================================================================
   SERVICES COMPONENT (Matching Frontend .service-7-card Architecture)
   ========================================================================== */

/* View Mode Switcher Pills */
.view-mode-toggle {
  display: inline-flex;
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.view-mode-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.view-mode-btn.active {
  background: var(--color-blue-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29, 97, 231, 0.45);
}

/* Compact Table View */
.services-compact-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.services-compact-table th {
  background: rgba(5, 11, 25, 0.95);
  color: var(--color-text-muted);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--color-navy-border);
}

.services-compact-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--color-navy-border);
  color: var(--color-text-sub);
  font-size: 0.85rem;
  vertical-align: middle;
  transition: background 0.15s;
}

.services-compact-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

.services-compact-table tbody tr:last-child td {
  border-bottom: none;
}

.srv-compact-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-pure);
  line-height: 1.25;
}

.srv-compact-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-navy-border);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Compact Visual Grid View */
.services-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.srv-mini-card {
  background: rgba(5, 11, 25, 0.75);
  border: 1px solid var(--color-navy-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.srv-mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 97, 231, 0.5);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
}

.srv-mini-img-wrap {
  position: relative;
  height: 105px;
  width: 100%;
  overflow: hidden;
}

.srv-mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.srv-mini-card:hover .srv-mini-img {
  transform: scale(1.06);
}

.srv-mini-badge-num {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(5, 10, 24, 0.9);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-border);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.srv-mini-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.srv-mini-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.srv-mini-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-pure);
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.srv-mini-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   General Admin Tables
   ========================================================================== */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-navy-border);
  background: rgba(5, 10, 24, 0.5);
}

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

.admin-table th {
  background: rgba(5, 11, 25, 0.95);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-navy-border);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-navy-border);
  color: var(--color-text-sub);
  vertical-align: middle;
}

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

.admin-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Badges & Tags (Frontend Aligned)
   ========================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-badge.active {
  background: var(--color-emerald-light);
  color: #34d399;
  border: 1px solid var(--color-emerald-border);
}

.status-badge.inactive {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.tag-badge {
  background: var(--color-blue-light);
  color: #93c5fd;
  border: 1px solid var(--color-blue-border);
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Form Inputs & Controls (Sleek Dark Navy with Blue Focus Ring)
   ========================================================================== */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-text-pure);
  margin-bottom: 0.4rem;
}

.form-label small {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: rgba(5, 10, 24, 0.65);
  border: 1px solid var(--color-navy-border);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  background: rgba(5, 10, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(29, 97, 231, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

select.form-control {
  background-color: rgba(5, 10, 24, 0.85);
  cursor: pointer;
}

/* Switch Toggle (iOS / Frontend Aligned) */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: 0.3s;
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input:checked + .slider {
  background-color: var(--color-blue-primary);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Range Sliders */
.form-control-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  outline: none;
}
.form-control-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(29, 97, 231, 0.6);
  border: 2px solid #fff;
}

/* Preset Buttons */
.btn-preset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-navy-border);
  color: var(--color-text-sub);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.btn-preset:hover {
  background: rgba(29, 97, 231, 0.2);
  border-color: var(--color-blue-primary);
  color: #fff;
}
.btn-preset.active {
  background: var(--color-blue-primary);
  border-color: var(--color-blue-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29, 97, 231, 0.4);
}

/* ==========================================================================
   ⭐ ULTRA-CLASSY, BEAUTIFUL & USER-FRIENDLY GOOGLE SERP BAR SYSTEM ⭐
   ========================================================================== */
.classy-serp-box {
  background: linear-gradient(145deg, #070e22 0%, #040816 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.classy-serp-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4285F4 0%, #34A853 33%, #FBBC05 66%, #EA4335 100%);
}

.classy-serp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.classy-serp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: #fff;
}

.google-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.device-preview-toggle {
  display: inline-flex;
  background: rgba(5, 10, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 2px;
}

.device-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.device-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* The Live Search Result Snippet Card */
.serp-card-render {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.45rem;
  transition: max-width 0.3s ease;
  max-width: 680px;
}

.serp-card-render.mobile-view {
  max-width: 380px;
  padding: 1rem;
}

.serp-url-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.serp-favicon-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.serp-site-info {
  display: flex;
  flex-direction: column;
}

.serp-site-name {
  font-size: 0.775rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.serp-canonical-url {
  font-size: 0.725rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.serp-canonical-url svg {
  color: #10b981;
}

.serp-headline-link {
  color: #8ab4f8;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-sans);
}

.serp-headline-link:hover {
  text-decoration: underline;
  color: #adc8ff;
}

.serp-desc-text {
  color: #bdc1c6;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Visual Health Progress Indicators */
.serp-health-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meter-unit {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-text-sub);
}

.meter-score-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}

.meter-score-badge.optimal {
  background: var(--color-emerald-light);
  color: #34d399;
  border: 1px solid var(--color-emerald-border);
}

.meter-score-badge.warning {
  background: var(--color-gold-light);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-border);
}

.meter-score-badge.danger {
  background: var(--color-danger-light);
  color: #f87171;
  border: 1px solid var(--color-danger-border);
}

.meter-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.meter-bar-fill.optimal {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.meter-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.meter-bar-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ==========================================================================
   Live Browser Tab Mockup
   ========================================================================== */
.browser-window-mockup {
  background: var(--color-navy-card);
  border: 1px solid var(--color-navy-border);
  border-radius: 12px;
  overflow: hidden;
}

.browser-window-topbar {
  background: rgba(5, 10, 24, 0.9);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-tab {
  background: var(--color-navy-card);
  border-radius: 6px 6px 0 0;
  padding: 0.3rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: #fff;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
}

/* ==========================================================================
   Sticky Bottom Save Bar (Frontend Dark Navy Glassmorphism)
   ========================================================================== */
.sticky-save-bar {
  position: sticky;
  bottom: 1rem;
  background: rgba(8, 16, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 85;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Toast Notification Banner System
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  width: calc(100% - 3.5rem);
  pointer-events: none;
}

.toast-alert {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(8, 16, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-family: var(--font-sans);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}

.toast-alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast-alert.success::before {
  background: #10b981;
  box-shadow: 0 0 14px #10b981;
}

.toast-alert.danger::before,
.toast-alert.error::before {
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444;
}

.toast-alert.warning::before {
  background: #f59e0b;
  box-shadow: 0 0 14px #f59e0b;
}

.toast-alert.info::before {
  background: #3b82f6;
  box-shadow: 0 0 14px #3b82f6;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast-icon.danger,
.toast-icon.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.toast-icon.info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.toast-body {
  flex-grow: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.925rem;
  line-height: 1.3;
}

.toast-desc {
  font-size: 0.825rem;
  color: var(--text-sub);
  margin-top: 2px;
  line-height: 1.45;
}

.toast-close-btn,
.toast-alert button {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
  outline: none;
}

.toast-close-btn:hover,
.toast-alert button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ==========================================================================
   Admin Tabs Navigation System (Segmented Control with Glowing Icons)
   ========================================================================== */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.45rem;
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid var(--color-navy-border);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.725rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  position: relative;
  user-select: none;
}

.admin-tab-btn svg {
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-tab-btn:hover svg {
  color: #93c5fd;
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  color: #fff;
  background: var(--color-blue-primary);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(29, 97, 231, 0.4), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.admin-tab-btn.active svg {
  color: #fff;
}

.admin-tab-btn .nav-pill-badge {
  margin-left: 0.25rem;
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.admin-tab-btn.active .nav-pill-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.admin-tab-pane {
  animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
.mobile-sidebar-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-navy-border);
  border-radius: 8px;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 5px 10px;
}

@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  }
  .admin-main {
    margin-left: 0;
    width: 100%;
  }
  .mobile-sidebar-toggle {
    display: block;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-body {
    padding: 1.25rem;
  }
  .admin-topbar {
    padding: 0 1.25rem;
  }
  .serp-health-meters {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Interactive Service Feature Cards & Photo Gallery Manager
   ========================================================================== */

/* Feature Cards Editor */
.feature-edit-card {
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.feature-edit-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.feature-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-seq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.feature-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-navy-border);
  color: var(--color-text-sub);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.18s ease;
}

.btn-card-action:hover {
  background: rgba(29, 97, 231, 0.15);
  border-color: var(--color-blue-primary);
  color: #fff;
}

.btn-card-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
}

/* Feature Frontend Live Miniature Preview */
.feature-live-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.feature-preview-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d61e7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feature-preview-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #f59e0b;
}

.feature-preview-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.feature-preview-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Photo Gallery Cards Editor */
.gallery-edit-card {
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-edit-card:hover {
  border-color: rgba(29, 97, 231, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.gallery-edit-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .gallery-edit-layout {
    grid-template-columns: 1fr;
  }
}

.gallery-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gallery-img-preview-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-navy-border);
  background: rgba(8, 16, 36, 0.9);
  display: block;
}

.gallery-upload-btn-wrap {
  position: relative;
}

.gallery-upload-btn-wrap input[type="file"] {
  display: block;
  width: 100%;
  font-size: 0.775rem;
  color: var(--color-text-sub);
}

.gallery-seq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(29, 97, 231, 0.12);
  border: 1px solid rgba(29, 97, 231, 0.3);
  border-radius: var(--radius-full);
  color: #60a5fa;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ==========================================================================
   Services Manager Optimized Edit & SEO Action Buttons
   ========================================================================== */
.btn-action-edit-seo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--color-blue-primary) 0%, #174ebc 100%);
  color: #ffffff !important;
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(29, 97, 231, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
  user-select: none;
}

.btn-action-edit-seo svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-action-edit-seo:hover {
  background: linear-gradient(135deg, #256df2 0%, var(--color-blue-primary) 100%);
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 97, 231, 0.55);
  color: #ffffff !important;
}

.btn-action-edit-seo:hover svg:last-child {
  transform: translateX(2px);
}

.btn-action-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-navy-border);
  color: var(--color-text-sub) !important;
  text-decoration: none !important;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-action-view:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   ⭐ ULTRA-FRIENDLY & MODERN SEO CONTROL CENTER STYLES ⭐
   ========================================================================== */

/* SEO Executive Dashboard KPI Grid */
.seo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.seo-kpi-card {
  background: linear-gradient(145deg, rgba(8, 16, 36, 0.95) 0%, rgba(4, 9, 23, 0.9) 100%);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.seo-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.seo-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.seo-kpi-card.blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.seo-kpi-card.emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.seo-kpi-card.gold::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.seo-kpi-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.seo-kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seo-kpi-icon-wrap.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.seo-kpi-icon-wrap.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.seo-kpi-icon-wrap.gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.seo-kpi-icon-wrap.purple { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }

.seo-kpi-data {
  display: flex;
  flex-direction: column;
}

.seo-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  font-family: var(--font-sans);
}

.seo-kpi-label {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tab Navigation Ribbon */
.seo-tab-ribbon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.seo-tab-ribbon::-webkit-scrollbar {
  height: 5px;
}

.seo-tab-ribbon::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.seo-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(8, 16, 36, 0.8);
  border: 1px solid var(--color-navy-border);
  color: var(--color-text-sub);
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.seo-tab-btn:hover {
  background: rgba(14, 25, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.seo-tab-btn.active {
  background: linear-gradient(135deg, rgba(29, 97, 231, 0.25) 0%, rgba(8, 16, 36, 0.95) 100%);
  border-color: var(--color-blue-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(29, 97, 231, 0.35), inset 0 0 12px rgba(29, 97, 231, 0.2);
}

.seo-tab-icon {
  display: flex;
  align-items: center;
  color: var(--color-blue-primary);
}

.seo-tab-btn.active .seo-tab-icon {
  color: #60a5fa;
}

.seo-tab-slug {
  font-size: 0.725rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.07);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--color-text-muted);
}

.seo-tab-btn.active .seo-tab-slug {
  background: rgba(29, 97, 231, 0.3);
  color: #93c5fd;
}

.seo-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.seo-health-dot.optimal {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.seo-health-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.seo-health-dot.danger {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* Workspace Split Layout */
.seo-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .seo-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.seo-pane-content {
  display: none;
}

.seo-pane-content.active {
  display: block;
}

/* Sticky Preview Container */
.seo-preview-sticky {
  position: sticky;
  top: 1.5rem;
}

/* Preview Format Switcher */
.preview-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  background: rgba(5, 11, 27, 0.85);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-full);
  padding: 3px 4px;
}

.preview-mode-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.preview-mode-btn:hover {
  color: #fff;
}

.preview-mode-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Social Card Preview Render */
.social-share-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.social-img-banner {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #09132d 0%, #152754 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.social-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
}

.social-body-render {
  padding: 1rem 1.15rem;
  background: #0b1328;
}

.social-domain {
  font-size: 0.725rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.social-desc {
  color: #cbd5e1;
  font-size: 0.825rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SEO Recommendations Checklist Box */
.seo-checklist-card {
  background: rgba(6, 12, 28, 0.7);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-top: 1.25rem;
}

.seo-checklist-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.seo-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-text-sub);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seo-check-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.seo-check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.seo-check-icon.pass { color: #10b981; }
.seo-check-icon.warn { color: #f59e0b; }
.seo-check-icon.fail { color: #ef4444; }

/* Quick Action Chips & Helper Buttons */
.seo-helper-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-blue-text);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.seo-helper-btn:hover {
  background: rgba(29, 97, 231, 0.2);
  border-color: var(--color-blue-primary);
  color: #fff;
}


