:root {
    --sky: #0F4C81;
    --sky-light: #1A6DB5;
    --sky-pale: #E8F2FF;
    --midnight: #0A1628;
    --silver: #F0F4FA;
    --mist: #C8D6E8;
    --white: #FFFFFF;
    --text: #1A2640;
    --text-soft: #5A6A82;
    --accent: #E8500A;
    --accent-soft: #FFF0EA;
    --green: #1A8A5A;
    --green-soft: #E6F7F0;
    --amber: #D4860A;
    --amber-soft: #FFF8E6;
    --red: #CC2E2E;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 16px rgba(10,22,40,0.10);
    --shadow-lg: 0 8px 40px rgba(10,22,40,0.16);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--silver);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
  }

  /* ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? PAGES ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? */
  .page { display: none; }
  .page.active { display: flex; flex-direction: column; min-height: 100vh; }

  /* ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? LOGIN PAGE ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? */
  #loginPage {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--sky) 100%);
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
  }

  .login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
  }

  .logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--sky), var(--sky-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
  }

  .logo-icon svg { width: 24px; height: 24px; fill: white; }

  .logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--midnight); }
  .logo-text span { color: var(--sky); }

  .login-title { font-size: 24px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--midnight); margin-bottom: 6px; }
  .login-sub { color: var(--text-soft); font-size: 14px; margin-bottom: 32px; }

  .form-group { margin-bottom: 18px; }
  .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }

  .form-input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--mist);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--silver);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .form-input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(15,76,129,0.12); background: white; }

  .btn-primary {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--sky), var(--sky-light));
    color: white; border: none; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
  }
  .btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(0); }

  .login-hint { text-align: center; margin-top: 20px; color: var(--text-soft); font-size: 12px; }
  .login-hint strong { color: var(--sky); }

  /* ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢?? SHELL (post-login) ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·ط¢آ£?ط·آ£ط¢آ¢??ط·آ£ط¢آ¢??ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£???ط·آ·??ط·آ£???ط·آ£??? */
  .shell { display: flex; flex-direction: column; min-height: 100vh; }

  /* Topbar */
  .topbar {
    background: var(--midnight);
    color: white;
    padding: 0 24px;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  }

  .topbar-left { display: flex; align-items: center; gap: 10px; }
  .topbar-logo { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; }
  .topbar-logo span { color: var(--sky-light); }
  .topbar-badge { font-size: 10px; background: var(--sky); color: white; border-radius: 4px; padding: 2px 6px; font-weight: 600; }

  .topbar-right { display: flex; align-items: center; gap: 16px; }

  /* Permanent disclaimer banner */
  .app-disclaimer {
    background: #FFF3B0;
    color: #2d2a18;
    border: 1px solid rgba(214, 173, 50, 0.45);
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.12);
  }

  .app-disclaimer-desktop {
    flex: 1 1 auto;
    max-width: 560px;
    min-width: 180px;
    margin: 0 18px;
    height: 28px;
    display: flex;
    align-items: center;
  }

  .app-disclaimer-mobile { display: none; }

  .disclaimer-icon { margin-right: 6px; }

  .app-disclaimer-track {
    display: inline-block;
    min-width: max-content;
    padding: 8px 18px;
    animation: disclaimer-marquee 18s linear infinite;
  }

  @keyframes disclaimer-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }


  .avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--sky), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: white;
    cursor: pointer;
  }

  .notif-btn {
    background: none; border: none; color: rgba(255,255,255,0.65);
    cursor: pointer; font-size: 18px; padding: 4px;
    position: relative;
  }
  .notif-dot {
    position: absolute; top: 2px; right: 2px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); border: 1.5px solid var(--midnight);
  }

  /* Nav */
  .nav {
    background: white;
    border-bottom: 1px solid var(--mist);
    display: flex; overflow-x: auto;
    padding: 0 20px;
    gap: 4px;
  }
  .nav::-webkit-scrollbar { display: none; }

  .nav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--text-soft);
    border: none; background: none; cursor: pointer;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
  }
  .nav-item.active { color: var(--sky); border-bottom-color: var(--sky); }
  .nav-item:hover { color: var(--sky); }
  .nav-item svg { width: 16px; height: 16px; }

  /* Content area */
  .content { flex: 1; padding: 24px; max-width: 1100px; margin: 0 auto; width: 100%; }

  /* ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ?? CARDS & UI ATOMS ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط?آ??ط?آ??ط?آ???ط?آ???ط?آ??ط?آ???ط?آ??ط?آ??ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط??? */
  .card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
  }
  .card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--silver);
    display: flex; align-items: center; justify-content: space-between;
  }
  .card-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; }
  .card-body { padding: 20px 24px; }

  .badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 20px; font-weight: 1000; text-transform: uppercase; letter-spacing: 0.04em;
  }
  .badge-green { background: var(--green-soft); color: var(--green); }
  .badge-amber { background: var(--amber-soft); color: var(--amber); }
  .badge-blue { background: var(--sky-pale); color: var(--sky); }
  .badge-red { background: #FFE8E8; color: var(--red); }
  .badge-gray { background: var(--silver); color: var(--text-soft); }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

  .stat-card {
    background: white; border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
    border-left: 4px solid var(--sky);
  }
  .stat-value { font-size: 28px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--midnight); }
  .stat-label { font-size: 12px; color: var(--text-soft); margin-top: 2px; font-weight: 500; }

  /* ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط??? SCHEDULE PAGE ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط??? */
  .schedule-header { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; }
  .page-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--midnight); }
  .page-sub { color: var(--text-soft); font-size: 13px; margin-top: 2px; }

  .month-nav { display: flex; align-items: center; gap: 12px; }
  .month-btn {
    background: white; border: 1.5px solid var(--mist);
    border-radius: var(--radius-sm); width: 34px; height: 34px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--sky); transition: background 0.2s;
  }
  .month-btn:hover { background: var(--sky-pale); }
  .month-label { font-weight: 600; font-size: 15px; min-width: 120px; text-align: center; }

  .flight-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--silver);
  }
  .flight-row:last-child { border-bottom: none; }

  .flight-row-multileg { align-items: center !important; }
  .flight-leg-wrap { display:flex; align-items:center; }
  .flight-leg-wrap + .flight-leg-wrap { margin-top: 8px; padding-top: 0; border-top: 0 !important; }

  .flight-date-col { min-width: 52px; text-align: center; }
  .flight-date-day { font-size: 11px; color: var(--text-soft); text-transform: uppercase; font-weight: 600; }
  .flight-date-num { font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--midnight); line-height: 1; }

  .flight-line {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(64px, 88px) minmax(130px, 1fr) minmax(64px, 88px);
    align-items: start;
    gap: 10px;
  }
  .flight-city { text-align: center; min-width: 0; }
  .flight-code {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--midnight);
    line-height: 24px;
    min-height: 24px;
  }
  .flight-city-name {
    font-size: 11px;
    color: var(--text-soft);
    line-height: 14px;
    margin-top: 34px; /* reserve the exact row where the centered Show Crew button sits */
  }
  .flight-arrow {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 78px;
    padding-top: 0;
  }
  .flight-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 24px; /* fixed airplane line: button no longer moves the route line */
    height: 1px;
    background: var(--mist);
    transform: none;
  }
  .flight-arrow-center {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 12px 24px 34px;
    align-items: center;
    justify-items: center;
    min-width: 42px;
  }
  .flight-arrow-icon {
    background: white;
    padding: 0 6px;
    position: relative;
    z-index: 1;
    color: var(--sky);
    font-size: 16px;
    line-height: 1;
  }
  .flight-num { font-size: 14px; font-weight: 700; color: var(--sky-light); display: block; text-align: center; line-height: 1; }
  .flight-crew-under { margin-top: 0; box-shadow: 0 6px 14px rgba(12, 88, 150, 0.12); }
  .flight-time { font-size: 12px; color: var(--text-soft); line-height: 14px; }

  .flight-meta { min-width: 100px; text-align: right; }
  .flight-duration { font-size: 12px; color: var(--text-soft); }
  .flight-role { font-size: 12px; font-weight: 600; color: var(--text); margin-top: 4px; }

  .day-off {
    padding: 12px 0;
    border-bottom: 1px solid var(--silver);
    display: flex; align-items: center; gap: 16px;
  }
  .day-off:last-child { border-bottom: none; }
  .day-off-center { flex: 1; display: flex; justify-content: center; align-items: center; }

  /* ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ??? PROFILE ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ??? */
  .profile-hero {
    background: linear-gradient(135deg, var(--midnight), var(--sky));
    border-radius: var(--radius);
    padding: 32px 28px;
    color: white;
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
  }

  .profile-avatar-lg {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--sky-light), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.25);
  }

  .profile-name { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
  .profile-role { font-size: 13px; opacity: 0.75; margin-top: 4px; }
  .profile-id { font-size: 12px; opacity: 0.55; margin-top: 2px; }

  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--silver); }
  .info-cell { background: white; padding: 16px 20px; }
  .info-key { font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
  .info-val { font-size: 14px; font-weight: 500; color: var(--midnight); margin-top: 4px; }

  /* ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ??? FLIGHT SEARCH ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط?آ??ط?آ?ط?آ???ط?آ?ط?آ???ط?آ?ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? */
  .search-bar {
    background: white; border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex; gap: 12px; align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .search-group { flex: 1; min-width: 160px; }
  .search-label { font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; display: block; }
  .search-input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--mist); border-radius: var(--radius-sm);
    font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text);
    background: var(--silver); outline: none;
    transition: border-color 0.2s;
  }
  .search-input:focus { border-color: var(--sky); background: white; }

  .btn-search {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--sky), var(--sky-light));
    color: white; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    white-space: nowrap; height: 42px;
    transition: opacity 0.2s;
  }
  .btn-search:hover { opacity: 0.88; }

  .flight-table { width: 100%; border-collapse: collapse; }
  .flight-table th {
    text-align: left; padding: 10px 16px;
    font-size: 11px; font-weight: 600; color: var(--text-soft);
    text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--silver); border-bottom: 1px solid var(--mist);
  }
  .flight-table td { padding: 14px 16px; border-bottom: 1px solid var(--silver); vertical-align: middle; }
  .flight-table tr:last-child td { border-bottom: none; }
  .flight-table tr:hover td { background: var(--sky-pale); }

  .route-cell { display: flex; align-items: center; gap: 8px; }
  .route-codes { font-weight: 700; font-size: 15px; font-family: 'Space Grotesk', sans-serif; }
  .route-sep { color: var(--mist); }

  /* ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? CREW SEARCH ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? */
  .crew-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
  }
  .crew-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

  .crew-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: white;
    flex-shrink: 0;
  }

  .crew-name { font-weight: 600; font-size: 15px; color: var(--midnight); }
  .crew-sub { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
  .crew-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

  .crew-meta { margin-left: auto; text-align: right; }
  .crew-id { font-size: 11px; color: var(--text-soft); }
  .crew-base { font-size: 12px; font-weight: 600; color: var(--sky); margin-top: 2px; }

  /* ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? UTILS ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط??ط???? */
  .mb-4 { margin-bottom: 16px; }
  .mb-5 { margin-bottom: 20px; }
  .mt-4 { margin-top: 16px; }
  .flex { display: flex; }
  .gap-3 { gap: 12px; }
  .items-center { align-items: center; }
  .justify-between { justify-content: space-between; }
  .text-soft { color: var(--text-soft); }
  .text-sm { font-size: 12px; }
  .fw-600 { font-weight: 600; }
  .section-gap { margin-bottom: 24px; }


  @media (max-width: 640px) {
    .flight-line {
      grid-template-columns: minmax(54px, 72px) minmax(96px, 1fr) minmax(54px, 72px);
      gap: 8px;
    }
    .flight-code { font-size: 18px; }
    .flight-city-name { margin-top: 32px; }
    .flight-arrow-center { grid-template-rows: 12px 24px 32px; }
    .btn-show-crew { padding: 5px 10px !important; font-size: 11px; }
  }

  /* Responsive */
  @media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .profile-hero { flex-direction: column; text-align: center; }
    .search-bar { flex-direction: column; align-items: center; }
    .search-bar .search-group { width: 100%; max-width: 360px !important; }
    .search-bar .btn-search { width: 100%; max-width: 360px; }
    .login-card { padding: 32px 24px; }
    .content { padding: 16px; }
  }

  /* ط??ط???ط??ط????ط??ط????ط??ط???ط??ط????ط?????ط????ط?????ط????? SHOW CREW BUTTON ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط????? */
  .btn-show-crew {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    background: var(--sky-pale);
    color: var(--sky);
    border: none; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .btn-show-crew:hover { background: #d4e7fa; }
  .btn-show-crew.active { background: var(--sky); color: white; }

  /* ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط????? CREW PANEL ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط?????ط????ط?????ط????? */
  .crew-panel {
    margin: 0 0 4px 68px;
    border-radius: var(--radius);
    border: 1px solid var(--mist);
    background: white; overflow: hidden;
    box-shadow: var(--shadow);
    animation: cpIn 0.18s ease;
  }
  @keyframes cpIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

  .crew-panel-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--silver);
    font-size: 12px; font-weight: 700; color: var(--sky);
    font-family: 'Space Grotesk', sans-serif;
  }
  .crew-panel-count { font-size: 11px; font-weight: 500; color: var(--text-soft); }

  .crew-panel-table { width: 100%; border-collapse: collapse; }
  .crew-panel-table thead tr { background: var(--silver); }
  .crew-panel-table th {
    padding: 8px 16px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-soft); text-align: left;
    border-bottom: 1px solid var(--mist);
  }
  .crew-panel-table td { padding: 11px 16px; border-bottom: 1px solid var(--silver); vertical-align: middle; }
  .crew-panel-table tbody tr:last-child td { border-bottom: none; }
  .crew-panel-table tbody tr:hover td { background: var(--silver); }
  .crew-panel-table tbody tr.crew-panel-me td { background: var(--sky-pale); }

  .crew-panel-pos-cell {
    font-size: 12px; font-weight: 700; color: var(--sky);
    font-family: 'Space Grotesk', sans-serif; width: 60px;
  }
  .crew-panel-name-cell { font-size: 13px; font-weight: 500; color: var(--text); }
  .crew-panel-me .crew-panel-name-cell { font-weight: 700; color: var(--midnight); }
  .crew-panel-you-cell { width: 50px; text-align: right; }
  .crew-panel-you {
    font-size: 10px; font-weight: 700; color: var(--sky);
    border: 1.5px solid var(--sky); border-radius: 10px; padding: 1px 7px;
    font-family: 'Space Grotesk', sans-serif;
  }

  /* ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط??? SPECIAL DUTY BADGES ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط??? */
  .duty-special {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px; font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.04em;
  }
  .duty-red    { background: #FFE8E8; color: #CC2E2E; }
  .duty-yellow { background: #FFFBE6; color: #B07D00; }
  .duty-green  { background: var(--green-soft); color: var(--green); }
  .duty-purple { background: #F3EEFF; color: #7B3FBF; }
  .duty-rose   { background: #FFF0F5; color: #C0336A; }

  @media (max-width: 640px) {
    .crew-panel { margin-left: 0; margin-right: 0; width: 100%; box-sizing: border-box; }
    .flight-meta { min-width: auto; }
  }


  /* ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·?? MOBILE SIDE MENU ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·??ط·??ط·??ط·??ط£???ط£???ط·??ط£???ط·?? */
  .mobile-menu-btn,
  .mobile-menu-close,
  .mobile-nav-head,
  .mobile-nav-overlay {
    display: none;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    width: 18px;
    height: 2px;
    border-radius: 3px;
    background: white;
    display: block;
  }

  @media (max-width: 640px) {
    body.mobile-menu-open { overflow: hidden; }

    .mobile-menu-btn { display: inline-flex; }

    .app-disclaimer-desktop { display: none; }

    .app-disclaimer-mobile {
      display: block;
      position: sticky;
      top: 60px;
      z-index: 90;
      margin: 0;
      border-radius: 0;
      border-left: none;
      border-right: none;
      box-shadow: 0 2px 8px rgba(10,22,40,0.08);
      font-size: 12px;
    }

    .app-disclaimer-mobile .app-disclaimer-track {
      animation-duration: 16s;
      padding: 9px 18px;
    }


    .mobile-nav-overlay {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(10,22,40,0.55);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease;
      z-index: 490;
    }

    .mobile-nav-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .nav {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: min(82vw, 310px);
      height: 100vh;
      background: white;
      z-index: 500;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 0 14px 18px;
      overflow-y: auto;
      overflow-x: hidden;
      border-bottom: none;
      box-shadow: 12px 0 34px rgba(10,22,40,0.18);
      transform: translateX(-105%);
      transition: transform 0.24s ease;
    }

    .nav.mobile-open {
      transform: translateX(0);
    }

    .mobile-nav-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 4px 16px;
      margin-bottom: 8px;
      border-bottom: 1px solid var(--silver);
    }

    .mobile-nav-head .topbar-logo {
      color: var(--midnight);
      font-size: 20px;
    }

    .mobile-menu-close {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border: 1.5px solid var(--mist);
      border-radius: var(--radius-sm);
      background: white;
      color: var(--text-soft);
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
    }

    .nav-item {
      width: 100%;
      padding: 14px 14px;
      border-bottom: none;
      border-left: 3px solid transparent;
      border-radius: var(--radius-sm);
      font-size: 15px;
      justify-content: flex-start;
    }

    .nav-item.active {
      color: var(--sky);
      background: var(--sky-pale);
      border-bottom-color: transparent;
      border-left-color: var(--sky);
    }

    .nav-item svg {
      width: 20px;
      height: 20px;
    }

    .nav-item[href="logout.php"] {
      margin-left: 0 !important;
      margin-top: 4px;
      background: #FFE8E8;
      color: var(--red) !important;
    }
  }

/* ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط??? MUTUAL AGREEMENT ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط???ط???ط????ط????ط???ط????ط???ط???ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط??ط??ط??ط??ط??ط??ط??ط??أ???ط??ط??أ???ط??ط??ط??ط??أ???ط??ط??ط?? */
.notif-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--midnight);
  font-size: 10px;
  line-height: 14px;
  font-weight: 800;
  text-align: center;
}
.notif-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.notif-btn svg { display: block; }
.mutual-top-btn { width: auto; text-decoration: none; padding: 12px 18px; margin: 0; }
.mutual-alert {
  background: var(--green-soft);
  border: 1px solid rgba(26,138,90,.22);
  color: var(--green);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 700;
}
.mutual-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mutual-tabs a {
  text-decoration: none;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--mist);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}
.mutual-tabs a.active {
  color: var(--sky);
  background: var(--sky-pale);
  border-color: rgba(15,76,129,.25);
}
.mutual-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.mutual-form-card { position: sticky; top: 76px; }
.mutual-filter { margin-bottom: 16px; }
.mutual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mutual-offer-card {
  display: block !important;
  position: relative;
  padding: 16px !important;
}
.mutual-offer-card.similar-offer {
  border: 2px solid rgba(232,80,10,.42);
  box-shadow: 0 8px 28px rgba(232,80,10,.12);
}
.mutual-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mutual-card-title { min-width: 0; flex: 1; }
.mutual-card-title strong { display:block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mutual-card-title span { color: var(--text-soft); font-size: 12px; }
.match-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
}
.mutual-route {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.mutual-flight {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--midnight);
  margin: 3px 0;
}
.mutual-meta {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 10px;
}
.mutual-notes {
  background: var(--silver);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  margin: 10px 0;
  line-height: 1.35;
}
.mutual-request-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.mutual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.mutual-actions .btn-primary, .mutual-actions .btn-secondary { width: 100%; }
.notification-list { display: grid; gap: 8px; }
.notification-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: #fff;
}
.notification-row.unread { background: var(--sky-pale); border-color: rgba(15,76,129,.22); }
.notification-row span { color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.crew-avatar-photo img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 860px) {
  .mutual-layout { grid-template-columns: 1fr; }
  .mutual-form-card { position: static; }
  .mutual-grid { grid-template-columns: 1fr; }
  .mutual-filter { display: grid; grid-template-columns: 1fr; }
  .mutual-top-btn { width: 100%; justify-content: center; display: inline-flex; }
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--mist);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--silver); }
.badge-yellow { background: var(--amber-soft); color: var(--amber); }

/* PWA install/update banners */
.pwa-banner{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(560px, calc(100% - 28px));
  background:#0A1628;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
  border-radius:18px;
  padding:13px 14px;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  z-index:9998;
}
.pwa-banner.is-visible{display:flex;}
.pwa-banner-title{font-weight:800;font-size:14px;margin-bottom:2px;}
.pwa-banner-text{font-size:12px;color:rgba(255,255,255,.78);line-height:1.35;}
.pwa-banner-actions{display:flex;gap:8px;align-items:center;flex:0 0 auto;}
.pwa-banner-btn{
  border:0;
  border-radius:999px;
  padding:9px 13px;
  font-weight:800;
  cursor:pointer;
  background:linear-gradient(135deg,#0A63D8,#2EA8FF);
  color:#fff;
  font-family:inherit;
  white-space:nowrap;
}
.pwa-banner-close{
  border:0;
  width:30px;
  height:30px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
@media(max-width:640px){
  .pwa-banner{align-items:flex-start;bottom:12px;padding:12px;border-radius:16px;}
  .pwa-banner-actions{flex-direction:column;align-items:stretch;}
  .pwa-banner-btn{padding:8px 11px;font-size:12px;}
}


/* ECREW SCHEDULE CLEAN TOP LAYOUT 2026-07-05 */
.schedule-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 22px !important;
  margin-bottom: 22px !important;
}
.schedule-header > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.schedule-header .page-title {
  font-size: 32px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.schedule-header .page-sub {
  font-size: 18px;
  line-height: 1.35;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 0;
}
.list-update-note,
.schedule-update-above-month {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  margin-top: 8px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #FFF9C4, #FFE986) !important;
  color: #5b4600 !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  box-shadow: 0 8px 24px rgba(255, 211, 77, .22) !important;
}
.schedule-header .month-nav {
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
}
.schedule-header .month-btn {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  color: var(--sky);
  background: #fff;
  border: 2px solid var(--mist);
  box-shadow: 0 3px 8px rgba(10,22,40,.05);
}
.schedule-header .month-label {
  min-width: 0;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--midnight);
}
.grid-3.mb-5 {
  gap: 18px;
}
.grid-3.mb-5 .stat-card {
  border-left-width: 5px;
  border-radius: 22px;
  padding: 22px 22px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.grid-3.mb-5 .stat-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}
.grid-3.mb-5 .stat-label {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 10px;
}
.card.section-gap > .card-header {
  padding: 24px 28px;
  align-items: center;
  gap: 14px;
}
.card.section-gap > .card-header .card-title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--midnight);
}
.card.section-gap > .card-header .badge {
  font-size: 20px;
  padding: 12px 22px;
  border-radius: 999px;
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .content { padding: 26px 16px 24px !important; }
  .schedule-header { gap: 18px !important; margin-bottom: 18px !important; }
  .schedule-header .page-title { font-size: 30px; }
  .schedule-header .page-sub { font-size: 16px; }
  .list-update-note,
  .schedule-update-above-month {
    font-size: 15px !important;
    padding: 10px 16px !important;
    white-space: normal;
  }
  .schedule-header .month-nav {
    grid-template-columns: 48px 1fr 48px;
    padding: 14px 18px;
    border-radius: 20px;
  }
  .schedule-header .month-btn {
    width: 48px;
    height: 48px;
    font-size: 30px;
    border-radius: 12px;
  }
  .schedule-header .month-label { font-size: 22px; }
  .grid-3.mb-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
  }
  .grid-3.mb-5 .stat-card {
    min-height: 104px;
    padding: 16px 12px;
    border-radius: 18px;
  }
  .grid-3.mb-5 .stat-value { font-size: 34px; }
  .grid-3.mb-5 .stat-label { font-size: 13px; line-height: 1.15; }
  .card.section-gap { border-radius: 20px; }
  .card.section-gap > .card-header {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 92px 1fr;
  }
  .card.section-gap > .card-header .card-title { font-size: 21px; }
  .card.section-gap > .card-header .badge {
    justify-self: end;
    font-size: 16px;
    padding: 10px 14px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .grid-3.mb-5 { gap: 10px; }
  .grid-3.mb-5 .stat-card { padding: 14px 9px; }
  .grid-3.mb-5 .stat-label { font-size: 12px; }
  .card.section-gap > .card-header {
    grid-template-columns: 84px 1fr;
    padding: 16px;
  }
  .card.section-gap > .card-header .badge { font-size: 14px; padding: 9px 11px; }
}

/* eCrew in-app notifications */
.ecrew-notif-wrap{position:relative;display:inline-flex;align-items:center}
.ecrew-notif-toggle{border:0;cursor:pointer;background:rgba(255,255,255,.08)}
.ecrew-notif-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(360px,92vw);background:#fff;border:1px solid rgba(10,22,40,.12);border-radius:18px;box-shadow:0 18px 50px rgba(10,22,40,.22);z-index:9999;overflow:hidden;color:#0A1628}
.ecrew-notif-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(10,22,40,.08);background:linear-gradient(135deg,#F8FBFF,#EEF6FF)}
.ecrew-notif-close{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#42526B}
.ecrew-notif-list{max-height:390px;overflow:auto;display:grid;gap:0}
.ecrew-notif-item{display:grid;gap:4px;padding:13px 16px;text-decoration:none;color:#0A1628;border-bottom:1px solid rgba(10,22,40,.07);background:#fff}
.ecrew-notif-item:hover{background:#F6FAFF}
.ecrew-notif-item.is-unread{background:#EEF7FF}
.ecrew-notif-title{font-weight:800;font-size:14px}
.ecrew-notif-body{font-size:13px;color:#4B5B73;line-height:1.35;white-space:normal}
.ecrew-notif-time{font-size:11px;color:#7A8799}
.ecrew-notif-empty{padding:22px 16px;text-align:center;color:#7A8799;font-size:13px}
.ecrew-notif-all{display:block;text-align:center;padding:13px 16px;text-decoration:none;font-weight:800;color:#0F4C81;background:#F8FBFF}
.ecrew-inapp-toast{position:fixed;right:18px;top:86px;width:min(340px,calc(100vw - 36px));background:#0A1628;color:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 16px 42px rgba(10,22,40,.35);z-index:10000;display:grid;gap:4px;transform:translateY(-12px);opacity:0;transition:.25s ease}
.ecrew-inapp-toast.show{transform:translateY(0);opacity:1}
.ecrew-inapp-toast strong{font-size:14px}.ecrew-inapp-toast span{font-size:13px;color:rgba(255,255,255,.82)}
.full-notification-list .notification-row{text-decoration:none;color:inherit;grid-template-columns:1fr auto;align-items:start}
.full-notification-list .notification-row p{margin:4px 0 0;color:var(--text-soft);font-size:13px;line-height:1.35}
@media(max-width:720px){.ecrew-notif-panel{position:fixed;top:70px;left:12px;right:12px;width:auto}.ecrew-inapp-toast{top:76px;right:12px;width:calc(100vw - 24px)}}

/* Improved Mutual Agreement topbar menu */
.mutual-topbar-wrap{position:relative;display:inline-flex;align-items:center}
.mutual-logo-btn{border:0;cursor:pointer;color:#0A1628;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset;display:inline-flex;align-items:center;justify-content:center}
.mutual-logo-text{font-family:'Space Grotesk',Inter,sans-serif;font-weight:900;font-size:12px;letter-spacing:.04em;line-height:1}
.mutual-logo-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.mutual-logo-icon svg{display:block}
.mutual-topbar-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(380px,92vw);background:#fff;border:1px solid rgba(10,22,40,.12);border-radius:18px;box-shadow:0 18px 50px rgba(10,22,40,.24);z-index:10000;overflow:hidden;color:#0A1628}
.mutual-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(10,22,40,.08);background:linear-gradient(135deg,#FFF9E8,#F7FBFF)}
.mutual-panel-head strong{font-size:15px}
.mutual-panel-open{font-size:12px;font-weight:900;text-decoration:none;color:#0F4C81;background:#fff;border:1px solid rgba(15,76,129,.16);padding:7px 10px;border-radius:999px}
.mutual-panel-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;background:#F8FBFF;border-bottom:1px solid rgba(10,22,40,.07)}
.mutual-panel-stats a{text-decoration:none;color:#0A1628;background:#fff;border:1px solid rgba(10,22,40,.08);border-radius:14px;padding:10px 8px;text-align:center;display:grid;gap:2px}
.mutual-panel-stats b{font-size:18px;color:#0F4C81}
.mutual-panel-stats span{font-size:11px;color:#66758C;font-weight:800}
.mutual-panel-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid rgba(10,22,40,.07)}
.mutual-panel-actions a{text-decoration:none;text-align:center;background:#0F4C81;color:#fff;border-radius:12px;padding:10px 8px;font-size:12px;font-weight:900}
.mutual-panel-list{max-height:250px;overflow:auto}
.mutual-panel-item{display:grid;gap:4px;padding:12px 16px;text-decoration:none;color:#0A1628;border-bottom:1px solid rgba(10,22,40,.07);background:#fff}
.mutual-panel-item.is-unread{background:#FFF8E1}
.mutual-panel-item span{font-size:13px;line-height:1.35;color:#334155}
.mutual-panel-item small{font-size:11px;color:#7A8799}
.mutual-panel-empty{padding:18px 16px;text-align:center;color:#7A8799;font-size:13px}
.mutual-panel-all{display:block;text-align:center;padding:13px 16px;text-decoration:none;font-weight:900;color:#0F4C81;background:#F8FBFF}
@media(max-width:720px){.mutual-topbar-panel{position:fixed;top:70px;left:12px;right:12px;width:auto}.mutual-panel-actions{grid-template-columns:1fr}.mutual-panel-stats{grid-template-columns:repeat(3,1fr)}}

/* Mobile topbar dropdown fix: keep notification + mutual panels inside the screen on every page, including Mutual Marketplace */
@media (max-width: 720px) {
  .topbar .ecrew-notif-panel,
  .topbar .mutual-topbar-panel {
    position: fixed !important;
    top: 70px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    max-height: calc(100dvh - 92px) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
  }

  .topbar .ecrew-notif-list,
  .topbar .mutual-panel-list {
    max-height: calc(100dvh - 275px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .topbar .mutual-panel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .topbar .mutual-panel-actions {
    grid-template-columns: 1fr !important;
  }

  .topbar .mutual-panel-stats a,
  .topbar .mutual-panel-actions a,
  .topbar .mutual-panel-item,
  .topbar .ecrew-notif-item {
    min-width: 0 !important;
    word-break: break-word !important;
  }
}

@media (max-width: 390px) {
  .topbar .ecrew-notif-panel,
  .topbar .mutual-topbar-panel {
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px) !important;
  }
}


/* Contact Us / Support */
.contact-card{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(10,22,40,.12);
  margin-bottom: 18px;
}
.contact-head h1{margin:4px 0 6px;color:#0A1628;font-size:28px;}
.contact-head p{margin:0 0 18px;color:#64748B;line-height:1.5;}
.contact-kicker{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#0A63D8;}
.contact-message{min-height:140px;resize:vertical;line-height:1.45;}
.alert-good,.alert-bad{padding:12px 14px;border-radius:14px;margin:0 0 16px;font-weight:700;font-size:14px;}
.alert-good{background:#E8FFF0;color:#087A3E;border:1px solid #B7F7CF;}
.alert-bad{background:#FFE8E8;color:#CC2E2E;border:1px solid #FFC7C7;}
.contact-back{text-align:center;margin-top:16px;}
.contact-back a{font-weight:800;color:#0A63D8;text-decoration:none;}
.support-history-item{border:1px solid #E6ECF5;border-radius:16px;padding:14px;margin-top:12px;background:#FBFDFF;}
.support-history-top{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#0F172A;}
.support-history-top small{color:#64748B;font-size:12px;}
.support-history-item p{color:#334155;margin:10px 0 0;line-height:1.45;}
.support-reply{margin-top:12px;padding:12px;border-radius:12px;background:#EFF8FF;color:#154B7D;border:1px solid #CDEBFF;line-height:1.45;}
.muted-text{color:#64748B;}
@media (max-width:640px){.contact-card{padding:18px;border-radius:20px}.contact-head h1{font-size:24px}.support-history-top{display:block}.support-history-top small{display:block;margin-top:4px}}
