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

/* ── Patreon beta bar ── */
#patreon-beta-bar{
  position:fixed;
  top:0;left:0;right:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  padding:0.375rem 1rem;
  background:rgba(255,66,77,0.12);
  border-bottom:1px solid rgba(255,66,77,0.25);
  font-size:0.5625rem;
  letter-spacing:0.0625rem;
  color:rgba(255,150,155,0.7);
  font-family:'JetBrains Mono',monospace;
}
#patreon-beta-label{
  text-transform:uppercase;
  letter-spacing:0.125rem;
  color:rgba(255,100,110,0.6);
}
#patreon-beta-name{
  color:rgba(255,150,155,0.85);
  font-weight:600;
}
#patreon-beta-logout{
  color:rgba(255,100,110,0.55);
  text-decoration:none;
  border:1px solid rgba(255,66,77,0.25);
  border-radius:0.25rem;
  padding:0.125rem 0.5rem;
  transition:color .15s, border-color .15s;
}
#patreon-beta-logout:hover{
  color:rgba(255,100,110,0.9);
  border-color:rgba(255,66,77,0.5);
}
@media(max-width:767px){
  #patreon-beta-bar{ display:none }
}

:root{
  --bg:        #030912;
  --surface:   #0b1524;
  --surface2:  #0f1d2e;
  --border:    rgba(255,255,255,0.07);
  --border-g:  rgba(0,200,110,0.2);
  --green:     #00cc70;
  --green-hi:  #00ff88;
  --green-dim: rgba(0,200,110,0.15);
  --text:      #dde8e2;
  --text-dim:  rgba(180,200,190,0.45);
  --text-mid:  rgba(180,200,190,0.7);
  --price:     #ffffff;
}

body{
  margin:0;
  background:var(--bg);
  font-family:'JetBrains Mono',monospace;
  overflow:hidden;
  color:var(--text);
  font-size:0.8125rem;
}

/* scanlines — very subtle */
body::after{
  content:'';
  position:fixed;inset:0;
  background:repeating-linear-gradient(
    0deg,transparent,transparent 3px,
    rgba(0,0,0,0.04) 3px,rgba(0,0,0,0.04) 4px
  );
  pointer-events:none;
  z-index:9999;
}

/* ── Globe ── */
#globe-wrap{
  position:fixed;
  inset:0;
  z-index:0;
}

#globe-wrap::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(
    90deg,
    rgba(3,9,18,1) 0%,
    rgba(3,9,18,0.85) 38%,
    rgba(3,9,18,0.0) 60%
  );
  pointer-events:none;
}

/* ── Sidebar ── */
#sidebar{
  position:fixed;
  left:0;top:1.625rem;
  width:38rem;
  height:calc(100vh - 1.625rem);
  display:flex;
  flex-direction:column;
  z-index:10;
}

/* ── Mobile-only elements — hidden on desktop ── */
#mobile-top-bar  { display:none }
#mobile-tab-bar  { display:none }
#globe-modal          { display:none }
.card-globe-btn       { display:none }
#mob-filter-btn       { display:none }
#mob-avatar           { display:none }
#mob-flight-overlay   { display:none }

/* ── Mobile layout ── */
@media(max-width:767px){

  /* Globe: hide visually but keep WebGL context alive (1×1px) */
  #globe-wrap{
    visibility:hidden !important;
    width:1px !important;
    height:1px !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:auto !important;
  }
  #globe-wrap::after{ display:none }

  /* When globe modal is open, promote globe to full-screen and hide flight overlay */
  body.globe-modal-open #globe-wrap{
    visibility:visible !important;
    width:100% !important;
    height:100% !important;
    right:0 !important;
    bottom:0 !important;
    z-index:3001 !important;
  }
  body.globe-modal-open #mob-flight-overlay{
    display:none !important;
  }

  /* Sidebar → full-screen scrollable feed */
  #sidebar{
    position:fixed !important;
    top:3rem !important;
    bottom:3.5rem !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    height:auto !important;
    border-radius:0 !important;
    border-top:none !important;
    background:var(--bg) !important;
    transition:none !important;
    will-change:auto !important;
  }
  #sidebar::before{ display:none !important; }

  /* Hide old in-sidebar header & tabs (replaced by mobile bars) */
  #header{ display:none !important }
  #tabs  { display:none !important }

  /* Scrollable list fills sidebar */
  #list{
    height:100%;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:0.5rem 0.75rem 1rem;
  }

  /* Filter bar button hidden — filter triggered from top bar icon */
  #filter-bar{ display:none !important }

  /* ── Mobile top bar ── */
  #mobile-top-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:fixed;
    top:0;left:0;right:0;
    height:3rem;
    padding:0 0.875rem;
    background:rgba(3,9,18,0.96);
    border-bottom:1px solid rgba(255,255,255,0.07);
    z-index:1002;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  #mobile-logo{
    display:flex;align-items:center;gap:0.5rem;text-decoration:none;
  }
  #mobile-logo-mark{
    width:1.25rem;height:1.25rem;
    background:var(--green);
    clip-path:polygon(50% 0%,100% 38%,82% 100%,18% 100%,0% 38%);
    flex-shrink:0;
  }
  #mobile-logo-name{
    font-size:0.75rem;font-weight:700;letter-spacing:0.2rem;color:#fff;
  }
  #mobile-top-bar-right{
    display:flex;align-items:center;gap:0.375rem;
  }
  /* #header-right is moved here by JS — remove fixed positioning */
  #header-right{
    position:static !important;
    top:auto !important;
    right:auto !important;
    gap:0.375rem;
  }
  /* Name pill hidden on mobile — replaced by avatar */
  #subscribe-cta{ display:none !important }

  /* ── Filter icon button (mobile top bar) ── */
  #mob-filter-btn{
    display:flex;align-items:center;justify-content:center;
    width:2rem;height:2rem;
    background:rgba(3,9,18,.85);
    border:1px solid rgba(255,255,255,.15);
    border-radius:0.4rem;
    color:rgba(200,220,210,.8);
    cursor:pointer;flex-shrink:0;
    transition:color .15s,border-color .15s;
  }
  #mob-filter-btn.active{
    color:var(--green);
    border-color:rgba(0,200,110,0.35);
  }

  /* ── Avatar (logged-in indicator) ── */
  @keyframes pulse-ring{
    0%  { box-shadow:0 0 0 0   rgba(0,200,110,0.5) }
    65% { box-shadow:0 0 0 5px rgba(0,200,110,0)   }
    100%{ box-shadow:0 0 0 0   rgba(0,200,110,0)   }
  }
  #mob-avatar{
    width:2rem;height:2rem;
    border-radius:50%;
    flex-shrink:0;
    text-decoration:none;
    display:flex;align-items:center;justify-content:center;
    animation:pulse-ring 2.4s ease infinite;
    overflow:hidden;
  }
  #mob-avatar img{
    width:100%;height:100%;object-fit:cover;border-radius:50%;
    border:2px solid var(--green);
  }
  .mob-avatar-initial{
    font-size:0.6875rem;font-weight:700;
    color:var(--green);
    background:rgba(0,200,110,0.12);
    width:100%;height:100%;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;
    border:2px solid var(--green);
    box-sizing:border-box;
  }

  /* ── Mobile bottom tab bar ── */
  #mobile-tab-bar{
    display:flex;
    position:fixed;
    bottom:0;left:0;right:0;
    height:3.5rem;
    background:rgba(3,9,18,0.97);
    border-top:1px solid rgba(255,255,255,0.07);
    z-index:1001;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  .mob-tab{
    flex:1;
    display:flex;flex-direction:column;
    align-items:center;justify-content:center;
    gap:0.2rem;
    background:none;border:none;
    color:var(--text-dim);
    font-family:'JetBrains Mono',monospace;
    font-size:0.5rem;letter-spacing:0.08rem;text-transform:uppercase;
    cursor:pointer;
    position:relative;
    padding-bottom:env(safe-area-inset-bottom,0);
    transition:color .15s;
  }
  .mob-tab.active{ color:var(--green) }
  .mob-tab.active svg{ stroke:var(--green) }
  .mob-tab-icon{ font-size:1.25rem;line-height:1;font-variation-settings:'FILL' 0,'wght' 300,'GRAD' 0,'opsz' 20 }
  .mob-tab.active .mob-tab-icon{ font-variation-settings:'FILL' 1,'wght' 300,'GRAD' 0,'opsz' 20 }
  .mob-tab-count{
    position:absolute;top:0.25rem;right:calc(50% - 1.375rem);
    background:var(--green);color:#000;
    font-size:0.4375rem;font-weight:700;
    min-width:0.875rem;height:0.875rem;border-radius:0.5rem;
    display:flex;align-items:center;justify-content:center;padding:0 2px;
    line-height:1;
  }
  .mob-tab-count:empty{ display:none }

  /* FAB — floating add button between tabs */
  #mob-fab{
    position:absolute;left:50%;transform:translateX(-50%);
    top:-1.375rem;
    width:2.75rem;height:2.75rem;border-radius:50%;
    background:var(--green);color:#030912;
    border:3px solid var(--bg);
    display:flex;align-items:center;justify-content:center;
    font-size:1.375rem;font-weight:700;line-height:1;
    cursor:pointer;
    box-shadow:0 4px 20px rgba(0,200,110,0.4);
    transition:background .15s,box-shadow .15s,transform .15s;
    touch-action:manipulation;
  }
  #mob-fab:hover,#mob-fab:active{
    background:var(--green-hi,#00e07a);
    box-shadow:0 4px 28px rgba(0,200,110,0.6);
  }

  /* FAB chooser — pops up above the FAB */
  #mob-fab-chooser{
    display:none;
    position:fixed;
    bottom:calc(3.5rem + env(safe-area-inset-bottom,0px) + 0.75rem);
    left:50%;transform:translateX(-50%);
    z-index:1002;
    flex-direction:row;
    gap:10px;
    animation:fabChooserIn .15s ease;
  }
  #mob-fab-chooser.open{ display:flex; }
  @keyframes fabChooserIn{
    from{ opacity:0; transform:translateX(-50%) translateY(8px); }
    to{   opacity:1; transform:translateX(-50%) translateY(0);   }
  }
  .mob-fab-opt{
    display:flex;flex-direction:column;align-items:center;gap:6px;
    padding:14px 22px;
    background:rgba(3,9,18,0.97);
    border:1px solid rgba(0,200,110,0.35);
    border-radius:14px;
    text-decoration:none;
    color:var(--green);
    font-family:'JetBrains Mono',monospace;
    font-size:9px;letter-spacing:1.5px;text-transform:uppercase;
    box-shadow:0 8px 32px rgba(0,0,0,0.6);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    touch-action:manipulation;
  }
  .mob-fab-opt:active{ background:rgba(0,200,110,0.12); }
  .mob-fab-opt-icon{ font-size:22px;line-height:1;font-variation-settings:'FILL' 0,'wght' 300,'GRAD' 0,'opsz' 24 }
  .mob-fab-opt-label{ white-space:nowrap; }

  /* ── Globe modal ── */
  #globe-modal{
    display:none;
    position:fixed;inset:0;
    z-index:2000;
    background:var(--bg);
  }
  #globe-modal.open{ display:block }
  #globe-modal-close{
    position:absolute;top:0.875rem;right:0.875rem;
    z-index:3002;
    width:2.25rem;height:2.25rem;border-radius:50%;
    background:rgba(3,9,18,0.85);
    border:1px solid rgba(255,255,255,0.15);
    color:rgba(200,220,210,0.85);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;
    backdrop-filter:blur(8px);
  }
  #globe-modal-hint{
    position:absolute;bottom:5rem;left:50%;transform:translateX(-50%);
    font-size:0.5625rem;letter-spacing:0.1rem;
    color:rgba(0,200,110,0.45);
    pointer-events:none;z-index:3002;
    white-space:nowrap;
  }

  /* ── Globe button on cards (inline in submitter row) ── */
  .card-globe-btn{
    display:inline-flex;align-items:center;gap:0.2rem;
    background:none;
    border:1px solid rgba(0,200,110,0.2);
    border-radius:3px;
    color:rgba(0,200,110,0.6);
    font-family:'JetBrains Mono',monospace;
    font-size:0.5rem;letter-spacing:0.06rem;
    padding:0.125rem 0.375rem;
    cursor:pointer;
    margin-left:0.25rem;
    transition:color .15s,border-color .15s;
  }
  .card-globe-btn:hover{ color:var(--green);border-color:rgba(0,200,110,0.4) }

  /* ── Globe modal back button ──
     Lives outside #globe-modal so z-index 3002 beats globe canvas at 3001 */
  #globe-modal-close{ display:none }
  #globe-modal-back{
    display:none;          /* hidden by default */
    position:fixed;
    top:0.875rem;left:0.875rem;
    z-index:3002;
    align-items:center;gap:0.375rem;
    background:rgba(3,9,18,0.85);
    border:1px solid rgba(255,255,255,.15);
    border-radius:0.4rem;
    color:rgba(200,220,210,.85);
    font-family:'JetBrains Mono',monospace;
    font-size:0.5625rem;letter-spacing:0.08rem;
    padding:0.4375rem 0.75rem;
    cursor:pointer;
    backdrop-filter:blur(8px);
    transition:color .15s,border-color .15s;
  }
  body.globe-modal-open #globe-modal-back{
    display:inline-flex;
  }
  #globe-modal-back:hover{ color:var(--green);border-color:rgba(0,200,110,0.3) }

  /* ── Card visual upgrades for feed ── */
  .airport{ font-size:1.25rem }
  .price{ font-size:1.125rem }
  .price-currency{ font-size:0.625rem }
  .card-body{ padding:0.875rem 0.875rem 0.75rem 1rem }

  /* aktivní karta na mobilu — kompaktnější */
  .card.active .card-body{ padding-bottom:0.625rem }
  .card.active .card-dates .date-item{ padding:0.25rem 0.4375rem }
  .card.active .card-dates .date-label{ display:none }
  .card.active .card-dates .date-val{ font-size:0.6875rem }

  .card-dates{ flex-wrap:wrap }
  .date-item{ flex:1 1 calc(50% - 0.25rem);min-width:0 }
  .date-val{ font-size:0.625rem }

  .btn{ padding:0.4375rem 0.6875rem;font-size:0.625rem;border-radius:0.3125rem }
  .btn-arrow{ font-size:0.75rem }
  .card-links{ padding:0.5rem 0.75rem 0.5rem 0.9375rem;gap:0.3125rem }

  #live-badge{ font-size:0.5625rem;gap:0.25rem }
  #footer{ display:none !important }
  #pane-add-bar{ display:none !important }
  #contrib-stats{ display:none !important }

  /* ── Mobile menu button & dropdown ── */
  #mob-menu-btn{
    display:flex;align-items:center;justify-content:center;
    width:2rem;height:2rem;
    background:rgba(3,9,18,.85);
    border:1px solid rgba(255,255,255,.15);
    border-radius:0.4rem;
    color:rgba(200,220,210,.8);
    cursor:pointer;
    position:relative;
    flex-shrink:0;
  }
  #mob-menu-dropdown{
    display:none;
    position:absolute;
    top:calc(100% + 6px);right:0;
    min-width:160px;
    background:rgba(6,14,26,.97);
    border:1px solid rgba(255,255,255,.1);
    border-radius:0.5rem;
    overflow:hidden;
    box-shadow:0 8px 32px rgba(0,0,0,.6);
    z-index:9999;
  }
  #mob-menu-dropdown.open{ display:block }
  .mob-menu-item{
    display:flex;align-items:center;gap:0.5rem;
    padding:0.75rem 1rem;
    font-size:0.625rem;letter-spacing:0.1rem;text-transform:uppercase;
    color:rgba(180,200,190,.7);
    text-decoration:none;
    background:none;border:none;width:100%;text-align:left;
    font-family:'JetBrains Mono',monospace;
    cursor:pointer;
    transition:background .15s,color .15s;
    border-bottom:1px solid rgba(255,255,255,.05);
  }
  .mob-menu-item:last-child{ border-bottom:none }
  .mob-menu-item:hover{ background:rgba(0,200,110,.08);color:var(--green) }

  /* ── Notification dropdown — full-width on mobile ── */
  #notif-dropdown{
    position:fixed !important;
    top:3rem !important;
    left:0 !important;
    right:0 !important;
    width:auto !important;
    max-height:55vh !important;
    border-radius:0 0 0.5rem 0.5rem !important;
    box-shadow:0 8px 40px rgba(0,0,0,.85) !important;
  }
  #notif-bell-wrap{ position:static !important }

  /* ── Mobile flight detail overlay ── */
  #mob-flight-overlay{
    display:none;
    position:fixed;inset:0;
    z-index:3000;
    background:var(--bg);
    flex-direction:column;
    overflow:hidden;
  }
  #mob-flight-overlay.open{ display:flex }
  #mob-flight-overlay-header{
    flex-shrink:0;
    background:var(--bg);
    border-bottom:1px solid var(--border);
    padding:0.625rem 1rem;
    display:flex;align-items:center;
  }
  #mob-flight-overlay-back{
    display:inline-flex;align-items:center;gap:0.375rem;
    background:none;
    border:1px solid var(--border);
    border-radius:0.375rem;
    color:var(--text-mid);
    font-family:inherit;font-size:0.6875rem;letter-spacing:0.0625rem;
    padding:0.375rem 0.75rem;
    cursor:pointer;
    transition:color .15s,border-color .15s;
  }
  #mob-flight-overlay-back:hover{ color:var(--green);border-color:rgba(0,200,110,.3) }
  #mob-flight-overlay-content{
    flex:1;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:1rem;
    padding-bottom:5rem;
  }
  #mob-flight-overlay-content .card{
    margin-bottom:0;
    cursor:default;
  }

}

/* ── Tablet ── */
@media(min-width:768px) and (max-width:1100px){
  #sidebar{ width:30rem }
}

/* ── Header ── */
#header{
  padding:1.125rem 1.375rem 0.875rem;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
}

#logo{
  display:flex;
  align-items:center;
  gap:0.6875rem;
}

#logo-mark{
  width:1.875rem;height:1.875rem;
  background:var(--green);
  clip-path:polygon(50% 0%,100% 38%,82% 100%,18% 100%,0% 38%);
  flex-shrink:0;
}

#logo-text{
  display:flex;
  flex-direction:column;
  gap:0.0625rem;
}

#logo-name{
  font-size:0.875rem;
  font-weight:700;
  letter-spacing:0.1875rem;
  color:#fff;
  text-transform:uppercase;
  line-height:1;
}

#logo-sub{
  font-size:0.5625rem;
  letter-spacing:0.09375rem;
  color:var(--text-dim);
  text-transform:uppercase;
}

#live-badge{
  display:flex;
  align-items:center;
  gap:0.375rem;
  font-size:0.625rem;
  color:var(--text-dim);
  letter-spacing:0.0625rem;
  background:rgba(0,200,110,0.06);
  border:1px solid rgba(0,200,110,0.15);
  padding:0.3125rem 0.625rem;
  border-radius:1.25rem;
}

#city-toggle{
  display:flex;
  align-items:center;
  gap:0.375rem;
  font-size:0.625rem;
  letter-spacing:0.0625rem;
  color:var(--text-dim);
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  padding:0.3125rem 0.625rem;
  border-radius:1.25rem;
  cursor:pointer;
  transition:color .15s, border-color .15s, background .15s;
  user-select:none;
}
#city-toggle:hover{ color:var(--text-mid); border-color:rgba(255,255,255,0.12) }
#city-toggle.active{
  color:var(--green);
  background:rgba(0,200,110,0.07);
  border-color:rgba(0,200,110,0.2);
}
#city-toggle-track{
  width:1.625rem; height:0.875rem;
  background:rgba(255,255,255,0.08);
  border-radius:0.4375rem;
  position:relative;
  transition:background .2s;
  flex-shrink:0;
}
#city-toggle.active #city-toggle-track{ background:rgba(0,200,110,0.35) }
#city-toggle-thumb{
  position:absolute;
  top:0.125rem; left:0.125rem;
  width:0.625rem; height:0.625rem;
  border-radius:50%;
  background:var(--text-dim);
  transition:transform .2s, background .2s;
}
#city-toggle.active #city-toggle-thumb{
  transform:translateX(0.75rem);
  background:var(--green);
}

#live-dot{
  width:0.375rem;height:0.375rem;
  border-radius:50%;
  background:var(--green);
  animation:blink 2.4s ease-in-out infinite;
}

@keyframes blink{
  0%,100%{opacity:1;box-shadow:0 0 5px var(--green)}
  50%{opacity:.25;box-shadow:none}
}

/* ── Tabs ── */
#tabs{
  display:flex;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
  background:rgba(3,9,18,0.5);
}

.tab{
  flex:1;
  padding:0.6875rem 0.375rem;
  text-align:center;
  cursor:pointer;
  font-size:0.625rem;
  letter-spacing:0.09375rem;
  text-transform:uppercase;
  color:var(--text-dim);
  border-bottom:2px solid transparent;
  transition:.15s;
  position:relative;
  font-family:'JetBrains Mono',monospace;
}

.tab:hover{color:var(--text-mid)}

.tab.active{
  color:var(--green);
  border-bottom-color:var(--green);
}

.tab-count{
  display:inline-block;
  background:rgba(0,200,110,0.12);
  color:var(--green);
  border-radius:0.1875rem;
  padding:0.0625rem 0.3125rem;
  font-size:0.5625rem;
  margin-left:0.25rem;
  vertical-align:middle;
}

.tab-soon{
  display:block;
  font-size:0.5rem;
  color:rgba(180,200,190,0.2);
  letter-spacing:0.03125rem;
  margin-top:0.125rem;
}

/* ── List ── */
#list{
  flex:1;
  overflow-y:auto;
  padding:0.875rem 1rem;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,200,110,0.15) transparent;
}

#list::-webkit-scrollbar{width:0.1875rem}
#list::-webkit-scrollbar-thumb{background:rgba(0,200,110,0.15);border-radius:0.125rem}

.pane{display:none}
.pane.active{display:block}

/* ── Coming soon ── */
.coming-soon{
  padding:3.125rem 1.25rem;
  text-align:center;
}

.cs-icon{
  font-size:1.875rem;
  opacity:.15;
  margin-bottom:1rem;
}

.coming-soon h3{
  font-size:0.6875rem;
  letter-spacing:0.125rem;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:0.625rem;
}

.coming-soon p{
  font-size:0.6875rem;
  color:var(--text-dim);
  line-height:1.9;
}

/* ── Card ── */
.ad-banner-wrap{
  margin-bottom:0.625rem;
  border-radius:0.5rem;
  overflow:hidden;
  line-height:0;
}
.ad-banner-wrap img{
  max-width:100%;
  height:auto;
  display:block;
  border-radius:0.5rem;
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:0.5rem;
  padding:0;
  margin-bottom:0.625rem;
  cursor:pointer;
  transition:border-color .15s, background .15s;
  position:relative;
  overflow:hidden;
}

/* accent left bar */
.card::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:rgba(0,200,110,0.25);
  transition:.15s;
}

.card:hover{
  border-color:rgba(0,200,110,0.22);
  background:var(--surface2);
}

.card:hover::before{background:rgba(0,200,110,0.6)}

.card.active{
  border-color:rgba(0,200,110,0.45);
  background:#091a0f;
}

.card.active::before{
  background:var(--green);
  box-shadow:0 0 10px rgba(0,200,110,0.5);
}

/* card body */
.card-body{
  padding:0.875rem 1rem 0.875rem 1.1875rem;
}

/* row 1: route + price */
.card-row1{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:0.625rem;
}

.route{
  display:flex;
  align-items:center;
  gap:0;
}

.airport{
  font-size:1.125rem;
  font-weight:700;
  color:#fff;
  letter-spacing:0.03125rem;
}

.route-mid{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin:0 0.625rem;
  gap:0.125rem;
}

.route-line{
  display:flex;
  align-items:center;
  gap:0.1875rem;
  color:var(--green);
  font-size:0.625rem;
}

.route-dot{
  width:0.25rem;height:0.25rem;
  border-radius:50%;
  background:var(--green);
  opacity:.6;
}

.price-block{
  text-align:right;
  flex-shrink:0;
}

.price{
  font-size:1.0625rem;
  font-weight:700;
  color:var(--green);
  line-height:1;
}

.price-currency{
  font-size:0.6875rem;
  color:var(--text-dim);
  margin-top:0.125rem;
}

/* row 2: dates */
.card-dates{
  display:flex;
  gap:0.375rem;
  align-items:center;
}

.date-item{
  display:flex;
  align-items:center;
  gap:0.3125rem;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
  border-radius:0.3125rem;
  padding:0.3125rem 0.5625rem;
  flex:1;
}

.date-icon{
  font-size:0.6875rem;
  opacity:.5;
}

.date-info{
  display:flex;
  flex-direction:column;
  gap:0.0625rem;
}

.date-label{
  font-size:0.5rem;
  letter-spacing:0.0625rem;
  text-transform:uppercase;
  color:var(--text-dim);
  line-height:1;
}

.date-val{
  font-size:0.6875rem;
  color:var(--text);
  line-height:1.2;
}

.card-meta-right{
  margin-left:auto;
  font-size:0.5625rem;
  color:var(--text-dim);
  align-self:flex-end;
  padding-bottom:0.125rem;
  white-space:nowrap;
}

/* ── Multi-date custom dropdown ── */
.date-item-pick{
  display:flex;
  cursor:pointer;
  position:relative;
}
.date-item-pick:hover{
  border-color:rgba(255,255,255,0.18);
}
.dpick-arrow{
  margin-left:auto;
  font-size:0.5625rem;
  color:var(--text-dim);
  align-self:flex-end;
  padding-bottom:0.15rem;
}
.origin-pick .airport{color:var(--green);transition:color .15s}
.origin-pick:hover .airport{color:var(--green-hi)}
.dpick-drop{
  display:none;
  position:fixed;
  background:#0b1524;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:0.375rem;
  z-index:9999;
  box-shadow:0 6px 24px rgba(0,0,0,0.6);
}
.dpick-drop.open{ display:block }

/* calendar */
.dcal{ padding:0.625rem; width:210px; font-family:'JetBrains Mono',monospace }
.dcal-nav{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:0.5rem;
}
.dcal-nav-btn{
  background:none; border:none; color:var(--green); cursor:pointer;
  font-size:1rem; padding:0 0.375rem; line-height:1;
}
.dcal-nav-btn:disabled{ opacity:0.2; cursor:default }
.dcal-nav-btn:not(:disabled):hover{ color:#fff }
.dcal-month{
  font-size:0.625rem; letter-spacing:0.08rem;
  color:var(--text); text-transform:uppercase;
}
.dcal-header,.dcal-grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:2px;
}
.dcal-header{ margin-bottom:0.25rem }
.dcal-dname{
  text-align:center; font-size:0.5rem;
  color:var(--text-dim); padding:0.125rem 0;
}
.dcal-cell{
  text-align:center; font-size:0.625rem;
  padding:0.3125rem 0.125rem;
  border-radius:0.1875rem;
  color:rgba(180,200,190,0.2);
  border:1px solid transparent;
  line-height:1;
}
.dcal-avail{
  color:var(--text); cursor:pointer;
  border-color:rgba(0,200,110,0.25);
  background:rgba(0,200,110,0.06);
}
.dcal-avail:hover{
  background:rgba(0,200,110,0.18);
  border-color:rgba(0,200,110,0.6);
  color:#fff;
}
.dcal-sel{
  background:rgba(0,200,110,0.22) !important;
  border-color:var(--green) !important;
  color:var(--green) !important;
  font-weight:700;
}

/* ── Multi-date badge ── */
.dates-more{
  display:inline-block;
  background:rgba(0,200,110,0.12);
  color:var(--green);
  border-radius:0.1875rem;
  font-size:0.5625rem;
  padding:0 0.25rem;
  letter-spacing:0.04rem;
  vertical-align:middle;
}

.dlinks{
  display:flex;
  flex-direction:column;
  gap:0.4375rem;
}

/* ── Expanded booking links ── */
.card-links{
  display:none;
  border-top:1px solid var(--border);
  padding:0.75rem 1rem 0.75rem 1.1875rem;
  display:none;
  flex-direction:column;
  gap:0.4375rem;
}

.card.active .card-links{
  display:flex;
}

.card-flight-tl{
  display:none;
  padding:12px 14px 12px;
  border-top:1px solid var(--border);
  overflow:hidden;
  box-sizing:border-box;
  width:100%;
}
.card.active .card-flight-tl{
  display:block;
}

.btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(0,200,110,0.07);
  border:1px solid rgba(0,200,110,0.3);
  border-radius:0.375rem;
  padding:0.6875rem 0.875rem;
  color:var(--green);
  cursor:pointer;
  text-decoration:none;
  font-size:0.75rem;
  font-family:'JetBrains Mono',monospace;
  letter-spacing:0.01875rem;
  transition:.15s;
  font-weight:600;
}

.btn-arrow{
  font-size:0.875rem;
  opacity:.6;
  transition:.15s;
}

.btn:hover{
  background:rgba(0,200,110,0.14);
  border-color:var(--green);
  color:#fff;
}

.btn.btn-airline{
  background:rgba(60,140,255,0.07);
  border-color:rgba(60,140,255,0.35);
  color:#5b9eff;
}
.btn.btn-airline:hover{
  background:rgba(60,140,255,0.14);
  border-color:rgba(60,140,255,0.65);
  color:#8fbfff;
}
.btn-airline-badge{
  font-size:0.5rem;
  letter-spacing:0.09375rem;
  text-transform:uppercase;
  background:rgba(60,140,255,0.12);
  border:1px solid rgba(60,140,255,0.3);
  border-radius:0.25rem;
  padding:0.125rem 0.3125rem;
  margin-left:0.5rem;
  color:rgba(60,140,255,0.8);
  flex-shrink:0;
}

.btn:hover .btn-arrow{
  opacity:1;
  transform:translateX(0.125rem);
}

/* ── Footer ── */
#footer{
  padding:0.625rem 1.375rem;
  border-top:1px solid var(--border);
  font-size:0.5625rem;
  color:var(--text-dim);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-shrink:0;
  letter-spacing:0.05rem;
}

#footer-count{color:var(--green);font-weight:600}

#footer-feedback-btn{
  background:rgba(0,200,110,0.08);color:var(--green);letter-spacing:0.05rem;
  border:1px solid rgba(0,200,110,0.3);padding:0.25rem 0.625rem;border-radius:0.375rem;
  transition:background .15s,border-color .15s;font-size:0.5625rem;
  cursor:pointer;font-family:inherit;
}
#footer-feedback-btn:hover{background:rgba(0,200,110,0.15);border-color:rgba(0,200,110,0.5)}

.footer-legal-link{
  color:var(--text-dim);text-decoration:none;letter-spacing:0.05rem;
  border:1px solid var(--border);padding:0.25rem 0.625rem;border-radius:0.375rem;
  transition:color .15s,border-color .15s;font-size:0.5625rem;font-family:inherit;
}
.footer-legal-link:hover{color:var(--green);border-color:rgba(0,200,110,0.3)}

#submit-cta{
  position:fixed;
  top:1.375rem;right:13.75rem;
  z-index:1000;
  text-decoration:none;
  background:rgba(3,9,18,0.75);
  border:1px solid rgba(0,200,110,0.25);
  border-radius:0.5rem;
  padding:0.5625rem 0.875rem;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:rgba(0,200,110,0.55);
  font-size:0.6875rem;
  letter-spacing:0.09375rem;
  font-family:"JetBrains Mono",monospace;
  transition:color .2s,border-color .2s;
}
#submit-cta:hover{
  color:var(--green);
  border-color:rgba(0,200,110,0.5);
}
@media(max-width:767px){
  #submit-cta{ display:none }
}

#subscribe-cta{
  position:fixed;
  top:1.375rem;right:1.75rem;
  z-index:1000;
  display:flex;align-items:center;gap:0.5625rem;
  text-decoration:none;
  background:rgba(3,9,18,0.75);
  border-radius:0.5rem;
  padding:0.5625rem 1rem;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:border-color .2s,box-shadow .2s,background .2s;
}

#subscribe-cta.cta-guest{
  border:1px solid rgba(255,80,80,0.35);
}
#subscribe-cta.cta-patreon-guest{
  border:1px solid rgba(255,180,0,0.35);
}
#subscribe-cta.cta-patreon-guest:hover{
  border-color:rgba(255,180,0,0.65);
  background:rgba(3,9,18,0.9);
  box-shadow:0 0 18px rgba(255,180,0,0.1),inset 0 0 18px rgba(255,180,0,0.04);
}
#subscribe-cta.cta-patreon-guest #subscribe-cta-dot{
  background:#ffb400;
  box-shadow:0 0 6px rgba(255,180,0,0.8);
  animation:ctapulse-red 2s ease-in-out infinite;
}
#subscribe-cta.cta-patreon-guest #subscribe-cta-text{ color:#ffb400; }
#subscribe-cta.cta-patreon-guest #subscribe-cta-cursor{ color:#ffb400; }
#subscribe-cta.cta-guest:hover{
  border-color:rgba(255,80,80,0.7);
  background:rgba(3,9,18,0.9);
  box-shadow:0 0 18px rgba(255,80,80,0.12),inset 0 0 18px rgba(255,80,80,0.04);
}
#subscribe-cta.cta-guest #subscribe-cta-dot{
  background:#ff5050;
  box-shadow:0 0 6px rgba(255,80,80,0.8);
  animation:ctapulse-red 2s ease-in-out infinite;
}
#subscribe-cta.cta-guest #subscribe-cta-text{ color:#ff6b6b; }
#subscribe-cta.cta-guest #subscribe-cta-cursor{ color:#ff6b6b; }

#subscribe-cta.cta-logged-in{
  border:1px solid rgba(0,200,110,0.35);
}
#subscribe-cta.cta-logged-in:hover{
  border-color:rgba(0,200,110,0.7);
  background:rgba(3,9,18,0.9);
  box-shadow:0 0 18px rgba(0,200,110,0.15),inset 0 0 18px rgba(0,200,110,0.04);
}
#subscribe-cta.cta-logged-in #subscribe-cta-dot{
  background:var(--green);
  box-shadow:0 0 6px rgba(0,200,110,0.8);
  animation:ctapulse 2s ease-in-out infinite;
}
#subscribe-cta.cta-logged-in #subscribe-cta-text{ color:var(--green); }
#subscribe-cta.cta-logged-in #subscribe-cta-cursor{ color:var(--green); }

#subscribe-cta-dot{
  width:0.4375rem;height:0.4375rem;
  border-radius:50%;
  flex-shrink:0;
}
@keyframes ctapulse{
  0%,100%{opacity:1;box-shadow:0 0 5px rgba(0,200,110,0.8)}
  50%{opacity:.5;box-shadow:0 0 2px rgba(0,200,110,0.3)}
}
@keyframes ctapulse-red{
  0%,100%{opacity:1;box-shadow:0 0 5px rgba(255,80,80,0.8)}
  50%{opacity:.5;box-shadow:0 0 2px rgba(255,80,80,0.3)}
}

#subscribe-cta-text{
  font-size:0.6875rem;font-weight:700;
  letter-spacing:0.09375rem;
}

#subscribe-cta-cursor{
  animation:blink .9s step-end infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}

/* ── Header right cluster (bell + pill) ── */
#header-right{
  position:fixed;
  top:1.375rem;
  right:1.75rem;
  z-index:1001;
  display:flex;
  align-items:center;
  gap:0.5rem;
}
/* Override pill's own fixed positioning when inside #header-right */
#header-right #subscribe-cta{
  position:static !important;
  top:auto !important;
  right:auto !important;
  z-index:auto !important;
}

/* ── Notification bell ── */
#notif-bell-wrap{
  position:relative;
}
#notif-bell-btn{
  display:flex;align-items:center;justify-content:center;
  width:2rem;height:2rem;
  background:rgba(3,9,18,.82);
  border:1px solid rgba(255,255,255,.1);
  border-radius:0.4rem;
  color:rgba(200,220,210,.7);
  cursor:pointer;
  position:relative;
  transition:color .15s,border-color .15s;
}
#notif-bell-btn:hover{ color:#fff; border-color:rgba(255,255,255,.25); }
#notif-badge{
  position:absolute;
  top:-4px;right:-4px;
  background:#ff4444;
  color:#fff;
  font-size:0.5rem;
  font-weight:700;
  min-width:14px;height:14px;
  border-radius:7px;
  display:flex;align-items:center;justify-content:center;
  padding:0 3px;
  line-height:1;
  pointer-events:none;
}
#notif-dropdown{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  width:300px;
  background:rgba(6,14,26,.97);
  border:1px solid rgba(255,255,255,.1);
  border-radius:0.5rem;
  overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,.6);
  max-height:400px;
  overflow-y:auto;
}
.notif-item{
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,.05);
  font-size:0.7rem;
  line-height:1.4;
  cursor:default;
}
.notif-item.unread{ background:rgba(0,204,112,.04); }
.notif-item:last-child{ border-bottom:none; }
.notif-item-msg{ color:rgba(200,220,210,.9); }
.notif-item-time{ color:rgba(150,170,160,.5); font-size:0.6rem; margin-top:3px; }
.notif-empty{
  padding:18px 14px;
  color:rgba(150,170,160,.5);
  font-size:0.7rem;
}

/* ── NEW badge ── */
@keyframes fadeout{0%,60%{opacity:1}100%{opacity:0}}

.card-new::after{
  content:'NEW';
  position:absolute;
  right:0.75rem;top:0.75rem;
  font-size:0.5rem;
  letter-spacing:0.09375rem;
  color:var(--green);
  animation:fadeout 5s ease forwards;
}

/* ── Slow-travel connection band (between legs) ── */
.leg-conn{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0.5rem;
  padding:0.4375rem 1rem 0.4375rem 1.1875rem;
  background:rgba(255,160,0,0.04);
  border-top:1px solid rgba(255,160,0,0.15);
  border-bottom:1px solid rgba(255,160,0,0.15);
  font-size:0.625rem;
  color:var(--text-dim);
}
.leg-conn::before{
  content:'⇌';
  font-size:0.6875rem;
  color:rgba(255,160,0,0.6);
  flex-shrink:0;
}
.leg-conn-city{
  font-weight:700;
  color:rgba(255,180,0,0.9);
  letter-spacing:0.03125rem;
}
.leg-conn-days{
  display:flex;
  gap:0.625rem;
}
.leg-conn-days span{
  display:flex;
  align-items:center;
  gap:0.1875rem;
  letter-spacing:0.01875rem;
}
.leg-conn-days .dc{ color:var(--green); opacity:.7; font-size:0.5625rem }
.leg-conn-warn{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:0.25rem;
  background:rgba(255,170,0,0.07);
  border:1px solid rgba(255,170,0,0.2);
  color:rgba(255,170,0,0.85);
  border-radius:0.25rem;
  padding:0.125rem 0.5rem;
  font-size:0.5625rem;
  letter-spacing:0.03125rem;
  white-space:nowrap;
}

/* ── Multi-leg trip card ── */
.card-multi-header{
  background:rgba(0,200,110,0.04);
  border-bottom:1px solid var(--border);
  padding:0.375rem 1rem 0.375rem 1.1875rem;
  display:flex;
  align-items:center;
  gap:0.4375rem;
  font-size:0.5625rem;
  letter-spacing:0.09375rem;
  color:var(--green);
  text-transform:uppercase;
}
.card-multi-header .chain-icon{ opacity:.6; font-size:0.6875rem }

.card-leg{
  border-top:1px solid var(--border);
  padding:0.625rem 1rem 0.625rem 1.1875rem;
}
.card-leg:first-child{ border-top:none }

.card-leg + .card-leg{ background:rgba(255,255,255,0.02) }
.card-leg + .card-leg .airport{ color:rgba(255,255,255,0.55) }
.card-leg + .card-leg .price{ color:rgba(0,200,110,0.55) }
.card-leg + .card-leg .price-currency{ opacity:.5 }
.card-leg + .card-leg .date-item{ opacity:.6 }
.card-leg + .card-leg .route-line,
.card-leg + .card-leg .route-dot{ opacity:.5 }

.leg-label{
  font-size:0.5rem;
  letter-spacing:0.09375rem;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:0.375rem;
}

.multi-total{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:0.5rem;
  padding:0.4375rem 1rem 0.4375rem 1.1875rem;
  border-top:1px solid var(--border);
  font-size:0.625rem;
  color:var(--text-dim);
  letter-spacing:0.03125rem;
}
.multi-total-val{ color:var(--green); font-weight:700; font-size:0.75rem }

.card-links-leg{
  border-top:1px solid var(--border);
  padding:0.625rem 1rem 0.625rem 1.1875rem;
}
.card-links-leg-label{
  font-size:0.5625rem;
  letter-spacing:0.09375rem;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:0.5rem;
}

/* ── Background airport dots (always visible, tiny, fixed px) ── */
.airport-bg{
  position:relative;
  width:0;height:0;
  pointer-events:none;
}
.abg-dot{
  position:absolute;
  top:50%;left:50%;
  width:0.25rem;height:0.25rem;
  background:rgba(0,200,110,0.55);
  border-radius:50%;
  transform:translate(-50%,-50%);
}
.abg-iata{
  position:absolute;
  left:0.5rem;
  top:50%;
  transform:translateY(-50%);
  font-size:0.53rem;
  font-weight:600;
  letter-spacing:0.075rem;
  color:rgba(0,200,110,0.4);
  white-space:nowrap;
  pointer-events:none;
}

/* ── Stopover marker style (amber) ── */
.airport-marker.connection .ap-dot{
  background:rgba(255,165,0,0.95);
  box-shadow:0 0 10px rgba(255,165,0,0.7),0 0 20px rgba(255,165,0,0.3);
}
.airport-marker.connection .ap-ring{ border-color:rgba(255,165,0,0.8) }
@keyframes ap-pulse-conn{
  0%  { width:4px; height:4px; opacity:.85; transform:translate(-50%,-50%) }
  100%{ width:54px;height:54px;opacity:0;   transform:translate(-50%,-50%) }
}
.airport-marker.connection .ap-ring{ animation-name:ap-pulse-conn }
.airport-marker.connection .ap-iata{ color:rgba(255,185,0,0.95) }
.airport-marker.connection .ap-info{ border-color:rgba(255,165,0,0.25) }

.airport-marker.stopover .ap-dot{
  background:#ffaa00;
  box-shadow:0 0 10px #ffaa00,0 0 20px rgba(255,170,0,.4);
}
.airport-marker.stopover .ap-ring{border-color:#ffaa00}
.airport-marker.stopover .ap-iata{color:#ffaa00}
.airport-marker.stopover .ap-info{border-color:rgba(255,170,0,.2)}

/* ── Inactive origin (secondary airports in multi-origin deal — grey, clickable) ── */
.airport-marker.inactive-origin{pointer-events:all;cursor:pointer}
.airport-marker.inactive-origin .ap-dot{background:rgba(140,160,150,.5);box-shadow:none;width:.33rem;height:.33rem}
.airport-marker.inactive-origin .ap-ring{border-color:rgba(140,160,150,.3);animation:none;width:4px;height:4px;opacity:.4}
.airport-marker.inactive-origin .ap-iata{color:rgba(150,170,160,.7);font-size:.72rem;letter-spacing:.08rem}
.airport-marker.inactive-origin .ap-coords{display:none}
.airport-marker.inactive-origin .ap-info{border-color:rgba(140,160,150,.15);background:rgba(3,9,18,.5);padding:.2rem .35rem}

/* ── Return route row (card) ── */
.card-return-route{
  display:flex;
  align-items:center;
  gap:0.3125rem;
  margin-top:0.375rem;
  font-size:0.625rem;
  color:var(--text-dim);
  flex-wrap:wrap;
}
.ret-arrow{ color:rgba(255,170,0,0.6); font-size:0.6875rem }
.stop-badge-ret{
  background:rgba(255,170,0,0.07);
  border:1px solid rgba(255,170,0,0.2);
  color:rgba(255,170,0,0.75);
  border-radius:0.1875rem;
  padding:0.0625rem 0.3125rem;
  font-size:0.5625rem;
  letter-spacing:0.0625rem;
  font-weight:600;
}

/* ── Stopover badge in route ── */
.stop-badge{
  background:rgba(255,170,0,0.1);
  border:1px solid rgba(255,170,0,0.3);
  color:#ffaa00;
  border-radius:0.1875rem;
  padding:0.0625rem 0.3125rem;
  font-size:0.5625rem;
  letter-spacing:0.0625rem;
  font-weight:600;
}
.route-stops-count{
  font-size:0.5rem;
  color:var(--text-dim);
  letter-spacing:0.03125rem;
  margin-top:0.125rem;
}

/* ── Airline row in card ── */
.card-airline{
  display:flex;
  align-items:center;
  gap:0.4375rem;
  margin-top:0.5rem;
  padding-top:0.4375rem;
  border-top:1px solid var(--border);
}
.airline-logo-img{
  width:1.125rem;height:1.125rem;
  object-fit:contain;
  opacity:.8;
  filter:brightness(1.1);
}
.airline-label{
  font-size:0.625rem;
  color:var(--text-dim);
  letter-spacing:0.03125rem;
}

/* ── Changelog widget ── */
#changelog-panel{
  position:fixed;
  right:1.125rem;
  bottom:calc(1.125rem + 26.25rem + 0.5rem);
  width:19.375rem;
  max-height:18rem;
  z-index:20;
  display:flex;
  flex-direction:column;
  background:rgba(3,9,18,.88);
  border:1px solid rgba(0,200,110,0.18);
  border-radius:0.625rem;
  overflow:hidden;
  backdrop-filter:blur(10px);
}
@media(max-width:767px){ #changelog-panel{ display:none } }
#changelog-list{
  overflow-y:auto;
  flex:1;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,200,110,0.12) transparent;
}
#changelog-list::-webkit-scrollbar{width:0.125rem}
#changelog-list::-webkit-scrollbar-thumb{background:rgba(0,200,110,0.12)}
.cl-version-block{ border-bottom:1px solid rgba(0,200,110,0.08) }
.cl-version-block:last-child{ border-bottom:none }
.cl-version-header{
  padding:0.5rem 0.8125rem 0.25rem;
  display:flex;align-items:baseline;gap:0.5rem;
}
.cl-version-num{
  font-size:0.6rem;font-weight:700;
  color:var(--green);letter-spacing:0.1rem;
}
.cl-version-date{
  font-size:0.5rem;color:var(--text-dim);letter-spacing:0.03rem;
}
.cl-entry{
  padding:0.15rem 0.8125rem 0.15rem 1.5rem;
  font-size:0.57rem;color:rgba(180,200,190,.75);
  letter-spacing:0.02rem;line-height:1.5;
  position:relative;
}
.cl-entry::before{
  content:'';position:absolute;left:0.8125rem;top:0.45rem;
  width:0.25rem;height:0.25rem;border-radius:50%;
  background:currentColor;opacity:0.5;
}
.cl-entry.added{ color:rgba(0,200,110,.8) }
.cl-entry.added::before{ background:var(--green) }
.cl-entry.fixed{ color:rgba(100,180,255,.8) }
.cl-entry.fixed::before{ background:#64b4ff }
.cl-entry.changed{ color:rgba(255,200,80,.75) }
.cl-entry.changed::before{ background:#ffc850 }
.cl-entry.removed{ color:rgba(255,100,100,.7) }
.cl-entry.removed::before{ background:#ff6464 }
.cl-version-block:last-child .cl-entry:last-child{ padding-bottom:0.5rem }

/* ── News widget ── */
#news-panel{
  position:fixed;
  right:1.125rem;
  bottom:1.125rem;
  width:19.375rem;
  max-height:26.25rem;
  z-index:20;
  display:flex;
  flex-direction:column;
  background:rgba(3,9,18,.88);
  border:1px solid rgba(0,200,110,0.18);
  border-radius:0.625rem;
  overflow:hidden;
  backdrop-filter:blur(10px);
}
@media(max-width:767px){ #news-panel{ display:none } }

#news-header{
  padding:0.5625rem 0.8125rem;
  border-bottom:1px solid rgba(0,200,110,0.12);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-shrink:0;
}
.news-title-bar{
  font-size:0.5625rem;
  letter-spacing:0.09375rem;
  text-transform:uppercase;
  color:var(--green);
  font-weight:600;
}
.news-source-tag{
  font-size:0.5rem;
  color:var(--text-dim);
  letter-spacing:0.03125rem;
  opacity:.7;
}

#news-list{
  overflow-y:auto;
  flex:1;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,200,110,0.12) transparent;
}
#news-list::-webkit-scrollbar{width:0.125rem}
#news-list::-webkit-scrollbar-thumb{background:rgba(0,200,110,0.12)}

.news-item{
  display:block;
  padding:0.625rem 0.8125rem;
  border-bottom:1px solid rgba(255,255,255,0.04);
  text-decoration:none;
  color:inherit;
  transition:background .12s;
}
.news-item:last-child{ border-bottom:none }
.news-item:hover{ background:rgba(0,200,110,0.05) }

.news-item-title{
  font-size:0.6875rem;
  font-weight:600;
  color:var(--text);
  line-height:1.4;
  margin-bottom:0.25rem;
}
.news-item-desc{
  font-size:0.59rem;
  color:var(--text-dim);
  line-height:1.5;
  margin-bottom:0.25rem;
}
.news-item-date{
  font-size:0.5rem;
  color:rgba(0,200,110,.45);
  letter-spacing:0.03125rem;
}
.news-empty{
  padding:1.125rem 0.8125rem;
  font-size:0.625rem;
  color:var(--text-dim);
  letter-spacing:0.03125rem;
}

/* ── Airport markers (HTML overlay on globe) ── */
.airport-marker{
  position:relative;
  width:0;height:0;
  pointer-events:none;
}
.ap-ring{
  position:absolute;
  top:50%;left:50%;
  width:4px;height:4px;
  border:1.5px solid var(--green-hi);
  border-radius:50%;
  transform:translate(-50%,-50%);
  animation:ap-pulse 2s ease-out infinite;
}
.ap-ring-2{ animation-delay:.9s; }
@keyframes ap-pulse{
  0%  { width:4px; height:4px; opacity:.85; transform:translate(-50%,-50%) }
  100%{ width:54px;height:54px;opacity:0;   transform:translate(-50%,-50%) }
}
.ap-dot{
  position:absolute;
  top:50%;left:50%;
  width:0.4375rem;height:0.4375rem;
  background:var(--green-hi);
  border-radius:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 10px var(--green-hi),0 0 20px rgba(0,255,136,.4);
}
.ap-info{
  position:absolute;
  left:0.875rem;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:0.0625rem;
  white-space:nowrap;
  background:rgba(3,9,18,.65);
  border:1px solid rgba(0,255,136,.2);
  border-radius:0.25rem;
  padding:0.25rem 0.4375rem;
  backdrop-filter:blur(4px);
  transition:opacity .15s;
}
.ap-info.lbl-hide{ opacity:0; pointer-events:none; }
.ap-iata{
  font-size:0.8125rem;
  font-weight:700;
  color:var(--green-hi);
  letter-spacing:0.125rem;
  line-height:1.1;
}
.ap-coords{
  font-size:0.53rem;
  color:var(--text-dim);
  letter-spacing:0.03125rem;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
}
.ap-city{
  font-size:0.625rem;
  color:var(--text-mid);
  letter-spacing:0.01875rem;
  line-height:1.2;
}

/* ── Filter bar ── */
#filter-bar{
  flex-shrink:0;
  border-bottom:1px solid var(--border);
}
#filter-toggle{
  width:100%;
  padding:0.5625rem 1rem 0.5625rem 1.375rem;
  display:flex;align-items:center;gap:0.5rem;
  background:none;border:none;cursor:pointer;
  font-family:'JetBrains Mono',monospace;
  font-size:0.625rem;color:var(--text-dim);
  letter-spacing:0.075rem;text-transform:uppercase;
  transition:color .15s;
}
#filter-toggle:hover{color:var(--text-mid)}
#filter-toggle.active{color:var(--green)}
.ft-icon{font-size:0.8125rem;opacity:.7}
.ft-label{flex:1;text-align:left}
#ft-badge{
  background:rgba(0,200,110,.15);
  color:var(--green);
  border-radius:0.1875rem;
  padding:0.0625rem 0.375rem;
  font-size:0.5625rem;
  display:none;
}
.ft-arrow{font-size:0.625rem;opacity:.4;transition:transform .2s}
#filter-toggle.active .ft-arrow{transform:rotate(180deg)}

/* Mobile city toggle row — shown only on mobile inside filter panel */
#mob-city-row{ display:none }
@media(max-width:767px){
  #mob-city-row{
    display:flex;align-items:center;justify-content:space-between;
    padding:0.75rem 1rem 0.75rem 1.375rem;
    border-bottom:1px solid var(--border);
  }
  #mob-city-row-label{
    font-size:0.5rem;letter-spacing:0.09375rem;
    text-transform:uppercase;color:var(--text-dim);
  }
  /* Matches desktop #city-toggle exactly */
  #mob-city-toggle{
    display:flex;align-items:center;gap:0.375rem;
    font-size:0.625rem;letter-spacing:0.0625rem;color:var(--text-dim);
    background:rgba(255,255,255,0.03);border:1px solid var(--border);
    padding:0.3125rem 0.625rem;border-radius:1.25rem;cursor:pointer;
    transition:color .15s,border-color .15s,background .15s;user-select:none;
    font-family:'JetBrains Mono',monospace;
  }
  #mob-city-toggle:hover{ color:var(--text-mid);border-color:rgba(255,255,255,0.12) }
  #mob-city-toggle.active{
    color:var(--green);background:rgba(0,200,110,0.07);border-color:rgba(0,200,110,0.2);
  }
  #mob-city-toggle-track{
    width:1.625rem;height:0.875rem;background:rgba(255,255,255,0.08);
    border-radius:0.4375rem;position:relative;transition:background .2s;flex-shrink:0;
  }
  #mob-city-toggle.active #mob-city-toggle-track{ background:rgba(0,200,110,0.35) }
  #mob-city-toggle-thumb{
    position:absolute;top:0.125rem;left:0.125rem;
    width:0.625rem;height:0.625rem;border-radius:50%;
    background:var(--text-dim);transition:transform .2s,background .2s;
  }
  #mob-city-toggle.active #mob-city-toggle-thumb{
    transform:translateX(0.75rem);background:var(--green);
  }
}

#filter-panel{
  overflow:hidden;
  max-height:0;
  transition:max-height .35s ease;
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.2);
}
#filter-panel.open{max-height:32.5rem}

.fp-inner{
  padding:0.875rem 1rem 1rem 1.375rem;
  display:flex;flex-direction:column;gap:0.875rem;
  overflow-y:auto;max-height:31.25rem;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,200,110,.1) transparent;
}
.fp-label{
  font-size:0.5rem;letter-spacing:0.09375rem;
  text-transform:uppercase;
  color:var(--text-dim);margin-bottom:0.375rem;
}

/* select */
.fp-select{
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:0.25rem;
  padding:0.4375rem 1.75rem 0.4375rem 0.625rem;
  font-size:0.6875rem;
  font-family:'JetBrains Mono',monospace;
  color:var(--text);
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  transition:border-color .15s;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(0,200,110,0.5)'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 0.625rem center;
}
.fp-select:focus{border-color:rgba(0,200,110,.4)}
.fp-select option{background:#0b1524;color:var(--text)}

/* dual range slider */
.fp-slider-wrap{
  position:relative;
  height:1.375rem;
  margin:0.125rem 0 0;
}
.fp-slider-track{
  position:absolute;
  top:50%;transform:translateY(-50%);
  width:100%;height:0.1875rem;
  border-radius:0.125rem;
  pointer-events:none;
  background:rgba(0,200,110,.12);
}
.fp-range{
  position:absolute;
  width:100%;top:50%;
  transform:translateY(-50%);
  appearance:none;-webkit-appearance:none;
  background:transparent;
  pointer-events:none;
  margin:0;padding:0;
}
.fp-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:0.875rem;height:0.875rem;
  border-radius:50%;
  background:var(--green);
  pointer-events:all;
  cursor:pointer;
  border:2px solid #030912;
  box-shadow:0 0 7px rgba(0,200,110,.6);
}
.fp-range::-moz-range-thumb{
  width:0.875rem;height:0.875rem;
  border-radius:50%;
  background:var(--green);
  pointer-events:all;
  cursor:pointer;
  border:2px solid #030912;
}
.fp-slider-vals{
  display:flex;justify-content:space-between;
  font-size:0.625rem;color:var(--green);
  margin-top:0.375rem;letter-spacing:0.01875rem;
}

/* month chips */
.fp-months{
  display:flex;flex-wrap:wrap;gap:0.3125rem;
}
.fp-month{
  padding:0.25rem 0.5rem;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:0.25rem;
  font-size:0.625rem;color:var(--text-dim);
  cursor:pointer;
  font-family:'JetBrains Mono',monospace;
  transition:.12s;user-select:none;
  white-space:nowrap;
}
.fp-month:hover{border-color:rgba(0,200,110,.3);color:var(--text-mid)}
.fp-month.sel{
  background:rgba(0,200,110,.1);
  border-color:rgba(0,200,110,.4);
  color:var(--green);
}

.fp-reset-btn{
  font-size:0.5625rem;color:rgba(0,200,110,.45);
  cursor:pointer;letter-spacing:0.03125rem;
  background:none;border:none;
  font-family:'JetBrains Mono',monospace;
  padding:0;align-self:flex-end;margin-top:0.125rem;
}
.fp-reset-btn:hover{color:var(--green)}

@media(max-width:767px){
  #filter-panel.open{max-height:28rem}
  .fp-inner{max-height:23.75rem}

  .ap-dot{ width:0.1875rem;height:0.1875rem;box-shadow:0 0 4px var(--green-hi) }
  .ap-ring{ width:2px;height:2px }
  @keyframes ap-pulse{
    0%  { width:2px; height:2px; opacity:.85; transform:translate(-50%,-50%) }
    100%{ width:18px;height:18px;opacity:0;   transform:translate(-50%,-50%) }
  }
  .ap-info{ padding:0.125rem 0.25rem;gap:0 }
  .ap-iata{ font-size:0.5rem;letter-spacing:0.03125rem }
  .ap-coords{ display:none }
}

/* ── Loader ── */
#loader{
  position:fixed;inset:0;
  z-index:9000;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .8s ease;
}
#loader.fade-out{
  opacity:0;
  pointer-events:none;
}
.ld-inner{
  width:min(28.75rem,88vw);
}
.ld-brand{
  display:flex;
  align-items:center;
  gap:0.875rem;
  margin-bottom:1.875rem;
}
.ld-mark{
  width:2.375rem;height:2.375rem;
  background:var(--green);
  clip-path:polygon(50% 0%,100% 38%,82% 100%,18% 100%,0% 38%);
  flex-shrink:0;
  filter:drop-shadow(0 0 14px var(--green));
}
.ld-title{
  font-size:1.375rem;font-weight:700;
  letter-spacing:0.25rem;color:#fff;
  line-height:1;
}
.ld-subtitle{
  font-size:0.625rem;letter-spacing:0.09375rem;
  color:var(--text-dim);margin-top:0.25rem;
}
#ld-log{
  min-height:8.125rem;
  margin-bottom:1.375rem;
  display:flex;flex-direction:column;gap:0.375rem;
}
.ld-line{
  font-size:0.6875rem;
  color:var(--text-mid);
  letter-spacing:0.025rem;
  opacity:0;
  animation:ld-in .25s ease forwards;
}
.ld-line.ok { color:var(--green); }
@keyframes ld-in{
  from{opacity:0;transform:translateX(-0.5rem)}
  to  {opacity:1;transform:translateX(0)}
}
.ld-bar-wrap{
  height:0.125rem;
  background:rgba(0,200,110,.1);
  border-radius:0.0625rem;
  overflow:hidden;
  margin-bottom:0.5rem;
}
#ld-bar{
  height:100%;
  background:var(--green);
  width:0%;
  transition:width .5s ease;
  box-shadow:0 0 8px var(--green);
}
.ld-pct{
  font-size:0.5625rem;
  color:var(--text-dim);
  letter-spacing:0.0625rem;
  text-align:right;
}
#ld-cursor{
  display:inline-block;
  width:0.4375rem;height:0.8125rem;
  background:var(--green);
  vertical-align:middle;
  margin-left:0.1875rem;
  animation:cur-blink 1s step-end infinite;
}
@keyframes cur-blink{0%,100%{opacity:1}50%{opacity:0}}

/* ── Share icon button ── */
.card-share-btn{
  position:absolute;
  top:1rem;
  right:0.75rem;
  width:1.5rem;height:1.5rem;
  border-radius:50%;
  border:1px solid var(--border-g);
  background:rgba(0,200,110,0.06);
  color:var(--green);
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2;
  transition:background .15s, box-shadow .15s;
  padding:0;
  flex-shrink:0;
}
.card.active .card-share-btn{
  display:flex;
}
.card-share-btn:hover{
  background:rgba(0,200,110,0.18);
  box-shadow:0 0 10px rgba(0,200,110,0.25);
}
.card-share-btn.copied{
  color:var(--green-hi);
  border-color:var(--green);
  background:rgba(0,200,110,0.2);
}
.card-action-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin-top:2px;
}

.card-embed-btn{
  width:1.375rem;height:1.375rem;
  border-radius:50%;
  border:1px solid var(--border-g);
  background:rgba(0,200,110,0.06);
  color:var(--green);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8px;
  font-family:'JetBrains Mono',monospace;
  font-weight:700;
  flex-shrink:0;
  margin-top:0.125rem;
  padding:0;
  transition:background .15s,box-shadow .15s;
}
.card-embed-btn:hover{
  background:rgba(0,200,110,0.18);
  box-shadow:0 0 10px rgba(0,200,110,0.25);
}

/* in card-links (single card): flow inline inside card-action-row */
.card-links .card-share-btn{
  position:static;
  width:1.375rem;height:1.375rem;
}
/* in multi-header: flow inline instead of absolute */
.card-multi-header .card-share-btn{
  position:static;
  margin-left:auto;
  width:1.375rem;height:1.375rem;
  border-color:rgba(0,200,110,0.3);
  background:rgba(0,200,110,0.08);
}

/* ── Copy link toast ── */
#copy-toast{
  position:fixed;
  bottom:1.5rem;
  left:50%;
  transform:translateX(-50%) translateY(0.625rem);
  background:rgba(3,9,18,.92);
  border:1px solid var(--border-g);
  color:var(--green);
  padding:0.5625rem 1.25rem;
  border-radius:0.5rem;
  font-size:0.6875rem;
  letter-spacing:0.0625rem;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s, transform .2s;
  z-index:9998;
  backdrop-filter:blur(8px);
}
#copy-toast.visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* submitter line — top of card */
.card-submitter-top{
  display:flex;
  align-items:center;
  gap:0.4375rem;
  margin-bottom:0.625rem;
  padding-bottom:0.5625rem;
  border-bottom:1px solid rgba(255,255,255,0.05);
  line-height:1;
}
.card-submitter-avatar{
  width:1.25rem;height:1.25rem;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(0,200,110,0.3);
  flex-shrink:0;
}
.card-submitter-initial{
  width:1.25rem;height:1.25rem;
  border-radius:50%;
  background:rgba(0,200,110,0.12);
  border:1px solid rgba(0,200,110,0.3);
  display:flex;align-items:center;justify-content:center;
  font-size:0.5625rem;font-weight:700;color:rgba(0,200,110,0.7);
  flex-shrink:0;
  line-height:1;
}
.card-submitter-name{
  font-size:0.6875rem;
  color:rgba(180,200,190,0.75);
  font-weight:600;
  text-decoration:none;
  transition:color .15s;
}
.card-submitter-name:hover{ color:var(--green) }
.card-submitter-time{
  font-size:0.625rem;
  color:var(--text-dim);
  margin-left:0.125rem;
}

/* baggage row */
.card-baggage{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:0.25rem;
  margin-top:0.375rem;
}
.bag-box{
  display:inline-flex;
  align-items:center;
  gap:0.25rem;
  background:none;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:0.375rem;
  padding:0.1875rem 0.4375rem;
}
.bag-box .material-symbols-outlined{
  font-size:0.75rem;
  line-height:1;
  color:rgba(180,200,190,0.3);
  flex-shrink:0;
}
.bag-box-val{
  font-size:0.625rem;
  color:rgba(180,200,190,0.4);
  line-height:1;
}
.bag-box.bag-inactive .material-symbols-outlined{
  color:rgba(255,107,107,0.4);
}
.bag-box.bag-inactive .bag-box-val{
  color:rgba(255,107,107,0.35);
}

/* cabin class badge */
.cabin-class-badge{
  display:inline-flex;
  align-items:center;
  align-self:center;
  font-size:0.625rem;
  letter-spacing:0.04em;
  font-weight:600;
  padding:0.25rem 0.5rem;
  border-radius:0.375rem;
}
.cabin-economy{background:rgba(0,200,110,0.1);color:rgba(0,200,110,0.75);border:1px solid rgba(0,200,110,0.2)}
.cabin-premium_economy{background:rgba(130,80,255,0.12);color:rgba(170,120,255,0.85);border:1px solid rgba(130,80,255,0.25)}
.cabin-business{background:rgba(255,185,0,0.1);color:rgba(255,195,50,0.85);border:1px solid rgba(255,185,0,0.25)}
.cabin-first{background:rgba(255,66,77,0.1);color:rgba(255,100,110,0.85);border:1px solid rgba(255,66,77,0.25)}

/* airline + votes row */
.card-airline-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:0.5rem;
  gap:0.5rem;
}

/* votes */
.card-votes{
  display:flex;
  align-items:center;
  gap:0.25rem;
  flex-shrink:0;
}
.vote-btn{
  display:flex;align-items:center;gap:0.25rem;
  background:none;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:0.375rem;
  padding:0.25rem 0.5rem;
  cursor:pointer;
  font-family:'JetBrains Mono',monospace;
  font-size:0.6875rem;
  color:var(--text-dim);
  transition:background .15s,border-color .15s,color .15s;
}
.vote-btn:hover{ border-color:rgba(255,255,255,0.2);color:var(--text) }
.vote-icon{ font-size:0.8125rem;line-height:1 }
.vote-btn.vote-up.active{
  background:rgba(0,200,110,0.1);
  border-color:rgba(0,200,110,0.4);
  color:var(--green);
}
.vote-btn.vote-down.active{
  background:rgba(255,80,80,0.08);
  border-color:rgba(255,80,80,0.3);
  color:#ff6b6b;
}

/* report button */
.card-report-btn{
  background:none;
  border:none;
  cursor:pointer;
  color:var(--text-dim);
  font-size:0.8125rem;
  padding:0 0.125rem;
  line-height:1;
  transition:color .15s;
  align-self:flex-end;
  margin-top:0.125rem;
}
.card-report-btn:hover{ color:rgba(255,80,80,0.8) }
.card-report-btn[data-reported]{ color:rgba(255,80,80,0.5);cursor:default }

/* comment button (in card-votes area) */
.comment-btn{
  display:flex;align-items:center;gap:0.25rem;
  background:none;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:0.25rem;
  padding:0.1875rem 0.4375rem;
  cursor:pointer;
  font-family:inherit;
  font-size:0.625rem;
  color:var(--text-dim);
  transition:background .15s,border-color .15s,color .15s;
}
.comment-btn:hover{ border-color:rgba(255,255,255,0.2);color:var(--text) }
.comment-btn.active{
  background:rgba(100,180,255,0.08);
  border-color:rgba(100,180,255,0.35);
  color:rgba(130,190,255,0.9);
}
.comment-btn svg{ flex-shrink:0 }
.comment-count{ font-size:0.625rem;line-height:1 }

/* card-comments panel */
.card-comments{
  display:none;
  border-top:1px solid var(--border);
  padding:0.75rem 1rem;
  background:rgba(0,0,0,0.15);
}
.card-comments.open{ display:block }
.comment-list{ display:flex;flex-direction:column;gap:0.625rem;margin-bottom:0.625rem }
.comment-item{
  display:flex;gap:0.5rem;align-items:flex-start;
}
.comment-avatar{
  width:1.375rem;height:1.375rem;border-radius:50%;
  flex-shrink:0;overflow:hidden;
  background:rgba(0,200,110,0.15);
  display:flex;align-items:center;justify-content:center;
  font-size:0.5625rem;font-weight:700;color:var(--green);
}
.comment-avatar img{ width:100%;height:100%;object-fit:cover }
.comment-body{ flex:1;min-width:0 }
.comment-meta{
  font-size:0.5625rem;color:var(--text-dim);margin-bottom:0.125rem;
  display:flex;gap:0.375rem;align-items:baseline;
}
.comment-author{ color:var(--text-mid);font-weight:600 }
.comment-text{ font-size:0.6875rem;color:var(--text);word-break:break-word;line-height:1.45 }
.comment-empty{
  font-size:0.6875rem;color:var(--text-dim);padding:0.25rem 0;
  letter-spacing:0.5px;
}
.comment-form{
  display:flex;gap:0.375rem;margin-top:0.375rem;
  border-top:1px solid rgba(255,255,255,0.05);
  padding-top:0.625rem;
}
.comment-input{
  flex:1;background:rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,.1);border-radius:0.3125rem;
  color:var(--text);font-family:inherit;font-size:0.6875rem;
  padding:0.375rem 0.5rem;outline:none;
  transition:border-color .15s;
}
.comment-input:focus{ border-color:rgba(100,180,255,0.4) }
.comment-input::placeholder{ color:var(--text-dim) }
.comment-submit{
  background:rgba(100,180,255,0.1);border:1px solid rgba(100,180,255,0.25);
  border-radius:0.3125rem;color:rgba(130,190,255,0.85);
  font-family:inherit;font-size:0.75rem;padding:0 0.625rem;cursor:pointer;
  transition:background .15s;flex-shrink:0;
}
.comment-submit:hover{ background:rgba(100,180,255,0.2) }
.comment-submit:disabled{ opacity:.5;cursor:default }
.comment-login-hint{
  font-size:0.625rem;color:var(--text-dim);padding-top:0.5rem;
  border-top:1px solid rgba(255,255,255,0.05);
}
.comment-login-hint a{ color:var(--green) }

/* report toast reuses copy-toast styles */
#report-toast{
  position:fixed;
  bottom:3.375rem;
  left:50%;
  transform:translateX(-50%) translateY(0.625rem);
  background:rgba(3,9,18,.92);
  border:1px solid rgba(255,80,80,0.3);
  color:#ff6b6b;
  padding:0.5625rem 1.25rem;
  border-radius:0.5rem;
  font-size:0.6875rem;
  letter-spacing:0.0625rem;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s, transform .2s;
  z-index:9998;
  backdrop-filter:blur(8px);
}
#report-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* ── Board header (sidebar) ── */
#board-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0.75rem 1rem;
  border-bottom:1px solid var(--border);
  background:rgba(60,140,255,0.04);
}
#board-header-user{
  display:flex;
  align-items:center;
  gap:0.625rem;
}
.board-avatar{
  width:2.25rem;height:2.25rem;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(60,140,255,0.3);
  flex-shrink:0;
}
.board-avatar-initial{
  width:2.25rem;height:2.25rem;
  border-radius:50%;
  background:rgba(60,140,255,0.12);
  border:1px solid rgba(60,140,255,0.3);
  display:flex;align-items:center;justify-content:center;
  font-size:0.9375rem;font-weight:600;
  color:#5b9eff;
  flex-shrink:0;
}
.board-name{
  font-size:0.75rem;
  font-weight:600;
  color:var(--text);
  letter-spacing:0.03125rem;
}
.board-sub{
  font-size:0.625rem;
  color:var(--text-dim);
  letter-spacing:0.0625rem;
  margin-top:0.125rem;
}
.board-add-btn{
  font-size:0.625rem;
  letter-spacing:0.0625rem;
  color:var(--green);
  text-decoration:none;
  border:1px solid var(--border-g);
  padding:0.3125rem 0.625rem;
  border-radius:0.375rem;
  background:var(--green-dim);
  white-space:nowrap;
  transition:background .15s;
}
.board-add-btn:hover{ background:rgba(0,200,110,0.22) }

/* board status chips on cards */
.board-status-badge{
  display:inline-block;
  font-size:0.5625rem;
  letter-spacing:0.0625rem;
  padding:0.125rem 0.4375rem;
  border-radius:0.25rem;
  margin-bottom:0.375rem;
  font-weight:600;
}
.board-status-pending{
  background:rgba(255,190,0,0.1);
  border:1px solid rgba(255,190,0,0.25);
  color:#ffbe00;
}
.board-status-live{
  background:rgba(0,200,110,0.08);
  border:1px solid rgba(0,200,110,0.2);
  color:var(--green);
}
.board-status-board{
  background:rgba(60,140,255,0.08);
  border:1px solid rgba(60,140,255,0.2);
  color:#5b9eff;
}

/* follow button */
.board-follow-btn{
  font-family:'JetBrains Mono',monospace;
  font-size:0.625rem;
  letter-spacing:0.0625rem;
  color:var(--text-dim);
  background:none;
  border:1px solid rgba(255,255,255,0.12);
  padding:0.3125rem 0.75rem;
  border-radius:0.375rem;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s,border-color .15s,color .15s;
}
.board-follow-btn:hover{
  border-color:rgba(60,140,255,0.4);
  color:#5b9eff;
  background:rgba(60,140,255,0.08);
}
.board-follow-btn.active{
  border-color:rgba(60,140,255,0.35);
  color:#5b9eff;
  background:rgba(60,140,255,0.1);
}
.board-follow-btn:disabled{ opacity:0.5;cursor:default }

/* subscribe button next to follow */
.board-subscribe-btn{
  font-family:'JetBrains Mono',monospace;
  font-size:0.625rem;
  letter-spacing:0.0625rem;
  font-weight:700;
  color:#030912;
  background:var(--green);
  border:1px solid var(--green);
  padding:0.3125rem 0.75rem;
  border-radius:0.375rem;
  cursor:pointer;
  white-space:nowrap;
  text-decoration:none;
  transition:opacity .15s;
  display:inline-flex;align-items:center;
}

/* ═══════════════════════════════════════════════════════
   Theme toggle button
   ═══════════════════════════════════════════════════════ */
/* Theme toggle — disabled for now */
.hdr-icon-btn[onclick="toggleTheme()"],
#portal-theme-btn,
#page-theme-btn,
#theme-btn-anon{ display:none !important }

.hdr-icon-btn{
  display:flex;align-items:center;justify-content:center;
  width:2rem;height:2rem;
  background:rgba(3,9,18,.85);
  border:1px solid rgba(255,255,255,.15);
  border-radius:0.4rem;
  color:rgba(200,220,210,.8);
  cursor:pointer;
  flex-shrink:0;
  transition:color .15s,border-color .15s;
}
.hdr-icon-btn:hover{ color:rgba(200,220,210,1);border-color:rgba(255,255,255,.28) }

/* show/hide icons based on current theme */
html[data-theme="dark"]  .theme-icon-dark  { display:none }
html[data-theme="dark"]  .theme-icon-light { display:inline-flex;align-items:center }
html[data-theme="light"] .theme-icon-dark  { display:inline-flex;align-items:center }
html[data-theme="light"] .theme-icon-light { display:none }

/* floating theme button for non-logged-in desktop */
#theme-btn-float{
  position:fixed;
  top:1.375rem;
  z-index:1001;
  display:flex;
}
@media(max-width:767px){ #theme-btn-float{ display:none } }
