/* ============================================================================
   Marina Warns — Bootsfahrer-Portal
   Maritime Design System — inspiriert vom Backend (maritime.css)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables (identisch mit Marina2 Backend) ── */
:root {
  --ocean:        #002b5c;
  --ocean-mid:    #004080;
  --ocean-light:  #0066cc;
  --sky:          #e8f4fd;
  --sky-mid:      #cce4f7;
  --sand:         #d9c7a1;
  --sand-light:   #f5f0e8;
  --sand-dark:    #b8a07a;
  --wave:         #00a8e8;
  --wave-light:   #e0f7ff;
  --success:      #2ecc71;
  --success-bg:   #eafaf1;
  --success-dark: #1a7a44;
  --warning:      #f39c12;
  --warning-bg:   #fef9ec;
  --warning-dark: #9a6006;
  --danger:       #e74c3c;
  --danger-bg:    #fdecea;
  --danger-dark:  #922b21;
  --info:         #3498db;
  --info-bg:      #eaf4fd;
  --dark:         #1a2332;
  --text:         #2d3748;
  --text-muted:   #718096;
  --border:       #e2e8f0;
  --border-light: #f0f4f8;
  --white:        #ffffff;
  --bg:           #f7f9fc;
  --shadow-xs:    0 1px 3px rgba(0,43,92,.08);
  --shadow-sm:    0 2px 8px rgba(0,43,92,.10);
  --shadow-md:    0 4px 16px rgba(0,43,92,.12);
  --shadow-lg:    0 8px 32px rgba(0,43,92,.18);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;
  --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
  --nav-h:        64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ============================================================================
   NAVBAR — Top Bar
   ============================================================================ */
.navbar {
  background: var(--ocean);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,43,92,.25);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-link.active { color: var(--white); background: rgba(0,168,232,.18); border-left-color: var(--wave); font-weight: 600; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-user-btn:hover { background: rgba(255,255,255,.2); }
.nav-logout-btn {
  padding: 7px 14px;
  color: rgba(255,160,140,.9);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-logout-btn:hover { background: rgba(231,76,60,.15); color: #ff8070; }
.nav-cta {
  background: var(--wave);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
}
.nav-cta:hover { background: #0090ca; transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-left: auto;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--ocean-mid);
  z-index: 99;
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(0,43,92,.3);
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile.open { display: block; }
.nav-mobile .nav-link {
  display: flex;
  padding: 12px 20px;
  border-radius: 0;
  border-left-width: 4px;
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 50%, #004a8f 100%);
  color: var(--white);
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 10 30 30 Q45 50 60 30' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3C/svg%3E") repeat;
  background-size: 60px 60px;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,168,232,.2);
  border: 1px solid rgba(0,168,232,.35);
  color: rgba(255,255,255,.9);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-title span { color: var(--wave); }
.hero-sub {
  font-size: 1.15rem;
  opacity: .8;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--wave); letter-spacing: -1px; }
.hero-stat-label { font-size: 12px; opacity: .65; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ============================================================================
   SECTION
   ============================================================================ */
.section { padding: 60px 0; }
.section-alt { background: var(--sand-light); }
.section-ocean {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
  color: var(--white);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wave);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ocean);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-ocean .section-title { color: var(--white); }
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================================
   CARDS
   ============================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-wave   { border-top: 4px solid var(--wave); }
.card-ocean  { border-top: 4px solid var(--ocean); }
.card-sand   { border-top: 4px solid var(--sand); }
.card-success{ border-top: 4px solid var(--success); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.card-header h2, .card-header h3 {
  font-size: 16px; font-weight: 600; color: var(--ocean);
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.card-body { padding: 24px; }
.card-body.p-0 { padding: 0; }

/* Service Cards */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--wave), var(--ocean-light));
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--sky), var(--wave-light));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--ocean); margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* ============================================================================
   BERTH GRID (visual harbor map style)
   ============================================================================ */
.berth-visual-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.berth-tile {
  position: relative;
  width: 90px; height: 90px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.berth-tile:hover { transform: scale(1.06); box-shadow: var(--shadow-md); z-index: 2; }
.berth-tile.available   { background: #d4edda; border-color: #28a745; }
.berth-tile.occupied    { background: #f8d7da; border-color: #dc3545; cursor: default; }
.berth-tile.reserved    { background: #fff3cd; border-color: #ffc107; cursor: default; }
.berth-tile.maintenance { background: #e2e3e5; border-color: #6c757d; cursor: default; }
.berth-tile.blocked     { background: #d6d8db; border-color: #343a40; cursor: default; }
.berth-tile-num  { font-weight: 700; font-size: 13px; color: var(--dark); line-height: 1; }
.berth-tile-size { font-size: 10px; color: #555; margin-top: 3px; }
.berth-tile-icons { display: flex; gap: 3px; margin-top: 4px; }
.berth-tile-icon { font-size: 9px; }
.berth-tile-link { position: absolute; inset: 0; border-radius: inherit; }
/* not-available tiles have no link click, but available ones need overlay */
.berth-tile.available .berth-tile-link { cursor: pointer; }
.berth-tile:not(.available) .berth-tile-link { cursor: not-allowed; pointer-events: none; }

/* Berth List Cards */
.berth-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.berth-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all var(--transition);
}
.berth-list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.berth-list-card .card-top {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-mid));
  padding: 16px 20px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.berth-list-card .card-top h4 { font-size: 16px; font-weight: 700; margin: 0; }
.berth-list-card .card-top small { opacity: .7; font-size: 12px; }
.berth-list-card .card-body-inner { padding: 16px 20px; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
  min-height: 42px;
}
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.btn-primary:hover { background: var(--ocean-mid); border-color: var(--ocean-mid); box-shadow: 0 4px 12px rgba(0,43,92,.3); transform: translateY(-1px); }
.btn-wave { background: var(--wave); color: var(--white); border-color: var(--wave); }
.btn-wave:hover { background: #0090ca; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,168,232,.35); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #27ae60; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #c0392b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); border-color: var(--ocean-light); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; min-height: 34px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 52px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 7px;
  letter-spacing: .1px;
}
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  line-height: 1.5;
  appearance: none;
  min-height: 44px;
}
.form-control:focus {
  outline: none;
  border-color: var(--wave);
  box-shadow: 0 0 0 3px rgba(0,168,232,.12);
}
.form-control:hover:not(:focus) { border-color: var(--ocean-light); }
.form-control::placeholder { color: var(--text-muted); opacity: .7; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-section {
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.form-section-title {
  font-size: 15px; font-weight: 700; color: var(--ocean);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--sand);
  display: flex; align-items: center; gap: 8px;
}
@media (min-width: 640px) {
  .form-row.two   { grid-template-columns: 1fr 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .form-row.four  { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Option Cards (crane type, storage type) */
.option-cards { display: grid; gap: 12px; }
.option-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
}
.option-card:hover { border-color: var(--ocean-light); background: var(--sky); }
.option-card.selected { border-color: var(--ocean); background: var(--sky); box-shadow: 0 0 0 3px rgba(0,43,92,.1); }
.option-card input[type="radio"] { position: absolute; opacity: 0; }
.option-card-icon { font-size: 28px; flex-shrink: 0; }
.option-card-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--ocean); }
.option-card-text small  { color: var(--text-muted); font-size: 13px; }
@media (min-width: 640px) {
  .option-cards.two-col { grid-template-columns: 1fr 1fr; }
  .option-cards.three-col { grid-template-columns: 1fr 1fr 1fr; }
}

/* Checkbox group */
.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.check-item:hover { border-color: var(--ocean-light); background: var(--sky); }
.check-item input { width: 16px; height: 16px; accent-color: var(--ocean); flex-shrink: 0; }
.check-item span  { font-size: 14px; font-weight: 500; }

/* ============================================================================
   ALERTS
   ============================================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border-left: 4px solid;
  line-height: 1.5;
}
.alert-success { background: var(--success-bg); color: var(--success-dark); border-left-color: var(--success); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-dark);  border-left-color: var(--danger);  }
.alert-warning { background: var(--warning-bg); color: var(--warning-dark); border-left-color: var(--warning); }
.alert-info    { background: var(--info-bg);    color: var(--info);          border-left-color: var(--info);    }

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success   { background: var(--success-bg); color: var(--success-dark); border: 1px solid rgba(46,204,113,.25); }
.badge-danger    { background: var(--danger-bg);  color: var(--danger-dark);  border: 1px solid rgba(231,76,60,.25); }
.badge-warning   { background: var(--warning-bg); color: var(--warning-dark); border: 1px solid rgba(243,156,18,.25); }
.badge-info      { background: var(--info-bg);    color: var(--info);          border: 1px solid rgba(52,152,219,.25); }
.badge-secondary { background: var(--bg);         color: var(--text-muted);    border: 1px solid var(--border); }
.badge-primary   { background: var(--sky);        color: var(--ocean);         border: 1px solid rgba(0,43,92,.15); }

/* ============================================================================
   PAGE HEADER (inner pages)
   ============================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-mid));
  color: var(--white);
  padding: 40px 20px 36px;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.page-hero p  { opacity: .75; font-size: 14px; }

/* ============================================================================
   TABS
   ============================================================================ */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
}
.tab-item:hover { color: var(--ocean); background: var(--white); }
.tab-item.active {
  background: var(--ocean);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.tab-item .count {
  background: rgba(255,255,255,.2);
  color: inherit;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.tab-item.active .count { background: rgba(255,255,255,.25); }

/* ============================================================================
   MODAL
   ============================================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,43,92,.5);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .15s ease;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .2s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--ocean); margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: var(--text-muted);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

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

/* ============================================================================
   BOOKING CARDS (my_bookings)
   ============================================================================ */
.booking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.booking-card:hover { box-shadow: var(--shadow-sm); }
.booking-card-header {
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.booking-card-num { font-weight: 700; color: var(--ocean); font-size: 14px; font-family: monospace; }
.booking-card-body { padding: 16px 20px; }
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.booking-meta span { display: flex; align-items: center; gap: 6px; }

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

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: var(--ocean);
  color: rgba(255,255,255,.65);
  padding: 32px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { color: var(--white); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; width: 100%; text-align: center; margin-top: 8px; }

/* ============================================================================
   PRICE PREVIEW BOX
   ============================================================================ */
.price-preview {
  background: linear-gradient(135deg, var(--sky), var(--wave-light));
  border: 1.5px solid var(--wave);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.price-preview-label { font-size: 12px; color: var(--ocean); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.price-preview-value { font-size: 22px; font-weight: 800; color: var(--ocean); letter-spacing: -0.5px; }
.price-preview-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================================
   INFO BOX
   ============================================================================ */
.info-box {
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.info-box h4 { font-size: 14px; font-weight: 700; color: var(--ocean); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-box ul { padding-left: 0; display: flex; flex-direction: column; gap: 6px; }
.info-box li { font-size: 13.5px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; list-style: none; }
.info-box li::before { content: '•'; color: var(--wave); font-weight: 700; flex-shrink: 0; }

/* ============================================================================
   DETAIL ROWS
   ============================================================================ */
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  font-size: 14px; gap: 16px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.detail-value { color: var(--text); font-weight: 600; text-align: right; }

/* ============================================================================
   UTILITY
   ============================================================================ */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-ocean { color: var(--ocean); }
.text-wave  { color: var(--wave); }
.text-sm    { font-size: 13px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* ============================================================================
   FILTER BAR
   ============================================================================ */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-bar .form-group { margin: 0; min-width: 100px; flex: 1; }
.filter-bar .filter-checks { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-check-label {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  background: var(--white);
}
.filter-check-label:hover { border-color: var(--ocean-light); background: var(--sky); }
.filter-check-label input { accent-color: var(--ocean); }
.filter-check-label:has(input:checked) { border-color: var(--ocean); background: var(--sky); color: var(--ocean); }

/* View toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  color: var(--text-muted);
  text-decoration: none;
}
.view-btn:hover { border-color: var(--ocean-light); color: var(--ocean); }
.view-btn.active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }

/* ============================================================================
   DOCK SECTION (berths grouped by dock)
   ============================================================================ */
.dock-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  overflow: hidden;
}
.dock-header {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-mid));
  padding: 14px 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dock-header h3 { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.dock-header small { opacity: .65; font-size: 13px; }
.dock-body { padding: 20px; }

/* Legend */
.berth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid;
}
.legend-dot.available   { background: #d4edda; border-color: #28a745; }
.legend-dot.occupied    { background: #f8d7da; border-color: #dc3545; }
.legend-dot.reserved    { background: #fff3cd; border-color: #ffc107; }
.legend-dot.maintenance { background: #e2e3e5; border-color: #6c757d; }

/* ============================================================================
   CRANE SLOT PICKER
   ============================================================================ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.slot-btn {
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
  color: var(--text);
}
.slot-btn:hover:not(.slot-booked) { border-color: var(--ocean); color: var(--ocean); background: var(--sky); }
.slot-btn.slot-selected { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.slot-btn.slot-booked   { background: var(--danger-bg); border-color: rgba(231,76,60,.3); color: var(--text-muted); cursor: not-allowed; font-size: 11px; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 640px) {
  .hero { padding: 50px 16px 40px; }
  .hero-stats { gap: 24px; }
  .section { padding: 40px 0; }
  .card-body { padding: 16px; }
  .modal-box { border-radius: var(--radius-lg); }
  .tab-bar { gap: 2px; }
  .tab-item { padding: 8px 12px; font-size: 12.5px; }
  .page-hero { padding: 28px 16px; }
  .berth-tile { width: 76px; height: 76px; }
  .berth-tile-num { font-size: 12px; }
}
