:root {
  --primary: #0f2d59;
  --primary-dark: #0a1f3d;
  --primary-light: #1e457e;
  --secondary: #d97706;
  --secondary-light: #f59e0b;
  --accent: #059669;
  --accent-light: #10b981;
  --dark: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 45, 89, 0.06);
  --shadow: 0 10px 25px -5px rgba(15, 45, 89, 0.1), 0 8px 10px -6px rgba(15, 45, 89, 0.05);
  --shadow-lg: 0 20px 35px -5px rgba(15, 45, 89, 0.15), 0 10px 15px -5px rgba(15, 45, 89, 0.08);
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Demo Mode Banner */
.demo-mode-banner {
  background: linear-gradient(90deg, #0a1f3d 0%, #0f2d59 50%, #1e3a8a 100%);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--secondary);
}
.demo-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-badge-tag {
  background: rgba(217, 119, 6, 0.25);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-info i {
  color: var(--secondary-light);
}

/* Navbar */
.navbar {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo-shield {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(15, 45, 89, 0.22);
  border: 2px solid #fef3c7;
  flex-shrink: 0;
}
.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  white-space: nowrap;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 45, 89, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 45, 89, 0.35);
  color: #ffffff;
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  color: #ffffff;
}
.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.78rem;
  border-radius: 8px;
}

/* Page Hero / Breadcrumb Bar */
.portal-page-header {
  background: linear-gradient(135deg, #0a1f3d 0%, #0f2d59 70%, #1e3a8a 100%);
  color: #ffffff;
  padding: 40px 0 50px;
  position: relative;
  overflow: hidden;
}
.portal-page-header::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--secondary-light);
  font-weight: 600;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.portal-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.portal-title-wrap h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #ffffff;
}
.portal-title-wrap p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 650px;
}
.portal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.badge-cat-a { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-cat-b { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-cat-c { background: rgba(245, 158, 11, 0.2); color: #fef08a; border: 1px solid rgba(245, 158, 11, 0.4); }

/* Main Content Surface */
.portal-main-section {
  padding: 50px 0 80px;
}
.portal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

/* Callout Box */
.demo-callout-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: #1e3a8a;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.demo-callout-box i {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 2px;
}

/* Portal Navigation Footer */
.portal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 25px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Standard Footer */
footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 50px 0 25px;
  font-size: 0.85rem;
  border-top: 3px solid var(--secondary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.8rem;
}

/* Toast */
.demo-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-toast.show {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .portal-title-wrap h1 { font-size: 1.7rem; }
  .portal-card { padding: 22px; }
  .brand-text h1 { font-size: 1.15rem; }
  .brand-text span { font-size: 0.65rem; }
  .top-info { font-size: 0.75rem; }
}
