html {
  font-size: 16px;
}

body {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* =========================================================
   BASE THEME
========================================================= */
body {
  background: #0B1220;
  color: #94A3B8;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;

  padding-top: 70px; /* prevents navbar overlap */
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3 {
  color: #F8FAFC;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(28px, 5vw, 44px);
}

h2 {
  font-size: clamp(18px, 3.5vw, 24px);
}

p {
  font-size: clamp(14px, 2.8vw, 16px);
}
/* =========================================================
   LINKS
========================================================= */
a {
  color: #6AA6FF;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #A5C8FF;
  text-decoration: underline;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 70px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  padding: 0 20px;

  background: #0B1220;
  border-bottom: 1px solid #1F2A44;

  z-index: 9999;

  overflow: visible; /* 🔥 prevents dropdown pushing layout */
}

.nav-search {
  position: relative;
  z-index: 10000;
}

.search-results {
  z-index: 10001;
}

/* LEFT */
.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  height: 50px;   /* increased from 32 */
  width: auto;
}

/* CENTER */
.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;

  white-space: nowrap;
}

/* CENTER LINKS STYLE */
.nav-center a {
  font-size: 18px;
  color: #94A3B8;

  position: relative;
  padding: 6px 0;
  text-decoration: none;
}

.nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  height: 2px;
  width: 0%;
  background: #4F7CFF;

  transition: 0.2s ease;
}

.nav-center a:hover {
  color: #F8FAFC;
}

.nav-center a:hover::after {
  width: 100%;
}

/* RIGHT SIDE */
.nav-right,
.auth-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* FIXED avatar (MUST BE OUTSIDE) */
.user-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;

  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #1F2A44;

  display: block;
}

.avatar-wrapper {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   AUTH LINKS (FINAL CLEAN VERSION)
========================================================= */
.auth-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 28px; /* match center spacing */
  white-space: nowrap;
}

/* MATCH CENTER NAV STYLE EXACTLY */
.auth-links a {
  display: inline-flex;
  align-items: center;

  font-size: 18px;
  color: #94A3B8;

  position: relative;
  padding: 6px 0;

  text-decoration: none;
}

/* underline animation */
.auth-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  height: 2px;
  width: 0%;
  background: #4F7CFF;

  transition: 0.2s ease;
}

.auth-links a:hover {
  color: #F8FAFC;
}

.auth-links a:hover::after {
  width: 100%;
}

/* USERNAME */
#userName {
  font-size: 18px;
  color: #CBD5E1;
  margin-right: 10px;
}

/* =========================================================
   MENU TOGGLE
========================================================= */

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: 0.25s ease;
}

.primary {
  background: #4F7CFF;
  color: white;
  border: none;
}

.primary:hover {
  background: #3B66E3;
  transform: translateY(-2px);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  padding: 100px 40px;
  max-width: 1100px;
  margin: auto;

  align-items: center;
}

.hero p {
  margin-top: 15px;
  max-width: 500px;
}

/* =========================================================
   CONTACT PAGE LAYOUT
========================================================= */
.contact-page {
  min-height: 100vh;
  text-align: center;
  padding: 60px 20px;

  background: linear-gradient(145deg, #0B1220, #0E1A2F);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   CONTACT CARD (FIXED STRUCTURE)
========================================================= */
.contact-card {
  background: #111B2E;
  border: 1px solid #1F2A44;

  padding: 18px;
  border-radius: 12px;

  transition: 0.2s ease;

  width: fit-content;
  min-width: 220px;

  display: flex;
  flex-direction: column;   /* 🔥 STACK CONTENT */
  align-items: center;
  justify-content: flex-start;

  gap: 6px;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,124,255,0.5);
}

/* card title */
.card-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6AA6FF;
  margin-bottom: 4px;
}

/* text inside cards */
.contact-card div {
  display: block;
}

/* links inside cards */
.contact-card a {
  color: #94A3B8;
  text-decoration: none;
}

.contact-card a:hover {
  color: #F8FAFC;
}

/* =========================================================
   GRIDS
========================================================= */
.email-grid,
.message-grid {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 15px;
  flex-wrap: wrap;

  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* =========================================================
   AUTH PAGES
========================================================= */
.auth-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: #0B1220;
}

.auth-card {
  background: #111B2E;
  border: 1px solid #1F2A44;

  padding: 25px;
  border-radius: 12px;

  width: min(90%, 360px);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card input {
  padding: 10px;
  border-radius: 8px;

  border: 1px solid #1F2A44;
  background: #0E1626;

  color: #F8FAFC;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /*.navbar {
    padding: 0 20px;
  }

  .message-grid {
    flex-wrap: wrap;
  }

  /* 🔥 ADD THIS PART (Step 4) */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: #F8FAFC;
  margin-left: 15px;
}

/* =========================================================
   SIDE MENU (FORCED GLOBAL FIX - ESCAPES ALL CONTAINERS)
========================================================= */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 300px;
  height: 100vh;

  background: #0B1220;
  color: #F8FAFC;

  /* 🔥 must be higher than overlay */
  z-index: 1000001;

  padding: 20px;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  overflow-y: auto;

  text-align: left;
  display: block;
}

.side-menu.open {
  transform: translateX(0);
}

/* FORCE INTERNAL STRUCTURE INDEPENDENCE */
.side-content,
.side-header,
.menu-section {
  text-align: left;
  align-items: flex-start;
}

/* ENSURE LINKS NEVER CENTER */
.menu-section a {
  display: block;
  text-align: left;
}

/* =========================================================
   OVERLAY (TRUE GLOBAL LAYER)
========================================================= */

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.55);

  display: none;

  /* 🔥 important: prevents invisible blocking */
  pointer-events: none;

  z-index: 1000000;
}

.overlay.show {
  display: block;

  /* re-enable only when visible */
  pointer-events: auto;
}

/* keep links tight without changing navbar style globally */
.auth-links a {
  padding: 4px 6px;
  font-size: 18px;
  line-height: 1;
}

/* ===============================
   LANDING PAGE STRUCTURE
=============================== */

.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: auto;
}

.section.dark {
  background: #0E1626;
  border-top: 1px solid #1F2A44;
  border-bottom: 1px solid #1F2A44;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #111B2E;
  border: 1px solid #1F2A44;
  padding: 20px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #4F7CFF;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #94A3B8;
}

.card.wide {
  grid-column: span 1;
}

.cta {
  text-align: center;
  padding: 100px 40px;
  max-width: 800px;
  margin: auto;
}

.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #1F2A44;
  font-size: 12px;
  color: #64748B;
}

/* HERO BUTTON FIX (you were missing styling consistency) */
.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

/* =========================================================
   HERO FADE SLIDER
========================================================= */

.hero-visual {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid #1F2A44;
  background: #0E1626;
}

/* all images stack on top of each other */
.hero-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* visible image */
.hero-slide.active {
  opacity: 1;
}

.legal-container {
  max-width: 800px;
  margin: 80px auto;
  padding: 40px;
  color: #CBD5E1;
  line-height: 1.7;
}

.legal-container h1 {
  margin-bottom: 20px;
}

.legal-container h2 {
  margin-top: 30px;
  font-size: 20px;
}

.legal-container ul {
  margin-left: 20px;
  margin-top: 10px;
}

.legal-container p {
  margin-top: 10px;
}

.auth-card select,
.auth-card input[list] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #1F2A44;
  background: #0E1626;
  color: #F8FAFC;
  width: 100%;
}

.check-row {
  display: flex;
  align-items: center;   /* vertical alignment */
  gap: 10px;

  width: fit-content;
  margin: 12px auto 0;

  white-space: nowrap;   /* 🔥 prevents line break */
  cursor: pointer;
}

.check-row span {
  display: inline;       /* ensure inline flow */
}

.check-row a {
  color: #6AA6FF;
  text-decoration: none;
}

.check-row a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px;
}

canvas {
  width: 100% !important;
  height: 60vh !important;
  display: block;
}

/* =========================================
   NAV SEARCH (CLEAN SINGLE VERSION)
========================================= */

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* input */
.nav-search input {
  width: 220px;
  height: 38px;

  padding: 6px 38px 6px 10px;

  border-radius: 10px;
  border: 1px solid #1F2A44;

  background: #0E1626;
  color: #F8FAFC;

  font-size: 14px;
  outline: none;

  transition: 0.2s ease;
}

/* focus */
.nav-search input:focus {
  border-color: #4F7CFF;
  box-shadow: 0 0 0 3px rgba(79,124,255,0.15);
}

/* placeholder */
.nav-search input::placeholder {
  color: #64748B;
}

/* button */
.nav-search button {
  position: absolute;
  right: 6px;

  width: 28px;
  height: 28px;

  border: none;
  border-radius: 8px;

  background: transparent;
  color: #94A3B8;

  cursor: pointer;
  font-size: 15px;

  transition: 0.2s ease;
}

.nav-search button:hover {
  color: #F8FAFC;
  background: rgba(79,124,255,0.15);
}

/* dropdown */
.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;

  background: #111B2E;
  border: 1px solid #1F2A44;
  border-radius: 10px;

  display: none;
  z-index: 99999;
}

.search-results.show {
  display: block;
}
/* items */
.search-item {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #CBD5E1;
}

.search-item:hover {
  background: #0E1626;
  color: #F8FAFC;
}

.no-result {
  opacity: 0.6;
}

.account-menu {
  z-index: 1000002; /* higher than 3-dot menu */
}

.account-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;
  margin: 30px 0;

  text-align: center;
}

/* avatar (bigger + cleaner) */
.account-info .user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;

  border: 2px solid #1F2A44;
}

/* name */
#accountName {
  font-size: 16px;
  font-weight: 500;
  color: #F8FAFC;
}

/* email */
#accountEmail {
  font-size: 13px;
  color: #94A3B8;
}

.menu-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #1F2A44;
}

/* default = desktop */
.icon-mobile {
  display: none;
}

/* mobile switch */
@media (max-width: 900px) {
  .icon-desktop {
    display: none;
  }

  .icon-mobile {
    display: inline;
  }
}

/* =========================================================
   📱 MOBILE (max-width: 900px)
========================================================= */

@media (max-width: 900px) {

  /* ================= NAVBAR ================= */

  .menu-toggle {
    justify-self: start;
  }

  .nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-center a {
    display: none;
  }

  #signupLink {
    display: none !important;
  }

  .nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* hide search completely on mobile */
  .nav-search {
    display: none;
  }

  /* ================= HERO ================= */

  .hero {
    padding: 60px 20px;
    gap: 30px;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    height: 260px;
  }

  /* ================= BODY OFFSET ================= */

  body {
    padding-top: 70px;
  }

  body.banner-active {
    padding-top: 120px;
  }
}

/* =========================================================
   GLOBAL SAFETY FIX
========================================================= */

body,
html {
  overflow-x: hidden;
}
/* =========================================================
   COMING SOON LOGO (CLEAN FIX)*/

.coming-logo img {
  width: 250px;
  height: auto;
  margin-bottom: 25px;
  opacity: 0.95;

  /* glow effect */
  filter: drop-shadow(0 0 10px rgba(79,124,255,0.35));

  /* animation */
  animation: logoPulse 2.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(79,124,255,0.25));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(79,124,255,0.55));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(79,124,255,0.25));
  }
}

/* =========================================
   FORM INPUT CONSISTENCY FIX
========================================= */

.auth-card input,
.auth-card textarea {
  width: 100%;
  padding: 12px;

  border-radius: 8px;
  border: 1px solid #1F2A44;

  background: #0E1626;
  color: #F8FAFC;

  font-size: 14px;
  font-family: 'Inter', sans-serif;

  outline: none;
  transition: 0.2s ease;
}

/* focus state */
.auth-card input:focus,
.auth-card textarea:focus {
  border-color: #4F7CFF;
  box-shadow: 0 0 0 3px rgba(79,124,255,0.15);
}

/* textarea behavior */
.auth-card textarea {
  resize: vertical;
  min-height: 100px;
}

/* =========================================
   FORM SPACING FIX
========================================= */

.auth-card h2 {
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: left;
  color: #CBD5E1;
}

.auth-card input,
.auth-card textarea {
  margin-bottom: 10px;
}

/* =========================================
   FORM CENTERING FIX
========================================= */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

/* =========================================
   FOOTER FIX
========================================= */

footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid #1F2A44;
  color: #64748B;
}

/* =========================================
   FILE UPLOAD STYLING
========================================= */

.form-group {
  width: 100%;
  text-align: left;
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #CBD5E1;
  margin-bottom: 6px;
}

/* file input */
.form-group input[type="file"] {
  width: 100%;
  padding: 10px;

  border-radius: 8px;
  border: 1px solid #1F2A44;

  background: #0E1626;
  color: #94A3B8;

  cursor: pointer;
}

/* hint text */
.form-hint {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

/* Hide default file input appearance */
input[type="file"] {
  color: transparent;
}

/* Style the built-in button (webkit browsers) */
input[type="file"]::file-selector-button {
  background: #4F7CFF;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

/* Hover state */
input[type="file"]::file-selector-button:hover {
  background: #3b63d6;
}

.success-message {
  color: #4F7CFF;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* =========================================================
   MOBILE NAVBAR CLEANUP
========================================================= */

/* hide signup ONLY on mobile navbar */
@media (max-width: 900px) {
  #signupLink {
    display: none !important;
  }
}

/* hide desktop-only items on mobile */
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
}

/* REMOVE NAV SEARCH ON MOBILE (navbar only) */
@media (max-width: 900px) {
  .nav-center > a {
    display: none;
  }

  .nav-search {
    width: 160px;
  }
}

/* =========================================================
   MOBILE MENU SEARCH (INSIDE 3-DOT MENU ONLY)
========================================================= */

.menu-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.menu-search input {
  width: 100%;
  height: 38px;

  padding: 6px 38px 6px 10px;

  border-radius: 10px;
  border: 1px solid #1F2A44;

  background: #0E1626;
  color: #F8FAFC;

  font-size: 14px;
  outline: none;
}

.menu-search button {
  position: absolute;
  right: 6px;

  width: 28px;
  height: 28px;

  border: none;
  border-radius: 8px;

  background: transparent;
  color: #94A3B8;

  cursor: pointer;
}

/* =========================================================
   MOBILE ONLY HELPERS
========================================================= */

@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }

  /* ❌ REMOVE AUTH BLOCK FROM 3-DOT MENU ON DESKTOP */
  .mobile-auth,
  .mobile-search {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-only {
    display: block;
  }
}

/* =========================================================
   COMPACT MOBILE MENU REDESIGN
========================================================= */

.compact-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* top quick panel */
.menu-quick {
  background: #111B2E;
  border: 1px solid #1F2A44;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 6px;
}

/* search smaller */
.menu-search input {
  height: 34px;
  font-size: 13px;
}

/* auth row inline */
.menu-auth-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.menu-auth-row a {
  font-size: 13px;
  color: #6AA6FF;
}

/* cards instead of long sections */
.menu-card {
  background: #111B2E;
  border: 1px solid #1F2A44;
  border-radius: 12px;

  padding: 10px 12px;
}

/* section titles smaller */
.menu-card h4 {
  font-size: 12px;
  color: #6AA6FF;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* link grid instead of long list */
.menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

/* links compact */
.menu-links a {
  font-size: 13px;
  padding: 4px 0;
  color: #CBD5E1;
}

/* spacing control inside side menu */
.side-menu {
  padding: 16px;
}

/* =========================================================
   ACCORDION SIDE MENU
========================================================= */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* each block */
.accordion-item {
  background: #111B2E;
  border: 1px solid #1F2A44;
  border-radius: 12px;
  overflow: hidden;
}

/* button */
.accordion-btn {
  width: 100%;
  padding: 10px 12px;

  background: none;
  border: none;

  color: #F8FAFC;
  text-align: left;

  font-size: 14px;
  cursor: pointer;
}

/* dropdown panel */
.accordion-panel {
  display: none;
  flex-direction: column;
  padding: 8px 12px;
  gap: 6px;

  border-top: 1px solid #1F2A44;
}

.accordion-panel a {
  font-size: 13px;
  color: #CBD5E1;
  padding: 4px 0;
}

/* open state */
.accordion-item.active .accordion-panel {
  display: flex;
}

/* =========================================================
   ANNOUNCEMENT BANNER (FIXED + RESPONSIVE)
========================================================= */

.site-banner {
  position: fixed;
  top: 70px; /* navbar height */
  left: 0;
  width: 100%;

  background: #3B66E3; /* slightly deeper for contrast */
  color: #FFFFFF;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 50px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  z-index: 9998;

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  text-align: center;
}

/* ensures text never gets cut or awkwardly hidden */
.site-banner span {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
}

/* link styling */
.site-banner a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.site-banner a:hover {
  text-decoration: underline;
}

/* close button */
.banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;

  color: white;
  font-size: 20px;
  cursor: pointer;

  opacity: 0.85;
}

.banner-close:hover {
  opacity: 1;
}

/* hidden state */
.hidden {
  display: none !important;
}

/* page offset when banner is active */
body.banner-active {
  padding-top: 120px; /* navbar + banner */
}

/* MOBILE FIX */
@media (max-width: 900px) {
  .site-banner {
    padding: 10px 35px;
    font-size: 13px;
  }

  body.banner-active {
    padding-top: 130px;
  }
}

/* =========================================================
   Avatar Picker
========================================================= */

.editable-avatar {
  cursor: pointer;
}

.editable-avatar:hover {
  transform: scale(1.05);
}

.avatar-picker {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 1000005;
}

.avatar-picker.show {
  display: flex;
}

.avatar-box {
  width: 340px;
  max-width: 92vw;

  background: #0B1220;
  border: 1px solid #1F2A44;
  border-radius: 16px;

  padding: 18px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.avatar-grid img {
  width: 80px;
  height: 80px;
  border-radius: 50%;

  object-fit: cover;
  cursor: pointer;

  border: 2px solid transparent;
  transition: 0.2s ease;
}

.avatar-grid img:hover {
  border-color: #4F7CFF;
  transform: scale(1.05);
}

.avatar-tooltip {
  position: relative;
  cursor: pointer;
}

.avatar-tooltip::after {
  content: "Change avatar";
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);

  background: #111B2E;
  color: #F8FAFC;

  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;

  border: 1px solid #1F2A44;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: 0.15s ease;
}

.avatar-tooltip:hover::after {
  opacity: 1;
}

.avatar-grid img.selected {
  outline: 2px solid #4F7CFF;
  border-radius: 10px;
}

/* NAVBAR search */
.nav-search .search-results {
  display: none;
}

.nav-search .search-results.show {
  display: block;
}

/* MENU search */
.menu-search .search-results {
  display: none;
}

.menu-search .search-results.show {
  display: block;
}

/*Signup on login*/

.auth-switch {
  margin-top: 12px;
  font-size: 13px;
  color: #94A3B8;
  text-align: center;
}

.auth-switch a {
  color: #6AA6FF;
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
  color: #A5C8FF;
}

