:root {
  --site-indigo: #4f46e5;
  --site-indigo-dark: #4338ca;
  --site-green: #16a34a;
  --site-navy: #0f172a;
  --site-amber: #f59e0b;
}

.hidden {
  display: none !important;
}

/* --- HEADER STYLES (UNCHANGED) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__inner--centered {
  justify-content: space-between;
}

.logo-container-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  width: auto;
}

.logo-image {
  height: 100%;
  width: auto;
  max-height: 5rem;
}

.logo-text-container-center {
  flex: 0 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.logo-wordmark {
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-wordmark__primary {
  color: #111827;
}

.logo-wordmark__accent {
  color: var(--site-green);
}

.logo-tagline {
  font-size: clamp(0.65rem, 1.2vw, 0.95rem);
  color: var(--site-green);
  margin: 0;
  white-space: nowrap;
}

.logo-tagline span {
  color: #0f172a;
  font-weight: 700;
}

.header-auth-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--site-navy);
}

.site-header__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-header__brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  display: block;
  letter-spacing: -0.02em;
}

.site-header__brand-tagline {
  display: block;
  font-size: 0.75rem;
  color: #10b981;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.site-nav a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--site-indigo);
}

.site-nav__cta {
  background: linear-gradient(120deg, #4f46e5, #06b6d4);
  color: #fff !important;
  box-shadow: 0 12px 24px -18px rgba(15, 118, 110, 0.9);
  padding: 0.5rem 1rem;
}

.site-header__auth {
  margin-left: auto;
}

.site-header__auth-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.site-header__login {
  text-decoration: none;
  font-weight: 700;
  background: var(--site-indigo);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.site-header__login:hover {
  background: var(--site-indigo-dark);
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 0.75rem;
  padding: 0.35rem 0.6rem;
  background: rgba(243, 244, 255, 0.9);
  color: var(--site-indigo);
  cursor: pointer;
}

.site-header__toggle-line {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.site-header__toggle-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.user-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -14px rgba(37, 99, 235, 0.8);
}

.auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 12rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 30px -24px rgba(15, 23, 42, 0.8);
  padding: 0.35rem 0;
  display: flex;
  flex-direction: column;
  z-index: 80;
}

.auth-dropdown__link,
.auth-dropdown__button {
  padding: 0.65rem 1rem;
  text-align: left;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #1f2937;
  cursor: pointer;
}

.auth-dropdown__link:hover,
.auth-dropdown__button:hover {
  background: rgba(79, 70, 229, 0.08);
}

.btn-red-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #dc2626;
  background-color: transparent;
  border: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.btn-red-logout:hover {
  background-color: #fef2f2;
}

@media (max-width: 768px) {
  .logo-container-left {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }

  .logo-link {
    justify-content: center;
  }

  .logo-text-container-center {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.35rem;
    gap: 0.1rem;
  }

  .logo-wordmark {
    font-size: clamp(1.1rem, 5vw, 1.7rem);
  }

  .logo-tagline {
    white-space: normal;
    font-size: clamp(0.75rem, 3vw, 0.95rem);
  }
}

/* --- NEW ONE-LINE BANNER STYLES --- */
.ship48-banner {
  position: relative;
  background: var(--site-indigo);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ship48-banner[hidden] {
  display: none !important;
}

.ship48-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 2rem; /* Space for dismiss X */
}

.ship48-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ship48-text {
  font-weight: 500;
  white-space: nowrap;
}

.ship48-code-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.ship48-btn-copy {
  background: transparent;
  border: none;
  color: rgba(255,255,255, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.ship48-btn-copy:hover {
  color: #fff;
  text-decoration: underline;
}

.ship48-btn-start {
  background: #fff;
  color: var(--site-indigo);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.ship48-btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #f8fafc;
}

.ship48-dismiss {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s;
}

.ship48-dismiss:hover {
  color: #fff;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 1024px) {
  .site-header__inner {
    flex-wrap: wrap;
  }
  .site-header__auth {
    order: 3;
    width: 100%;
  }
  .site-header__auth-wrapper {
    justify-content: flex-end;
  }
  .site-nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding-top: 0.5rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-header__toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-auth-nav {
    width: 100%;
    justify-content: center;
  }

  .site-header__auth-wrapper {
    width: 100%;
    justify-content: center;
  }

  /* Banner Mobile Styles */
  .ship48-banner__inner {
    gap: 0.75rem;
    text-align: center;
    padding-right: 0;
  }
  
  .ship48-dismiss {
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
  }
  
  .ship48-text {
    white-space: normal;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .logo-container-left,
  .logo-text-container-center,
  .header-auth-nav {
    width: 100%;
  }

  .logo-text-container-center {
    margin-top: 0.5rem;
  }

  .header-auth-nav {
    margin-top: 0.35rem;
  }

  .site-header__auth-wrapper {
    justify-content: center;
  }

  .site-header__login {
    width: 100%;
    text-align: center;
  }
}