/* XELALX - Main Stylesheet */
:root {
  --navy:    #0a1628;
  --navy2:   #0d1f3c;
  --navy3:   #1a3a5c;
  --accent:  #e8a020;
  --accent2: #f5b835;
  --blue:    #2a7adc;
  --white:   #ffffff;
  --gray:    #8a9ab0;
  --light:   #f0f4fa;
  --border:  #1e3a58;
  --text:    #d0dce8;
  --danger:  #e05050;
  --success: #3cb572;
  --card-bg: rgba(13,31,60,0.85);
  --radius:  6px;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }

/* ── NAVIGATION ────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  transition: background 0.4s, border-color 0.4s;
}
.navbar.scrolled,
.navbar.navbar-solid {
  background: rgba(10,22,40,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.4rem; font-weight: 800; color: var(--white);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--accent); }
.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--navy);
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--navy3); color: var(--white);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent2) !important; }


/* ── NAVBAR LOGOS ─────────────────────────────────── */
.nav-logos {
  display: flex; align-items: center; gap: 16px;
}
.nav-partner-logo img {
  display: block; height: 32px; width: auto; max-width: 120px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-partner-logo:hover img { opacity: 1; }
.nav-logo-divider {
  width: 1px; height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .nav-logos { gap: 10px; }
  .nav-partner-logo img { height: 26px; max-width: 90px; }
  .nav-logo-divider { height: 22px; }
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top,  rgba(8,18,32,0.92) 0%, rgba(8,18,32,0.55) 45%, rgba(8,18,32,0.15) 100%),
    linear-gradient(to right, rgba(8,18,32,0.6) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800; line-height: 1.08;
  color: var(--white); margin-bottom: 24px;
  letter-spacing: -0.02em;
  max-width: 780px;
}
.hero h1 .highlight { color: var(--accent); }
.hero-desc {
  font-size: 1.08rem; color: rgba(208,220,232,0.85);
  max-width: 560px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent2); color: var(--navy); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-hero { padding: 16px 40px; font-size: 1rem; letter-spacing: 0.02em; }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: var(--white); border-color: rgba(255,255,255,0.4); }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
}
.hero-stat { padding: 0 40px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-num {
  font-size: 2rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.72rem; color: rgba(208,220,232,0.55);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}
.hero-stat-sep {
  width: 1px; height: 40px; background: rgba(255,255,255,0.15);
  margin-right: 40px;
}

.hero-scroll-hint {
  position: absolute; bottom: 32px; right: 60px; z-index: 3;
}
.hero-scroll-hint span {
  display: block; width: 1px; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto;
  animation: scrollline 1.8s ease-in-out infinite;
}
@keyframes scrollline {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.contact-bar {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.93rem; color: var(--text);
}
.feature-list .icon {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}
.phone-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(42,122,220,0.1); border: 1px solid rgba(42,122,220,0.25);
  padding: 10px 16px; border-radius: var(--radius);
}
.phone-badge .icon { font-size: 1.2rem; }
.phone-badge .num { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.phone-badge .lbl { font-size: 0.75rem; color: var(--gray); }

/* ── SECTIONS ──────────────────────────────────────── */
.section {
  padding: 90px 24px;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--navy2); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800;
  color: var(--white); margin-bottom: 16px;
}
.section-desc { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* ── CARDS GRID ────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: border-color 0.3s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 10px; font-weight: 700; }
.card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ── NEWS ─────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.news-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card-body { padding: 24px; }
.news-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: rgba(232,160,32,0.1);
  padding: 3px 10px; border-radius: 50px; margin-bottom: 12px;
}
.news-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 10px; font-weight: 700; line-height: 1.4; }
.news-card p { font-size: 0.875rem; color: var(--gray); margin-bottom: 16px; }
.news-meta { font-size: 0.78rem; color: var(--gray); display: flex; gap: 12px; }

/* ── CONTACT SECTION ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.contact-info p { color: var(--gray); margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item .ci-label { font-size: 0.78rem; color: var(--gray); }
.contact-item .ci-value { font-size: 1rem; color: var(--white); font-weight: 600; }

.chat-trigger-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  text-align: center;
}
.chat-trigger-box h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 12px; font-weight: 700; }
.chat-trigger-box p { color: var(--gray); margin-bottom: 24px; font-size: 0.92rem; }
.online-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--success); margin-bottom: 20px;
}
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: #070f1d; border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--gray); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--gray);
}

/* ── CHAT WIDGET ─────────────────────────────────── */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
}
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(232,160,32,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(232,160,32,0.5); }
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.chat-window {
  position: absolute; bottom: 72px; right: 0;
  width: 360px; background: var(--navy2);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); display: none; flex-direction: column;
  overflow: hidden;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--navy3); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; color: var(--navy); font-weight: 700;
}
.chat-header-name { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.chat-header-status { font-size: 0.75rem; color: var(--success); }
.chat-close {
  background: none; border: none; color: var(--gray);
  cursor: pointer; font-size: 1.2rem; padding: 4px;
}
#chatBody {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: 340px; min-height: 200px;
  background: #0f1923;
}
.chat-msg { max-width: 78%; display: flex; flex-direction: column; margin-bottom: 2px; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.admin { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 10px 14px; font-size: 0.9rem; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}
.chat-msg.user .chat-bubble {
  background: #0a84ff; color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.chat-msg.admin .chat-bubble {
  background: #1e2d40; color: var(--text);
  border-radius: 18px 18px 18px 4px;
}
.chat-time { font-size: 0.68rem; color: var(--gray); margin-top: 3px; padding: 0 4px; }
.chat-msg.user .chat-time { text-align: right; }
.chat-form {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--navy); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  color: var(--white); font-size: 0.875rem; resize: none;
  overflow-y: auto; max-height: 120px; line-height: 1.5;
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  background: var(--accent); border: none; border-radius: var(--radius);
  width: 42px; height: 42px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: var(--navy); font-size: 1rem;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--accent2); }
.chat-video-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; flex-shrink: 0;
  transition: background 0.2s;
}
.chat-video-btn:hover { background: var(--navy3); }
.chat-start-form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-start-form h3 { font-size: 1rem; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.chat-start-form p { font-size: 0.83rem; color: var(--gray); }
.chat-start-form input {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  color: var(--white); font-size: 0.875rem; width: 100%;
}
.chat-start-form input:focus { outline: none; border-color: var(--accent); }

/* ── FORMS ────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.form-control {
  width: 100%; background: var(--navy); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--white); font-size: 0.95rem; transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.form-control::placeholder { color: var(--gray); }

/* ── ALERTS ───────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.9rem; margin-bottom: 20px;
}
.alert-danger { background: rgba(224,80,80,0.1); border: 1px solid rgba(224,80,80,0.3); color: #ff8080; }
.alert-success { background: rgba(60,181,114,0.1); border: 1px solid rgba(60,181,114,0.3); color: #5ce09a; }
.alert-info { background: rgba(42,122,220,0.1); border: 1px solid rgba(42,122,220,0.3); color: #80b4ff; }

/* ── LOGIN PAGE ──────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--navy);
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}
.login-box {
  width: 100%; max-width: 420px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; backdrop-filter: blur(12px);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .name { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.login-logo .name span { color: var(--accent); }
.login-logo .sub { font-size: 0.82rem; color: var(--gray); margin-top: 4px; }

/* ── PORTAL ─────────────────────────────────────── */
.portal-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 100vh; padding-top: 68px;
}
.sidebar {
  background: var(--navy2); border-right: 1px solid var(--border);
  padding: 24px 0; position: sticky; top: 68px; height: calc(100vh - 68px);
  overflow-y: auto;
}
.sidebar-section { padding: 0 16px 20px; }
.sidebar-label {
  font-size: 0.7rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0 8px; margin-bottom: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 0.9rem; transition: background 0.2s, color 0.2s;
  text-decoration: none; margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--navy3); color: var(--white);
}
.sidebar-link.active { border-left: 3px solid var(--accent); }
.sidebar-icon { width: 20px; text-align: center; }
.portal-main { padding: 32px; background: var(--navy); }

/* Mobile portal nav */
.portal-mobile-nav { display: none; }

/* Hamburger button (portal only) */
.portal-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.portal-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Drawer overlay */
.portal-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 299;
}
.portal-drawer-overlay.open { display: block; }

/* Drawer */
.portal-drawer {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100dvh;
  background: var(--navy2);
  border-left: 1px solid var(--border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right .25s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.portal-drawer.open { right: 0; }

.portal-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-drawer-header .user-info { font-size: .9rem; color: var(--white); font-weight: 600; }
.portal-drawer-header .user-company { font-size: .75rem; color: var(--gray); margin-top: 2px; }
.portal-drawer-close {
  background: none; border: none; color: var(--gray);
  font-size: 1.3rem; cursor: pointer; padding: 4px;
}

.portal-drawer-links {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.portal-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.portal-drawer-links a:hover { background: rgba(255,255,255,.05); }
.portal-drawer-links a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(10,132,255,.08);
}
.portal-drawer-links .drawer-icon { width: 22px; text-align: center; font-size: 1.1rem; }

.portal-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.portal-drawer-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  text-decoration: none;
  font-size: .9rem;
  padding: 8px 0;
}

@media (max-width: 768px) {
  /* Portal layout */
  .portal-layout { padding-top: 68px; }
  .portal-hamburger { display: flex; }
  .portal-main { padding: 16px; }
  .sidebar { display: none; }
}
.portal-header { margin-bottom: 32px; }
.portal-header h1 { font-size: 1.7rem; font-weight: 800; color: var(--white); }
.portal-header p { color: var(--gray); font-size: 0.92rem; margin-top: 4px; }

.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.widget {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.widget-label { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.widget-value { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.widget-sub { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { padding: 0 32px 60px; }
  .hero-scroll-hint { right: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
  /* Nav — dölj på portal (drawer används), visa scrollbart på startsidan */
  .navbar-solid .nav-links { display: none; }
  .nav-links {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    flex-wrap: nowrap;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 8px 12px; font-size: 0.82rem; white-space: nowrap; }

  /* Hero */
  .hero { height: auto; min-height: 100svh; }
  .hero-content { padding: 100px 20px 48px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-desc { font-size: .95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-hero { padding: 14px 24px; }
  .hero-stats { gap: 0; flex-wrap: wrap; padding-top: 24px; }
  .hero-stat { padding: 0 20px 0 0; }
  .hero-stat-sep { margin-right: 20px; height: 30px; }
  .hero-scroll-hint { display: none; }

  /* Portal */
  .sidebar { display: none; }
  .portal-main { padding: 20px 16px; }
  .portal-header h1 { font-size: 1.4rem; }
  .widget-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Cards grid */
  .cards-grid { grid-template-columns: 1fr !important; }
  .two-col-grid { grid-template-columns: 1fr !important; }

  /* AI felsökning */
  .rag-search-row { flex-direction: column !important; align-items: stretch !important; }
  .rag-search-row > div { width: 100% !important; }
  .rag-search-row button { width: 100% !important; height: auto !important; padding: 14px !important; }

  /* Chat widget — fullskärm på mobil */
  .chat-widget { bottom: 16px; right: 16px; left: auto; }
  .chat-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100dvh !important; /* dvh krymper med tangentbordet */
    border-radius: 0 !important;
  }
  .chat-messages { max-height: none !important; flex: 1 !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Login */
  .login-box { padding: 28px 20px; }
}
