/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #667eea;
  --primary-dark: #5a6fd6;
  --secondary: #764ba2;
  --accent: #f093fb;
  --success: #48bb78;
  --danger: #f56565;
  --warning: #ed8936;
  --info: #4299e1;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface2: #f0f4f8;
  --border: #e2e8f0;
  --text: #2d3748;
  --text2: #4a5568;
  --text3: #718096;
  --text4: #a0aec0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }
input, textarea, select { font-family: inherit; font-size: 14px; }
button { cursor: pointer; font-family: inherit; }
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; padding: 10px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 600; transition: all .2s; letter-spacing: .3px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102,126,234,.4); }
.btn-ghost { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.5); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 600; backdrop-filter: blur(10px); transition: all .2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; text-align: center; padding: 12px; margin-top: 8px; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; transition: all .2s; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.btn-icon { background: none; border: none; padding: 6px; border-radius: 8px; color: var(--text3); transition: all .2s; display: inline-flex; align-items: center; }
.btn-icon:hover { background: var(--surface2); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  padding: 10px 20px; border-radius: 50px; font-size: 14px; font-weight: 500; width: 100%; transition: all .2s;
}
.btn-google:hover { border-color: #4285F4; box-shadow: var(--shadow-sm); color: var(--text); }

/* ===== LANDING PAGE ===== */
.landing-body { background: #fff; }

.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.nav-brand { font-size: 20px; font-weight: 700; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.btn-nav-login { color: var(--primary) !important; }
.btn-nav-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; color: #fff !important; padding: 8px 20px; border-radius: 50px; font-weight: 600 !important; }

.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 32px 60px; gap: 60px; flex-wrap: wrap;
  background: linear-gradient(135deg, #667eea15, #764ba215), radial-gradient(ellipse at top right, #f093fb18, transparent 60%);
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23667eea' opacity='.15'/%3E%3C/svg%3E"); }
.hero-content { flex: 1; min-width: 300px; max-width: 540px; position: relative; }
.hero-badge { display: inline-block; background: linear-gradient(135deg, #667eea22, #764ba222); border: 1px solid #667eea44; color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; color: var(--text); margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 17px; color: var(--text2); line-height: 1.7; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-cta .btn-ghost { background: transparent; border-color: var(--border); color: var(--text2); }
.hero-cta .btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text3); font-weight: 500; }

.hero-visual { flex: 1; min-width: 300px; max-width: 480px; }
.mock-app { background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,0.15); overflow: hidden; border: 1px solid var(--border); }
.mock-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.mock-url { font-size: 12px; color: var(--text3); margin-left: 8px; background: var(--surface); padding: 3px 12px; border-radius: 20px; border: 1px solid var(--border); flex: 1; text-align: center; }
.mock-content { padding: 20px; }
.mock-map { background: linear-gradient(135deg, #e0f2fe, #bfdbfe); border-radius: 12px; height: 140px; display: flex; align-items: center; justify-content: center; font-size: 48px; margin-bottom: 16px; }
.mock-cards { display: flex; gap: 10px; }
.mock-card { flex: 1; padding: 14px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.mock-card small { font-weight: 400; opacity: .7; }
.mock-card.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.mock-card.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }
.mock-card.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; }

.features { padding: 80px 0; background: var(--bg); }
.section-title { text-align: center; font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); transition: all .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: 14px; line-height: 1.6; }

.how-it-works { padding: 80px 0; }
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.step { text-align: center; flex: 1; min-width: 200px; max-width: 240px; }
.step-num { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 16px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text2); font-size: 14px; }
.step-arrow { font-size: 32px; color: var(--text4); }

.cta-section { background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 80px 0; text-align: center; color: #fff; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.cta-section p { font-size: 18px; opacity: .85; margin-bottom: 32px; }
.cta-section .btn-primary { background: #fff; color: var(--primary); }

footer { background: var(--text); color: var(--text4); padding: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ===== AUTH MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; max-width: 420px; width: 100%; position: relative; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--surface2); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; color: var(--text3); }
.modal-close:hover { background: var(--border); }

.auth-form h2 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.auth-subtitle { color: var(--text3); font-size: 14px; margin-bottom: 24px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin: 16px 0 6px; }
.auth-form .hint { font-weight: 400; color: var(--text4); }
.auth-form input { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: border-color .2s; background: var(--surface); color: var(--text); }
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-row { display: flex; align-items: center; justify-content: space-between; }
.link-sm { font-size: 13px; color: var(--primary); }
.divider { text-align: center; position: relative; margin: 20px 0; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { position: relative; background: var(--surface); padding: 0 12px; color: var(--text4); font-size: 13px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text3); margin-top: 20px; }
.auth-error { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.auth-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }

/* ===== APP LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); position: fixed; left: 0; top: 0; bottom: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 50; overflow-y: auto;
  transition: transform .3s;
}
.sidebar-brand { padding: 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand-name { font-size: 18px; font-weight: 700; color: var(--text); }
.sidebar-user { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.sidebar-username { font-size: 14px; font-weight: 600; }
.sidebar-email { font-size: 12px; color: var(--text3); }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .15s; border-left: 3px solid transparent; margin: 2px 0;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, #667eea18, transparent); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.nav-item .nav-icon { font-size: 18px; width: 24px; text-align: center; }
.nav-badge { background: var(--danger); color: #fff; border-radius: 50px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: auto; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

.main-content { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }

.topbar {
  height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 20px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-search { display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 50px; padding: 6px 14px; width: 220px; }
.topbar-search input { border: none; background: none; outline: none; font-size: 13px; flex: 1; color: var(--text); }

.page-content { padding: 24px; }

/* ===== VIEWS ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== DASHBOARD ===== */
.welcome-card { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: var(--radius-lg); padding: 28px 32px; color: #fff; margin-bottom: 24px; position: relative; overflow: hidden; }
.welcome-card::after { content: '✈️'; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font-size: 80px; opacity: .2; }
.welcome-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.welcome-card p { opacity: .85; font-size: 15px; }
.unverified-banner { background: #fffbeb; border: 1px solid #fbd38d; border-radius: var(--radius); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.unverified-banner span { font-size: 14px; color: #7d4e1b; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-card .stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 13px; color: var(--text3); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h3 { font-size: 18px; font-weight: 700; }

/* ===== CARDS ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.card:hover { box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.trip-card { cursor: pointer; }
.trip-cover { height: 140px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; overflow: hidden; }
.trip-cover img { width: 100%; height: 100%; object-fit: cover; }
.trip-status-badge { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.status-planning { background: #fff3cd; color: #856404; }
.status-active { background: #d1e7dd; color: #155724; }
.status-completed { background: #cfe2ff; color: #0a58ca; }
.trip-info { padding: 16px; }
.trip-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.trip-dest { font-size: 13px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.trip-dates { font-size: 12px; color: var(--text4); margin-top: 6px; }
.trip-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tag { background: var(--surface2); color: var(--text3); padding: 2px 8px; border-radius: 50px; font-size: 11px; }

/* ===== MAP ===== */
#map { height: calc(100vh - var(--topbar-h) - 48px); border-radius: var(--radius); border: 1px solid var(--border); position: relative; }
.map-controls { position: absolute; top: 12px; right: 12px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.map-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ===== NOTES ===== */
.note-card { padding: 20px; }
.note-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.note-user { display: flex; align-items: center; gap: 10px; }
.note-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.note-meta { font-size: 12px; color: var(--text3); }
.note-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.note-content { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.note-mood { font-size: 20px; }
.note-location { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.note-actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.note-action-btn { background: none; border: none; color: var(--text3); font-size: 13px; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; transition: all .15s; }
.note-action-btn:hover { background: var(--surface2); color: var(--text); }
.note-action-btn.liked { color: #e53e3e; }

/* ===== FRIENDS ===== */
.friends-search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.friends-search-bar input { flex: 1; padding: 10px 16px; border: 2px solid var(--border); border-radius: 50px; font-size: 14px; outline: none; }
.friends-search-bar input:focus { border-color: var(--primary); }
.friend-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.friend-item:last-child { border-bottom: none; }
.friend-info { display: flex; align-items: center; gap: 12px; }
.friend-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.friend-name { font-size: 14px; font-weight: 600; }
.friend-bio { font-size: 12px; color: var(--text3); }
.friend-actions { display: flex; gap: 8px; }

/* ===== FORMS & MODALS ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: border-color .2s; background: var(--surface); color: var(--text); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.panel-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.panel-box { background: var(--surface); border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.panel-header h3 { font-size: 18px; font-weight: 700; }
.panel-body { padding: 24px; }
.panel-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ===== DETAIL PANEL ===== */
.detail-panel { position: fixed; right: 0; top: 0; bottom: 0; width: 400px; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 32px rgba(0,0,0,0.08); z-index: 60; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
.detail-panel.open { transform: translateX(0); }
.detail-panel-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.detail-panel-body { padding: 24px; }

/* ===== PLANNER / TRIP DETAIL ===== */
.trip-detail-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 32px; border-radius: var(--radius-lg); margin-bottom: 24px; position: relative; overflow: hidden; }
.trip-detail-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.trip-detail-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--surface2); border-radius: 50px; padding: 4px; width: fit-content; }
.tab-btn { padding: 8px 18px; border-radius: 50px; border: none; background: none; font-size: 13px; font-weight: 500; color: var(--text3); cursor: pointer; transition: all .2s; }
.tab-btn.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

.checklist-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checklist-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.checklist-item label { flex: 1; font-size: 14px; cursor: pointer; }
.checklist-item label.done { text-decoration: line-through; color: var(--text4); }

.expense-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.expense-category { font-size: 11px; background: var(--surface2); color: var(--text3); padding: 2px 8px; border-radius: 50px; }
.expense-amount { font-weight: 700; font-size: 15px; color: var(--primary); }

/* ===== NOTIFICATIONS ===== */
.notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: #f0f4ff; }
.notif-icon { font-size: 20px; flex-shrink: 0; }
.notif-text { font-size: 13px; }
.notif-title { font-weight: 600; margin-bottom: 2px; }
.notif-time { font-size: 11px; color: var(--text4); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ===== MOOD SELECTOR ===== */
.mood-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-option { cursor: pointer; padding: 6px 12px; border-radius: 50px; border: 2px solid var(--border); font-size: 18px; transition: all .15s; }
.mood-option.selected, .mood-option:hover { border-color: var(--primary); background: #667eea18; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideIn .3s ease; max-width: 320px; display: flex; align-items: center; gap: 8px; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .detail-panel { width: 100%; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}

/* ===== PROFILE ===== */
.profile-hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: var(--radius-lg); padding: 32px; color: #fff; display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.profile-avatar-lg { width: 80px; height: 80px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; flex-shrink: 0; object-fit: cover; }
.profile-name { font-size: 26px; font-weight: 700; }
.profile-bio { opacity: .85; font-size: 14px; margin-top: 4px; }
.profile-joined { font-size: 12px; opacity: .7; margin-top: 4px; }

/* ===== ENCRYPTION BADGE ===== */
.enc-badge { display: inline-flex; align-items: center; gap: 4px; background: #d1fae5; color: #065f46; border-radius: 50px; padding: 2px 10px; font-size: 11px; font-weight: 600; }

/* ===== LOADER ===== */
.loader { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== VISIBILITY INDICATOR ===== */
.vis-public { color: var(--success); } .vis-friends { color: var(--primary); } .vis-private { color: var(--text4); }

/* ===== WAYPOINTS / ROUTE-STOPS ===== */
.waypoint-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wp-dot { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--primary); }
.wp-dot.wp-start { color: var(--success); font-size: 16px; }
.wp-connector { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 4px 8px; border-left: 2px dashed var(--border); margin-left: 7px; min-height: 40px; }
.wp-transport-select { font-size: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 3px 6px; background: var(--surface2); color: var(--text1); cursor: pointer; }
.wp-input-wrap { flex: 1; position: relative; }
.wp-input { width: 100%; }
.wp-geo-ok { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }
.wp-remove { opacity: 0.5; font-size: 12px; }
.wp-remove:hover { opacity: 1; color: var(--danger); }

/* ===== ROUTE TIJDLIJN (detail paneel) ===== */
.route-timeline { padding: 8px 0; }
.route-stop { display: flex; flex-direction: column; }
.route-transport { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 24px; border-left: 2px dashed var(--border); margin-left: 7px; font-size: 18px; }
.route-point { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; }
.route-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; flex-shrink: 0; margin-top: 2px; }
.route-dot-start { background: var(--success); border-color: var(--success); }
.route-dot-end { background: var(--primary); }

/* ===== GROEPEN ===== */
.group-card { display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 20px; }
.group-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,.15); }
.group-card-avatar { font-size: 40px; flex-shrink: 0; width: 56px; text-align: center; }
.group-card-info { flex: 1; min-width: 0; }
.group-card-name { font-size: 16px; font-weight: 700; color: var(--text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-card-meta { font-size: 12px; color: var(--text4); margin-top: 2px; }
.group-card-desc { font-size: 13px; color: var(--text3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-pick { font-size: 24px; cursor: pointer; padding: 8px; border-radius: 8px; border: 2px solid transparent; transition: all .15s; display: inline-block; }
.avatar-pick:hover { background: var(--surface2); }
.avatar-pick.selected { border-color: var(--primary); background: var(--surface2); }

/* ===== GROEPSCHAT ===== */
.chat-msg { display: flex; align-items: flex-end; gap: 8px; }
.chat-msg-me { flex-direction: row-reverse; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.chat-bubble { max-width: 75%; background: var(--surface2); border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.chat-bubble-me { background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-name { font-size: 11px; font-weight: 600; color: var(--text4); margin-bottom: 2px; }
.chat-text { font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-bubble-me .chat-text { color: #fff; }
.chat-time { font-size: 10px; margin-top: 4px; opacity: .6; }
.btn-full { width: 100%; margin-bottom: 8px; }

/* ===== DETAILTABBLADEN ===== */
.trip-detail-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; background: var(--surface2); padding: 4px; border-radius: 12px; }
.tab-btn { flex: 1; padding: 8px 10px; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text3); cursor: pointer; transition: all .15s; white-space: nowrap; }
.tab-btn.active { background: #fff; color: var(--text1); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
