/* MY SLH — Bluvense Design System v2 */
:root {
  --bg-deep: #060d18;
  --navy: #0a1628;
  --navy-light: #111d32;
  --navy-mid: #1a3050;
  --navy-card: #0f1a2e;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-glow: rgba(201, 162, 39, 0.45);
  --gold-dim: rgba(201, 162, 39, 0.12);
  --white: #fff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 4px 20px rgba(6, 13, 24, 0.08);
  --shadow-md: 0 8px 32px rgba(6, 13, 24, 0.12);
  --shadow-lg: 0 20px 60px rgba(6, 13, 24, 0.18);
  --shadow-gold: 0 8px 32px rgba(201, 162, 39, 0.25);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 76px;
  --sidebar-w: 272px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--navy);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.text-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #a67c00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold { color: var(--gold); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .hero-orb, .hero-mesh, .chatbot-pulse { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
  background: rgba(6, 13, 24, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(6, 13, 24, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold), #a67c00);
  color: var(--bg-deep); border-radius: 13px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-gold);
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-icon.lg { width: 72px; height: 72px; border-radius: 18px; }
.brand-icon.lg svg { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--white); font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-text small { color: var(--gray-400); font-size: 0.68rem; font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--gray-200); padding: 10px 16px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500;
}
.main-nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #a67c00);
  color: var(--bg-deep); border-color: transparent;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); color: var(--bg-deep); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.22); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-glass {
  background: rgba(255, 255, 255, 0.07); color: var(--white);
  border-color: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-danger { background: linear-gradient(135deg, #f87171, var(--danger)); color: var(--white); border: none; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.bluvense-badge { font-size: 0.75rem; color: var(--gray-400); }
.bluvense-badge strong { color: var(--gold); }
.bluvense-badge.lg { font-size: 0.88rem; padding: 10px 18px; background: var(--gold-dim); border-radius: 10px; border: 1px solid rgba(201, 162, 39, 0.2); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; padding-top: var(--header-h);
  background: var(--bg-deep); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(201, 162, 39, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(26, 48, 80, 0.6), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
  will-change: transform;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(201, 162, 39, 0.15); top: -10%; right: 10%; animation: float 12s ease-in-out infinite; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(59, 130, 246, 0.1); bottom: 20%; left: -5%; animation: float 15s ease-in-out infinite reverse; }
.hero-orb-3 { width: 200px; height: 200px; background: rgba(201, 162, 39, 0.08); top: 40%; left: 40%; animation: float 10s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -30px); } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 60px 0 40px;
}
.hero-content { text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; margin-bottom: 28px;
  background: rgba(201, 162, 39, 0.1); border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 100px; color: var(--gold-light); font-size: 0.82rem; font-weight: 500;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white); line-height: 1.1; margin-bottom: 22px; letter-spacing: -0.02em;
}
.hero-sub { color: var(--gray-400); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray-400); font-size: 0.82rem; font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; color: var(--gold); }

/* Device mockup */
.hero-visual { position: relative; }
.device-frame {
  background: linear-gradient(145deg, #1a2744, #0d1525);
  border-radius: var(--radius-xl); padding: 12px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(201, 162, 39, 0.08);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.device-frame:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.device-notch { width: 80px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; margin: 0 auto 12px; }
.device-screen { background: var(--navy-card); border-radius: calc(var(--radius-xl) - 8px); padding: 20px; }
.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--white); font-weight: 700; font-size: 0.9rem; }
.mock-id { font-size: 0.72rem; color: var(--gold); font-family: monospace; background: var(--gold-dim); padding: 4px 10px; border-radius: 6px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px; text-align: center; }
.mock-stat b { display: block; color: var(--white); font-size: 1.1rem; }
.mock-stat small { color: var(--gray-400); font-size: 0.68rem; }
.mock-stat.accent { background: var(--gold-dim); border-color: rgba(201,162,39,0.2); }
.mock-stat.accent b { color: var(--gold); }
.mock-cards { display: flex; flex-direction: column; gap: 10px; }
.mock-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; color: var(--white);
}
.mock-card strong { display: block; font-size: 0.82rem; }
.mock-card small { color: var(--gray-400); font-size: 0.7rem; }
.mock-card.alert { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.06); }
.mock-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.mock-icon.gate { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.mock-icon.shop { background: linear-gradient(135deg, var(--gold), #a67c00); }
.mock-icon.alert { background: linear-gradient(135deg, var(--success), #059669); }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: rgba(15, 26, 46, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.25); border-radius: 12px;
  color: var(--white); font-size: 0.78rem; font-weight: 600;
  backdrop-filter: blur(12px); box-shadow: var(--shadow-md);
  animation: float 8s ease-in-out infinite;
}
.float-badge svg { width: 16px; height: 16px; color: var(--gold); }
.float-badge-1 { top: 10%; right: -10px; }
.float-badge-2 { bottom: 15%; left: -20px; animation-delay: 2s; }

.hero-stats-bar {
  position: relative; z-index: 1; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(6, 13, 24, 0.6); backdrop-filter: blur(12px);
}
.stats-bar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 28px 0;
}
.stat-pill { text-align: center; }
.stat-pill strong { display: block; font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.stat-pill span { font-size: 0.78rem; color: var(--gray-400); }

/* Sections */
.section { padding: 100px 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-dark { background: var(--bg-deep); color: var(--white); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; color: var(--gold); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 14px;
}
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { color: var(--gray-600); font-size: 1.02rem; }
.section-dark .section-header p { color: var(--gray-400); }

/* Bento grid */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bento-card {
  background: var(--white); padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.bento-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--gold-dim));
  opacity: 0; transition: opacity var(--transition);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,0.3); }
.bento-card:hover::before { opacity: 1; }
.bento-large { grid-column: span 2; grid-row: span 2; padding: 36px; }
.bento-wide { grid-column: span 2; }
.bento-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(201,162,39,0.05));
  border: 1px solid rgba(201,162,39,0.15);
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--gold);
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); position: relative; }
.bento-card p { color: var(--gray-600); font-size: 0.92rem; position: relative; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; position: relative; }
.bento-tags span {
  padding: 6px 12px; background: var(--gray-100); border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--gray-600);
}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,0.3); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); font-size: 0.9rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.steps-list { list-style: none; margin-top: 28px; }
.steps-list li {
  display: grid; gap: 4px; padding: 20px 0 20px 56px;
  position: relative; border-bottom: 1px solid rgba(255,255,255,0.06);
  counter-increment: step;
}
.steps-list { counter-reset: step; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 20px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #a67c00);
  color: var(--bg-deep); border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
.steps-list li strong { color: var(--white); font-size: 1rem; }
.steps-list li span { color: var(--gray-400); font-size: 0.88rem; }

.preview-card {
  padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: var(--navy-light);
}
.preview-card.glass {
  background: rgba(17, 29, 50, 0.8); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.preview-top { display: flex; gap: 8px; margin-bottom: 20px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.preview-dot:first-child { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #10b981; }
.preview-header { color: var(--gold); font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.preview-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.role-pill { padding: 8px 14px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; }
.role-pill.resident { background: rgba(16,185,129,0.15); color: #34d399; }
.role-pill.security { background: rgba(59,130,246,0.15); color: #60a5fa; }
.role-pill.admin { background: var(--gold-dim); color: var(--gold-light); }
.role-pill.bluvense { background: rgba(168,85,247,0.15); color: #c084fc; }
.preview-card p { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 20px; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-metrics div { text-align: center; padding: 14px; background: rgba(255,255,255,0.04); border-radius: 12px; }
.preview-metrics b { display: block; color: var(--gold); font-size: 1.2rem; }
.preview-metrics small { color: var(--gray-400); font-size: 0.72rem; }

/* CTA */
.cta-section { padding: 80px 0 100px; }
.cta-box {
  position: relative; text-align: center; padding: 72px 40px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-xl); border: 1px solid rgba(201, 162, 39, 0.2);
  overflow: hidden;
}
.cta-glow {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.2), transparent 70%);
  top: -50%; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.cta-box h2 { font-family: var(--font-display); color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; position: relative; }
.cta-box p { color: var(--gray-400); margin-bottom: 32px; font-size: 1.05rem; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Footer */
.site-footer { background: var(--bg-deep); color: var(--gray-400); padding: 64px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); margin-bottom: 16px; font-size: 0.9rem; }
.footer-grid a { display: block; color: var(--gray-400); margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.84rem; flex-wrap: wrap; gap: 12px;
}

/* Auth */
.auth-body { background: var(--bg-deep); min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-wrap-wide { grid-template-columns: 1fr; }
.auth-visual {
  background: linear-gradient(160deg, var(--navy-mid), var(--bg-deep));
  display: flex; align-items: center; justify-content: center; padding: 48px;
  position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ''; position: absolute; width: 300px; height: 300px;
  background: rgba(201,162,39,0.12); border-radius: 50%; filter: blur(80px);
  top: 20%; right: 10%;
}
.auth-visual-content { text-align: center; position: relative; z-index: 1; }
.auth-visual h2 { font-family: var(--font-display); color: var(--white); font-size: 2.2rem; margin: 24px 0 10px; }
.auth-visual p { color: var(--gray-400); }
.auth-features-mini { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.auth-features-mini span {
  padding: 8px 16px; background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.2); border-radius: 100px;
  color: var(--gold-light); font-size: 0.78rem; font-weight: 500;
}
.auth-form-side {
  background: var(--white); padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-form-side.full { max-width: 760px; margin: 0 auto; width: 100%; min-height: 100vh; }
.auth-form-side.center { text-align: center; align-items: center; }
.auth-form-side h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-sub { color: var(--gray-600); margin-bottom: 28px; }
.back-link { color: var(--gray-600); font-size: 0.88rem; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--gold); }
.auth-footer-text { margin-top: 24px; color: var(--gray-600); font-size: 0.88rem; }
.success-icon, .pending-icon {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.5rem; margin-bottom: 24px;
}
.success-icon { background: rgba(16,185,129,0.12); color: var(--success); border: 2px solid rgba(16,185,129,0.2); }
.pending-icon { background: rgba(245,158,11,0.12); color: var(--warning); border: 2px solid rgba(245,158,11,0.2); }
.info-box {
  background: var(--gray-50); padding: 28px; border-radius: var(--radius);
  text-align: left; margin: 24px 0; max-width: 500px;
  border: 1px solid var(--gray-200);
}
.info-box h3 { margin-bottom: 14px; }
.info-box ol { padding-left: 20px; }
.info-box li { margin-bottom: 10px; color: var(--gray-600); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 2px solid var(--gray-200); border-radius: 12px;
  font-family: var(--font); font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.form-group input[type=file] { padding: 10px; font-size: 0.84rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--gray-600); cursor: pointer; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,0.08); color: var(--danger); border: 1px solid rgba(239,68,68,0.15); }
.alert-success { background: rgba(16,185,129,0.08); color: var(--success); border: 1px solid rgba(16,185,129,0.15); }

/* Dashboard */
.dashboard-body { background: var(--gray-100); }
.dashboard-wrap { display: flex; padding-top: var(--header-h); min-height: 100vh; }
.dash-sidebar {
  width: var(--sidebar-w); background: var(--bg-deep);
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  overflow-y: auto; padding: 24px 16px;
  display: flex; flex-direction: column; z-index: 100;
  transition: transform var(--transition);
  border-right: 1px solid rgba(201,162,39,0.08);
}
.dash-user-card {
  display: flex; gap: 14px; align-items: center; padding: 18px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-card));
  border-radius: var(--radius); margin-bottom: 24px;
  border: 1px solid rgba(201,162,39,0.1);
}
.dash-avatar {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep); border-radius: 14px;
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.dash-user-card strong { color: var(--white); display: block; font-size: 0.9rem; }
.slh-id { display: block; font-size: 0.72rem; color: var(--gold); font-family: ui-monospace, monospace; margin-top: 2px; }
.role-badge { display: inline-block; font-size: 0.62rem; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }
.role-resident { background: rgba(16,185,129,0.18); color: #34d399; }
.role-security { background: rgba(59,130,246,0.18); color: #60a5fa; }
.role-slh_admin { background: var(--gold-dim); color: var(--gold-light); }
.role-bluvense_admin { background: rgba(168,85,247,0.18); color: #c084fc; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: var(--gray-400); border-radius: 12px; font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.dash-nav a svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }
.dash-nav a:hover, .dash-nav a.active {
  background: var(--gold-dim); color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.12);
}
.dash-nav a.active svg { opacity: 1; color: var(--gold); }
.emergency-btn {
  display: flex; align-items: center; gap: 10px; padding: 14px;
  background: rgba(239,68,68,0.12); color: #fca5a5; border-radius: 12px;
  font-weight: 600; font-size: 0.84rem; margin-top: auto;
  border: 1px solid rgba(239,68,68,0.2); transition: all var(--transition);
}
.emergency-btn:hover { background: rgba(239,68,68,0.2); color: #fff; }
.emergency-btn svg { width: 18px; height: 18px; }
.dash-main { flex: 1; margin-left: var(--sidebar-w); padding: 28px 32px 80px; min-width: 0; }
.sidebar-toggle {
  display: none; position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a67c00);
  color: var(--bg-deep); border: none; cursor: pointer; box-shadow: var(--shadow-gold);
}
.sidebar-toggle svg { width: 24px; height: 24px; margin: auto; }
.dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.dash-header h1 { font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -0.02em; }
.dash-header p { color: var(--gray-600); font-size: 0.9rem; }
.dash-header-meta { color: var(--gray-600); font-size: 0.84rem; padding: 8px 14px; background: var(--white); border-radius: 10px; border: 1px solid var(--gray-200); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { opacity: 1; }
.stat-card.accent {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border: none; color: var(--white);
}
.stat-card.accent .stat-value { color: var(--gold); }
.stat-card.accent .stat-label { color: var(--gray-400); }
.stat-value { display: block; font-size: 1.85rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 0.78rem; color: var(--gray-600); font-weight: 500; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.dash-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.dash-card:hover { box-shadow: var(--shadow-md); }
.dash-card.full { grid-column: 1 / -1; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h2 { font-size: 1.08rem; font-weight: 700; }
.link-sm { font-size: 0.84rem; font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.quick-actions.vertical { grid-template-columns: 1fr; }
.quick-action {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); color: var(--navy); transition: all var(--transition);
}
.quick-action:hover { background: var(--gold-dim); border-color: rgba(201,162,39,0.25); transform: translateX(4px); color: var(--navy); }
.quick-action span { font-size: 1.4rem; }
.quick-action strong { display: block; font-size: 0.88rem; }
.quick-action small { color: var(--gray-600); font-size: 0.72rem; }
.quick-action.emergency { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); }
.quick-action.emergency:hover { background: rgba(239,68,68,0.1); }
.empty-state { color: var(--gray-600); font-size: 0.9rem; padding: 20px 0; }
.empty-card { background: var(--white); padding: 56px; text-align: center; border-radius: var(--radius-lg); color: var(--gray-600); border: 1px dashed var(--gray-200); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--gray-200); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.data-table th {
  text-align: left; padding: 14px 16px; background: var(--gray-50);
  font-weight: 600; color: var(--gray-600); white-space: nowrap;
  border-bottom: 1px solid var(--gray-200);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.status-badge { display: inline-block; padding: 5px 11px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.status-pending { background: rgba(245,158,11,0.12); color: var(--warning); }
.status-approved, .status-checked_in { background: rgba(16,185,129,0.12); color: var(--success); }
.status-checked_out { background: rgba(100,116,139,0.12); color: var(--gray-600); }
.status-rejected { background: rgba(239,68,68,0.12); color: var(--danger); }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gray-100); gap: 12px; font-size: 0.88rem; }
.log-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.84rem; flex-wrap: wrap; }
.log-type { padding: 4px 10px; background: var(--navy); color: var(--gold); border-radius: 6px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.priority-critical { color: var(--danger); font-weight: 700; }
.priority-high { color: var(--warning); }
.health-items { display: grid; gap: 10px; }
.health-item { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--gray-50); border-radius: 10px; border: 1px solid var(--gray-200); }
.health-item.ok strong { color: var(--success); }

/* Cards grids */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.appointment-card, .shop-card, .internet-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.appointment-card:hover, .shop-card:hover, .internet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-details { display: grid; gap: 10px; }
.card-details div { display: flex; justify-content: space-between; font-size: 0.84rem; gap: 12px; }
.card-details label { color: var(--gray-600); font-weight: 500; flex-shrink: 0; }
.access-code { background: var(--gold-dim); color: var(--gold); padding: 4px 12px; border-radius: 8px; font-weight: 700; letter-spacing: 2px; font-family: monospace; }
.shop-card { display: flex; gap: 16px; }
.shop-logo {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold); border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0;
}
.shop-cat { font-size: 0.72rem; color: var(--gold); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.verified { color: var(--success); }
.shop-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--gray-600); margin-top: 8px; flex-wrap: wrap; }
.internet-card { text-align: center; position: relative; }
.internet-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold); }
.featured-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep); padding: 5px 18px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
}
.internet-speed { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin: 14px 0; }
.internet-price { font-size: 1.5rem; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.internet-price small { font-size: 0.78rem; color: var(--gray-600); font-weight: 400; }
.feature-list { list-style: none; text-align: left; margin: 16px 0; font-size: 0.84rem; }
.feature-list li { padding: 7px 0; padding-left: 22px; position: relative; color: var(--gray-600); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Reports */
.report-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  padding: 12px 24px; background: var(--white); border: 2px solid var(--gray-200);
  border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  transition: all var(--transition); font-family: var(--font);
}
.tab.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.support-options { display: grid; gap: 12px; margin-bottom: 16px; }
.support-btn {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
  color: var(--navy); font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; text-align: left; width: 100%; transition: all var(--transition);
}
.support-btn:hover { background: var(--gold-dim); border-color: rgba(201,162,39,0.25); }
.support-btn.emergency { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); color: var(--danger); }
.support-note { font-size: 0.78rem; color: var(--gray-600); }

/* Security */
.security-search { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.security-search input {
  flex: 1; min-width: 200px; padding: 15px 20px;
  border: 2px solid var(--gray-200); border-radius: 12px; font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.security-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.search-result { margin-bottom: 24px; }
.gate-actions { display: grid; gap: 16px; }
.gate-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Modal */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(6, 13, 24, 0.75); z-index: 2000;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-content {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 30px; box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.modal-header button { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--gray-600); line-height: 1; }

/* Chatbot */
.chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 3000; }
.chatbot-toggle {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep); border: none; cursor: pointer;
  box-shadow: var(--shadow-gold); display: grid; place-items: center;
  position: relative; transition: transform var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.06); }
.chatbot-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold); animation: pulse 2.5s infinite; pointer-events: none;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0; transform: scale(1.12); } }
.chatbot-panel {
  display: none; position: absolute; bottom: 78px; right: 0;
  width: min(380px, calc(100vw - 48px)); height: 500px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); flex-direction: column; overflow: hidden;
  border: 1px solid var(--gray-200);
  animation: modalIn 0.25s var(--ease);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; background: var(--bg-deep); color: var(--white);
}
.chatbot-header span { display: block; font-size: 0.72rem; color: var(--gray-400); }
.chatbot-header button { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--gray-50); }
.chat-msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.55; }
.chat-msg.bot { background: var(--white); color: var(--navy); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--gray-200); }
.chat-msg.user { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-input { display: flex; padding: 14px; border-top: 1px solid var(--gray-200); gap: 10px; background: var(--white); }
.chatbot-input input { flex: 1; border: none; padding: 10px 14px; font-family: var(--font); font-size: 0.9rem; outline: none; }
.chatbot-input button {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #a67c00);
  border: none; color: var(--bg-deep); cursor: pointer;
  display: grid; place-items: center;
}

/* Errors */
.error-body { background: var(--bg-deep); min-height: 100vh; display: grid; place-items: center; }
.error-page { text-align: center; color: var(--white); padding: 40px; }
.error-page h1 { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 8rem); color: var(--gold); line-height: 1; }
.error-page p { margin: 20px 0 36px; color: var(--gray-400); font-size: 1.1rem; }

/* Toast */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-deep); color: var(--white);
  padding: 14px 28px; border-radius: 12px; font-size: 0.88rem;
  z-index: 4000; opacity: 0; transition: all var(--transition);
  border: 1px solid var(--gold); box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .float-badge-1 { right: 0; }
  .float-badge-2 { left: 0; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: span 2; grid-row: span 1; }
  .about-grid { grid-template-columns: 1fr; }
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .dash-main { margin-left: 0; }
  .sidebar-toggle { display: grid; place-items: center; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(6, 13, 24, 0.98); flex-direction: column;
    padding: 20px; gap: 4px; transform: translateY(-120%); opacity: 0;
    transition: var(--transition); border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    backdrop-filter: blur(20px);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; text-align: center; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 32px 20px; padding-top: calc(var(--header-h) + 24px); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 20px 16px 100px; }
  .dash-header { flex-direction: column; }
  .gate-btns { flex-direction: column; }
  .gate-btns .btn { width: 100%; }
  .device-frame { transform: none; }
  .float-badge { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 48px 24px; }
  .chatbot-widget { bottom: 16px; right: 16px; }
}
