:root {
  --bg: #10202f;
  --bg-deep: #0b1723;
  --line: rgba(213, 226, 238, 0.14);
  --text: #f5f7fa;
  --muted: #aab7c4;
  --accent: #f4512a;
  --accent-bright: #ff653e;
  --header-h: 68px;
}
* { box-sizing: border-box; }
html { background: var(--bg-deep); scroll-behavior: smooth; }
body { margin:0; color:var(--text); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; font-synthesis:none; -webkit-font-smoothing:antialiased; }
body.menu-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
button,a { -webkit-tap-highlight-color:transparent; }
.site-header { position:fixed; inset:0 0 auto 0; z-index:50; height:var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:12px; padding:env(safe-area-inset-top) 18px 0; background:linear-gradient(180deg,rgba(6,17,28,.96),rgba(9,22,35,.88)); border-bottom:1px solid rgba(255,255,255,.08); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.brand { min-width:0; display:flex; align-items:center; gap:7px; }
.brand-mark { width:51px; height:30px; flex:0 0 auto; }
.brand-copy { display:flex; flex-direction:column; min-width:0; line-height:1.05; }
.brand-name { font-size:clamp(20px,6vw,25px); font-weight:730; letter-spacing:-.03em; white-space:nowrap; }
.brand-tagline { display:none; margin-top:3px; font-size:9px; color:#bac4ce; white-space:nowrap; }
.desktop-nav { display:none; }
.header-auth { display:none; }
.member-tools { display:flex; align-items:center; margin-left:auto; }
.member-icon,.member-avatar-button { position:relative; display:flex; align-items:center; justify-content:center; width:38px; height:38px; border:0; border-radius:999px; background:transparent; color:#fff; cursor:pointer; }
.member-icon:hover,.member-avatar-button:hover { background:rgba(255,255,255,.06); }
.member-tool-svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.member-count { position:absolute; top:-2px; right:-2px; min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border-radius:999px; background:var(--accent); color:#fff; font-size:10px; font-weight:800; }
.member-account { position:relative; }
.member-avatar-button { padding:3px; }
.member-avatar { width:31px; height:31px; overflow:hidden; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.18); background:#1b2b3b; }
.member-avatar img { display:block; width:100%!important; height:100%!important; max-width:none!important; object-fit:cover; }
.avatar-fallback { font-size:13px; font-weight:800; }
.member-account-menu { position:absolute; top:calc(100% + 9px); right:0; z-index:80; width:215px; padding:8px; border:1px solid rgba(255,255,255,.09); border-radius:12px; background:#142332; box-shadow:0 18px 46px rgba(0,0,0,.38); }
.member-account-menu[hidden] { display:none; }
.member-account-name { padding:10px 11px; font-size:14px; font-weight:800; }
.member-account-menu a { display:flex; align-items:center; min-height:40px; padding:9px 11px; border-radius:8px; font-size:14px; font-weight:550; }
.member-account-menu a:hover { background:rgba(255,255,255,.06); }
.account-divider { height:1px; margin:5px 4px; background:rgba(255,255,255,.08); }
.menu-toggle { width:45px; height:45px; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:0; border-radius:12px; background:transparent; color:white; cursor:pointer; }
.menu-toggle span { width:27px; height:3px; border-radius:999px; background:currentColor; transition:transform .22s ease,opacity .22s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }
.mobile-menu { position:fixed; inset:var(--header-h) 0 0 0; z-index:45; background:rgba(6,16,26,.95); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.mobile-menu[hidden] { display:none; }
.mobile-menu-inner { width:min(100%,520px); margin:0 auto; padding:28px 22px max(34px,env(safe-area-inset-bottom)); display:grid; gap:8px; }
.mobile-menu a,.mobile-login { display:flex; align-items:center; min-height:56px; width:100%; padding:0 18px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.035); color:#fff; font:inherit; font-size:17px; font-weight:650; text-align:left; cursor:pointer; }
.mobile-menu .mobile-join { background:linear-gradient(135deg,var(--accent),var(--accent-bright)); border-color:transparent; }
.mobile-menu p { margin:12px 4px 0; color:var(--muted); line-height:1.55; }
.quick-login-backdrop { position:fixed; inset:0; z-index:90; background:rgba(3,10,17,.72); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.quick-login-backdrop[hidden],.quick-login-panel[hidden] { display:none; }
.quick-login-panel { position:fixed; z-index:100; top:50%; left:50%; width:min(425px,calc(100% - 24px)); transform:translate(-50%,-50%); overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:14px; background:#142332; color:#eef3f7; box-shadow:0 22px 60px rgba(0,0,0,.46); }
.quick-login-title { padding:20px 20px 12px; font-size:18px; font-weight:750; }
.quick-login-body { display:grid; gap:14px; padding:8px 20px 18px; }
.quick-login-body label { display:grid; gap:7px; color:#dce5ec; font-size:13px; font-weight:650; }
.quick-login-body input[type="text"],.quick-login-body input[type="password"] { width:100%; height:42px; padding:9px 12px; border:1px solid rgba(255,255,255,.10); border-radius:9px; outline:0; background:#edf3f8; color:#0b1723; font:inherit; }
.quick-login-body input:focus { box-shadow:0 0 0 2px rgba(244,81,42,.34); }
.forgot-link { color:var(--accent-bright); font-size:13px; }
.quick-login-footer { padding:0 20px 20px; }
.remember-me { display:flex; align-items:center; gap:9px; margin-bottom:14px; color:#aab7c4; font-size:13px; }
.remember-me input { accent-color:var(--accent); }
.quick-login-submit { width:100%; min-height:44px; border:0; border-radius:10px; background:linear-gradient(135deg,var(--accent),var(--accent-bright)); color:#fff; font:inherit; font-weight:750; cursor:pointer; }
.quick-login-footer p { margin:14px 0 0; color:#aab7c4; font-size:13px; text-align:center; }
.quick-login-footer p a { color:var(--accent-bright); font-weight:700; }
@media (max-width:430px){ .brand-name{font-size:20px;} .member-icon{width:35px;height:35px;} .member-tools{gap:0;} }
@media (min-width:560px) and (max-width:899px){ .brand-tagline{display:block;} }
@media (min-width:900px){
  :root{--header-h:76px;}
  .site-header{padding-left:clamp(36px,5vw,84px);padding-right:clamp(36px,5vw,84px);}
  .brand-mark{width:58px;height:34px}.brand-name{font-size:25px}.brand-tagline{display:block;font-size:10px}
  .desktop-nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:clamp(24px,3vw,50px);font-size:15px;font-weight:600}.desktop-nav a{position:relative;color:#eef3f7}.desktop-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:-11px;height:2px;border-radius:999px;background:var(--accent)}
  .menu-toggle{display:none}.mobile-menu{display:none!important}.member-tools{gap:2px}
  .header-auth{display:flex;align-items:center;gap:8px}.header-login,.header-join{min-height:42px;padding:0 17px;border-radius:9px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.header-login{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.035);color:#eef3f7}.header-join{display:flex;align-items:center;background:linear-gradient(135deg,var(--accent),var(--accent-bright));color:#fff}
  .quick-login-panel{top:86px;left:auto;right:clamp(36px,5vw,84px);width:384px;transform:none}
  .quick-login-backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
}


/* Mobile active-page match */
.mobile-menu a.active {
  border-color: rgba(244,81,42,.45);
}


/* iOS quick-login focus lock */
@media (max-width:980px){
  .quick-login-body input[type="text"],
  .quick-login-body input[type="password"]{
    font-size:16px !important;
  }
}


/* Approved Bus Central wordmark */
.brand-approved{
  display:flex;
  align-items:center;
  min-width:0;
  gap:0 !important;
}

.brand-approved-image{
  display:block;
  width:auto;
  height:36px;
  max-width:min(58vw,245px);
  object-fit:contain;
  object-position:left center;
  flex:0 0 auto;
}

@media (max-width:390px){
  .brand-approved-image{
    height:33px;
    max-width:54vw;
  }
}

@media (min-width:900px){
  .brand-approved-image{
    height:42px;
    max-width:285px;
  }
}

.brand-mark,
.brand-copy,
.brand-name,
.brand-tagline{
  display:none !important;
}


/* Logged-in header icon safeguard */
.member-tool-svg{
  display:block;
  width:22px;
  height:22px;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.member-icon{
  color:#fff !important;
}


/* =========================================================
   Mobile wordmark size restore v3
   Restores the exact visual scale the Home header had before
   the logged-in header work. Forum sizing is untouched.
   ========================================================= */
@media (max-width:600px){
  .brand-approved-image{
    height:28px !important;
    width:auto !important;
    max-width:none !important;
  }
}


/* =========================================================
   Mobile wordmark exact forum match v4
   Forum currently renders the approved wordmark at 36px.
   Match Home to that exact height; touch nothing else.
   ========================================================= */
@media (max-width:600px){
  .brand-approved-image{
    height:36px !important;
    width:auto !important;
    max-width:min(58vw,245px) !important;
  }
}

@media (max-width:390px){
  .brand-approved-image{
    height:36px !important;
    max-width:min(58vw,245px) !important;
  }
}


/* =========================================================
   Mobile mail + bell visual-size match v5
   Match Home to the slightly smaller forum glyph size.
   Touch targets and layout are intentionally unchanged.
   ========================================================= */
@media (max-width:600px){
  .member-icon .member-tool-svg{
    width:20px !important;
    height:20px !important;
  }
}


/* =========================================================
   Mobile mail + bell exact forum size v6
   Forum CSS uses 22px x 22px for these SVG glyphs.
   Keep all surrounding geometry unchanged.
   ========================================================= */
@media (max-width:600px){
  .member-icon .member-tool-svg{
    width:22px !important;
    height:22px !important;
  }
}


/* =========================================================
   Mobile mail + bell visual sweet spot v7
   20px rendered slightly smaller than forum;
   22px rendered slightly larger than forum.
   Use 21px and leave all surrounding geometry untouched.
   ========================================================= */
@media (max-width:600px){
  .member-icon .member-tool-svg{
    width:21px !important;
    height:21px !important;
  }
}

/* =========================================================
   Bus Central shared footer v1
   Shared by all non-forum pages. Forum mirrors this design
   in Zeina's overall_footer.html.
   ========================================================= */
.bc-site-footer{
  position:relative;
  z-index:2;
  margin:0;
  border-top:1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 50% 0,rgba(232,76,49,.085),transparent 43%),
    linear-gradient(180deg,rgba(8,20,32,.985) 0%,#06101a 100%);
  color:rgba(209,220,230,.72);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.bc-site-footer__inner{
  width:min(calc(100% - 40px),1180px);
  margin:0 auto;
  padding:0 0 22px;
  text-align:center;
}

.bc-site-footer__community{
  width:100%;
  min-height:70px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:0 0 24px;
  padding:12px 0 13px;
  border-bottom:1px solid rgba(255,255,255,.065);
  color:rgba(214,225,234,.73);
  line-height:1.4;
}

.bc-site-footer__community-count{
  color:rgba(239,245,249,.94);
  font-size:.88rem;
  font-weight:750;
  letter-spacing:.06em;
}

.bc-site-footer__community-welcome{font-size:.82rem}
.bc-site-footer__community a{font-weight:700;text-decoration:none;transition:filter .18s ease}
.bc-site-footer__community a:hover{filter:brightness(1.18)}

.bc-site-footer__brand{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.bc-site-footer__brand-name{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#f1f5f8;
  font-size:1.08rem;
  font-weight:800;
  letter-spacing:-.015em;
}

.bc-site-footer__brand-name span{
  color:#ef5133;
  font-size:.96rem;
  font-weight:900;
  letter-spacing:-.04em;
}

.bc-site-footer__tagline{
  margin:7px 0 0;
  color:rgba(209,220,230,.70);
  font-size:.82rem;
  line-height:1.45;
}

.bc-site-footer__links,
.bc-site-footer__legal{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.bc-site-footer__links{
  gap:8px;
  margin-top:20px;
  color:rgba(222,230,237,.80);
  font-size:.78rem;
  line-height:1.4;
}

.bc-site-footer__links span,
.bc-site-footer__legal span{color:rgba(239,81,51,.40)}

.bc-site-footer__links a,
.bc-site-footer__legal a{
  color:inherit;
  text-decoration:none;
  transition:color .18s ease;
}

.bc-site-footer__links a:hover,
.bc-site-footer__legal a:hover{color:#fff}

.bc-site-footer__copyright{
  margin:18px 0 0;
  color:rgba(184,198,210,.52);
  font-size:.72rem;
  line-height:1.4;
}

.bc-site-footer__legal{
  gap:11px;
  margin-top:11px;
  color:rgba(205,216,225,.68);
  font-size:.72rem;
  line-height:1.4;
}

@media (min-width:981px){
  .bc-site-footer__community-count{font-size:1.02rem}
  .bc-site-footer__community-welcome{font-size:.94rem}
  .bc-site-footer__tagline{font-size:.91rem}
  .bc-site-footer__links{font-size:.87rem}
  .bc-site-footer__copyright,
  .bc-site-footer__legal{font-size:.79rem}
}

@media (max-width:980px){
  .bc-site-footer__inner{
    width:100%;
    padding-right:14px;
    padding-left:14px;
  }
}
