@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
  /* Brand Colors from real site */
  --cf-yellow: #FFF000;
  --cf-yellow-hover: #E6D800;
  --cf-blue: #002F6C;
  --cf-blue-dark: #001D40;
  --cf-blue-widget: #172459;
  --cf-text-dark: #333333;
  --cf-text-muted: #666666;
  --cf-border: #E5E7EB;
  
  --font-primary: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  color: var(--cf-text-dark);
  background-color: #F8F9FA;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================== MOBILE HEADER ================== */
.app-header {
  display: flex;
  align-items: stretch;
  height: 60px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.header-logo-block {
  background-color: var(--cf-yellow);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-block img {
  height: 32px;
}

.header-menu-btn {
  background-color: transparent;
  color: var(--cf-blue-dark);
  border: none;
  margin-left: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Header right user area */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 12px;
}
.header-user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,29,64,0.06);
  border: 1px solid rgba(0,29,64,0.12);
  border-radius: 30px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.header-user-chip:active { background: rgba(0,29,64,0.12); }
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cf-yellow);
  object-fit: cover;
  flex-shrink: 0;
}
.header-username {
  font-size: 11px;
  font-weight: 800;
  color: var(--cf-blue-dark);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}
.header-login-btn {
  background: var(--cf-blue);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* Tier badge image in tier cards */
.cc-tier-badge-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ================== MAIN & SCREENS ================== */
.app-main {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.app-screen {
  display: none;
  min-height: 100%;
  padding-bottom: 90px; /* Space for bottom nav */
}
.app-screen.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* ================== HERO SECTION (HOME) ================== */
.hero-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1498623116890-37e912163d5d?q=80&w=600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.booking-widget {
  background-color: rgba(23, 36, 89, 0.95);
  padding: 24px;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.booking-widget h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.booking-form-group {
  margin-bottom: 16px;
}

.booking-form-group label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #94A3B8;
  font-weight: 600;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper select, .date-input-wrap input {
  width: 100%;
  padding: 14px;
  background-color: #FFFFFF;
  border: none;
  border-radius: 2px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--cf-text-dark);
}

.swap-icon {
  position: absolute;
  right: 12px;
  color: var(--cf-blue);
  background: #F1F5F9;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prestazioni-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #FFFFFF;
  font-weight: 600;
}
.prestazioni-icons span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-yellow-large {
  width: 100%;
  background-color: var(--cf-yellow);
  color: var(--cf-blue-dark);
  border: none;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 800;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

/* ================== OFFERS SECTION ================== */
.offers-section {
  padding: 30px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.offers-title {
  color: var(--cf-blue-dark);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer-card {
  background: #FFFFFF;
  border: 1px solid var(--cf-border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.offer-img {
  height: 160px;
  background-color: #E2E8F0;
}

.offer-content {
  padding: 16px;
  text-align: center;
}

.offer-content h3 {
  color: var(--cf-blue-dark);
  font-size: 14px;
  font-weight: 700;
}

/* ================== BOTTOM NAVIGATION ================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--cf-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  z-index: 100;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.nav-tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  cursor: pointer;
  width: 80px;
  font-family: var(--font-primary);
}

.nav-tab-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.nav-tab-btn span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-tab-btn.active {
  color: var(--cf-blue-dark);
}

.nav-tab-btn.active svg {
  transform: translateY(-2px) scale(1.05);
}

/* ================== CORSICA CLUB SCREEN — PREMIUM ================== */

/* Hero for logged-out state */
.club-hero-header {
  position: relative;
  background: linear-gradient(160deg, #001D40 0%, #003080 100%);
  padding: 60px 20px 50px;
  text-align: center;
  overflow: hidden;
}
.club-hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,213,0,0.12) 0%, transparent 70%);
}
.club-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1498623116890-37e912163d5d?w=600&q=60') center/cover;
  opacity: 0.06;
}
.club-hero-content { position: relative; z-index: 2; }
.club-hero-logo {
  height: 64px;
  filter: drop-shadow(0 0 20px rgba(255,213,0,0.4));
  margin-bottom: 12px;
}
.club-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #FFD500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.club-hero-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Login panel */
.club-login-panel {
  background: #FFFFFF;
  margin: -1px 16px 24px;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  text-align: center;
}
.club-login-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(0,29,64,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--cf-blue);
}
.club-login-title { font-size: 18px; font-weight: 800; color: var(--cf-blue); margin-bottom: 8px; }
.club-login-desc { font-size: 13px; color: #64748B; line-height: 1.5; margin-bottom: 20px; }
.club-login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.club-login-input:focus { outline: none; border-color: var(--cf-blue); }
.club-login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #001D40, #003080);
  color: #FFD500;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
}
.club-login-btn:active { transform: scale(0.98); }

/* Logged-in Profile Hero */
.club-profile-hero {
  position: relative;
  background: linear-gradient(160deg, #001228 0%, #002060 100%);
  padding: 30px 20px 48px;
  overflow: hidden;
}
.club-hero-bg-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,213,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.club-profile-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.club-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #FFD500;
  box-shadow: 0 0 0 4px rgba(255,213,0,0.2);
  flex-shrink: 0;
}
.club-profile-info { flex: 1; }
.club-profile-name { font-size: 18px; font-weight: 900; color: #FFFFFF; letter-spacing: 0.5px; }
.club-profile-id { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.club-tier-pill {
  display: inline-block;
  background: rgba(255,213,0,0.15);
  color: #FFD500;
  border: 1px solid rgba(255,213,0,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.club-logout-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.club-logout-btn:active { background: rgba(239,68,68,0.2); color: #EF4444; }

/* Group warning */
.club-body-pad { padding: 0 16px; }
.club-group-warning {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
}
.club-group-warning svg { color: #D97706; flex-shrink: 0; margin-top: 1px; }
.club-warning-title { font-weight: 800; color: #92400E; font-size: 12px; margin-bottom: 2px; }
.club-warning-desc { font-size: 11px; color: #B45309; }

/* ===== MEMBERSHIP CARD ===== */
.cc-card-wrap {
  padding: 0 16px;
  margin-top: -22px;
  margin-bottom: 8px;
}
.cc-card {
  border-radius: 18px;
  padding: 22px;
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 6px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  transition: transform 0.2s ease;
}
.cc-card:active { transform: scale(0.985); }
.cc-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: cardSheen 5s infinite ease-in-out;
  pointer-events: none;
}
@keyframes cardSheen {
  0%   { background-position: 200% 0; }
  50%  { background-position: -50% 0; }
  100% { background-position: 200% 0; }
}
.cc-card-logo-bg {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 190px;
  height: 190px;
  background-image: url('club-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
}
.cc-card.yellow-club {
  background: linear-gradient(135deg, #FFE500 0%, #F59E0B 60%, #D97706 100%);
  color: #001D40;
}
.cc-card.silver-club {
  background: linear-gradient(135deg, #E8EEF4 0%, #94A3B8 60%, #4B5E72 100%);
  color: #0F1E2E;
}
.cc-card.gold-club {
  background: linear-gradient(135deg, #FFE082 0%, #F59E0B 55%, #92400E 100%);
  color: #3D1800;
}
.cc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  position: relative;
}
.cc-card-label { font-size: 10px; font-weight: 900; letter-spacing: 3px; opacity: 0.65; text-transform: uppercase; }
.cc-card-tier-txt { font-size: 14px; font-weight: 800; margin-top: 4px; opacity: 0.9; }
.cc-card-badge { height: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
.cc-card-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  z-index: 2;
  position: relative;
}
.cc-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  position: relative;
}
.cc-card-label-sm { font-size: 8px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.55; margin-bottom: 3px; }
.cc-card-num { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; letter-spacing: 2px; opacity: 0.9; }
.cc-card-coins-box { text-align: right; }
.cc-card-coins-val { font-size: 20px; font-weight: 900; }

/* ===== PROGRESS ===== */
.cc-progress-panel {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 18px;
  margin: 12px 0;
  border: 1px solid rgba(0,29,64,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.cc-progress-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cc-progress-current { font-size: 12px; font-weight: 800; color: var(--cf-blue); text-transform: uppercase; letter-spacing: 0.5px; }
.cc-progress-next { font-size: 11px; color: #94A3B8; font-weight: 600; }
.cc-progress-track { height: 10px; background: #F1F5F9; border-radius: 5px; overflow: hidden; }
.cc-progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.cc-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: cfill 2s infinite linear;
}
@keyframes cfill { 0%{transform:translateX(-100%)} 100%{transform:translateX(200%)} }
.cc-progress-fill.yellow-fill { background: linear-gradient(90deg, #FFD500, #F59E0B); }
.cc-progress-fill.silver-fill { background: linear-gradient(90deg, #94A3B8, #475569); }
.cc-progress-fill.gold-fill   { background: linear-gradient(90deg, #F59E0B, #92400E); }
.cc-progress-desc { font-size: 11px; color: #64748B; margin-top: 10px; line-height: 1.4; }

/* ===== TIER CARDS ===== */
.cc-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--cf-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 16px;
}
.cc-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.cc-tier-card {
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s;
}
.cc-tier-card:active { transform: scale(0.97); }
.cc-tier-card.tier-yellow { background: linear-gradient(160deg,#FFFDE7,#FFF9C4); border-color:#FFD500; box-shadow: 0 4px 12px rgba(255,213,0,0.15); }
.cc-tier-card.tier-silver { background: linear-gradient(160deg,#F8FAFC,#EEF2F7); border-color:#CBD5E1; box-shadow: 0 4px 12px rgba(100,116,139,0.1); }
.cc-tier-card.tier-gold   { background: linear-gradient(160deg,#FFFBF0,#FEF3C7); border-color:#F59E0B; box-shadow: 0 4px 12px rgba(245,158,11,0.15); }
.cc-tier-icon { margin-bottom: 6px; }
.cc-tier-icon img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.cc-tier-name { font-size: 11px; font-weight: 900; color: var(--cf-blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.cc-tier-range { font-size: 9px; font-weight: 700; color: #94A3B8; margin-bottom: 8px; }
.cc-tier-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-tier-perks li { font-size: 10px; color: #475569; font-weight: 600; background: rgba(0,0,0,0.04); padding: 4px 6px; border-radius: 5px; line-height: 1.3; }
/* ================== TRAVERSATE SCREEN ================== */
.crossing-header-row {
  margin-bottom: 20px;
}

.crossing-header-row h1 {
  font-size: 22px;
  color: var(--cf-blue);
  margin-bottom: 16px;
  text-align: center;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  color: #94A3B8;
}

.search-wrap input {
  padding: 12px 12px 12px 36px;
  border: 1px solid var(--cf-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  width: 100%;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--cf-border);
  background: #FFFFFF;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 13px;
  color: var(--cf-text-muted);
}
.filter-tab.active {
  background: var(--cf-blue);
  color: #FFFFFF;
  border-color: var(--cf-blue);
}

.crossings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mob-crossing-card {
  background: #FFFFFF;
  border: 1px solid var(--cf-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.mob-crossing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mob-route-time {
  font-size: 16px;
  font-weight: 800;
  color: var(--cf-blue);
  margin-right: 12px;
}

.mob-route-city {
  font-size: 13px;
  color: var(--cf-text-dark);
  font-weight: 600;
}

.mob-crossing-ship {
  font-size: 11px;
  color: var(--cf-text-muted);
}

.mob-fav-btn {
  background: none; border: none; color: #CBD5E1; cursor: pointer;
}
.mob-fav-btn.active { color: #F43F5E; fill: #F43F5E; }

.mob-crossing-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.mob-crossing-status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.pill-scheduled { background: #E2E8F0; color: #475569; }
.pill-boarding { background: #D1FAE5; color: #059669; }
.pill-departed { background: #DBEAFE; color: #1D4ED8; }
.pill-completed { background: #F1F5F9; color: #94A3B8; }

.mob-countdown-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cf-blue);
}

/* ================== TOAST ================== */
.toast-area {
  position: fixed;
  bottom: 80px;
  right: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.mob-toast {
  background: #FFFFFF;
  border-left: 4px solid var(--cf-blue);
  padding: 12px 16px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(120%);
  animation: slideUpToast 0.3s forwards;
  pointer-events: auto;
}
.mob-toast.warning { border-left-color: #F59E0B; }

@keyframes slideUpToast {
  to { transform: translateY(0); }
}

.mob-toast-desc {
  font-size: 13px;
}

.mob-toast-close {
  background: none; border: none; color: #94A3B8;
}

/* ================== BOTTOM SHEET ================== */
.bottom-sheet-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: flex-end;
}
.bottom-sheet-overlay.active { display: flex; }

.bottom-sheet {
  background: #FFFFFF;
  width: 100%;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 24px;
}
.bottom-sheet.open { transform: translateY(0); }

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.bottom-sheet-handle {
  width: 40px; height: 4px; background: #E2E8F0; border-radius: 2px;
  margin: 0 auto;
}
.bottom-sheet-close {
  background: none; border: none; font-size: 20px; color: #64748B;
}
.mob-btn {
  padding: 12px; border-radius: 4px; font-weight: 700; border: none; width: 100%;
}
.mob-btn-blue { background: var(--cf-blue); color: #FFF; }
.mob-btn-yellow { background: var(--cf-yellow); color: var(--cf-blue-dark); }

/* ================== DEV SIMULATOR ================== */
.dev-toggle-btn {
  position: fixed; top: 20px; right: 20px;
  background: #1E293B; color: #FFF; border: none; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dev-panel {
  position: fixed; top: 70px; right: 20px;
  background: #0F172A; color: #F8FAFC; width: 300px;
  border-radius: 12px; padding: 16px; z-index: 9999; display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); font-size: 13px;
}
.dev-panel.active { display: block; }
.dev-header { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 700; border-bottom: 1px solid #334155; padding-bottom: 8px; }
.dev-header button { background: none; border: none; color: #EF4444; }
.dev-row { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.dev-row-inline { display: flex; justify-content: space-between; margin-bottom: 12px; }
.dev-row input[type="text"] { padding: 6px; border-radius: 4px; border: 1px solid #475569; background: #1E293B; color: #FFF; }
.divider-top { border-top: 1px solid #334155; padding-top: 12px; }
.dev-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dev-btn-grid button, .btn-dev-action { background: #334155; color: #FFF; border: none; padding: 6px; border-radius: 4px; }
.btn-dev-action { width: 100%; margin-bottom: 12px; background: var(--cf-blue); }
.dev-btn-grid button.primary { background: var(--cf-blue); }
/* ================== HOME CAROUSEL ================== */
.home-carousel {
  position: relative; width: 100%; height: 260px; overflow: hidden;
  border-radius: 0 0 20px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 20px;
}
.home-carousel-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.home-carousel-track::-webkit-scrollbar { display: none; }
.home-carousel-slide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: start;
  background-size: cover; background-position: center; position: relative;
}
.home-carousel-slide::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}
.home-carousel-overlay {
  position: absolute; bottom: 25px; left: 20px; right: 20px; z-index: 2; color: #FFF;
}
.home-carousel-overlay h3 {
  font-size: 24px; font-weight: 800; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.home-carousel-overlay p {
  font-size: 14px; opacity: 0.95; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.home-carousel-indicators {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.home-carousel-indicators .indicator {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s ease;
}
.home-carousel-indicators .indicator.active {
  background: #FFF; width: 16px; border-radius: 4px;
}

/* ================== ONBOARD SCREEN ================== */
.onboard-header {
  background: linear-gradient(135deg, var(--cf-blue-dark), var(--cf-blue));
  padding: 30px 20px 20px;
  color: #FFF;
  text-align: center;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.onboard-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.onboard-ship-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.onboard-deck-selector {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.onboard-deck-selector::-webkit-scrollbar { display: none; }

.deck-btn {
  flex: 0 0 auto;
  padding: 10px 24px;
  background: #FFFFFF;
  border: 1.5px solid var(--cf-border);
  border-radius: 24px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: var(--cf-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.deck-btn.active {
  background: var(--cf-yellow);
  border-color: var(--cf-yellow);
  color: var(--cf-blue-dark);
  box-shadow: 0 4px 12px rgba(255, 213, 0, 0.3);
}
.deck-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F1F5F9;
}

.onboard-map-container {
  margin: 0 20px 24px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--cf-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.onboard-map-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: auto; /* preparation for pan/zoom */
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.onboard-deck-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.onboard-map-hint {
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 12px;
  font-weight: 600;
}

.onboard-poi-legend {
  margin: 0 20px 24px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--cf-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.onboard-poi-legend h3 {
  font-size: 14px;
  color: var(--cf-blue);
  margin-bottom: 16px;
  font-weight: 800;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 12px;
}

.onboard-poi-legend ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboard-poi-legend li {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--cf-text-dark);
  font-weight: 600;
}

.poi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 12px;
  display: inline-block;
}
