/* ============================================================
   EMOTOURIST - Global Design System
   Modern, Responsive, Animated
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #f59e0b;
  --accent: #10b981;
  --danger: #ef4444;
  --joy: #f59e0b;
  --love: #f43f5e;
  --surprise: #8b5cf6;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-glass: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.10);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow: 0 25px 50px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── RESET & BASE ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; font-family:inherit; border:none; outline:none; }
input, textarea, select { font-family:inherit; outline:none; }
ul { list-style:none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--primary); border-radius:99px; }

/* ── BACKGROUND MESH ── */
.bg-mesh {
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(ellipse 80% 80% at 20% 20%, rgba(99,102,241,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(244,63,94,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139,92,246,0.08) 0%, transparent 70%),
    var(--bg);
}

/* ── GLASS CARD ── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.glass-dark {
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── TYPOGRAPHY ── */
h1 { font-size:clamp(2rem,5vw,3.5rem); font-weight:800; line-height:1.15; }
h2 { font-size:clamp(1.5rem,4vw,2.5rem); font-weight:700; line-height:1.25; }
h3 { font-size:clamp(1.1rem,2.5vw,1.5rem); font-weight:600; }
h4 { font-size:1.1rem; font-weight:600; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, #c4b5fd 50%, var(--love) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-sm    { font-size:0.875rem; }
.text-xs    { font-size:0.75rem; }
.text-lg    { font-size:1.125rem; }
.text-xl    { font-size:1.25rem; }
.font-bold  { font-weight:700; }
.text-center{ text-align:center; }

/* ── LAYOUT ── */
.container  { max-width:1280px; margin:0 auto; padding:0 1.5rem; }
.container-sm { max-width:800px; margin:0 auto; padding:0 1.5rem; }
.section    { padding:5rem 0; }
.flex       { display:flex; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.flex-wrap  { flex-wrap:wrap; }
.gap-1 { gap:0.5rem; }
.gap-2 { gap:1rem; }
.gap-3 { gap:1.5rem; }
.gap-4 { gap:2rem; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
.mt-1 { margin-top:0.5rem; }
.mt-2 { margin-top:1rem; }
.mt-3 { margin-top:1.5rem; }
.mt-4 { margin-top:2rem; }
.mb-1 { margin-bottom:0.5rem; }
.mb-2 { margin-bottom:1rem; }
.mb-3 { margin-bottom:1.5rem; }
.w-full { width:100%; }
.relative { position:relative; }
.overflow-hidden { overflow:hidden; }

@media(max-width:1024px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:640px) {
  .grid-4,.grid-3,.grid-2 { grid-template-columns:1fr; }
  .section { padding:3rem 0; }
}

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  padding:0.65rem 1.4rem; border-radius:99px; font-weight:600; font-size:0.9rem;
  transition:var(--transition); position:relative; overflow:hidden;
  white-space:nowrap; letter-spacing:0.01em;
}
.btn::after {
  content:''; position:absolute; inset:0;
  background:rgba(255,255,255,0.12); opacity:0; transition:opacity 0.2s;
}
.btn:hover::after { opacity:1; }
.btn:active { transform:scale(0.97); }
.btn-primary {
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff; box-shadow:0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { box-shadow:0 6px 30px rgba(99,102,241,0.6); transform:translateY(-1px); }
.btn-secondary {
  background:linear-gradient(135deg,var(--secondary),#d97706);
  color:#fff; box-shadow:0 4px 20px rgba(245,158,11,0.35);
}
.btn-danger {
  background:linear-gradient(135deg,var(--danger),#dc2626);
  color:#fff;
}
.btn-ghost {
  background:transparent; border:1px solid var(--border); color:var(--text);
}
.btn-ghost:hover { background:var(--bg-glass); border-color:var(--primary-light); }
.btn-outline {
  background:transparent; border:1.5px solid var(--primary); color:var(--primary);
}
.btn-outline:hover { background:var(--primary); color:#fff; }
.btn-sm { padding:0.45rem 1rem; font-size:0.8rem; }
.btn-lg { padding:0.85rem 2rem; font-size:1rem; }
.btn-icon { padding:0.6rem; border-radius:50%; aspect-ratio:1; }

/* ── BADGES ── */
.badge {
  display:inline-flex; align-items:center; gap:0.3rem;
  padding:0.2rem 0.7rem; border-radius:99px; font-size:0.75rem; font-weight:600;
}
.badge-primary { background:rgba(99,102,241,0.2); color:var(--primary-light); }
.badge-joy     { background:rgba(245,158,11,0.2); color:#fbbf24; }
.badge-love    { background:rgba(244,63,94,0.2); color:#fb7185; }
.badge-surprise{ background:rgba(139,92,246,0.2); color:#c4b5fd; }
.badge-success { background:rgba(16,185,129,0.2); color:#34d399; }
.badge-danger  { background:rgba(239,68,68,0.2); color:#fca5a5; }
.badge-muted   { background:rgba(148,163,184,0.15); color:var(--text-muted); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom:1.2rem; }
.form-label {
  display:block; margin-bottom:0.4rem;
  font-size:0.875rem; font-weight:500; color:var(--text-muted);
}
.form-control {
  width:100%; padding:0.75rem 1rem;
  background:rgba(255,255,255,0.06); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text); font-size:0.9rem;
  transition:var(--transition);
}
.form-control:focus {
  border-color:var(--primary); background:rgba(99,102,241,0.08);
  box-shadow:0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color:var(--text-dim); }
.form-control option { background:var(--bg-card); }
.input-group { position:relative; }
.input-icon {
  position:absolute; left:0.9rem; top:50%; transform:translateY(-50%);
  color:var(--text-dim); font-size:1rem; pointer-events:none;
}
.input-group .form-control { padding-left:2.5rem; }

/* ── CARDS ── */
.card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:1.5rem;
  transition:var(--transition);
}
.card:hover { border-color:rgba(99,102,241,0.3); transform:translateY(-2px); }
.card-hover-glow:hover {
  box-shadow:0 0 30px rgba(99,102,241,0.2);
}
.stat-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:1.5rem;
  position:relative; overflow:hidden;
}
.stat-card::before {
  content:''; position:absolute; top:-30px; right:-30px;
  width:100px; height:100px; border-radius:50%;
  background:var(--card-accent, var(--primary));
  opacity:0.08;
}
.stat-card .stat-icon {
  font-size:2rem; margin-bottom:0.75rem; display:block;
}
.stat-card .stat-value {
  font-size:2rem; font-weight:800; line-height:1;
}
.stat-card .stat-label {
  font-size:0.8rem; color:var(--text-muted); margin-top:0.4rem;
}

/* ── DESTINATION CARD ── */
.dest-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-lg); overflow:hidden;
  transition:var(--transition); cursor:pointer;
}
.dest-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); border-color:rgba(99,102,241,0.4); }
.dest-card-img { height:200px; object-fit:cover; width:100%; position:relative; overflow:hidden; }
.dest-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s ease; }
.dest-card:hover .dest-card-img img { transform:scale(1.08); }
.dest-card-body { padding:1.25rem; }
.dest-card-emex {
  position:absolute; top:12px; right:12px;
  background:rgba(15,15,26,0.85); backdrop-filter:blur(10px);
  border:1px solid var(--border); border-radius:99px;
  padding:0.3rem 0.8rem; font-size:0.8rem; font-weight:700;
  display:flex; align-items:center; gap:0.3rem;
}

/* ── NAVBAR ── */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:0.9rem 0;
  background:rgba(15,15,26,0.8);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:var(--transition);
}
.navbar.scrolled { padding:0.6rem 0; background:rgba(15,15,26,0.95); }
.nav-brand {
  display:flex; align-items:center; gap:0.6rem; font-weight:800;
  font-size:1.25rem;
}
.nav-brand .brand-icon {
  width:38px; height:38px; border-radius:10px;
  background:linear-gradient(135deg,var(--primary),var(--love));
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
}
.nav-links { display:flex; align-items:center; gap:0.25rem; }
.nav-link {
  padding:0.45rem 0.9rem; border-radius:8px; font-size:0.875rem;
  font-weight:500; color:var(--text-muted); transition:var(--transition);
}
.nav-link:hover, .nav-link.active { color:var(--text); background:var(--bg-glass); }
.nav-actions { display:flex; align-items:center; gap:0.75rem; }
.nav-avatar {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--love));
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; cursor:pointer; position:relative;
}
.nav-hamburger {
  display:none; background:none; border:1px solid var(--border);
  padding:0.4rem 0.6rem; border-radius:8px; color:var(--text); font-size:1.1rem;
}
@media(max-width:768px) {
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .nav-links.open {
    display:flex; flex-direction:column; position:absolute; top:100%;
    left:0; right:0; background:rgba(15,15,26,0.98);
    border-bottom:1px solid var(--border); padding:1rem;
    backdrop-filter:blur(20px);
  }
}

/* ── SIDEBAR ── */
.sidebar {
  position:fixed; left:0; top:0; bottom:0;
  width:260px; z-index:100;
  background:rgba(15,15,26,0.95); backdrop-filter:blur(20px);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  transition:var(--transition);
  padding:1.5rem 0;
}
.sidebar-brand {
  padding:0 1.5rem 1.5rem;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:0.75rem; font-weight:800; font-size:1.1rem;
}
.sidebar-brand .brand-icon {
  width:42px; height:42px; border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--love));
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}
.sidebar-menu { padding:1.5rem 0.75rem; flex:1; overflow-y:auto; }
.sidebar-section-label {
  font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--text-dim); padding:0 0.75rem; margin-bottom:0.5rem; margin-top:1.25rem;
}
.sidebar-item {
  display:flex; align-items:center; gap:0.75rem;
  padding:0.65rem 0.75rem; border-radius:10px;
  font-size:0.875rem; font-weight:500; color:var(--text-muted);
  transition:var(--transition); cursor:pointer; margin-bottom:0.15rem;
}
.sidebar-item:hover { color:var(--text); background:var(--bg-glass); }
.sidebar-item.active {
  color:var(--primary-light); background:rgba(99,102,241,0.15);
  border-left:3px solid var(--primary);
}
.sidebar-item .item-icon { font-size:1.1rem; flex-shrink:0; }
.sidebar-item .item-badge {
  margin-left:auto; background:var(--primary); color:#fff;
  font-size:0.7rem; padding:0.1rem 0.5rem; border-radius:99px;
}
.sidebar-footer {
  padding:1rem 1.5rem; border-top:1px solid var(--border);
}
.sidebar-user {
  display:flex; align-items:center; gap:0.75rem;
}
.sidebar-user-avatar {
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--love));
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  flex-shrink:0;
}
.sidebar-user-info { overflow:hidden; }
.sidebar-user-name { font-weight:600; font-size:0.875rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-user-role { font-size:0.75rem; color:var(--text-muted); }

/* Dashboard layout */
.dashboard-layout { display:flex; min-height:100vh; }
.dashboard-main {
  margin-left:260px; flex:1; min-height:100vh;
  padding:2rem; transition:var(--transition);
}
@media(max-width:1024px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .dashboard-main { margin-left:0; }
}

/* ── EMOTION COMPONENTS ── */
.emotion-btn {
  display:flex; flex-direction:column; align-items:center; gap:0.6rem;
  padding:1.5rem 1rem; border-radius:var(--radius); cursor:pointer;
  border:2px solid var(--border); background:var(--bg-glass);
  transition:var(--transition); text-align:center; position:relative;
  overflow:hidden;
}
.emotion-btn:hover { transform:translateY(-4px); }
.emotion-btn.selected { border-width:2px; }
.emotion-btn.joy-btn.selected    { border-color:var(--joy); background:rgba(245,158,11,0.15); box-shadow:0 0 20px rgba(245,158,11,0.3); }
.emotion-btn.love-btn.selected   { border-color:var(--love); background:rgba(244,63,94,0.15); box-shadow:0 0 20px rgba(244,63,94,0.3); }
.emotion-btn.surprise-btn.selected { border-color:var(--surprise); background:rgba(139,92,246,0.15); box-shadow:0 0 20px rgba(139,92,246,0.3); }
.emotion-icon { font-size:3rem; line-height:1; filter:drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.emotion-label { font-weight:700; font-size:0.9rem; }
.emotion-scale-value { font-size:1.5rem; font-weight:800; }

/* Slider */
.emotion-slider {
  -webkit-appearance:none; appearance:none;
  width:100%; height:6px; border-radius:99px;
  outline:none; cursor:pointer;
  transition:var(--transition);
}
.emotion-slider.joy-slider { background:linear-gradient(to right, var(--joy) 0%, var(--joy) var(--val,50%), rgba(255,255,255,0.1) var(--val,50%)); }
.emotion-slider.love-slider { background:linear-gradient(to right, var(--love) 0%, var(--love) var(--val,50%), rgba(255,255,255,0.1) var(--val,50%)); }
.emotion-slider.surprise-slider { background:linear-gradient(to right, var(--surprise) 0%, var(--surprise) var(--val,50%), rgba(255,255,255,0.1) var(--val,50%)); }
.emotion-slider::-webkit-slider-thumb {
  -webkit-appearance:none; width:20px; height:20px; border-radius:50%;
  background:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.3); cursor:pointer;
  transition:transform 0.1s;
}
.emotion-slider::-webkit-slider-thumb:hover { transform:scale(1.2); }

/* EmEx Badge */
.emex-badge {
  display:inline-flex; align-items:center; gap:0.4rem;
  padding:0.4rem 1rem; border-radius:99px; font-weight:700; font-size:0.85rem;
}
.emex-badge.joy-badge      { background:rgba(245,158,11,0.2);  color:#fbbf24; border:1px solid rgba(245,158,11,0.3); }
.emex-badge.love-badge     { background:rgba(244,63,94,0.2);   color:#fb7185; border:1px solid rgba(244,63,94,0.3); }
.emex-badge.surprise-badge { background:rgba(139,92,246,0.2);  color:#c4b5fd; border:1px solid rgba(139,92,246,0.3); }
.emex-badge.none-badge     { background:rgba(100,116,139,0.15); color:#94a3b8; border:1px solid rgba(100,116,139,0.3); }

/* Emotion Faces (large display) */
.tourist-face {
  display:flex; flex-direction:column; align-items:center; gap:0.5rem;
  padding:2rem; border-radius:var(--radius-lg); text-align:center;
}
.tourist-face .face-icon { font-size:5rem; animation:face-bounce 2s ease-in-out infinite; }
@keyframes face-bounce {
  0%,100% { transform:translateY(0) scale(1); }
  50% { transform:translateY(-8px) scale(1.05); }
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(0.8); }
  to   { opacity:1; transform:scale(1); }
}
@keyframes pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%     { transform:scale(1.05); opacity:0.8; }
}
@keyframes spin {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position:-200% 0; }
  100% { background-position:200% 0; }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%     { transform:translateY(-12px); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow:0 0 20px rgba(99,102,241,0.3); }
  50%     { box-shadow:0 0 40px rgba(99,102,241,0.6); }
}
@keyframes ripple {
  0%   { transform:scale(0); opacity:0.6; }
  100% { transform:scale(2.5); opacity:0; }
}
@keyframes counter {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.anim-fade-up   { animation:fadeInUp 0.6s ease both; }
.anim-fade-down { animation:fadeInDown 0.5s ease both; }
.anim-fade      { animation:fadeIn 0.5s ease both; }
.anim-scale-in  { animation:scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.anim-float     { animation:float 3s ease-in-out infinite; }
.anim-pulse     { animation:pulse 2s ease-in-out infinite; }
.anim-spin      { animation:spin 1s linear infinite; }
.anim-glow      { animation:glow-pulse 2s ease-in-out infinite; }

/* Stagger delays */
.delay-1 { animation-delay:0.1s; }
.delay-2 { animation-delay:0.2s; }
.delay-3 { animation-delay:0.3s; }
.delay-4 { animation-delay:0.4s; }
.delay-5 { animation-delay:0.5s; }
.delay-6 { animation-delay:0.6s; }

/* Intersection Observer fade-in */
.reveal {
  opacity:0; transform:translateY(25px); transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── PROGRESS BAR ── */
.progress-bar {
  height:8px; background:rgba(255,255,255,0.08); border-radius:99px; overflow:hidden;
}
.progress-fill {
  height:100%; border-radius:99px; transition:width 1s cubic-bezier(0.4,0,0.2,1);
  position:relative; overflow:hidden;
}
.progress-fill::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);
  animation:shimmer 1.5s infinite;
  background-size:200% 100%;
}

/* ── MODAL ── */
.modal-overlay {
  position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,0.7); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center;
  padding:1rem; opacity:0; pointer-events:none; transition:opacity 0.3s;
}
.modal-overlay.open { opacity:1; pointer-events:all; }
.modal {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:2rem; width:100%;
  max-width:540px; max-height:90vh; overflow-y:auto;
  transform:scale(0.9) translateY(20px); transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal { transform:scale(1) translateY(0); }
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:1.5rem;
}
.modal-close {
  background:var(--bg-glass); border:1px solid var(--border);
  color:var(--text-muted); width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:var(--transition); font-size:1.1rem;
}
.modal-close:hover { background:rgba(239,68,68,0.2); color:var(--danger); border-color:var(--danger); }

/* ── TOAST ── */
#toast-container {
  position:fixed; bottom:2rem; right:2rem; z-index:9999;
  display:flex; flex-direction:column; gap:0.75rem;
}
.toast {
  display:flex; align-items:center; gap:0.75rem;
  padding:0.9rem 1.25rem; border-radius:var(--radius-sm);
  background:var(--bg-card); border:1px solid var(--border);
  box-shadow:0 10px 40px rgba(0,0,0,0.4);
  min-width:280px; max-width:400px;
  animation:slideInRight 0.3s ease; font-size:0.875rem;
  backdrop-filter:blur(20px);
}
.toast.success { border-left:3px solid var(--accent); }
.toast.error   { border-left:3px solid var(--danger); }
.toast.info    { border-left:3px solid var(--primary); }
.toast.warning { border-left:3px solid var(--secondary); }
.toast-icon { font-size:1.2rem; flex-shrink:0; }
.toast-msg  { flex:1; font-weight:500; }
.toast-close { background:none; color:var(--text-dim); padding:0.1rem 0.3rem; border-radius:4px; font-size:0.9rem; }
.toast-close:hover { color:var(--text); }

/* ── TABLE ── */
.table-wrapper { overflow-x:auto; border-radius:var(--radius); border:1px solid var(--border); }
table { width:100%; border-collapse:collapse; }
thead tr { background:rgba(99,102,241,0.1); border-bottom:1px solid var(--border); }
thead th {
  padding:0.9rem 1rem; text-align:left;
  font-size:0.78rem; font-weight:600; text-transform:uppercase;
  letter-spacing:0.05em; color:var(--text-muted); white-space:nowrap;
}
tbody tr { border-bottom:1px solid rgba(255,255,255,0.04); transition:background 0.15s; }
tbody tr:last-child { border-bottom:none; }
tbody tr:hover { background:var(--bg-glass); }
tbody td { padding:0.85rem 1rem; font-size:0.875rem; vertical-align:middle; }

/* ── TABS ── */
.tabs { display:flex; gap:0.25rem; background:var(--bg-glass); border-radius:12px; padding:0.25rem; }
.tab-btn {
  padding:0.5rem 1.1rem; border-radius:9px; font-size:0.85rem; font-weight:600;
  color:var(--text-muted); background:none; transition:var(--transition); white-space:nowrap;
}
.tab-btn.active { background:var(--primary); color:#fff; box-shadow:0 2px 10px rgba(99,102,241,0.4); }
.tab-btn:hover:not(.active) { color:var(--text); background:var(--bg-glass); }
.tab-content { display:none; }
.tab-content.active { display:block; animation:fadeIn 0.3s ease; }

/* ── SEARCH ── */
.search-bar {
  display:flex; align-items:center; gap:0.75rem;
  background:var(--bg-glass); border:1px solid var(--border);
  border-radius:99px; padding:0.6rem 1.1rem;
}
.search-bar input {
  background:none; border:none; color:var(--text);
  font-size:0.875rem; flex:1; min-width:0;
}
.search-bar input::placeholder { color:var(--text-dim); }
.search-icon { color:var(--text-dim); font-size:0.9rem; }

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom:2rem;
  padding-bottom:1.5rem;
  border-bottom:1px solid var(--border);
}
.page-header h2 { margin-bottom:0.3rem; }
.page-header p  { color:var(--text-muted); font-size:0.9rem; }
.page-header-actions { display:flex; gap:0.75rem; align-items:center; flex-wrap:wrap; }

/* ── LOADING ── */
.skeleton {
  background:linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size:200% 100%; animation:shimmer 1.5s infinite;
  border-radius:6px;
}
.loader-overlay {
  position:fixed; inset:0; z-index:9000;
  background:var(--bg); display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:1rem;
}
.loader-spinner {
  width:48px; height:48px; border-radius:50%;
  border:3px solid var(--border);
  border-top-color:var(--primary);
  animation:spin 0.8s linear infinite;
}

/* ── MAP ── */
#map { height:500px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); }
.leaflet-popup-content-wrapper {
  background:var(--bg-card) !important; border:1px solid var(--border) !important;
  color:var(--text) !important; border-radius:var(--radius-sm) !important;
  box-shadow:var(--shadow) !important;
}
.leaflet-popup-tip { background:var(--bg-card) !important; }

/* ── RESPONSIVE UTILS ── */
@media(max-width:768px) {
  h1 { font-size:2rem; }
  h2 { font-size:1.5rem; }
  .hide-mobile { display:none !important; }
  .dashboard-main { padding:1rem; }
  #toast-container { bottom:1rem; right:1rem; left:1rem; }
  .toast { min-width:unset; }
}
