/* ============================================================
   RiskHaritam v2 — Premium SaaS Design System
   Apple / Stripe / Linear inspired
   ============================================================ */

/* ─── 1. CSS Variables ─────────────────────────────────────── */
:root {
  --navy:        #0f1b2d;
  --navy-800:    #162236;
  --navy-700:    #1e3050;
  --navy-600:    #264573;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --teal:        #0ea5e9;
  --teal-light:  #38bdf8;
  --cyan:        #06b6d4;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
  --risk-low:       #22c55e;
  --risk-medium:    #f59e0b;
  --risk-high:      #f97316;
  --risk-very-high: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #0ea5e9;
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-md:  0 10px 25px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 50px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
  --shadow-xl:  0 40px 80px rgba(0,0,0,.16);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.35s cubic-bezier(0.4,0,0.2,1);
  --navbar-h: 70px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p  { color: var(--gray-600); line-height: 1.75; }

/* ─── 4. Layout ────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ─── 5. Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.brand-text  { display: flex; flex-direction: column; }
.brand-name  { font-size: 1.1rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.brand-tagline { font-size: 0.65rem; color: var(--gray-500); font-weight: 400; letter-spacing: 0.02em; }
.navbar-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-menu a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  transition: all var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active { background: var(--gray-100); color: var(--navy); }
.navbar-menu a.active { color: var(--blue); background: #eff6ff; }
.navbar-cta a.btn {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff !important; padding: 9px 20px; border-radius: 10px;
  font-weight: 600; box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  transition: all var(--transition);
}
.navbar-cta a.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.notif-badge {
  position: absolute; top: 4px; right: 6px;
  width: 18px; height: 18px; background: var(--danger);
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.navbar-notif {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-size: 0.875rem;
  font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all var(--transition);
}
.navbar-notif:hover { background: var(--gray-100); color: var(--navy); }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }

/* ─── 6. Disclaimer Banner ─────────────────────────────────── */
.disclaimer-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #f59e0b30;
  padding: 10px 24px; text-align: center;
  font-size: 0.8rem; color: #92400e; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.disclaimer-banner i { color: #b45309; }

/* ─── 7. Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 50%, #1a3a6e 100%);
  position: relative; overflow: hidden; padding: 100px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.hero-glow-1 { background: rgba(37,99,235,0.25); top: -200px; right: -100px; }
.hero-glow-2 { background: rgba(6,182,212,0.15); bottom: -200px; left: -100px; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); color: var(--teal-light);
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--teal-light); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-item .stat-num { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.hero-stat-item .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); font-weight: 500; margin-top: 4px; }

/* ─── 8. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none;
  transition: all var(--transition); white-space: nowrap; font-family: var(--font);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.45); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover:not(:disabled) { background: var(--navy-700); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-teal { background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #fff; box-shadow: 0 4px 15px rgba(6,182,212,0.35); }
.btn-teal:hover:not(:disabled) { transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm  { padding: 8px 18px; font-size: 0.8rem; border-radius: 10px; }
.btn-lg  { padding: 16px 40px; font-size: 1rem; border-radius: 14px; }
.btn-xl  { padding: 18px 48px; font-size: 1.05rem; border-radius: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── 9. Cards ─────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-header h3, .card-header h4, .card-header h5 { margin: 0; }
.card-glass { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); }

/* ─── 10. Stat Cards ────────────────────────────────────────── */
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.stat-card-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }

/* ─── 11. Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-label span { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: 12px; font-size: 0.9rem; font-family: var(--font);
  color: var(--gray-800); background: #fff; transition: all var(--transition); outline: none; appearance: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--gray-400); }
.form-control:disabled { background: var(--gray-50); cursor: not-allowed; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; border-radius: 10px; border: 2px solid var(--gray-200); transition: all var(--transition);
}
.form-check:hover { border-color: var(--blue); background: #f0f7ff; }
.form-check input[type="radio"], .form-check input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; }
.form-check-group { display: flex; flex-direction: column; gap: 8px; }
.form-check-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 8px; }
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 44px; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 1rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ─── 12. Risk Levels ──────────────────────────────────────── */
.risk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.risk-low       { color: #15803d; background: #dcfce7; }
.risk-medium    { color: #b45309; background: #fef3c7; }
.risk-high      { color: #c2410c; background: #ffedd5; }
.risk-very-high { color: #b91c1c; background: #fee2e2; }

/* Gauge */
.risk-gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; }
.risk-gauge-circle { position: relative; width: 160px; height: 160px; }
.risk-gauge-circle svg { transform: rotate(-90deg); }
.risk-gauge-circle .gauge-bg { fill: none; stroke: var(--gray-100); stroke-width: 12; }
.risk-gauge-circle .gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1); }
.risk-gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.risk-gauge-score { font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; }
.risk-gauge-label { font-size: 0.7rem; color: var(--gray-400); font-weight: 600; }

/* ─── 13. Map ──────────────────────────────────────────────── */
#earthquakeMap, #riskMap, #fullMap { width: 100%; height: 520px; border-radius: var(--radius); z-index: 1; }
.map-container { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); }
.map-overlay-card { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 16px; min-width: 200px; box-shadow: var(--shadow-md); z-index: 400; }
.map-fullscreen-btn { position: absolute; bottom: 16px; right: 16px; z-index: 400; background: #fff; border: none; border-radius: 10px; padding: 10px 14px; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); transition: all var(--transition); }
.map-fullscreen-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: var(--shadow-md) !important; border: 1px solid var(--gray-200) !important; }
.leaflet-popup-content { font-family: var(--font) !important; }
.eq-popup-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 0.9rem; }
.eq-popup-row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.82rem; color: var(--gray-600); padding: 3px 0; }
.eq-popup-row strong { color: var(--navy); }
.eq-popup-mag { display: inline-block; padding: 2px 10px; border-radius: 100px; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }

/* ─── 14. Earthquake List ──────────────────────────────────── */
.eq-list-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); text-decoration: none; color: inherit; }
.eq-list-item:last-child { border-bottom: none; }
.eq-list-item:hover { background: var(--gray-50); }
.eq-mag-badge { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.eq-list-info { flex: 1; min-width: 0; }
.eq-list-title { font-weight: 600; color: var(--navy); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-list-meta { font-size: 0.78rem; color: var(--gray-500); margin-top: 3px; }
.eq-list-right { text-align: right; flex-shrink: 0; }
.eq-list-depth { font-size: 0.8rem; color: var(--gray-500); }

/* ─── 15. Company Cards ─────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.company-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition); box-shadow: var(--shadow-sm); }
.company-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.company-card.premium { border: 2px solid #f59e0b; }
.company-cover { height: 120px; background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; }
.company-logo-wrap { position: absolute; bottom: -24px; left: 24px; }
.company-logo { width: 48px; height: 48px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--navy); border: 3px solid #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.company-card-body { padding: 36px 24px 24px; }
.company-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.company-location { font-size: 0.8rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.company-services { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.service-tag { padding: 3px 10px; background: var(--gray-100); border-radius: 100px; font-size: 0.72rem; font-weight: 600; color: var(--gray-600); }
.company-card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.premium-badge { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }

/* ─── 16. Notifications ─────────────────────────────────────── */
.notif-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200); z-index: 2000; overflow: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all var(--transition); }
.notif-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.notif-dropdown-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--gray-50); transition: background var(--transition); }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: #f0f7ff; }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.notif-earthquake { background: #fee2e2; color: var(--danger); }
.notif-risk       { background: #ffedd5; color: var(--risk-high); }
.notif-system     { background: #eff6ff; color: var(--blue); }
.notif-info       { background: var(--gray-100); color: var(--gray-600); }
.notif-text h6 { font-size: 0.83rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.notif-text p  { font-size: 0.75rem; color: var(--gray-500); line-height: 1.4; }

/* ─── 17. Sections ──────────────────────────────────────────── */
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: #eff6ff; padding: 6px 14px; border-radius: 100px; margin-bottom: 16px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ─── 18. Grids ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }

/* ─── 19. Toast ─────────────────────────────────────────────── */
.toast-container { position: fixed; top: 90px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--blue); display: flex; align-items: flex-start; gap: 12px; min-width: 280px; max-width: 380px; animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger  { border-left-color: var(--danger); }
.toast-icon { font-size: 1.1rem; margin-top: 2px; }
.toast.success .toast-icon { color: var(--success); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.danger  .toast-icon { color: var(--danger); }
.toast-body h6 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; color: var(--navy); }
.toast-body p  { font-size: 0.78rem; color: var(--gray-500); margin: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }

/* Flash */
.flash-message { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.flash-message .container { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; }
.flash-success { background: #dcfce7; color: #15803d; }
.flash-error   { background: #fee2e2; color: #b91c1c; }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; font-size: 1.1rem; }

/* ─── 20. Dashboard ─────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; min-height: calc(100vh - var(--navbar-h) - 60px); padding: 40px 0; }
.dashboard-sidebar { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); padding: 24px; height: fit-content; }
.dashboard-user-info { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); margin-bottom: 16px; }
.dashboard-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; font-weight: 700; margin: 0 auto 12px; }
.dashboard-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dashboard-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); transition: all var(--transition); }
.dashboard-nav a:hover, .dashboard-nav a.active { background: #eff6ff; color: var(--blue); }

/* ─── 21. Skeleton ──────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; margin-bottom: 12px; width: 60%; }
.skeleton-card { height: 180px; border-radius: var(--radius-lg); }

/* ─── 22. Admin ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); position: fixed; top: 0; left: 0; width: 256px; height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; }
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; }
.admin-sidebar-logo .brand-icon { background: rgba(255,255,255,0.1); }
.admin-sidebar-logo .brand-name { color: rgba(255,255,255,0.9); }
.admin-sidebar-logo .brand-tagline { color: rgba(255,255,255,0.4); }
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 8px 8px 4px; margin-top: 8px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); transition: all var(--transition); margin-bottom: 2px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav a.active { background: rgba(37,99,235,0.4); }
.admin-nav a i { width: 18px; text-align: center; }
.admin-main { margin-left: 256px; background: var(--gray-50); min-height: 100vh; }
.admin-header { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.admin-content { padding: 32px; }
.admin-page-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--gray-500); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* ─── 23. Misc ──────────────────────────────────────────────── */
.text-center { text-align: center; } .text-right { text-align: right; }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px} .mt-6{margin-top:48px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px} .mb-4{margin-bottom:32px}
.flex{display:flex} .flex-center{display:flex;align-items:center} .flex-between{display:flex;align-items:center;justify-content:space-between} .flex-wrap{flex-wrap:wrap} .gap-2{gap:16px} .d-none{display:none}
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-info    { background: #eff6ff; color: var(--blue); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.empty-state { text-align: center; padding: 64px 32px; }
.empty-state-icon { font-size: 3rem; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h4 { color: var(--gray-600); margin-bottom: 8px; }
.empty-state p  { color: var(--gray-400); font-size: 0.9rem; }
.progress-wrap { height: 8px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.progress-bar  { height: 100%; border-radius: 100px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.separator { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.separator::before, .separator::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.separator span { font-size: 0.8rem; color: var(--gray-400); white-space: nowrap; }

/* ─── 24. Filter Bar ────────────────────────────────────────── */
.filter-bar { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 16px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.filter-label { font-size: 0.8rem; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.filter-btn { padding: 6px 16px; border-radius: 100px; border: 2px solid var(--gray-200); background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--gray-600); cursor: pointer; transition: all var(--transition); font-family: var(--font); }
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
.filter-select { padding: 6px 32px 6px 14px; border-radius: 100px; border: 2px solid var(--gray-200); background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--gray-600); cursor: pointer; font-family: var(--font); appearance: none; outline: none; transition: all var(--transition); }
.filter-select:focus { border-color: var(--blue); }

/* ─── 25. Page Header ───────────────────────────────────────── */
.page-header { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%); padding: 60px 0 50px; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.2) 0%, transparent 70%); }
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: 2.5rem; margin-bottom: 10px; }
.page-header p  { color: rgba(255,255,255,0.65); font-size: 1rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a    { color: rgba(255,255,255,0.5); font-size: 0.82rem; transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.breadcrumb .current { color: rgba(255,255,255,0.8); font-size: 0.82rem; font-weight: 500; }

/* ─── 26. Footer ────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer p { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin-top: 12px; line-height: 1.7; }
.footer h6 { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 12px; }
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 16px; margin-bottom: 24px; line-height: 1.6; }

/* ─── 27. Animations ────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }
.animate-up   { animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-fade { animation: fadeIn 0.4s ease forwards; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-dot 1.5s ease-in-out infinite; }

/* ─── 28. Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .dashboard-layout { grid-template-columns: 1fr; } .dashboard-sidebar { display: none; } }
@media (max-width: 768px) {
  .navbar-menu { display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 20px; gap: 6px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); z-index: 999; }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 12px 16px; }
  .navbar-toggle { display: flex; }
  .company-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #earthquakeMap, #riskMap { height: 340px; }
  .map-overlay-card { display: none; }
  .hero { padding: 70px 0 50px; }
  .hero-stats { gap: 24px; }
  .section, .section-lg { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toast-container { left: 16px; right: 16px; }
  .toast { min-width: unset; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 20px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
