@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Google Fonts ===== */

/* ===== CSS Variables - Brand Theme ===== */
:root {
  --brand-50: #f8f7f4;
  --brand-100: #f0ede6;
  --brand-200: #e0d9c8;
  --brand-300: #c9bfa3;
  --brand-400: #b0a07d;
  --brand-500: #9e8c62;
  --brand-600: #8b7852;
  --brand-700: #6b5c40;
  --brand-800: #4a3f2c;
  --brand-900: #2d261b;
  --brand-950: #1a1510;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --navbar-height: 60px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy aliases for page compatibility */
  --text-0: var(--slate-800);
  --text-1: var(--slate-600);
  --text-2: var(--slate-400);
  --text-3: var(--slate-300);
  --line: var(--slate-200);
  --line-strong: var(--slate-300);
  --accent: var(--brand-500);
  --accent-2: var(--brand-400);
  --accent-3: var(--brand-700);
  --ok: #10b981;
  --warn: #f59e0b;
}

/* ===== Global Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: var(--slate-800);
  overflow-x: hidden;
}

#root {
  background: #f5f6f8;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

/* ===== Scroll Reveal (landing page only) ===== */
.scroll-reveal,
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.scroll-reveal.revealed,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shimmer {
  0% {
    background-position: -300px 0;
  }
  100% {
    background-position: 300px 0;
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(158, 140, 98, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(158, 140, 98, 0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.anim-fade-up {
  animation: fadeInUp 0.5s ease-out forwards;
}
.anim-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}
.anim-slide-left {
  animation: slideInLeft 0.4s ease-out forwards;
}
.anim-slide-right {
  animation: slideInRight 0.4s ease-out forwards;
}
.anim-scale-in {
  animation: scaleIn 0.3s ease-out forwards;
}
.anim-float {
  animation: float 3s ease-in-out infinite;
}

.anim-delay-1 {
  animation-delay: 0.05s;
}
.anim-delay-2 {
  animation-delay: 0.1s;
}
.anim-delay-3 {
  animation-delay: 0.15s;
}
.anim-delay-4 {
  animation-delay: 0.2s;
}
.anim-delay-5 {
  animation-delay: 0.25s;
}

.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f0f0f0 50%, #e5e7eb 75%);
  background-size: 300px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c1c5cd;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a5ad;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--slate-900);
  color: #fff;
  z-index: 1040;
  transition:
    transform var(--transition),
    width var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--navbar-height);
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: relative;
}

.sidebar-header .btn-icon {
  position: absolute;
  right: 8px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.sidebar-logo img {
  height: 28px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: all 0.2s;
}
.collapsed .sidebar-logo img {
  height: 22px;
  max-width: 44px;
  opacity: 0.7;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    width 0.2s;
  overflow: hidden;
}

.collapsed .sidebar-logo-text {
  opacity: 0;
  width: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

/* Collapsible sidebar groups */
.sidebar-group {
  margin-bottom: 0;
}
.sidebar-group-toggle {
  /* Inherits sidebar-nav-item styling — just add chevron behavior */
}
.sidebar-group-chevron {
  flex-shrink: 0;
}
.sidebar-group-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.sidebar-group-items.expanded {
  max-height: 600px;
}

/* Sub-items get slight left padding */
.sidebar-sub-item {
  padding-left: 44px !important;
}
.collapsed .sidebar-sub-item {
  padding-left: 12px !important;
}

/* When collapsed, always show all items */
.collapsed .sidebar-group-items {
  max-height: none;
}
.collapsed .sidebar-group-chevron {
  display: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-400);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav-item.active {
  background: rgba(158, 140, 98, 0.15);
  color: var(--brand-400);
  font-weight: 600;
}

.sidebar-nav-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sidebar-nav-label {
  transition: opacity 0.2s;
  overflow: hidden;
}
.collapsed .sidebar-nav-label {
  opacity: 0;
  width: 0;
}

.sidebar-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  margin-left: auto;
  animation: scaleIn 0.3s ease-out forwards;
}
.collapsed .sidebar-nav-dot {
  display: none;
}

/* Sidebar collapse toggle */
.sidebar-toggle {
  position: absolute;
  right: -12px;
  top: 72px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slate-700);
  border: 2px solid var(--slate-900);
  color: var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.sidebar-toggle:hover {
  background: var(--slate-600);
  color: #fff;
}
.sidebar-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}
.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

/* Sidebar user footer */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  flex-shrink: 0;
}

.sidebar-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-user-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-info {
  text-align: left;
  min-width: 0;
  transition: opacity 0.2s;
  overflow: hidden;
}
.collapsed .sidebar-user-info {
  opacity: 0;
  width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--slate-400);
  text-transform: capitalize;
}

.sidebar-user-chevron {
  margin-left: auto;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sidebar-user-chevron.open {
  transform: rotate(180deg);
}
.collapsed .sidebar-user-chevron {
  display: none;
}

/* Sidebar dropdown */
.sidebar-dropdown {
  background: var(--slate-800);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  overflow: hidden;
  transition:
    max-height 0.25s,
    opacity 0.25s,
    margin 0.25s;
}
.sidebar-dropdown.closed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.sidebar-dropdown.open {
  max-height: 120px;
  opacity: 1;
}

.sidebar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--slate-300);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.sidebar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-dropdown-item.danger {
  color: #f87171;
}
.sidebar-dropdown-item.danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1035;
  animation: fadeIn 0.25s ease-out forwards;
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar.collapsed {
    width: var(--sidebar-width);
  }
  .collapsed .sidebar-logo-text,
  .collapsed .sidebar-nav-label,
  .collapsed .sidebar-user-info,
  .collapsed .sidebar-user-chevron {
    opacity: 1;
    width: auto;
  }
  .collapsed .sidebar-nav-dot {
    display: block;
  }
  .sidebar-toggle {
    display: none;
  }
}

/* ===== Navbar ===== */
.navbar-dashboard {
  position: sticky;
  top: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1030;
  gap: 12px;
}

.navbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-100);
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s;
  max-width: 320px;
  width: 100%;
}
.navbar-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(158, 140, 98, 0.2);
}
.navbar-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
  color: var(--slate-700);
}
.navbar-search input::placeholder {
  color: var(--slate-400);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.navbar-icon-btn:hover {
  background: var(--slate-100);
  color: var(--slate-600);
}

.navbar-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulseGlow 2s infinite;
}

.navbar-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
@media (max-width: 991px) {
  .navbar-hamburger {
    display: flex;
  }
}

/* ===== Main Content Area ===== */
.main-content {
  transition: margin-left var(--transition);
  min-height: 100vh;
  isolation: auto;
}
.main-content.expanded {
  margin-left: var(--sidebar-collapsed);
}
.main-content.full {
  margin-left: var(--sidebar-width);
}

@media (max-width: 991px) {
  .main-content.expanded,
  .main-content.full {
    margin-left: 0;
  }
}

.main-content-inner {
  padding: 20px 24px;
}

@media (max-width: 576px) {
  .main-content-inner {
    padding: 12px;
  }
}

/* ===== Dashboard Cards ===== */
.stat-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}
.stat-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
}
.stat-card .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 2px;
}

.icon-blue {
  background: #eff6ff;
  color: #3b82f6;
}
.icon-amber {
  background: #fffbeb;
  color: #f59e0b;
}
.icon-emerald {
  background: #ecfdf5;
  color: #10b981;
}
.icon-purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

/* ===== Content Card ===== */
.content-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
}
.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
}
.content-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
}
.content-card-body {
  padding: 16px 20px;
}
.content-card-body.zero-padding {
  padding: 0;
}

/* ===== Ticket List Item ===== */
.ticket-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--slate-100);
  cursor: pointer;
  transition: background 0.15s;
  gap: 12px;
}
.ticket-list-item:last-child {
  border-bottom: none;
}
.ticket-list-item:hover {
  background: var(--slate-50);
}

.ticket-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-meta {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 2px;
}

/* ===== Badges ===== */
.badge-brand {
  background: rgba(158, 140, 98, 0.1);
  color: var(--brand-700);
}
.badge-red {
  background: #fef2f2;
  color: #dc2626;
}
.badge-amber {
  background: #fffbeb;
  color: #d97706;
}
.badge-blue {
  background: #eff6ff;
  color: #2563eb;
}
.badge-emerald {
  background: #ecfdf5;
  color: #059669;
}
.badge-purple {
  background: #f5f3ff;
  color: #7c3aed;
}
.badge-gray {
  background: #f3f4f6;
  color: #6b7280;
}

/* ===== Progress Bar ===== */
.status-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--slate-100);
  overflow: hidden;
}
.status-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ===== Employee Card ===== */
.employee-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
}
.employee-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--slate-300);
}
.employee-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--slate-700), var(--slate-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.employee-skill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--slate-100);
  color: var(--slate-600);
  margin: 2px;
}

/* ===== Status Dot ===== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online {
  background: #10b981;
}
.status-dot.offline {
  background: #d1d5db;
}

/* ===== Form Controls ===== */
.form-control-custom {
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s;
  width: 100%;
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(158, 140, 98, 0.12);
}

.form-label-custom {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 4px;
  display: block;
}

/* ===== Buttons ===== */
.btn-brand {
  background: var(--brand-500);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-brand:hover {
  background: var(--brand-600);
  box-shadow: 0 4px 12px rgba(139, 120, 82, 0.3);
}
.btn-brand:active {
  transform: scale(0.97);
}

.btn-dark {
  background: var(--slate-900);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-dark:hover {
  background: var(--slate-800);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.btn-dark:active {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

/* ===== Modal ===== */
.modal-custom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out forwards;
}
.modal-custom {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: scaleIn 0.25s ease-out forwards;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== Landing Page ===== */
.landing-hero {
  padding: 120px 0 80px;
  background: #fff;
}
.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}
.landing-hero .highlight {
  color: var(--brand-600);
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
}

.landing-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  z-index: 1030;
  height: 64px;
}

.landing-logo-img {
  height: 42px;
  width: auto;
}

@media (min-width: 768px) {
  .landing-logo-img {
    height: 30px;
  }
}

/* Hide desktop nav links on mobile */
.landing-nav .desktop-nav-links {
  display: none;
}
@media (min-width: 768px) {
  .landing-nav .desktop-nav-links {
    display: flex !important;
  }
}
/* Cookie banner mobile */
@media (max-width: 767px) {
  .cookie-banner-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .cookie-banner-btns {
    width: 100% !important;
    justify-content: flex-end !important;
  }
  .landing-hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  .landing-hero h1 {
    font-size: 1.8rem !important;
  }
}

/* Offset anchor scroll for fixed navbar */
section[id] {
  scroll-margin-top: 60px;
}

.landing-service-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s;
}
.landing-service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* ===== Login Page ===== */
.login-split {
  min-height: 100vh;
  display: flex;
}
.login-brand-panel {
  flex: 1;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 24px;
}

.login-glow-1 {
  position: absolute;
  top: 80px;
  right: 80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(158, 140, 98, 0.08);
  filter: blur(60px);
  animation: pulseGlow 4s infinite;
}
.login-glow-2 {
  position: absolute;
  bottom: 80px;
  left: 80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(158, 140, 98, 0.05);
  filter: blur(60px);
}

@media (max-width: 991px) {
  .login-split {
    flex-direction: column;
  }
  .login-brand-panel {
    display: none;
  }
}

/* ── Page Layout Compatibility ── */
.main-panel {
  animation: fadeInUp 0.4s ease-out forwards;
}
.panel-header {
  margin-bottom: 1.25rem;
}
.panel-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin: 0 0 0.25rem;
}
.auth-copy {
  color: var(--slate-500);
  margin-top: 0.25rem;
  line-height: 1.55;
  font-size: 0.85rem;
}
.subcopy {
  color: var(--slate-400);
  font-size: 0.75rem;
  line-height: 1.5;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(158, 140, 98, 0.1);
  color: var(--brand-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.emptyState {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-400);
}
.emptyState h3 {
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.formField {
  display: grid;
  gap: 0.35rem;
}
.formField label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-600);
}
.formField input,
.formField select,
.formField textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--slate-300);
  background: #fff;
  color: var(--slate-700);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.formField input:focus,
.formField select:focus,
.formField textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(158, 140, 98, 0.12);
}

/* Button compat aliases */
.btnPrimary {
  background: var(--brand-500);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btnPrimary:hover {
  background: var(--brand-600);
  box-shadow: 0 4px 12px rgba(139, 120, 82, 0.3);
}
.btnPrimary:active {
  transform: scale(0.97);
}

.btnOutline {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btnOutline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btnSm {
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btnSm:hover {
  background: var(--slate-200);
  color: var(--slate-700);
}

.btnDanger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btnDanger:hover {
  background: #fee2e2;
}

/* ── Shared Modal Styles ── */
.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease-out forwards;
}
.modalContent {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.25s ease-out forwards;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--slate-100);
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0;
}
.modal-close {
  border: 0;
  background: transparent;
  color: var(--slate-400);
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  line-height: 1;
}
.modal-close:hover {
  color: var(--slate-700);
}
.modal-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-100);
  flex-shrink: 0;
}

/* Shared modal form styles */
.modal-body .formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.modal-body .formGrid .fullWidth {
  grid-column: 1 / -1;
}
.modal-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--slate-100);
}
.modal-body .st-section {
  margin-bottom: 0.5rem;
}
.modal-body .st-subtotal {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate-700);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--slate-100);
}

/* ── Dashboard Section Renderer (shared panels) ── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.panel-card.span-2 {
  grid-column: span 2;
}
.panel-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: all 0.2s;
}
.metric-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.metric-card h3 {
  font-size: 0.72rem;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
}
.metric-card p {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 0.15rem;
}
.metric-card small {
  font-size: 0.7rem;
  color: var(--slate-400);
}

/* Summary cards (ar-card) */
.ar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ar-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: all 0.2s;
}
.ar-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.ar-card p {
  font-size: 0.72rem;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.ar-card strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  display: block;
  margin-top: 0.25rem;
}
.ar-card.success strong {
  color: #059669;
}

/* Quick tiles */
.quick-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.quick-tile {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
}
.quick-tile strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  display: block;
}
.quick-tile p {
  font-size: 0.68rem;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.15rem 0 0;
}

/* Progress panel */
.big-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0.25rem 0;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--slate-500);
  margin-bottom: 0.35rem;
}
.progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--slate-100);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--brand-500);
  transition: width 0.6s ease;
}

/* Line list */
.line-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.line-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.82rem;
}
.line-list li:last-child {
  border-bottom: none;
}
.line-list li span {
  color: var(--slate-500);
}
.line-list li strong {
  color: var(--slate-800);
}

/* Ops grid */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.ops-label {
  font-size: 0.7rem;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.ops-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0.15rem 0 0;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ar-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .panel-card.span-2 {
    grid-column: span 1;
  }
}
