/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1687C4;
  --primary-dark: #0D5F8B;
  --secondary: #F0A928;
  --accent: #168A61;
  --bg: #FFFDF9;
  --bg2: #FFF7EE;
  --bg3: #E8F6FB;
  --card: #FFFFFF;
  --card-hover: #FFF9F2;
  --border: #E6DEDA;
  --text: #242131;
  --text-muted: #655F70;
  --text-dim: #8A8394;
  --success: #168A61;
  --warning: #A86400;
  --danger: #C3425A;
  --info: #176C9A;
  --gold: #A86B00;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(53, 35, 20, 0.08);
  --shadow-lg: 0 16px 44px rgba(22, 135, 196, 0.14);
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background-image: radial-gradient(circle at 8% 0%, rgba(240, 169, 40, 0.16), transparent 28rem), radial-gradient(circle at 94% 14%, rgba(57, 177, 226, 0.14), transparent 30rem);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

:focus-visible { outline: 3px solid rgba(240, 169, 40, .9); outline-offset: 3px; }
.skip-link { position:fixed; left:16px; top:10px; z-index:2000; transform:translateY(-160%); background:var(--text); color:#fff; padding:10px 14px; border-radius:10px; font-weight:800; }
.skip-link:focus { transform:translateY(0); color:#fff; }

img { max-width: 100%; display: block; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--text-muted); line-height: 1.7; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== NAVBAR ===== */
.navbar {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img { width:100%; height:100%; display:block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg3);
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-user:hover { border-color: var(--primary); }

.avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.avatar-lg {
  width: 56px !important;
  height: 56px !important;
  font-size: 1.1rem !important;
  border-radius: 50%;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--primary);
  color: var(--text);
}

.btn-success {
  background: linear-gradient(135deg, #43E97B, #38F9D7);
  color: #0F0F1A;
}

.btn-success:hover { transform: translateY(-2px); color: #0F0F1A; }

.btn-danger {
  background: linear-gradient(135deg, #FF6584, #ee0979);
  color: white;
}

.btn-danger:hover { transform: translateY(-2px); color: white; }

.btn-warning {
  background: linear-gradient(135deg, #FFD166, #ff9a00);
  color: #0F0F1A;
}

.btn-warning:hover { color: #0F0F1A; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-sm { padding: 16px; }
.card-flat { transform: none !important; }
.card-flat:hover { transform: none !important; }

/* ===== LISTING CARD ===== */
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px 12px 18px 12px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.listing-card-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.listing-card-body { padding: 16px 20px; flex: 1; }
.listing-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.listing-country-flag { font-size: 1.5rem; }

.listing-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.listing-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.price-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.incentive-tag {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary { background: rgba(108,99,255,0.2); color: var(--primary); }
.badge-success { background: rgba(67,233,123,0.2); color: var(--success); }
.badge-warning { background: rgba(255,209,102,0.2); color: var(--warning); }
.badge-danger { background: rgba(255,101,132,0.2); color: var(--danger); }
.badge-info { background: rgba(79,195,247,0.2); color: var(--info); }
.badge-muted { background: rgba(136,136,170,0.15); color: var(--text-muted); }

.badge-active { background: rgba(67,233,123,0.2); color: var(--success); }
.badge-stale { background: rgba(255,209,102,0.2); color: var(--warning); }
.badge-in_progress { background: rgba(79,195,247,0.2); color: var(--info); }
.badge-cancelled { background: rgba(255,101,132,0.15); color: var(--danger); }
.badge-acknowledged { background: rgba(67,233,123,0.2); color: var(--success); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }

select.form-control option { background: var(--bg3); color: var(--text); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 6px; display: none; }
.form-error.show { display: block; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, var(--bg3) 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Keep the public homepage calm; deeper tools remain available from their
   dedicated pages and footer without competing with the primary actions. */
.hero-copy > p { max-width: 34rem; font-size: 1.05rem; }
.stats-bar { padding-block: 18px; }
.stats-inner { gap: 18px; }
.stat-item { min-width: 0; }
.stat-number { font-size: 1.55rem; }
.section-header > p { max-width: 38rem; }

@media (max-width: 760px) {
  .navbar-inner { height: 58px; gap: 10px; }
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 8px; font-size: .82rem; }
  .hero { padding-block: 48px 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .journey-art { min-height: 250px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 35% 32%, rgba(57,177,226,.15) 0%, transparent 42%), radial-gradient(circle at 78% 72%, rgba(240,169,40,.14) 0%, transparent 38%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57,177,226,.13);
  border: 1px solid rgba(22,135,196,.28);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #1687c4;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 36px; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); align-items:center; gap:48px; position:relative; z-index:1; }
.hero-copy { text-align:left; }
.hero-copy p { margin-left:0; margin-right:0; }
.hero h1 span { background:linear-gradient(100deg,#1687c4 10%,#f0a928 90%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.journey-art { min-height:330px; position:relative; background:rgba(255,255,255,.78); border:1px solid #c9e2f1; border-radius:28px 18px 28px 18px; box-shadow:14px 18px 0 rgba(239,180,60,.16),var(--shadow-lg); transform:rotate(1.5deg); overflow:hidden; }
.journey-art::before { content:''; position:absolute; inset:12px; border:1px dashed rgba(22,135,196,.38); border-radius:20px 12px 20px 12px; pointer-events:none; }
.journey-stamp { position:absolute; z-index:4; top:24px; right:28px; color:#1687c4; font-weight:900; letter-spacing:.12em; line-height:1; transform:rotate(8deg); text-align:center; font-size:1.1rem; border:1px dashed rgba(22,135,196,.5); border-radius:8px; background:rgba(255,255,255,.74); padding:8px; cursor:pointer; }
.journey-stamp span { font-size:.53rem; color:#e39b20; }
.journey-stamp.is-curious { animation:stampWiggle .4s ease; }
.gozo-reward { position:relative; margin-top:18px; border:1px solid rgba(22,135,196,.28); border-radius:22px; background:linear-gradient(135deg,#fff 0%,#eef8ff 62%,#fff7e2 100%); padding:24px; box-shadow:var(--shadow-lg); }
.gozo-reward[hidden] { display:none; }
.gozo-reward h2 { margin:4px 0 10px; }
.gozo-reward small { display:block; margin-top:12px; color:var(--text-muted); line-height:1.45; }
.gozo-reward-close { position:absolute; right:14px; top:12px; width:40px; height:40px; border:0; border-radius:50%; background:rgba(22,135,196,.1); color:#16384d; font-size:1.4rem; cursor:pointer; }
.gozo-reward-blur { margin:16px 0; padding:18px; border-radius:14px; background:#16384d; color:#fff; font-weight:900; letter-spacing:.16em; filter:blur(5px); user-select:none; }
.gozo-reward-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.gozo-reward-option { min-height:112px; border:1px solid #c9e2f1; border-radius:16px; background:#fff; color:#16384d; padding:16px; text-align:left; cursor:pointer; }
.gozo-reward-option:hover,.gozo-reward-option:focus-visible { border-color:#1687c4; transform:translateY(-2px); }
.gozo-reward-option strong,.gozo-reward-option span { display:block; }
.gozo-reward-option span { margin-top:6px; color:var(--text-muted); font-size:.84rem; line-height:1.4; }
.gozo-reward-code { display:flex; flex-direction:column; gap:4px; margin:14px 0; padding:16px; border:1px dashed #1687c4; border-radius:14px; background:#fff; }
.gozo-reward-code span { font-size:.68rem; color:var(--text-muted); letter-spacing:.14em; }
.gozo-reward-code strong { font-size:clamp(1rem,3vw,1.45rem); overflow-wrap:anywhere; }
.gozo-reward-success { color:#157347; font-weight:800; }
@keyframes stampWiggle { 0%,100%{transform:rotate(8deg)} 33%{transform:rotate(1deg) scale(1.05)} 66%{transform:rotate(13deg) scale(.98)} }
.route-map { position:absolute; inset:34px 18px 46px; width:calc(100% - 36px); height:calc(100% - 80px); overflow:visible; }
.route-line { fill:none; stroke:#1687c4; stroke-width:4; stroke-linecap:round; stroke-dasharray:8 10; }
.route-progress { fill:none; stroke:#f0a928; stroke-width:3; stroke-linecap:round; stroke-dasharray:3 7; opacity:.8; pointer-events:none; }
.route-dot { fill:#f0a928; stroke:#fff; stroke-width:4; }
.route-dot-start,.route-dot-end { fill:#1687c4; }
.route-plane { fill:#1687c4; transform:translate(52px,180px); transition:transform .7s cubic-bezier(.22,.8,.2,1); }
.journey-route-controls { position:absolute; inset:0; z-index:2; }
.route-fact-button { position:absolute; width:28px; height:28px; padding:0; border:2px solid #fff; border-radius:50%; background:#1687c4; box-shadow:0 3px 10px rgba(22,56,77,.24); color:transparent; cursor:pointer; }
.route-fact-button:hover,.route-fact-button:focus-visible { outline:3px solid rgba(240,169,40,.42); outline-offset:3px; transform:scale(1.12); }
.route-fact-button.is-active { background:#e39b20; transform:scale(1.12); }
.route-fact-start { left:12%; bottom:26%; }.route-fact-middle { left:63%; top:29%; background:#f0a928; }.route-fact-end { right:7%; top:13%; }
.journey-route-tip { position:absolute; z-index:3; left:22px; right:22px; bottom:66px; padding:9px 11px; border:1px solid rgba(22,135,196,.25); border-radius:10px; background:rgba(255,255,255,.94); color:#16384d; font-size:.76rem; line-height:1.4; box-shadow:0 5px 16px rgba(22,56,77,.1); pointer-events:none; }
.journey-label { position:absolute; display:flex; flex-direction:column; gap:2px; color:#16384d; }
.journey-label small { color:#1687c4; font-size:.62rem; font-weight:800; letter-spacing:.12em; }
.journey-label strong { font-size:.9rem; }
.journey-from { left:32px; bottom:42px; }
.journey-to { right:30px; top:74px; text-align:right; }
.luggage-tag { position:absolute; left:34%; bottom:24px; display:flex; align-items:center; gap:8px; color:#e39b20; font-size:1.5rem; transform:rotate(-6deg); }
.luggage-tag span { color:#16384d; font-size:.59rem; font-weight:800; letter-spacing:.1em; line-height:1.2; }
.listing-card::after { content:'✈'; position:absolute; top:10px; right:14px; color:#1687c4; opacity:.42; font-size:1rem; }
.listing-card:hover { transform:translateY(-5px) rotate(-.35deg); }
.auth-travel-note { display:flex; align-items:center; justify-content:center; gap:8px; margin:-4px 0 14px; color:#1687c4; font-size:.78rem; font-weight:700; }
.auth-travel-note span { color:#e39b20; font-size:1.1rem; }
.heading-route-mark { color:#1687c4; font-size:.8em; display:inline-block; transform:rotate(-12deg); }
.listing-logistics { margin:0 0 16px; padding:14px 16px; background:linear-gradient(135deg,rgba(232,246,251,.95),rgba(255,247,238,.9)); border:1px solid #c9e2f1; border-radius:14px; }
.listing-logistics-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.listing-logistics-grid span { display:inline-flex; align-items:center; min-height:28px; padding:4px 9px; border-radius:999px; background:rgba(255,255,255,.78); color:var(--text); font-size:.78rem; font-weight:700; }
.listing-customs-note { margin-top:10px; color:var(--text); font-size:.82rem; line-height:1.55; }
.listing-customs-footnote { margin-top:8px; color:var(--text-muted); font-size:.72rem; line-height:1.45; }
.listing-share { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:20px 0 4px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:linear-gradient(135deg,rgba(232,246,251,.72),rgba(255,255,255,.84)); }
.listing-share-note { color:var(--text-muted); font-size:.76rem; line-height:1.45; max-width:410px; }
.listing-share-actions { display:flex; gap:8px; flex-wrap:wrap; }
.listing-share-status { width:100%; min-height:1.2em; color:var(--success); font-size:.78rem; font-weight:700; }
.listing-share-status.is-error { color:var(--danger, #b42318); }
.starter-disclosure { margin-bottom:16px; font-size:.8rem; line-height:1.5; }
@keyframes routeDash { to { stroke-dashoffset:-180; } }
@keyframes planeHop { 0%,100% { transform:translate(52px,180px) rotate(0deg); } 50% { transform:translate(190px,78px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .route-line,.route-plane { animation:none; transition:none; } .listing-card:hover { transform:none; } }
@media (max-width:640px) { .gozo-reward-options { grid-template-columns:1fr; } }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ===== SECTION ===== */
.section { padding: 60px 20px; }
.section-header { margin-bottom: 36px; }
.section-title { margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ===== FILTERS ===== */
.filters-bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: 6px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover, .filter-chip.active {
  background: rgba(108,99,255,0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.search-bar {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 8px 16px 8px 38px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}

.search-bar input:focus { border-color: var(--primary); }
.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-lg { max-width: 720px; }

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title { font-size: 1.2rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--danger); border-color: var(--danger); color: white; }

.modal-body { padding: 0 24px 24px; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid;
}

.alert-success { background: rgba(67,233,123,0.1); border-color: rgba(67,233,123,0.3); color: var(--success); }
.alert-warning { background: rgba(255,209,102,0.1); border-color: rgba(255,209,102,0.3); color: var(--warning); }
.alert-danger { background: rgba(255,101,132,0.1); border-color: rgba(255,101,132,0.3); color: var(--danger); }
.alert-info { background: rgba(79,195,247,0.1); border-color: rgba(79,195,247,0.3); color: var(--info); }

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: slideInToast 0.3s ease forwards;
  font-size: 0.88rem;
  font-weight: 500;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }
.toast.fadeout { animation: fadeOutToast 0.3s ease forwards; }

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOutToast {
  to { opacity: 0; transform: translateX(20px); }
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; background: var(--bg2); border-radius: var(--radius); padding: 4px; border: 1px solid var(--border); }
.tab-btn {
  flex: 1;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active { background: var(--primary); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== RATING ===== */
.rating { color: var(--gold); font-size: 0.82rem; font-weight: 700; }

/* ===== USER CHIP ===== */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  font-size: 0.78rem;
}

.user-chip .avatar { width: 22px; height: 22px; font-size: 0.6rem; }

/* ===== LOADING ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,26,0.85);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== PAYMENT WALL ===== */
.payment-wall {
  max-width: 480px;
  margin: 80px auto;
  padding: 48px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.payment-wall .payment-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* ===== DASHBOARD LAYOUT (v6) ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.sidebar-profile {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-content {
  padding: 32px 28px;
  overflow-y: auto;
}

/* ===== RESPONSIVE — dashboard ===== */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: none;
  }
  .sidebar-card { padding: 12px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-profile { display: none; }
  .main-content { padding: 20px 16px; }
}

/* ===== SIDEBAR NAV BUTTONS ===== */
.btn-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.btn-nav:hover,
.btn-nav.active {
  background: rgba(108,99,255,0.15);
  color: var(--primary);
}

.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

/* ===== ROLE TOGGLE ===== */
.role-toggle {
  display: flex;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.role-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.role-btn.active {
  background: var(--primary);
  color: white;
}

/* ===== LISTINGS GRID ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 { margin-bottom: 8px; color: var(--text-muted); font-size: 1.1rem; }
.empty-state p { font-size: 0.88rem; }

/* ===== INTEREST ITEM ===== */
.interest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: border-color var(--transition);
  flex-wrap: wrap;
}

.interest-item:hover { border-color: var(--primary); }

/* ===== AUTH PAGE ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(108,99,255,0.08) 0%, transparent 60%);
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
}

.auth-logo { text-align: center; margin-bottom: 32px; }

/* ===== OTP INPUTS ===== */
.otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.step.active .step-dot { background: var(--primary); border-color: var(--primary); }
.step.active { color: var(--primary); }
.step.done .step-dot { background: var(--success); border-color: var(--success); }
.step.done { color: var(--success); }

/* ===== FEE TOOLTIP ===== */
.fee-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.fee-tooltip-icon {
  cursor: help;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 2px 4px;
}

.fee-tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 240px;
  line-height: 1.5;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow);
}

.fee-tooltip-wrap:hover .fee-tooltip-box,
.fee-tooltip-icon:focus + .fee-tooltip-box { display: block; }

/* ===== SUSPICIOUS WARNING ===== */
.suspicious-warning {
  background: rgba(255,209,102,0.08);
  border: 1px solid rgba(255,209,102,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
}
.suspicious-warning:not(.show) { display: none; }

/* ===== PRICE OPTIONS ===== */
.price-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 20px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FEATURE GRID ===== */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-icon.purple { background: rgba(108,99,255,0.15); }
.feature-icon.green  { background: rgba(67,233,123,0.15); }
.feature-icon.pink   { background: rgba(255,101,132,0.15); }
.feature-icon.yellow { background: rgba(255,209,102,0.15); }
.feature-icon.blue   { background: rgba(79,195,247,0.15); }
.feature-icon.orange { background: rgba(255,154,0,0.15); }

/* ===== SECTION PANEL ===== */
.section-panel { display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.pulse { animation: pulse 2s ease infinite; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
}
footer p { font-size: 0.85rem; color: var(--text-muted); }
footer .footer-links {
  display: flex; gap: 20px; justify-content: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
footer .footer-links a {
  font-size: 0.85rem; color: var(--text-muted);
  transition: color var(--transition);
}
footer .footer-links a:hover { color: var(--primary); }

/* ===== TRUST BADGE BAR (v6) ===== */
.trust-badge-bar {
  background: linear-gradient(90deg,rgba(67,233,123,0.10),rgba(108,99,255,0.10));
  border-bottom: 1px solid rgba(67,233,123,0.18);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* ===== FAB — Floating Action Button ===== */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 24px rgba(108,99,255,0.45);
  transition: all var(--transition);
  text-decoration: none;
}
.fab:hover {
  background: var(--primary-dark);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.55);
  color: #fff;
}
.fab-tooltip {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 1499;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all var(--transition);
}
.fab:hover ~ .fab-tooltip,
.fab-wrap:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.fab-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .navbar { padding: 0 12px; }
  .navbar-inner { height: auto; min-height: 64px; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
  .logo { font-size: 1.25rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .nav-links a { display: block; padding: 6px 10px; white-space: nowrap; font-size: 0.82rem; }
  .nav-actions { margin-left: auto; }
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns:1fr; gap:28px; }
  .hero-copy { text-align:center; }
  .hero-copy p { margin-left:auto; margin-right:auto; }
  .journey-art { min-height:260px; transform:none; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .section { padding: 44px 16px; }
  .section-header { margin-bottom: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .card { border-radius: 16px; }
  .fab-wrap { bottom: 20px; right: 18px; }
  .fab-tooltip { right: 18px; bottom: 86px; }
}
.activity-source-label { max-width:760px; margin:12px auto 0; text-align:center; color:var(--text-muted); font-size:.78rem; }
.launch-disclosure { max-width:760px; margin:8px auto 0; color:var(--text-muted); font-size:.76rem; }
.stats-bar[aria-busy="true"] .stat-loading { opacity:.55; }
