  :root {
    --navy: #0d1b2a;
    --navy-mid: #1a2e42;
    --navy-light: #253d56;
    --ocean: #1a6b8a;
    --ocean-light: #2a8db5;
    --foam: #e8f4f8;
    --sand: #f5ede0;
    --gold: #c9a84c;
    --gold-light: #e5c46e;
    --white: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7a8d;
    --success: #1a8a5a;
    --danger: #c0392b;
    --warn: #d4860a;
    --border: rgba(26,107,138,0.15);
    --card-shadow: 0 4px 24px rgba(13,27,42,0.08);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { max-width: 100%; overflow-x: hidden; }
  body { font-family: 'DM Sans', sans-serif; background: #f0f4f8; color: var(--text); min-height: 100vh; }
  img, table { max-width: 100%; }
  h1,h2,h3 { font-family: 'Playfair Display', serif; }

  /* NAV */
  .nav { background: var(--navy); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
  .nav-logo { font-family: 'Playfair Display', serif; color: var(--white); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
  .nav-logo span { color: var(--gold); }
  .nav-mode { display: flex; gap: 4px; }
  .mode-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
  .mode-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 500; }

  /* SCREENS */
  .screen { display: none; min-height: calc(100vh - 60px); }
  .screen.active { display: block; }

  /* ========== CLIENT SCREEN ========== */
  .hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--ocean) 100%); padding: 40px 24px 32px; color: white; }
  .hero h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
  .hero p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 24px; }
  /* HERO ICON ROW */
  .hero-icons-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; width: 100%; gap: 2px; }
  .hero-icons-row .vessel-btn { height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); transition: all 0.2s; flex: 1; min-width: 0; position: relative; text-decoration: none; }
  .hero-icons-row .vessel-btn .icon-label { font-size: 9px; color: rgba(255,255,255,0.65); text-align: center; line-height: 1.1; overflow: hidden; width: 100%; white-space: nowrap; text-overflow: ellipsis; }
  .hero-icons-row .vessel-btn.active { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
  .hero-icons-row .vessel-btn.active { border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 0 8px rgba(255,255,255,0.4); transform: scale(1.05); }
  .hero-icons-row .vessel-btn.active .icon-label { color: #fff; }
  .hero-icons-row .hero-sep { width: 1px; height: 50px; background: rgba(255,255,255,0.2); flex-shrink: 0; margin: 0 3px; }
  .hero-icons-row .loc-btn { border: none; }
  .hero-icons-row .loc-btn .loc-emoji { font-size: 22px; line-height: 1; }
  .hero-icons-row .loc-btn .loc-label { font-size: 9px; color: rgba(255,255,255,0.8); font-weight: 600; text-align: center; line-height: 1.2; overflow: hidden; width: 100%; }
  .hero-icons-row .cat-all-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); }
  .hero-icons-row .loc-btn-all { flex: 1; min-width: 0; background: rgba(255,255,255,0.12); }

  .search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: white; padding: 12px 24px; border-bottom: 1px solid #e2e8f0; }
  .search-select { background: white; border: 1px solid #e2e8f0; color: var(--navy); padding: 10px 14px; border-radius: 10px; font-size: 14px; font-family: 'DM Sans', sans-serif; flex: 1; min-width: 140px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%230d1b2a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 28px; }
  .search-select:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 2px rgba(26,107,138,0.15); }
  .search-select option { background: white; color: var(--navy); }
  .search-btn { background: var(--gold); border: none; color: var(--navy); padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.2s; }
  .search-btn:hover { background: #e8b500; }
  .smart-filters { justify-content: center; }
  .smart-filters .search-select { flex: 0 1 160px; min-width: 120px; }
  .filter-toggle { display:flex; align-items:center; gap:6px; background:white; border:1px solid #e2e8f0; padding:8px 14px; border-radius:10px; cursor:pointer; font-size:14px; font-family:'DM Sans',sans-serif; color:var(--navy); transition:all .2s; white-space:nowrap; user-select:none; }
  .filter-toggle:hover { border-color:var(--ocean); background:var(--foam); }
  .filter-toggle input[type="checkbox"] { accent-color:var(--ocean); width:16px; height:16px; cursor:pointer; }
  .filter-toggle input:checked + span { font-weight:600; }

  .section { padding: 24px; }
  .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .section-title { font-size: 20px; color: var(--navy); }
  .section-count { font-size: 13px; color: var(--text-muted); }

  .yacht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
  .yacht-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
  .yacht-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(13,27,42,0.14); }
  .yacht-thumb { height: 200px; background: linear-gradient(135deg, var(--ocean) 0%, var(--navy) 100%); display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; overflow: hidden; }
  .yacht-thumb img.yacht-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .yacht-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(13,27,42,0.5) 100%); pointer-events: none; }
  .crew-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .yacht-status { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; font-family: 'DM Sans', sans-serif; }
  .vessel-type-badge { position: absolute; top: 10px; left: 10px; background: rgba(13,27,42,0.55); backdrop-filter: blur(4px); border-radius: 8px; padding: 5px 7px; display: flex; align-items: center; justify-content: center; }
  .vessel-avail-badge { position: absolute; top: 10px; right: 10px; border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 600; backdrop-filter: blur(4px); }
  .vessel-avail-badge.free { background: rgba(22,163,74,0.85); color: #fff; }
  .vessel-avail-badge.busy { background: rgba(239,68,68,0.85); color: #fff; }
  .yacht-discounts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
  .yacht-disc { background: #e8f4f8; color: #1a6b8a; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; border: 1px solid rgba(26,107,138,0.15); }
  .status-free { background: rgba(26,138,90,0.9); color: white; }
  .status-busy { background: rgba(192,57,43,0.9); color: white; }
  .yacht-body { padding: 16px; }
  .yacht-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
  .yacht-city { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
  .yacht-specs { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
  .spec { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
  .spec-val { color: var(--text); font-weight: 500; }
  .yacht-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
  .yacht-price { font-size: 18px; font-weight: 600; color: var(--ocean); }
  .yacht-price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
  .stars { color: var(--gold); font-size: 13px; }
  .btn-book { background: var(--ocean); color: white; border: none; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
  .btn-book:hover { background: var(--ocean-light); }

  /* BOOKING MODAL */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(13,27,42,0.6); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
  .modal-overlay.open { display: flex; }
  .modal { background: white; border-radius: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
  .modal-header { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; }
  .modal-header h2 { font-size: 22px; color: var(--navy); }
  .modal-close { background: var(--foam); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
  .settings-tab { flex: 1; padding: 7px 10px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 7px; color: var(--text-muted); transition: all 0.2s; border: none; background: transparent; font-family: 'DM Sans', sans-serif; }
  .stg-btn { background: transparent; border: 1px solid rgba(26,107,138,0.3); color: var(--ocean); padding: 6px 8px; border-radius: 8px; font-size: 16px; cursor: pointer; line-height: 1; transition: background 0.15s; }
  .stg-btn:hover { background: var(--foam); }
  .settings-tab.active { background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(13,27,42,0.1); }
  .modal-body { padding: 20px 24px 24px; }
  .modal-section { margin-bottom: 16px; }
  .modal-section-title { font-size: 13px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
  .crew-list { display: flex; gap: 10px; }
  .crew-item { text-align: center; }
  .crew-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--foam); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ocean); margin: 0 auto 4px; }
  .crew-name { font-size: 11px; color: var(--text); }
  .crew-role { font-size: 10px; color: var(--text-muted); }
  .form-group { margin-bottom: 14px; }
  .form-label { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; display: block; }
  .form-input { width: 100%; background: var(--foam); border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--text); outline: none; transition: border-color 0.2s; }
  .form-input:focus { border-color: var(--ocean-light); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .price-box { background: var(--foam); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
  .price-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
  .price-line.total { font-weight: 600; font-size: 16px; color: var(--navy); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
  .btn-primary { background: var(--gold); color: var(--navy); border: none; width: 100%; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: 16px; transition: background 0.2s; }
  .btn-primary:hover { background: var(--gold-light); }
  .reviews-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
  .review-item { background: var(--foam); border-radius: 10px; padding: 10px 12px; }
  .review-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
  .review-author { font-size: 13px; font-weight: 500; }
  .review-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .tag-grid { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  .tag { background: var(--foam); color: var(--ocean); border-radius: 20px; padding: 4px 10px; font-size: 12px; }

  /* CLIENT BOOKINGS */
  .my-bookings { padding: 0 24px 16px; }
  .booking-item { background: white; border-radius: 10px; padding: 9px 12px; margin-bottom: 7px; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 10px; }
  .booking-icon { width: 34px; height: 34px; background: var(--foam); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .booking-info { flex: 1; }
  .booking-name { font-size: 13px; font-weight: 500; margin-bottom: 1px; }
  .booking-meta { font-size: 11px; color: var(--text-muted); }
  .badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
  .badge-pending { background: #fff3cd; color: #856404; }
  .badge-approved { background: #d4edda; color: #155724; }
  .badge-declined { background: #f8d7da; color: #721c24; }
  .badge-banned { background: #f8d7da; color: #721c24; }
  .badge-active { background: #d4edda; color: #155724; }
  .badge-paused { background: #f0f0f0; color: #666; }

  /* ========== OWNER SCREEN ========== */
  .owner-wrap { padding: 24px; max-width: 800px; }
  .owner-header { background: linear-gradient(135deg, var(--navy-mid), var(--ocean)); border-radius: 16px; padding: 20px 24px; color: white; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
  .owner-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex-shrink: 0; }
  .owner-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
  .owner-sub { font-size: 13px; opacity: 0.8; }
  .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
  .stat-card { background: white; border-radius: 14px; padding: 16px; box-shadow: var(--card-shadow); }
  .stat-val { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
  .stat-lbl { font-size: 12px; color: var(--text-muted); }
  .owner-section { background: white; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--card-shadow); }
  .owner-section-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
  .booking-request { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
  .req-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
  .req-client { font-size: 14px; font-weight: 500; }
  .req-detail { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
  .req-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .btn-accept { background: var(--success); color: white; border: none; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .btn-alt-time { background: var(--foam); color: var(--ocean); border: 1.5px solid var(--ocean); padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .btn-alt-vessel { background: #fff8e1; color: #b8860b; border: 1.5px solid #d4a843; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .btn-decline { background: white; color: var(--danger); border: 1.5px solid var(--danger); padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .tariff-grid { display: grid; gap: 8px; }
  .tariff-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--foam); border-radius: 8px; }
  .tariff-name { font-size: 13px; color: var(--text); }
  .tariff-price { font-size: 14px; font-weight: 600; color: var(--ocean); }
  .yacht-reg-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
  .yacht-icon { font-size: 28px; }
  .yacht-reg-info { flex: 1; }
  .yacht-reg-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
  .yacht-reg-meta { font-size: 12px; color: var(--text-muted); }
  .add-btn { background: transparent; border: 1.5px dashed var(--ocean-light); color: var(--ocean); padding: 12px; border-radius: 12px; font-size: 14px; cursor: pointer; font-family: 'DM Sans', sans-serif; width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .balance-bar { background: linear-gradient(135deg, #0d1b2a, #1a6b8a); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; color: white; }
  .balance-amount { font-size: 22px; font-weight: 700; color: #e5c46e; }
  .balance-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
  .btn-withdraw { background: #c9a84c; color: #0d1b2a; border: none; padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
  .btn-withdraw:hover { background: #e5c46e; }
  .blockout-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
  .blockout-input { background: var(--foam); border: 1.5px solid transparent; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text); outline: none; }
  .blockout-input:focus { border-color: var(--ocean-light); }
  .btn-blockout { background: var(--ocean); color: white; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .blockout-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .blockout-tag { background: #fff3cd; color: #856404; border: 1px solid #ffc107; border-radius: 20px; padding: 3px 10px; font-size: 12px; display: flex; align-items: center; gap: 5px; }
  .blockout-remove { cursor: pointer; font-size: 14px; opacity: 0.7; }
  .review-card-owner { background: var(--foam); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
  .review-card-owner-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }

  /* ========== ADMIN SCREEN ========== */
  .admin-wrap { padding: 24px; max-width: 900px; }
  .admin-header { background: linear-gradient(135deg, #1a0a2e, #2d1466); border-radius: 16px; padding: 20px 24px; color: white; margin-bottom: 20px; }
  .admin-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
  .admin-sub { font-size: 13px; opacity: 0.7; }
  .admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: white; padding: 4px; border-radius: 12px; box-shadow: var(--card-shadow); }
  .admin-tab { flex: 1; padding: 8px 12px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 9px; color: var(--text-muted); transition: all 0.2s; border: none; background: transparent; font-family: 'DM Sans', sans-serif; }
  .admin-tab.active { background: var(--navy); color: white; }
  .admin-panel { display: none; }
  .admin-panel.active { display: block; }
  .complaint-card { background: white; border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--card-shadow); border-left: 4px solid var(--warn); }
  .complaint-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
  .complaint-title { font-size: 15px; font-weight: 600; color: var(--navy); }
  .complaint-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; background: var(--foam); padding: 10px 12px; border-radius: 8px; }
  .complaint-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
  .admin-actions { display: flex; gap: 8px; }
  .btn-warn { background: #fff3cd; color: #856404; border: 1px solid #ffc107; padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .btn-ban { background: var(--danger); color: white; border: none; padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .btn-resolve { background: var(--success); color: white; border: none; padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .verify-card { background: white; border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--card-shadow); }
  .verify-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .verify-name { font-size: 15px; font-weight: 600; color: var(--navy); }
  .docs-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .doc-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; }
  .doc-row { display: flex; align-items: center; justify-content: space-between; background: var(--foam); border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; }
  .doc-row-left { display: flex; align-items: center; gap: 8px; }
  .doc-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .doc-icon-ok { background: #d4edda; }
  .doc-icon-pending { background: #fff3cd; }
  .doc-name { font-size: 13px; font-weight: 500; color: var(--text); }
  .doc-status-ok { font-size: 11px; color: var(--success); }
  .doc-status-pending { font-size: 11px; color: #856404; }
  .btn-download { background: var(--ocean); color: white; border: none; padding: 5px 12px; border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; text-decoration: none; }
  .btn-download:hover { background: var(--ocean-light); }
  .btn-download-na { background: var(--foam); color: var(--text-muted); border: 1px dashed rgba(0,0,0,0.15); padding: 5px 12px; border-radius: 7px; font-size: 12px; cursor: default; }
  .doc-ok { background: #d4edda; color: #155724; }
  .doc-pending { background: #fff3cd; color: #856404; }
  .banned-card { background: white; border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 14px; }
  .banned-icon { width: 40px; height: 40px; background: #f8d7da; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .banned-info { flex: 1; }
  .banned-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
  .banned-reason { font-size: 12px; color: var(--text-muted); }
  .btn-unban { background: white; color: var(--success); border: 1.5px solid var(--success); padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .decline-option { display: flex; align-items: flex-start; gap: 10px; background: var(--foam); border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: all 0.15s; font-size: 13px; color: var(--text); }
  .decline-option:hover { border-color: var(--border); }
  .decline-option input[type=radio] { margin-top: 1px; accent-color: var(--ocean); flex-shrink: 0; }
  .decline-option:has(input:checked) { border-color: var(--ocean); background: #e8f4f8; }
  .all-bookings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .all-bookings-table th { text-align: left; padding: 8px 12px; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
  .all-bookings-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .all-bookings-table tr:last-child td { border-bottom: none; }

  /* TOAST */
  .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--navy); color: white; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 999; transition: transform 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.3); white-space: nowrap; }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* EMPTY STATE */
  .empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
  .empty-icon { font-size: 48px; margin-bottom: 12px; }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 900px) {
    .nav { padding: 0 16px; }
    .nav-logo { font-size: 20px; }
    .mode-btn { padding: 5px 11px; font-size: 11px; }
    .section { padding: 20px 16px; }
    .yacht-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
    .hero { padding: 32px 18px 26px; }
    .hero h1 { font-size: 28px; }
  }

  @media (max-width: 640px) {
    .nav { padding: 0 12px; height: 56px; }
    .nav-logo { font-size: 18px; }
    .nav-mode { gap: 3px; }
    .mode-btn { padding: 5px 9px; font-size: 10px; }

    .section { padding: 18px 14px; }
    .section-title { font-size: 17px; }
    .section-count { font-size: 12px; }

    .yacht-grid { grid-template-columns: 1fr; gap: 14px; }
    .yacht-thumb { height: 200px; }
    .yacht-name { font-size: 16px; }
    .yacht-body { padding: 14px; }
    .yacht-specs { gap: 8px; margin-bottom: 10px; }
    .yacht-price { font-size: 16px; }
    .yacht-footer { flex-wrap: wrap; gap: 8px; }
    .btn-book { padding: 7px 14px; font-size: 12px; }

    .hero { padding: 20px 0 16px; }
    .hero > div:first-child { padding: 0 16px; }
    .hero h1 { font-size: 22px; line-height: 1.2; }
    .hero p { font-size: 12px; margin-bottom: 16px; }

    .hero-icons-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px 10px; overflow: visible; }
    .hero-icons-row .hero-sep { display: none; }
    .hero-icons-row .vessel-btn { height: 78px; padding: 6px 2px; min-width: 0; flex: unset; }
    .hero-icons-row .vessel-btn svg { width: 30px; height: 30px; }
    .hero-icons-row .vessel-btn .icon-label { font-size: 10px; white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.2; text-align: center; max-height: 2.4em; }
    .hero-icons-row .loc-btn .loc-label { font-size: 13px; }
    .hero-icons-row .loc-btn, .hero-icons-row .cat-all-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); }
  .hero-icons-row .loc-btn-all { display: none; }

    .hero { padding-bottom: 8px; }
    .search-row { padding: 10px 16px; gap: 8px; background: var(--navy-mid); border: none; }
    .search-select { min-width: 0; flex: 1; padding: 10px 12px; padding-right: 28px; font-size: 13px; background-color: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); border-radius: 20px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-position: right 10px center; }
    .search-select option { background: var(--navy); color: white; }
    .smart-filters { gap: 6px; }
    .smart-filters .search-select { flex: 1 1 30%; min-width: 0; }
    .filter-toggle { flex: 0 1 auto; padding: 8px 10px; font-size: 13px; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); border-radius: 20px; }
    .filter-toggle input[type="checkbox"] { accent-color: var(--gold); }

    .form-row { grid-template-columns: 1fr 1fr; }

    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal { max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
    .modal-header { padding: 16px 18px 0; }
    .modal-header h2 { font-size: 19px; }

    .admin-tabs { flex-wrap: wrap; }
    .settings-tab { font-size: 12px; padding: 6px 8px; }
    .all-bookings-table { font-size: 11px; }
    .all-bookings-table th, .all-bookings-table td { padding: 6px 6px; }

    .toast { left: 12px; right: 12px; transform: translateY(80px); max-width: calc(100% - 24px); white-space: normal; }
    .toast.show { transform: translateY(0); }
  }

  @media (max-width: 380px) {
    .hero h1 { font-size: 20px; }
    .hero-icons-row { gap: 8px; }
    .hero-icons-row .vessel-btn { height: 64px; }
    .hero-icons-row .vessel-btn svg { width: 26px; height: 26px; }
    .hero-icons-row .vessel-btn .icon-label { font-size: 13px; }
    .mode-btn { padding: 4px 7px; font-size: 9px; }
  }

  /* FOOTER */
  .site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 0; font-size: 13px; }
  .footer-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 24px; }
  .footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
  .footer-logo { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 22px; font-weight: 700; text-decoration: none; display: block; margin-bottom: 6px; }
  .footer-logo span { color: var(--gold); }
  .footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 280px; }
  .footer-socials { display: flex; gap: 10px; }
  .footer-social { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--gold); transition: background 0.2s; }
  .footer-social:hover { background: rgba(255,255,255,0.15); }
  .footer-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-bottom: 40px; }
  .footer-col { display: flex; flex-direction: column; gap: 6px; }
  .footer-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
  .footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; font-size: 13px; }
  .footer-col a:hover { color: var(--gold); }
  .footer-info { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }
  .footer-info strong { color: rgba(255,255,255,0.75); }
  .footer-faq { display: flex; flex-direction: column; }
  .footer-faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-faq-item:last-child { border-bottom: none; }
  .footer-faq-q { cursor: pointer; padding: 7px 0; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.7); }
  .footer-faq-a { display: none; font-size: 11px; color: rgba(255,255,255,0.45); padding-bottom: 8px; line-height: 1.6; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.35); }
  .footer-links { display: flex; gap: 16px; }
  .footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; }
  .footer-links a:hover { color: var(--gold); }
  @media (max-width: 1024px) {
    .footer-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  }
  @media (max-width: 768px) {
    .footer-grid-5 { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-wrap { padding: 32px 16px 20px; }
  }
  @media (max-width: 480px) {
    .footer-grid-5 { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-links { flex-direction: column; gap: 8px; align-items: center; }
  }

  /* AUTH PAGES */
  .auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #1a6b8a 100%); }
  .auth-card { background: white; border-radius: 20px; box-shadow: 0 12px 48px rgba(0,0,0,0.25); width: 100%; max-width: 480px; overflow: hidden; }
  .auth-header { background: linear-gradient(135deg, #0d1b2a, #1a3a5c); padding: 32px 28px 24px; text-align: center; }
  .auth-header h1 { font-size: 26px; color: white; margin-bottom: 6px; font-family: 'Playfair Display', serif; }
  .auth-header p { font-size: 14px; color: rgba(255,255,255,0.7); }
  .auth-tabs { display: flex; gap: 4px; margin: 0; background: var(--foam); padding: 4px; border-radius: 0; }
  .auth-tab { flex: 1; padding: 10px; text-align: center; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 9px; color: var(--text-muted); transition: all 0.2s; border: none; background: transparent; font-family: 'DM Sans', sans-serif; }
  .auth-tab.active { background: var(--navy); color: white; box-shadow: 0 1px 4px rgba(13,27,42,0.1); }
  .auth-body { padding: 24px 28px 28px; }
  .auth-form { display: none; }
  .auth-form.active { display: block; }
  .auth-link { text-align: center; padding: 16px 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
  .auth-link a { color: var(--ocean); text-decoration: none; font-weight: 500; }
  .auth-link a:hover { text-decoration: underline; }
  .form-error { background: #fef2f2; color: var(--danger); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; display: none; }
  .form-error.visible { display: block; }
  .form-success { background: #f0fdf4; color: var(--success); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; display: none; }
  .form-success.visible { display: block; }
  .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

  /* PARTNER HERO */
  .partner-hero { background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #1a6b8a 100%); color: white; padding: 28px 40px 24px; }
  .partner-hero-inner { max-width: 1000px; margin: 0 auto; }
  .partner-hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
  .partner-hero-user { display: flex; align-items: center; gap: 16px; }
  .partner-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #e5c46e, #c9973f); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #0d1b2a; flex-shrink: 0; }
  .partner-hero-name { font-size: 20px; font-weight: 700; font-family: 'Playfair Display', serif; }
  .partner-hero-sub { font-size: 13px; opacity: 0.7; margin-top: 2px; }
  .partner-hero-actions { display: flex; gap: 10px; }
  .btn-hero-add { background: #e5c46e; color: #0d1b2a; border: none; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-flex; align-items: center; }
  .btn-hero-add:hover { background: #f0d67a; }
  .btn-hero-withdraw { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .btn-hero-withdraw:hover { background: rgba(255,255,255,0.2); }
  .partner-hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .hero-stat { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 16px; text-align: center; }
  .hero-stat-icon { font-size: 22px; margin-bottom: 4px; }
  .hero-stat-val { font-size: 20px; font-weight: 700; font-family: 'Playfair Display', serif; }
  .hero-stat-lbl { font-size: 11px; opacity: 0.7; margin-top: 2px; }

  /* DASHBOARD TAB */
  .dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
  .dash-main { display: flex; flex-direction: column; gap: 20px; }
  .dash-side { display: flex; flex-direction: column; gap: 20px; }
  .dash-card { background: white; border-radius: 16px; padding: 22px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
  .dash-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .dash-card-title { font-size: 16px; font-weight: 700; color: var(--navy); }
  .dash-balance { background: linear-gradient(135deg, #1a6b8a, #0d4a6b); border-radius: 16px; padding: 22px; color: white; }
  .dash-request { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--foam); border-radius: 12px; margin-bottom: 10px; }
  .dash-request:last-child { margin-bottom: 0; }
  .dash-request-info { flex: 1; min-width: 0; }
  .dash-request-title { font-size: 14px; font-weight: 700; color: var(--navy); }
  .dash-request-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .dash-request-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .dash-vessel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .dash-vessel-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .dash-vessel-photo { height: 110px; background-size: cover; background-position: center; background-color: var(--foam); display: flex; align-items: center; justify-content: center; position: relative; }
  .dash-vessel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
  .dash-vessel-overlay span { background: #ef4444; color: white; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .dash-vessel-body { padding: 12px; }
  .dash-vessel-name { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-vessel-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
  .dash-vessel-bottom { display: flex; justify-content: space-between; align-items: center; }
  .dash-vessel-price { font-size: 13px; font-weight: 600; color: var(--ocean); }
  .dash-trip { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--foam); align-items: center; }
  .dash-trip:last-child { border-bottom: none; }

  /* PARTNER DASHBOARD */
  .partner-page { padding: 24px; max-width: 1000px; margin: 0 auto; }
  .partner-section { background: white; border-radius: 14px; padding: 20px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
  .partner-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .partner-section-head h2 { font-size: 18px; color: var(--navy); }
  .btn-add { background: var(--ocean); color: white; border: none; padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .btn-add:hover { background: var(--ocean-light); }
  .vessel-list { display: flex; flex-direction: column; gap: 12px; }
  .vessel-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
  .vessel-row-thumb { width: 80px; height: 60px; border-radius: 8px; background: linear-gradient(135deg, var(--ocean), var(--navy)); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
  .vessel-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .vessel-row-info { flex: 1; }
  .vessel-row-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
  .vessel-row-meta { font-size: 12px; color: var(--text-muted); }
  .vessel-row-actions { display: flex; gap: 6px; }
  .btn-sm { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; border: none; }
  .btn-sm-view { background: white; color: var(--text-muted); border: 1px solid var(--border) !important; }
  .btn-sm-view:hover { color: var(--ocean); border-color: var(--ocean) !important; }
  .btn-sm-edit { background: var(--foam); color: var(--ocean); }
  .btn-sm-pause { background: #fff3cd; color: #856404; }
  .btn-sm-activate { background: #d4edda; color: #155724; }
  .btn-sm-del { background: #fef2f2; color: var(--danger); }

  /* PARTNER TABS */
  .partner-tabs { display: flex; gap: 6px; background: white; padding: 6px; border-radius: 14px; box-shadow: var(--card-shadow); margin-bottom: 24px; flex-wrap: wrap; }
  .partner-tab { flex: 1; padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 10px; color: var(--text-muted); transition: all 0.2s; border: 1px solid rgba(0,0,0,0.08); background: transparent; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
  .partner-tab.active { background: var(--navy); color: white; border-color: var(--navy); }
  .partner-tab:hover:not(.active) { background: var(--foam); border-color: rgba(0,0,0,0.12); }
  .tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; font-size: 11px; font-weight: 600; background: var(--danger); color: white; line-height: 1; }
  .partner-tab.active .tab-badge { background: white; color: var(--navy); }
  .partner-panel { display: none; }
  .partner-panel.active { display: block; }

  /* REVIEW CARDS */
  .review-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
  .review-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .review-card-author { font-size: 14px; font-weight: 600; color: var(--navy); }
  .review-card-vessel { font-size: 13px; color: var(--text-muted); }
  .review-card-text { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 6px; }
  .review-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
  .review-reply { background: var(--foam); border-radius: 8px; padding: 10px 14px; margin-top: 8px; }
  .review-reply-label { font-size: 12px; font-weight: 500; color: var(--ocean); margin-bottom: 4px; }
  .review-reply-text { font-size: 13px; color: var(--text); line-height: 1.5; }
  .review-reply-form { margin-top: 10px; }
  .btn-reply { background: transparent; border: 1px solid var(--ocean); color: var(--ocean); padding: 5px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: 6px; }
  .btn-reply:hover { background: var(--foam); }

  /* ACCORDION */
  .accordion { display: flex; flex-direction: column; gap: 8px; }
  .accordion-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: white; border: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--navy); font-family: 'DM Sans', sans-serif; text-align: left; gap: 12px; }
  .accordion-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
  .accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
  .accordion-trigger:hover { background: var(--foam); }
  .accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .accordion-item.open .accordion-body { max-height: 500px; }
  .accordion-body > p { padding: 0 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
  .video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--foam); border-radius: 10px; margin: 0 18px 18px; padding: 40px 20px; }
  .video-placeholder span { font-size: 13px; color: var(--text-muted); }

  /* CREW CARDS */
  .crew-grid { display: flex; flex-direction: column; gap: 10px; }
  .crew-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
  .crew-card-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--foam); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: var(--ocean); flex-shrink: 0; overflow: hidden; }
  .crew-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .crew-card-info { flex: 1; }
  .crew-card-name { font-size: 15px; font-weight: 600; color: var(--navy); }
  .crew-card-role { font-size: 13px; color: var(--text-muted); }
  .crew-card-bio { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .crew-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

  /* CREW CHIPS (assigned to vessel) */
  .crew-assigned { display: flex; gap: 8px; flex-wrap: wrap; }
  .crew-chip { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--border); border-radius: 24px; padding: 5px 10px 5px 5px; transition: box-shadow 0.2s; }
  .crew-chip:hover { box-shadow: 0 2px 8px rgba(13,27,42,0.1); }
  .crew-chip-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--foam), rgba(26,107,138,0.15)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--ocean); flex-shrink: 0; overflow: hidden; }
  .crew-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .crew-chip-name { font-size: 13px; font-weight: 500; color: var(--navy); }
  .crew-chip-role { font-size: 10px; color: var(--text-muted); }
  .crew-chip-remove { width: 18px; height: 18px; border-radius: 50%; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all 0.15s; font-size: 0; margin-left: 2px; flex-shrink: 0; }
  .crew-chip-remove::before { content: ''; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; }
  .crew-chip-remove:hover { background: #fef2f2; color: var(--danger); }

  /* CREW PICK LIST (select from existing) */
  .crew-pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .crew-pick-btn { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 12px 5px 5px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text); cursor: pointer; transition: all 0.2s; }
  .crew-pick-btn:hover { border-color: var(--ocean-light); background: var(--foam); }
  .crew-pick-btn.assigned { background: linear-gradient(135deg, var(--foam), rgba(26,107,138,0.08)); border-color: var(--ocean); color: var(--ocean); font-weight: 500; }
  .crew-pick-btn.assigned::after { content: ''; width: 14px; height: 14px; margin-left: 2px; background: var(--ocean); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; flex-shrink: 0; }
  .crew-pick-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--foam); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--ocean); overflow: hidden; flex-shrink: 0; }
  .crew-pick-avatar img { width: 100%; height: 100%; object-fit: cover; }

  /* PHOTO UPLOAD */
  .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
  .photo-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--foam); }
  .photo-item img { width: 100%; height: 100%; object-fit: cover; }
  .photo-delete { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.6); color: white; border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; opacity: 0; transition: opacity 0.2s; }
  .photo-item:hover .photo-delete { opacity: 1; }
  .upload-dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 32px 20px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color 0.2s, background 0.2s; }
  .upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--ocean); background: var(--foam); }
  .upload-dropzone span { font-size: 14px; color: var(--text-muted); }
  .upload-hint { font-size: 12px !important; color: var(--text-muted); opacity: 0.7; }
  .upload-progress { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
  .upload-progress-bar { height: 6px; background: var(--ocean); border-radius: 3px; transition: width 0.3s; width: 0; flex: 1; position: relative; }
  .upload-progress-bar::before { content: ''; position: absolute; inset: 0; background: var(--foam); border-radius: 3px; z-index: -1; }
  #uploadStatus, #videoUploadStatus { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

  /* MEDIA SPLIT (photos + videos) */
  .media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .media-block { min-width: 0; }
  .media-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
  .media-block-head h3 { font-size: 16px; font-weight: 600; margin: 0; }
  .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
  .video-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #111; }
  .video-item video { width: 100%; height: 100%; object-fit: cover; }
  .video-item-preview { position: relative; width: 100%; height: 100%; }
  .video-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; pointer-events: none; }
  .video-item:hover .photo-delete { opacity: 1; }
  .btn-vessel-submit { width: 100%; padding: 16px; font-size: 16px; font-weight: 600; }

  @media (max-width: 768px) {
    .media-split { grid-template-columns: 1fr; }
  }

  @media (max-width: 640px) {
    .partner-hero { padding: 20px 16px 16px; }
    .partner-hero-top { flex-direction: column; align-items: flex-start; }
    .partner-hero-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-stat { padding: 10px 8px; }
    .hero-stat-icon { font-size: 18px; }
    .hero-stat-val { font-size: 16px; }
    .hero-stat-lbl { font-size: 10px; }
    .partner-page { padding: 16px; }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-vessel-grid { grid-template-columns: 1fr 1fr; }
    .partner-tabs { gap: 5px; padding: 5px; border-radius: 12px; flex-wrap: wrap; }
    .partner-tab { flex: 0 0 calc(25% - 4px); padding: 9px 4px; font-size: 11px; border-radius: 8px; }
    .vessel-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .vessel-row-actions { width: 100%; justify-content: flex-end; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  }

/* === locations: round full plates + bigger category icons (restored 2026-05-25) === */
@media (min-width: 769px) {
  /* категории — pill (овалы) с крупной svg */
  .hero-icons-row .vessel-btn:not(.loc-btn):not(.loc-btn-all) {
    aspect-ratio: auto;
    height: 66px;
    border-radius: 999px;
    padding: 0 16px;
  }
  .hero-icons-row .vessel-btn:not(.cat-all-btn):not(.loc-btn):not(.loc-btn-all) svg {
    width: 36px !important;
    height: 36px !important;
  }
  .hero-icons-row .vessel-btn .icon-label {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.05;
  }
  /* категория «Все» — вдвое меньше */
  .hero-icons-row .cat-all-btn {
    height: 33px !important;
    padding: 0 10px !important;
    flex: 0 0 auto !important;
    min-width: 50px;
    align-self: center;
  }
  .hero-icons-row .cat-all-btn svg { width: 14px; height: 14px; }
  .hero-icons-row .cat-all-btn .icon-label { font-size: 8px; }

  /* локации — круглые плашки целиком, label внутри */
  .hero-icons-row .loc-btn,
  .hero-icons-row .loc-btn-all {
    aspect-ratio: 1 / 1;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .hero-icons-row .loc-btn .loc-emoji,
  .hero-icons-row .loc-btn-all .loc-emoji {
    font-size: 24px;
    line-height: 1;
  }
  .hero-icons-row .loc-btn .loc-label,
  .hero-icons-row .loc-btn-all .loc-label {
    font-size: 10px;
    line-height: 1.05;
    color: #fff;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: manual;
    padding: 0 2px;
  }
  /* локация «Все» — вдвое меньше */
  .hero-icons-row .loc-btn-all {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    padding: 3px 2px !important;
  }
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 14px !important; }
  .hero-icons-row .loc-btn-all .loc-label { font-size: 7px !important; }
}

@media (max-width: 768px) {
  .hero-icons-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, 72px);
    justify-content: center;
    gap: 12px;
    padding: 0 16px 12px;
  }
  .hero-icons-row .vessel-btn:not(.loc-btn):not(.loc-btn-all) {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    padding: 4px 3px;
    flex: unset;
    border-radius: 14px;
  }
  .hero-icons-row .vessel-btn:not(.cat-all-btn):not(.loc-btn):not(.loc-btn-all) svg {
    width: 38px !important;
    height: 38px !important;
  }
  .hero-icons-row .vessel-btn .icon-label {
    font-size: 10px;
    line-height: 1.05;
    max-height: 2.4em;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-icons-row .cat-all-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 2px !important;
  }
  .hero-icons-row .cat-all-btn svg { width: 14px !important; height: 14px !important; }
  .hero-icons-row .cat-all-btn .icon-label { font-size: 7px !important; max-height: 1.2em !important; }

  /* локации на мобиле — круг 72px */
  .hero-icons-row .loc-btn,
  .hero-icons-row .loc-btn-all {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 6px 4px;
    flex: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .hero-icons-row .loc-btn .loc-emoji,
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 24px; line-height: 1; }
  .hero-icons-row .loc-btn .loc-label,
  .hero-icons-row .loc-btn-all .loc-label {
    font-size: 10px;
    line-height: 1.05;
    color: #fff;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 0 2px;
  }
  .hero-icons-row .loc-btn-all {
    width: 36px !important;
    height: 36px !important;
    padding: 3px 2px !important;
  }
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 14px !important; }
  .hero-icons-row .loc-btn-all .loc-label { font-size: 7px !important; }
}

/* === hero rows layout (added 2026-05-25c) === */
.hero-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.hero-categories .hero-row {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.hero-categories .hero-row .vessel-btn {
  flex: 1 1 0;
  min-width: 0;
}
.hero-locations {
  margin-top: 18px;
}
.hero-locations .hero-icons-row {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
}
.hero-locations .hero-icons-row .vessel-btn { flex: 0 0 auto; }

/* mobile — каждый ряд занимает всю ширину, элементы автомат-grid */
@media (max-width: 768px) {
  .hero-categories { max-width: 100%; }
  .hero-categories .hero-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero-categories .hero-row .vessel-btn { width: auto; }
  .hero-locations .hero-icons-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 72px);
    gap: 12px;
    justify-content: center;
  }
}

/* === mobile polish (added 2026-05-25e) === */
@media (max-width: 768px) {
  /* hero — компактнее */
  .hero { padding: 24px 14px 18px !important; }
  .hero h1 { font-size: 23px !important; line-height: 1.18 !important; margin-bottom: 4px !important; }
  .hero p { font-size: 13px !important; margin-bottom: 14px !important; }
  .hero-categories { max-width: 100% !important; gap: 8px !important; }
  .hero-categories .hero-row { gap: 6px !important; }

  /* категории-плашки на мобиле — короче и аккуратнее */
  .hero-icons-row .vessel-btn:not(.loc-btn):not(.loc-btn-all) {
    height: 64px !important;
    width: auto !important;
    aspect-ratio: auto !important;
    padding: 4px 4px !important;
    border-radius: 14px !important;
  }
  .hero-icons-row .vessel-btn:not(.cat-all-btn):not(.loc-btn):not(.loc-btn-all) svg {
    width: 30px !important;
    height: 30px !important;
  }
  .hero-icons-row .vessel-btn .icon-label {
    font-size: 11px !important;
    max-height: 2.2em !important;
  }
  /* категория «Все» на мобиле */
  .hero-icons-row .cat-all-btn {
    height: 36px !important;
    width: auto !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    flex-direction: row !important;
    gap: 5px !important;
  }
  .hero-icons-row .cat-all-btn svg { width: 14px !important; height: 14px !important; }
  .hero-icons-row .cat-all-btn .icon-label { font-size: 11px !important; max-height: none !important; }

  /* локации */
  .hero-locations { margin-top: 14px !important; }
  .hero-locations .hero-icons-row { gap: 10px !important; }
  /* «Рядом» — только на десктопе, на мобильнике прячем */
  .loc-btn-nearby { display: none !important; }
  .hero-icons-row .loc-btn,
  .hero-icons-row .loc-btn-all {
    width: 64px !important;
    height: 64px !important;
    padding: 5px 3px !important;
  }
  .hero-icons-row .loc-btn .loc-emoji,
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 22px !important; }
  .hero-icons-row .loc-btn .loc-label,
  .hero-icons-row .loc-btn-all .loc-label { font-size: 10px !important; line-height: 1.05 !important; }
  /* «Все» в локациях — вдвое меньше */
  .hero-icons-row .loc-btn-all {
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
  }
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 13px !important; }
  .hero-icons-row .loc-btn-all .loc-label { font-size: 7px !important; }

  /* search row — компактнее, 2 колонки */
  .search-row.smart-filters {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 12px !important;
    margin: 0 8px !important;
  }
  .search-row.smart-filters .search-select {
    flex: 1 1 calc(50% - 3px) !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    padding-right: 24px !important;
    font-size: 13px !important;
  }
  .search-row.smart-filters .filter-toggle {
    flex: 1 1 calc(33.333% - 4px) !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
    justify-content: center;
  }

  /* секции — компактнее заголовки */
  .section { padding: 16px 12px !important; }
  .section-title { font-size: 18px !important; }
  .section-count { font-size: 12px !important; }

  /* карточки судов — 1 колонка на узком, 2 на чуть большем */
  .yacht-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

@media (min-width: 480px) and (max-width: 768px) {
  .yacht-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 380px) {
  .hero { padding: 20px 10px 16px !important; }
  .hero h1 { font-size: 20px !important; }
  .hero-icons-row .vessel-btn:not(.loc-btn):not(.loc-btn-all) { height: 58px !important; }
  .hero-icons-row .vessel-btn:not(.cat-all-btn):not(.loc-btn):not(.loc-btn-all) svg { width: 26px !important; height: 26px !important; }
  .hero-icons-row .vessel-btn .icon-label { font-size: 10px !important; }
  .hero-icons-row .loc-btn,
  .hero-icons-row .loc-btn-all { width: 56px !important; height: 56px !important; }
  .hero-icons-row .loc-btn .loc-emoji,
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 19px !important; }
  .hero-icons-row .loc-btn .loc-label,
  .hero-icons-row .loc-btn-all .loc-label { font-size: 9px !important; }
}

/* === loc-btn-all full size + gold tint (added 2026-05-25f) === */
.hero-icons-row .loc-btn-all {
  background: rgba(212,168,67,0.55) !important;
  border: 1px solid rgba(212,168,67,0.85) !important;
}
@media (min-width: 769px) {
  .hero-icons-row .loc-btn-all {
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    padding: 6px 4px !important;
  }
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 24px !important; }
  .hero-icons-row .loc-btn-all .loc-label { font-size: 10px !important; }
}
@media (max-width: 768px) {
  .hero-icons-row .loc-btn-all {
    width: 64px !important;
    height: 64px !important;
    padding: 5px 3px !important;
  }
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 22px !important; }
  .hero-icons-row .loc-btn-all .loc-label { font-size: 10px !important; }
}
@media (max-width: 380px) {
  .hero-icons-row .loc-btn-all {
    width: 56px !important;
    height: 56px !important;
  }
  .hero-icons-row .loc-btn-all .loc-emoji { font-size: 19px !important; }
  .hero-icons-row .loc-btn-all .loc-label { font-size: 9px !important; }
}

/* === hero bg yacht photo (added 2026-05-25i) === */
.hero {
  background:
    linear-gradient(180deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.65) 55%, rgba(13,27,42,0.85) 100%),
    url('/static/img/hero-yacht.jpg') center center / cover no-repeat !important;
  position: relative;
}
.hero h1 {
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.hero p {
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* === stable layout on category click (added 2026-05-25p) === */
@media (min-width: 769px) {
  /* убираем рывок-scale у активной плашки */
  .hero-icons-row .vessel-btn.active {
    transform: none !important;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
  /* search-row фиксирует место (даже если поле скрыто — высота прежняя) */
  .search-row.smart-filters {
    min-height: 64px;
    align-items: center;
  }
  /* featured-section держит постоянную высоту */
  section.section:first-of-type {
    min-height: 1100px;
  }
  /* empty-state — центрируем в зарезервированной зоне */
  #empty-state-featured {
    margin: 80px auto;
    max-width: 520px;
  }
}

/* === active location ring (added 2026-05-25r) === */
.hero-icons-row .loc-btn.active {
  transform: none !important;
  border: 3px solid rgba(255,255,255,0.95) !important;
  box-shadow: 0 0 14px rgba(255,255,255,0.4);
}

/* === loc-label nowrap fix (added 2026-05-25u) === */
@media (min-width: 769px) {
  /* Не переносить слово "Геленджик" и т.п. на 2 строки при hover/active */
  .hero-icons-row .loc-btn .loc-label {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    padding: 0 !important;
    letter-spacing: -0.1px;
    font-size: 9.5px !important;
  }
  /* active border тоньше — чтобы не отнимать пиксели у content */
  .hero-icons-row .loc-btn.active {
    border: 2px solid rgba(255,255,255,0.95) !important;
  }
}

/* === mobile loc-label nowrap (added 2026-05-25v) === */
@media (max-width: 768px) {
  .hero-icons-row .loc-btn .loc-label,
  .hero-icons-row .loc-btn-all .loc-label {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    padding: 0 !important;
    letter-spacing: -0.2px;
    font-size: 9px !important;
  }
}
@media (max-width: 380px) {
  .hero-icons-row .loc-btn .loc-label,
  .hero-icons-row .loc-btn-all .loc-label {
    font-size: 8.5px !important;
    letter-spacing: -0.3px;
  }
}

/* === active filters summary (added 2026-05-25x) === */
#active-filters-summary {
  text-align: center;
  padding: 10px 16px;
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 14px;
  color: var(--navy);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}
.afs-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: white;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.afs-chip .afs-label { color: var(--text-muted); font-size: 12px; }
.afs-chip b { color: var(--navy); }
.afs-reset {
  color: var(--ocean);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}
.afs-reset:hover { background: rgba(26,107,138,0.08); text-decoration: underline; }
@media (max-width: 768px) {
  #active-filters-summary { margin: 10px 12px 0; padding: 8px 10px; font-size: 13px; }
  .afs-chip { font-size: 12px; padding: 4px 9px; }
}

/* === mobile modals polish (added 2026-05-25aa) === */
@media (max-width: 768px) {
  /* base .modal — bottom-sheet style */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    /* «ручка» для смахивания */
    padding-top: 8px !important;
    position: relative;
  }
  .modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 6px auto 4px;
  }
  .modal-header {
    padding: 8px 16px 0 !important;
  }
  .modal-header h2 {
    font-size: 18px !important;
    line-height: 1.25;
  }
  .modal-body {
    padding: 14px 16px 20px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  }
  .modal-section { margin-bottom: 14px !important; }
  .modal-section-title { font-size: 12px !important; letter-spacing: 0.3px !important; }
  .modal-close {
    width: 38px !important;
    height: 38px !important;
    font-size: 22px !important;
    flex-shrink: 0;
  }
  /* iOS-safari НЕ зумит input если font-size ≥ 16px */
  .modal input,
  .modal select,
  .modal textarea {
    font-size: 16px !important;
    padding: 11px 12px !important;
    border-radius: 10px !important;
  }
  /* Сетка форм внутри модалки → 1 колонка */
  .modal .form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .modal .form-group label {
    font-size: 13px !important;
    margin-bottom: 5px !important;
  }
  /* Кнопки внутри модалки — крупный touch-target */
  .modal .btn-primary,
  .modal button[type="submit"] {
    padding: 12px 18px !important;
    font-size: 15px !important;
    min-height: 46px;
  }
  /* dashboard vessel detail overlay */
  .dash-vessel-overlay {
    padding: 0 !important;
  }
  /* vd-booking-page (vessel.html) — поджать поля и применить iOS no-zoom */
  .vd-booking-page input,
  .vd-booking-page select,
  .vd-booking-page textarea {
    font-size: 16px !important;
  }
  .vd-booking-page .vd-bp-grid2 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .vd-booking-page .vd-bp-card {
    padding: 12px !important;
    margin-bottom: 10px !important;
  }
  /* yacht thumb hover overlay на мобиле не нужен (hover не работает на тач) */
  .yacht-thumb-overlay {
    display: none !important;
  }
}

/* ── MOBILE MODAL NORMALIZE (универсально для всех модалок) ──────────── */
@media (max-width: 640px) {
  /* партнёрский кабинет .pc-modal — bottom-sheet */
  .pc-modal-bd { padding: 0 !important; align-items: flex-end !important; }
  .pc-modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
  }
  .pc-modal-h { padding: 14px 16px !important; }
  .pc-modal-b { padding: 14px 16px !important; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0)) !important; }
  .pc-modal-f { padding: 12px 16px !important; flex-wrap: wrap !important; gap: 8px !important; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0)) !important; }
  .pc-modal-f .btn-primary,
  .pc-modal-f button { flex: 1 1 auto !important; min-height: 46px !important; font-size: 15px !important; }
  .pc-modal input, .pc-modal select, .pc-modal textarea { font-size: 16px !important; } /* iOS no-zoom */

  /* профиль клиента — модалка отзыва (inline-стили) */
  #reviewModal { padding: 0 !important; align-items: flex-end !important; }
  #reviewModal > div {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0)) !important;
  }
  #reviewModal input, #reviewModal textarea, #reviewModal select { font-size: 16px !important; }

  /* vd-booking-page — full-screen booking overlay (vessel.html) */
  .vd-booking-page { padding-bottom: env(safe-area-inset-bottom, 0) !important; }

  /* Глобальный fallback для любого role=dialog контейнера */
  [role="dialog"],
  .modal-shell {
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* === auth: бледный фон только на input (added 2026-05-29) === */
.auth-tabs { background: transparent !important; padding: 0 !important; gap: 6px !important; }
.auth-tab { background: transparent !important; border: 1px solid #e2e8f0 !important; }
.auth-tab.active { background: var(--navy, #0d1b2a) !important; border-color: var(--navy, #0d1b2a) !important; color: #fff !important; }

/* === auth: контрастные labels (added 2026-05-29b) === */
.form-label {
  color: var(--navy, #0d1b2a) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}
.form-label::after { color: #d4a843; }  /* звёздочка обязательного поля — золотистая */

/* mobile: small "Все" first, perfectly round city circles */
@media (max-width: 768px) {
  .hero-locations .hero-icons-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px !important;
    align-items: center;
    padding-left: 0 !important;
  }
  .hero-locations .hero-icons-row .loc-btn:not(.loc-btn-all) {
    width: 72px !important;
    height: 72px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex-shrink: 0;
  }
  .hero-locations .hero-icons-row .loc-btn-all {
    width: 32px !important;
    height: 60px !important;
    border-radius: 999px !important;
    padding: 4px 2px !important;
    aspect-ratio: unset !important;
    flex-shrink: 0;
    order: -1 !important;
  }
  .hero-locations .hero-icons-row .loc-btn-all .loc-emoji {
    font-size: 14px !important;
  }
  .hero-locations .hero-icons-row .loc-btn-all .loc-label {
    font-size: 7px !important;
    line-height: 1 !important;
  }
}
