/* ==========================================================================
   LEGAL 365 — DESIGN SYSTEM & STYLESHEET
   Online Legal College & Legal Services Marketplace (Laravel)
   ========================================================================== */

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

:root {
  --primary-navy: #0b1329;
  --navy-800: #111c3a;
  --navy-700: #1b2a4a;
  --navy-600: #253761;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --gold-light: #fef3c7;
  --gold-border: #fcd34d;
  --emerald-green: #059669;
  --emerald-light: #d1fae5;
  --crimson-red: #dc2626;
  --red-light: #fee2e2;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cinzel', serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.3);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- Role Switcher Header Bar (Testing Utility) --- */
.role-switcher-bar {
  background: linear-gradient(90deg, #0b1329 0%, #1e1b4b 100%);
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-gold);
  z-index: 1000;
  position: sticky;
  top: 0;
}

.role-badge-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.25rem 0.75rem;
  border-radius: 20rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-badge-btn:hover, .role-badge-btn.active {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

/* --- Main Public Header & Navigation --- */
.main-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0 !important;
  z-index: 9999;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-navy), var(--navy-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(11, 19, 41, 0.25);
  border: 1px solid var(--gold-border);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

/* Dropdown Menu */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.dropdown-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.2s;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--slate-100);
  color: var(--accent-gold);
  padding-left: 1.5rem;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -5px rgba(217, 119, 6, 0.45);
}

.btn-navy {
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-600);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-navy:hover {
  background: var(--navy-800);
  border-color: var(--accent-gold);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--primary-navy);
  color: #ffffff;
}

/* --- Hero Banner Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.92) 0%, rgba(15, 23, 42, 0.88) 60%, rgba(30, 27, 75, 0.94) 100%),
              var(--hero-bg-image, url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80')) center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.25) 0%, transparent 45%),
                    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-border);
  padding: 0.35rem 1rem;
  border-radius: 20rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* --- Sub-Page Hero Banner System --- */
.page-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.95) 0%, rgba(15, 23, 42, 0.92) 50%, rgba(26, 23, 68, 0.95) 100%),
              var(--hero-bg-image, url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80')) center/cover no-repeat !important;
  color: #ffffff !important;
  padding: 4.5rem 1.5rem 5rem !important;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-gold);
}

.page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(217, 119, 6, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 25% 80%, rgba(30, 58, 138, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.25) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  padding: 0.4rem 1.25rem;
  border-radius: 20rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.page-hero-desc {
  font-size: 0.95rem;
  color: #cbd5e1 !important;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Navy Color Utilities */
.bg-navy-950 { background-color: #060a17 !important; }
.bg-navy-900 { background-color: #0b1329 !important; }
.bg-navy-800 { background-color: #111c3a !important; }
.text-navy-950 { color: #060a17 !important; }
.text-navy-900 { color: #0b1329 !important; }
.text-navy-800 { color: #111c3a !important; }

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-dual-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dual-box-item {
  background: rgba(11, 19, 41, 0.6);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.dual-box-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.dual-box-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.dual-box-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.dual-box-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* --- Stats Strip --- */
.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.75rem 2rem;
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  border-right: 1px solid var(--slate-200);
}
.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  font-family: var(--font-heading);
}

.stat-number span {
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
}

/* --- Section Container Layouts --- */
.section-wrapper {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
}

/* --- Course Cards & Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Course Cards Slider --- */
.courses-slider-wrapper {
  position: relative;
  width: 100%;
}

.courses-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: none;
}

.courses-slider-track::-webkit-scrollbar {
  display: none;
}

.courses-slider-item {
  flex: 0 0 330px;
  min-width: 330px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .courses-slider-item {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.slider-nav-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

/* --- Agent Banner Card --- */
.agent-banner-card {
  background: #0b1329 !important;
  background-image: linear-gradient(135deg, #0b1329 0%, #0f172a 60%, #1e1b4b 100%) !important;
  color: #ffffff !important;
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(217, 119, 6, 0.5);
  box-shadow: 0 20px 30px -10px rgba(11, 19, 41, 0.5);
}

.course-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-border);
}

.course-header {
  background: linear-gradient(135deg, var(--primary-navy), var(--navy-800));
  color: #fff;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.course-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.course-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fee-breakup-mini {
  background: var(--slate-50);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--slate-200);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.fee-row.total {
  border-top: 1px solid var(--slate-300);
  padding-top: 0.35rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.upfront-highlight {
  background: var(--gold-light);
  color: #92400e;
  border: 1px solid var(--gold-border);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

/* --- Service Cards & Marketplace --- */
.service-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--slate-100);
  color: var(--primary-navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-navy);
  color: var(--accent-gold);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-100);
  padding-top: 1rem;
}

.service-price {
  font-size: 0.85rem;
  color: var(--slate-600);
}

.service-price strong {
  font-size: 1.1rem;
  color: var(--primary-navy);
  display: block;
}

/* --- Ticket Status Pipeline --- */
.status-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.status-pipeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--slate-200);
  z-index: 1;
}

.pipeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--slate-300);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pipeline-step.active .step-icon {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.pipeline-step.completed .step-icon {
  border-color: var(--emerald-green);
  background: var(--emerald-green);
  color: #fff;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-600);
}

/* --- Status Pills --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-submitted { background: #e0f2fe; color: #0369a1; }
.status-review { background: #fef3c7; color: #92400e; }
.status-assigned { background: #f3e8ff; color: #6b21a8; }
.status-progress { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* --- Dashboards Layout --- */
.dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  background: var(--primary-navy);
  color: #cbd5e1;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--navy-600);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99998;
}

@media (max-width: 1023px) {
  .dashboard-container {
    display: block;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

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

  .sidebar-overlay.active {
    display: block;
  }

  .dashboard-main {
    padding: 1rem !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  .custom-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
  }

  .custom-table {
    width: 100%;
    min-width: 650px;
  }
}

.sidebar-header {
  padding: 0 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.user-info h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.user-info p {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-item:hover, .sidebar-item.active {
  background: rgba(217, 119, 6, 0.15);
  color: var(--gold-border);
}

.dashboard-main {
  background: var(--slate-100);
  padding: 2rem;
}

/* Dashboard Cards */
.dash-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-widget {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-widget-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bg-gold-light { background: var(--gold-light); color: var(--accent-gold); }
.bg-blue-light { background: #dbeafe; color: #1d4ed8; }
.bg-green-light { background: var(--emerald-light); color: var(--emerald-green); }
.bg-purple-light { background: #f3e8ff; color: #7e22ce; }

/* Tables */
.custom-table-container {
  overflow-x: auto;
}

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

.custom-table th {
  background: var(--slate-50);
  color: var(--slate-700);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--slate-200);
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.custom-table tr:hover {
  background: var(--slate-50);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 41, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background: var(--primary-navy);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.75rem;
}

/* Form inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Footer */
.main-footer {
  background: var(--primary-navy);
  color: #cbd5e1;
  padding: 4rem 1.5rem 2rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.main-footer .brand-text h1 {
  color: #ffffff;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .hero-section {
    padding: 3rem 1rem 4.5rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.75rem);
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.95rem;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-card-stack {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-dual-box {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dual-box-item {
    padding: 1.25rem 1rem;
    width: 100%;
  }

  .hero-glass-card {
    padding: 1.25rem;
  }

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

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