:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-primary: #eab308;
  --accent-hover: #ca8a04;
  --accent-subtle: rgba(234, 179, 8, 0.12);
  --border-color: #e2e8f0;
  --primary-navy: #0f172a;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

/* Typography & Brand */
.brand-yellow {
  color: var(--accent-primary) !important;
}
.bg-brand-yellow {
  background-color: var(--accent-primary) !important;
  color: #0f172a !important;
}
.btn-brand-yellow {
  background-color: var(--accent-primary);
  color: #0f172a;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}
.btn-brand-yellow:hover {
  background-color: var(--accent-hover);
  color: #0f172a;
  transform: translateY(-1px);
}

/* Card Styles */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-custom:hover {
  box-shadow: var(--shadow-md);
}

/* Public Marketing Header */
.public-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
}
.public-nav-link {
  color: #334155;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.public-nav-link:hover, .public-nav-link.active {
  color: var(--accent-hover);
}

/* Public Hero */
.hero-section {
  padding: 5rem 1.5rem;
  background: radial-gradient(circle at top, rgba(234, 179, 8, 0.08), transparent 70%);
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}
.hero-title span {
  color: var(--accent-primary);
}

/* Portal Layout */
.portal-wrapper {
  display: flex;
  min-height: 100vh;
}
.portal-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s;
}
.portal-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: var(--bg-main);
  min-height: 100vh;
}
@media (max-width: 992px) {
  .portal-sidebar {
    transform: translateX(-100%);
  }
  .portal-sidebar.show {
    transform: translateX(0);
  }
  .portal-content {
    margin-left: 0;
    padding: 1rem;
  }
}

.sidebar-brand {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-nav {
  list-style: none;
  padding: 1rem 0.75rem;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  color: #ffffff;
  background: var(--bg-sidebar-hover);
}
.sidebar-link.active {
  background: rgba(234, 179, 8, 0.15);
  color: var(--accent-primary);
}

/* Stat Cards */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Badge helpers */
.badge-active {
  background-color: #dcfce7;
  color: #166534;
}
.badge-expired {
  background-color: #fee2e2;
  color: #991b1b;
}
.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}
