/* ============================= */
/*   AIO GAME – TIPPSPIEL DESIGN  */
/* ============================= */

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

/* ---------- ROOT COLORS ---------- */
:root {
  /* AIO Brand */
  --aio-blue:        #0d1b2a;
  --aio-blue-mid:    #112240;
  --aio-blue-light:  #1a3a5c;
  --aio-neon:        #00c8ff;
  --aio-neon-dim:    rgba(0,200,255,0.18);
  --aio-neon-glow:   rgba(0,200,255,0.35);
  --aio-orange:      #ff6b00;
  --aio-orange-dim:  rgba(255,107,0,0.18);

  /* Legacy aliases (keep other JS/HTML working) */
  --gold:       #00c8ff;
  --gold-light: #66deff;

  --black:      #060e17;
  --dark:       #0d1b2a;
  --grey:       #7a99bb;
  --grey-light: #a8c0d8;
  --white:      #e8f4ff;

  --success: #00e676;
  --danger:  #ff3d57;

  --font-display: 'Exo 2', 'Rajdhani', sans-serif;
  --font-body:    'Exo 2', sans-serif;
}

/* ---------- BODY ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--aio-blue);
  color: var(--white);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,200,255,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,107,0,0.05) 0%, transparent 50%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(0,200,255,0.03) 59px,
      rgba(0,200,255,0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(0,200,255,0.03) 59px,
      rgba(0,200,255,0.03) 60px
    );
  pointer-events: none;
  z-index: 0;
}

#app {
  min-height: calc(100vh - 70px);
  position: relative;
  z-index: 1;
}

/* ---------- HEADER ---------- */
header.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(6,14,23,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,200,255,0.15);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 0 40px rgba(0,200,255,0.04);
}

body { padding-top: 100px; }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 5px 0 !important;
}

.logo { flex-shrink: 0; }
.logo img {
  height: 65px;
  width: auto;
  margin-top: 10px;
  filter: drop-shadow(0 0 12px rgba(0,200,255,0.4));
}

.headerActions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ---------- RANKING HEAD ---------- */
.ranking-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0,200,255,0.05);
  border: 1px solid rgba(0,200,255,0.2);
  box-shadow: 0 0 20px rgba(0,200,255,0.08);
}
.ranking-points-wrap,
.ranking-rank-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ranking-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--grey);
  margin-bottom: 3px;
}
.platzpunkte {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  color: var(--aio-neon);
  font-family: var(--font-display);
}
.ranking-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(0,200,255,0.3), transparent);
}
.ranking-rank {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.ranking-hash {
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0,200,255,0.3);
  margin-bottom: 4px;
}
.platz {
  font-size: 24px;
  line-height: 0.9;
  font-weight: 900;
  color: var(--aio-neon);
  font-family: var(--font-display);
  text-shadow: 0 0 14px rgba(0,200,255,0.4);
}

/* ---------- LANG + LOGOUT BUTTONS ---------- */
.langBtn, .logoutBtn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,200,255,0.04);
  border: 1px solid rgba(0,200,255,0.15);
  flex-shrink: 0;
  cursor: pointer;
  transition: 0.2s;
}
.langBtn:hover, .logoutBtn:hover {
  background: rgba(0,200,255,0.1);
  border-color: rgba(0,200,255,0.4);
  box-shadow: 0 0 16px rgba(0,200,255,0.15);
}
.logoutBtn { color: var(--white); font-size: 20px; }
.flagIcon, .flagItem {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.langDropdown { position: relative; z-index: 99999; }
.langMenu {
  position: absolute;
  top: 65px; right: 0;
  width: 70px;
  background: rgba(10,20,35,0.98);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 20px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 999999;
  max-height: 320px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.langMenu.active { display: flex; }
.langMenu div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}
.langMenu div:hover { background: rgba(0,200,255,0.1); }

/* ---------- START SCREEN ---------- */
.startScreen {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  padding: 30px 20px 90px;
}
.startHeroImg {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.wmLogo {
  width: 100%;
  max-width: 300px;
  margin: auto;
  filter: drop-shadow(0 0 30px rgba(0,200,255,0.5));
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0,200,255,0.4)); }
  50%       { filter: drop-shadow(0 0 40px rgba(0,200,255,0.7)); }
}
.heroContent {
  margin-top: auto;
  text-align: left;
  z-index: 2;
}
.heroContent h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.heroContent p {
  color: var(--grey-light);
  font-size: 15px;
  margin-bottom: 25px;
}

/* ---------- START BUTTON ---------- */
.startButton {
  position: relative;
  width: 100%;
  height: 60px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #0088cc, var(--aio-neon));
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 30px rgba(0,200,255,0.4), 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
}
.startButton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.startButton::after {
  content: "⚽";
  position: absolute;
  font-size: 22px;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  animation: ballRun 4s linear infinite, ballSpin 1s linear infinite;
}
@keyframes ballRun {
  0%   { left: -40px; }
  100% { left: 110%; }
}
@keyframes ballSpin {
  0%   { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* ---------- CONTAINER ---------- */
.container {
  padding: 20px;
  padding-bottom: 100px;
  max-width: 500px;
  margin: auto;
}

/* ---------- TYPOGRAPHY ---------- */
.title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}
.subtitle { font-size: 14px; color: var(--grey); }
.text { font-size: 16px; }
.small { font-size: 12px; color: var(--grey); }

/* ---------- CARDS ---------- */
.card {
  background: linear-gradient(145deg, rgba(17,34,64,0.95), rgba(10,20,35,0.95));
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.1);
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
}
.card:active { transform: scale(0.98); }

/* ---------- BUTTONS ---------- */
button { cursor: pointer; transition: 0.2s ease; }
button:active { transform: scale(0.96); }

.btn-primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #0088cc, var(--aio-neon));
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0,200,255,0.25);
  transition: 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,200,255,0.45);
}

.btn-secondary {
  width: 100%;
  height: 48px;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 12px;
  color: var(--grey-light);
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  transition: 0.2s;
  display: block;
}
.btn-secondary:hover {
  background: rgba(0,200,255,0.12);
  border-color: rgba(0,200,255,0.4);
  color: var(--white);
}
.btn-secondary.logout { color: var(--danger); border-color: rgba(255,61,87,0.3); }

.logout {
  background: rgba(255,61,87,0.1);
  color: #ff6b6b;
  border-color: rgba(255,61,87,0.3);
}

/* ---------- INPUT ---------- */
.input {
  width: 100%;
  height: 48px;
  background: rgba(0,200,255,0.04);
  border: 1px solid rgba(0,200,255,0.15);
  border-radius: 12px;
  padding-left: 14px;
  color: var(--white);
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--aio-neon);
  background: rgba(0,200,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}
.input::placeholder { color: rgba(122,153,187,0.5); }

/* ---------- MATCH CARD ---------- */
.matchCard {
  background: linear-gradient(145deg, rgba(17,34,64,0.95), rgba(10,20,35,0.9));
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,255,0.07);
  border: 1px solid rgba(0,200,255,0.1);
}
.teamRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
}
.team { display: flex; align-items: center; gap: 10px; }
.flag { width: 30px; height: 22px; border-radius: 4px; object-fit: cover; }
.matchTime {
  text-align: center;
  color: var(--grey);
  font-size: 12px;
  margin-top: 6px;
}

/* ---------- SCORE INPUT ---------- */
.scoreInput {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.scoreInput input::-webkit-outer-spin-button,
.scoreInput input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scoreInput input[type=number] { -moz-appearance: textfield; }
.scoreInput input {
  width: 64px;
  height: 64px;
  background: rgba(0,200,255,0.05);
  border: 2px solid rgba(0,200,255,0.2);
  border-radius: 14px;
  color: var(--white);
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  transition: 0.2s;
  cursor: text;
}
.scoreInput input:focus {
  outline: none;
  border-color: var(--aio-neon);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.15), 0 0 20px rgba(0,200,255,0.2);
  background: rgba(0,200,255,0.08);
}
.scoreInput span {
  font-size: 28px;
  font-weight: 300;
  color: rgba(0,200,255,0.3);
  user-select: none;
}
.scoreInput--locked input {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(0,200,255,0.08);
}
.tipLocked {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
  border: 1px solid rgba(0,200,255,0.08);
  border-radius: 12px;
  background: rgba(0,200,255,0.03);
}

.saveBtn {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #0088cc, var(--aio-neon));
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,200,255,0.2);
  transition: 0.2s;
}
.saveBtn:active { transform: scale(0.97); }

/* ---------- LEADERBOARD ---------- */
.rankRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(17,34,64,0.8);
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(0,200,255,0.07);
  transition: 0.15s;
}
.rankRow--me {
  border-color: rgba(0,200,255,0.4) !important;
  background: rgba(0,200,255,0.07) !important;
  box-shadow: 0 0 20px rgba(0,200,255,0.1);
}
.rankMedal {
  font-size: 18px;
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  color: var(--grey);
  font-family: var(--font-display);
}
.rankAvatar {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
}
.rankAvatarPlaceholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, var(--aio-neon));
  color: #000;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.rankName  { flex: 1; font-size: 15px; font-weight: 600; font-family: var(--font-display); }
.rankPoints { font-size: 15px; font-weight: 700; color: var(--aio-neon); font-family: var(--font-display); }

/* ---------- PROFILE ---------- */
.profileBox {
  background: linear-gradient(145deg, rgba(17,34,64,0.95), rgba(10,20,35,0.95));
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  border: 1px solid rgba(0,200,255,0.1);
}
.profileHeader {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(0,200,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(0,200,255,0.1);
}
.profileAvatar {
  width: 60px; height: 60px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--aio-neon);
  box-shadow: 0 0 16px rgba(0,200,255,0.3);
}
.profileAvatarPlaceholder {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, var(--aio-neon));
  color: #000;
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  box-shadow: 0 0 16px rgba(0,200,255,0.3);
}
.profileName  { font-size: 18px; font-weight: 800; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; }
.profileEmail { font-size: 13px; color: var(--grey); margin-top: 2px; }
.profilePoints { font-size: 20px; font-weight: 700; color: var(--aio-neon); font-family: var(--font-display); }
.profileSection {
  background: rgba(0,200,255,0.03);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0,200,255,0.1);
  margin-bottom: 8px;
}
.profileSectionTitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

/* ---------- LANGUAGE SELECTOR ---------- */
.languageItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,200,255,0.04);
  margin-bottom: 10px;
  border: 1px solid rgba(0,200,255,0.1);
  transition: 0.2s;
  cursor: pointer;
}
.languageItem:hover {
  background: rgba(0,200,255,0.1);
  border-color: rgba(0,200,255,0.3);
}

/* ---------- BOTTOM NAVIGATION ---------- */
.bottomNav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 70px;
  background: rgba(6,14,23,0.95);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(0,200,255,0.15);
  z-index: 9999;
  backdrop-filter: blur(16px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}
.navItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
  gap: 3px;
  transition: 0.2s;
  cursor: pointer;
}
.navItem i { font-size: 19px; }
.navItem.active {
  color: var(--aio-neon);
  text-shadow: 0 0 10px rgba(0,200,255,0.5);
}
.navItem.active i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(0,200,255,0.6));
}

/* ---------- FLEX UTILITIES ---------- */
.flex { display: flex; }
.space-between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }

/* ---------- AUTH / LOGIN ---------- */
.authHeader {
  margin-bottom: 8px;
  text-align: center;
}
.authHeader .title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #0088cc, var(--aio-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.authError {
  background: rgba(255,61,87,0.1);
  border: 1px solid rgba(255,61,87,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 14px;
}
.authDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--grey);
  font-size: 13px;
}
.authDivider::before,
.authDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,200,255,0.15);
}
.authGuest, .startGuest {
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.authGuest:hover, .startGuest:hover { color: var(--aio-neon); }

/* ---------- POINTS INFO ---------- */
.pointsInfo {
  margin-top: 20px;
  background: rgba(0,200,255,0.03);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0,200,255,0.1);
}
.pointsInfoTitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.pointsInfoRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 8px;
}
.ptsBadge {
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pts4 { background: rgba(0,230,118,0.2);  color: #00e676; }
.pts3 { background: rgba(0,200,255,0.2);  color: var(--aio-neon); }
.pts2 { background: rgba(255,107,0,0.2);  color: var(--aio-orange); }
.pts0 { background: rgba(136,136,136,0.2); color: #888; }

/* ---------- MY TIP BADGE ---------- */
.myTipBadge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
  text-align: center;
  width: 100%;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.myTipBadge.pts4 { background: rgba(0,230,118,0.15); color: #00e676; }
.myTipBadge.pts3 { background: rgba(0,200,255,0.15); color: var(--aio-neon); }
.myTipBadge.pts2 { background: rgba(255,107,0,0.15); color: var(--aio-orange); }
.myTipBadge.pts0 { background: rgba(136,136,136,0.15); color: #888; }

/* ---------- LOGIN HINT ---------- */
.loginHint {
  background: rgba(0,200,255,0.05);
  border: 1px solid rgba(0,200,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--grey);
  text-align: center;
  margin-bottom: 14px;
  cursor: pointer;
}
.loginHint strong { color: var(--aio-neon); }

/* ---------- AVATAR WRAPPER ---------- */
.avatarWrapper {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.avatarOverlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
.avatarWrapper:hover .avatarOverlay,
.avatarWrapper:active .avatarOverlay { opacity: 1; }

/* ---------- SESSION EXPIRED BANNER ---------- */
#sessionExpiredBanner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--danger);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin-top: 86px;
}
#sessionExpiredBanner .sessionBannerInner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
#sessionExpiredBanner button {
  background: #fff;
  color: var(--danger);
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
#sessionExpiredBanner .sessionBannerClose {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 5px 12px;
}

/* ---------- RESYNC TOAST ---------- */
#resyncToast {
  display: none;
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  background: var(--aio-blue-mid);
  border: 1px solid var(--aio-neon-glow);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  text-align: center;
  max-width: 90vw;
}
