:root {
  --bg: #ffffff;
  --panel: #f9f9f9;
  --text: #1a1a1a;
  --text-secondary: #4e5a72;
  --muted: #555555;
  --line: #dddddd;
  /*  --brand: #5da9ff; */
  --brand: #3b82f6;
  --brand-strong: #3b8cf0;
  --error: #d33;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 6px;
  --header-color: rgba(12, 18, 34, 0.95);
  --bg-dark: #0c1222;
  --bg-dark-card: #151e33;
  --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* GLOBAL RESET — do not comment out or remove. Many page layouts will break without it. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: white;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Make the page fill the viewport */
html {
  height: 100%;
}

/* this is used to allow panels to have chevron when they close/open */
details.panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.panel summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.2s;
  position: relative;
  top: -3px;
}

details.panel[open] summary::after {
  transform: rotate(225deg);
  top: 1px;
}

/* Base heading system */
h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.navbar {
  background: rgba(12, 18, 34, 0.95);
  /*   background: linear-gradient(135deg, #1f2937, #374151); */
  /* background: linear-gradient(135deg, #3b9cf0 0%, #5ba7f2 100%); */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.4s var(--ease);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 5px;
  position: relative;
}

.nav-links {
  margin-left: 2.5rem;
}

.nav-right {
  margin-left: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-avatar {
  border-radius: 50%;
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.logo {
  display: inline-block;
  width: 120px;
  height: 30px;
  background-image: url("/static/images/logo/fankado_logo_white.png");
  background-size: contain; /* scales image to fit */
  background-repeat: no-repeat; /* don’t tile */
  background-position: center; /* center it inside the box */
  text-indent: -9999px; /* hide text visually */
  overflow: hidden; /* prevent hidden text from affecting layout */
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: white;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.cards-section {
  margin-top: 1rem;
}

.card-filter {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.card-filter:hover {
  border-color: #3b9cf0;
  box-shadow: 0 2px 8px rgba(59, 156, 240, 0.15);
}

.card-filter:focus {
  outline: none;
  border-color: #3b9cf0;
  box-shadow: 0 0 0 3px rgba(59, 156, 240, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-container {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  width: 280px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.card-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.trading-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  border: 3px solid #e1e8ed;
  aspect-ratio: 2.5/3.5;
  width: 100%;
  height: 300px;
  cursor: pointer;
}

.trading-card:hover {
  transform: rotateY(8deg) rotateX(5deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border-color: #667eea;
}

.card-border {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid #667eea;
  border-radius: 8px;
  pointer-events: none;
}

.card-number {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-header-band {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-image {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0.5rem;
  border-radius: 6px;
  border: 2px solid #dee2e6;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.medium_photo {
  width: 145px;
}

.trading-card:hover .card-photo {
  transform: scale(1.05);
}

.card-team-logo {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.7rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid #667eea;
}

.card-name-on-card {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  padding: 0.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.card-info {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-pricing {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}

.price-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.current-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 0.25rem;
}

.availability {
  font-size: 0.75rem;
  color: #dc3545;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.buy-btn,
.primary-btn {
  justify-self: stretch;
  background: #3b82f6;
  font-family: inherit;
  color: #fff;
  border: 0;
  font-size: 16px;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.buy-btn:hover,
.primary-btn:hover,
.btn-primary:hover {
  background: #2563eb;
}

/* todo- can we mix into other button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

/*
.btn-outline {
  background: #fff;
  color: #2f6bff;
  border-color: #d0d5ff;
} */

.btn-outline {
  background: transparent;
  color: #0c1222;
  border: 1.5px solid rgba(12, 18, 34, 0.12);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.btn-link {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  cursor: pointer;
}

.btn-link:hover,
.btn-outline:hover {
  background: #f3f4f6;
  color: #111827;
}

/* todo - where is this used */
.primary-action-button,
.buy-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #3b9cf0, #5ba7f2);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(59, 156, 240, 0.3);
  flex-shrink: 0;
}

.primary-action-button:hover,
.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 156, 240, 0.4);
  background: linear-gradient(135deg, #5ba7f2, #3b9cf0);
}

.title {
  color: #333;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: none;
}

.title-secondary {
  color: blue;
}

.subtitle {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Buttons */
.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: 5px;
}

.mobile-auth {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-auth a {
  margin: 0;
  padding: 0.75rem 2rem;
  text-align: center;
}

.mobile-signup {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  margin: 0.5rem 2rem !important;
}

.mobile-signup:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 80px;
    height: 20px;
  }

  html,
  body {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
  }

  .primary-btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
  }

  .buy-btn {
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 600;
  }

  .auth-buttons .primary-btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
  }

  .btn-primary {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
  }

  .auth-buttons .ghost-header-btn {
    font-size: 14px;
    font-weight: 600;
  }
}

.mrs {
  margin-right: 5px;
}

.mrm {
  margin-right: 10px;
}

.mrl {
  margin-right: 15px;
}

.mls {
  margin-left: 5px;
}

.mlm {
  margin-left: 10px;
}

.mll {
  margin-left: 15px;
}

.mbs {
  margin-bottom: 5px;
}

.mbm {
  margin-bottom: 10px;
}

.mbl {
  margin-bottom: 15px;
}

.mbxl {
  margin-bottom: 20px;
}

.mts {
  margin-top: 5px;
}

.mtm {
  margin-top: 10px;
}

.mtxxl {
  margin-top: 25px;
}

.mtxl {
  margin-top: 25px;
}

.mtl {
  margin-top: 15px;
}

.prs {
  padding-right: 5px;
}

.prm {
  padding-right: 10px;
}

.prl {
  padding-right: 15px;
}

.pls {
  padding-left: 5px;
}

.plm {
  padding-left: 10px;
}

.pll {
  padding-left: 15px;
}

.pbs {
  padding-bottom: 5px;
}

.pbm {
  padding-bottom: 10px;
}

.pbl {
  padding-bottom: 15px;
}

.pts {
  padding-top: 5px;
}

.ptm {
  padding-top: 10px;
}

.ptl {
  padding-top: 15px;
}

/* This is your "main" area */
.main-content {
  flex: 1;
  display: block; /* keeps normal block layout inside */
  padding: 2rem;
  margin-top: 10px;
}

/* Ensure the main content expands to fill available space */
main {
  flex: 1;
  display: block; /* ensures normal flow inside */
}

.hide_me {
  display: none !important;
}

/* Main page wrapper becomes a column */
#main_container {
  min-height: 100dvh; /* full viewport height, mobile-safe */
  display: flex;
  flex-direction: column;
}

#main_content,
.content_section {
  width: 100%;
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.form-title {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
  text-align: center;
}

.form-subtitle {
  color: var(--muted);
  margin: 0 0 20px;
  text-align: center;
}

.form-subtitle a {
  color: var(--brand);
  text-decoration: none;
}

.form-subtitle a:hover {
  text-decoration: underline;
}

.regular-link,
.regular-link:visited,
.section-header-link,
.section-header-link:visited {
  color: #2563eb;
  color: var(--header-color);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}

.regular-link,
.regular-link:visited {
  font-size: 0.9rem;
}

.smalllink {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s ease;
}

.smalllink:hover {
  color: #0056b3;
  text-decoration: underline;
}

.centered-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  text-align: center;
}
.centered-section > * {
  max-width: 900px;
  width: 100%;
}

.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 12px 15px;
  margin-bottom: 10px;
}

.login-btn {
  background: rgba(255, 255, 255, 0.9);
  color: black;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.login-btn:hover {
  color: black;
  background: rgba(255, 255, 255, 0.9);
  border-color: #3b82f6;
}

.ghost-header-btn {
  color: white;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.full-width-btn {
  width: 100%;
  display: block;
}

.form-error-box {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b71c1c;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* toast */
#toast-container {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 10px;
  min-width: 180px;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
  background: rgba(32, 32, 32, 0.85);
  color: #fff;
}

.toast.error {
  background: rgba(180, 30, 30, 0.9);
  color: #fff;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.role-pill {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
}

.role-creator {
  background-color: #d7ecff;
  color: #0a4c8a;
  border: 1px solid #a8d2ff;
}
.role-pill-yellow {
  background-color: #fff5c2;
  color: #7a6400;
  border: 1px solid #ffe88a;
}
.role-pill-light-red {
  background-color: #ffe0e0;
  color: #8a1f1f;
  border: 1px solid #ffbaba;
}

.activation-banner {
  width: 100%;
  background: #fff3cd; /* soft yellow */
  color: #856404;
  padding: 12px 16px;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid #f5c16c;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-bottom: 10px;
}
.activation-banner a {
  color: #0a58ca;
  text-decoration: underline;
}
.banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #856404;
  font-size: 18px;
  cursor: pointer;
}

.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e7eb;
  flex: 0 0 44px;
  display: block;
}

.series-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blueSoft);
  color: #1e40af;
  white-space: nowrap;
  border: 1px solid #dbeafe;
}

/* OPTION A: series badge attached to title */
.series-badge.inline {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

input:read-only {
  background-color: #e9ecef;
  color: #444;
}

@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .card-filter {
    width: 60%;
    max-width: 200px;
  }

  .section-header-link,
  .section-header-link:visited {
    font-size: 0.83rem;
  }
}

.redbadge {
  background-color: #e4405f;
  color: white;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 12px;
  display: inline-block;
  line-height: 1;
  text-align: center;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: middle;
}

.inline-badge-icon {
  font-size: 0.7rem;
  line-height: 1;
}

/* Badge color variants */
.badge-verified {
  background: #3b82f6;
}

.badge-verified-light {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.badge-star {
  background: #eab308;
}

.badge-star-light {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badge-sparkle {
  background: #a855f7;
}

.badge-sparkle-light {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
}

.badge-crown {
  background: #f59e0b;
}

.badge-crown-light {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.settings-tabs,
.general-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
  overflow-x: auto; /* Allow horizontal scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar on Firefox */
  -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
}

/* Hide scrollbar on Chrome/Safari */
.settings-tabs::-webkit-scrollbar,
.general-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap; /* Prevent text from wrapping */
  flex-shrink: 0; /* Prevent tabs from shrinking */
}

.tab.active {
  color: #000;
  border-bottom-color: #000;
}

/* Content */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .tab {
    padding: 8px 12px;
    font-size: 14px;
  }

  .general-tabs {
    gap: 4px; /* Reduce gap on mobile */
  }
}

/** new stuff **/
.settings-tabs,
.general-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
}

.tab {
  padding: 10px 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab.active {
  color: #000;
  border-bottom-color: #000;
}

@media (max-width: 768px) {
  .tab {
    padding: 8px 6px;
    font-size: 13px;
  }

  .general-tabs {
    gap: 2px;
  }
}

.copyright-text {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.text-muted {
  color: #999;
  font-size: 16px;
}

.text-muted-sm {
  color: #999;
  font-size: 14px;
}

.page-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.page-title-section > div:first-child {
  flex: 1;
}

.page-title-section p {
  font-size: 15px;
  color: #999;
  margin: 0;
}

.page-title-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.section-header h3 {
  margin: 0 0 6px 0;
  display: block;
}

.section-header .section-description {
  margin: 0;
  display: block;
}

.grid-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 12px;
}

.grid-section-header h2 {
  margin: 0;
}

.photo-wrap {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.photo-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  pointer-events: none; /* so clicks go through to the link */
}

/* --- Mobile Navigation Start styles ---*/
/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  transform: translateX(0);
}

/* Mobile Navigation Header */
.mobile-nav-header {
  background: rgba(12, 18, 34, 0.95);
  color: white;
  padding: 14px 20px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.05);
}

.mobile-nav-logo {
  font-size: 20px;
  font-weight: 600;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
}

.mobile-nav-logo img {
  height: 28px;
  display: block;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

/* Mobile Navigation Items */
.mobile-nav-items {
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  color: #000;
  text-decoration: none;
  position: relative;
  transition:
    background 0.2s,
    color 0.2s;
  border-bottom: none;
  margin: 6px 12px;
  border-radius: 12px;
}

.mobile-nav-item:hover {
  background: #e8f4ff;
  color: #3b82f6;
}

.mobile-nav-item.active {
  color: #3b82f6;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.mobile-nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-icon img {
  width: 100%;
  height: 100%;
}

.share-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-text {
  flex: 1;
  font-size: 14px;
}

.mobile-nav-badge {
  background: #f44336;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Hide mobile nav on desktop */
@media (min-width: 768px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}

.mobile-nav-buttons {
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.mobile-nav-login {
  margin: 8px 16px;
  border-radius: 10px;
  border: 2px solid #3b82f6;
  background: white;
  color: #3b82f6 !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-login .mobile-nav-icon {
  margin-right: 8px;
}

.mobile-nav-login .mobile-nav-text {
  flex: none;
}

.mobile-nav-login:hover {
  background: #f0f8ff;
  color: #3b82f6 !important;
}

.mobile-nav-signup {
  margin: 8px 16px;
  border-radius: 6px;
  background: #3b82f6 !important;
  color: white !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-signup .mobile-nav-icon {
  margin-right: 8px;
}

.mobile-nav-signup .mobile-nav-text {
  flex: none;
}

.mobile-nav-signup:hover {
  background: #3b82f6 !important;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  color: white !important;
}

/* ----------------------------------------------- */
/* Avatar Dropdown menu */
.avatar-dropdown {
  position: absolute;
  top: -15px;
  right: -1px;
  width: 380px;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #f8f8f8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 2000;
}

.avatar-dropdown.show {
  display: block;
}

.avatar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid #f8f8f8;
  margin-bottom: 8px;
  justify-content: space-between;
}

.avatar-dropdown-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.avatar-dropdown-header .name {
  font-weight: 600;
  font-size: 16px;
}

.avatar-dropdown-header .sub {
  font-size: 14px;
  color: #777;
}

.avatar-dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.avatar-dropdown .avatar-dropdown-header .avatar-header-gear {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px;
  border-radius: 50%;
  color: #888;
  width: auto;
}

.avatar-dropdown .avatar-dropdown-header .avatar-header-gear svg {
  width: 20px;
  height: 20px;
  display: block;
}

.avatar-group {
  margin-top: 6px;
}

.avatar-group a,
.avatar-bottom-action a {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border: 1px solid #e5e7eb;
}

.avatar-group a {
  margin-bottom: 10px;
}

.avatar-dropdown .logout {
  cursor: pointer;
  display: block;
  width: fit-content;
  margin: 0px auto 0px;
  padding: 2px 2px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

.avatar-dropdown .logout:hover {
  background: none;
  color: #111;
  text-decoration: underline;
}

.avatar-dropdown.show {
  display: block;
}

.avatar-dropdown-header a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.avatar-close-wrapper {
  margin-bottom: 18px;
}

.avatar-close {
  position: absolute;
  /*  top: calc(3px + env(safe-area-inset-top)); */
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

@media (max-width: 768px) {
  .avatar-dropdown {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    box-shadow: none;
    z-index: 3000;
  }

  .avatar-close-wrapper {
    margin-bottom: 24px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .avatar-dropdown a:hover {
    background: #f3f4f6;
  }

  .avatar-close:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.05);
  }
}

.panel-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  margin-bottom: 14px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-label {
  font-size: 14px;
  color: #555;
}

/* right value */
.panel-value {
  font-weight: 600;
  font-size: 16px;
}

.panel-value .strong {
  font-weight: 400;
  color: #777;
  margin-left: 4px;
}

.bonus-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: #666;
}

.bonus-progress {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
}

#nav-header-bonus-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 1s linear;
}

/* streak badge — shared by nav points panel + points history */
.points-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff4e5;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.points-streak-badge svg {
  width: 12px;
  height: 12px;
}

.points-streak-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* positions a notifs-badge over a nav icon (e.g. header bell) */
.nav-icon-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-icon-badge-wrap .nav-icon-badge {
  position: absolute;
  top: 0;
  left: 55%;
  transform: translateY(-30%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 15px;
  min-width: 15px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
}

.nav-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.nav-avatar-wrap.has-dot::after {
  content: "";
  position: absolute;
  top: -px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff4444;
  pointer-events: none;
}

/* some stuff from landing hero - should try to remove to common if we can */
.hero-buttons {
  display: flex;
  gap: 10px;
}

/* form toggle styles */
.toggle-wrapper {
  position: relative;
  flex-shrink: 0;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #d1d5db;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-input:checked + .toggle-switch {
  background-color: #3b82f6;
}

.toggle-input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.toggle-input:focus + .toggle-switch {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* nav bar styling */
/* Dropdown container */
.nav-links .dropdown {
  position: relative;
}

/* Dropdown menu - hidden by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-top: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  list-style: none;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown menu items */
.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.dropdown-menu a:hover {
  background: #e0e0e0;
}

/* Parent link hover state */
.dropdown > a {
  position: relative;
  padding-right: 20px;
}

/*
.dropdown > a::after {
  content: "▼";
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.6;
} */

.dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 7px;
  opacity: 0.7;
  position: relative;
  top: -3px;
}

/* Red dot on header item - no white border */
.dropdown.has-notification > a::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 3px;
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
}

/* Badge with count in dropdown */
.notifs-badge {
  display: inline-block;
  background: #ff4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 10px;
  margin-left: 0px;
  min-width: 18px;
  text-align: center;
}

/* for styling panels */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-header h3 {
  margin: 0;
}

.simplelink,
.panel-header-link {
  font-size: 0.85rem;
  color: black;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  cursor: pointer;
}

.panel-header-link-brand {
  color: var(--brand);
}

.panel-header-link:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}

.status-pill--live {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.status-pill--draft {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.status-pill--paused {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* countdown module */

/* Countdown Timer */
.pack-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.countdown-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}
.countdown-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.countdown-sep {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 2px;
  line-height: 1;
}

.countdown-val {
  color: #059669;
}

.countdown-sep {
  color: #d1fae5;
}

@media (max-width: 768px) {
  .pack-countdown {
    gap: 10px;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .countdown-timer {
    gap: 3px;
  }

  .countdown-unit {
    min-width: 30px;
  }

  .countdown-val {
    font-size: 1rem;
  }

  .countdown-lbl {
    font-size: 0.55rem;
  }

  .countdown-sep {
    font-size: 0.9rem;
    margin: 0 1px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 10px;
  }
}

/* Slab Callout */
.slab-callout-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  max-width: 820px;
  margin: 0 auto;
}

.slab-callout-visual {
  flex-shrink: 0;
}

.slab-callout-visual img {
  width: 175px;
  display: block;
}

.slab-callout-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slab-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3eb;
  color: #d4733a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.slab-callout-badge::before {
  content: "✦";
  font-size: 9px;
}

/*
.slab-callout-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
} */

.slab-callout-title {
  margin: 0;
}

.slab-callout-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.slab-callout-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.slab-callout-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
}

.slab-callout-feature svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .slab-callout-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 28px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
  }

  .slab-callout-badge {
    margin: 0 auto;
  }

  .slab-callout-features {
    justify-content: center;
  }
}

.mobile-nav,
.mobile-nav-overlay {
  overscroll-behavior: none;
}

.creator-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* social icon styling */
.socials {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.si {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.si:hover {
  background: #f3f4f6;
}

/* custom confirm */
@keyframes ccFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ccSlideIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#custom-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem 1rem;
  box-sizing: border-box;
  animation: ccFadeIn 0.15s ease;
}

#custom-confirm-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: ccSlideIn 0.18s ease;
  box-sizing: border-box;
}

#custom-confirm-box h4 {
  margin: 0 0 0.5rem;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

#custom-confirm-box p {
  margin: 0 0 1.25rem;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.cc-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cc-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  min-width: 80px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.cc-btn-cancel {
  background: #f0f0f0;
  color: #333;
}
.cc-btn-confirm {
  background: #333;
  color: #fff;
}
.cc-btn-cancel:active {
  background: #ddd;
}
.cc-btn-confirm:active {
  background: #111;
}

.cc-btn-confirm.cc-danger {
  background: #e53e3e;
  color: #fff;
}
.cc-btn-confirm.cc-danger:active {
  background: #c53030;
}

/* new footer */
/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background: var(--bg-dark);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-brand .logo {
  margin-bottom: 16px;
}
.footer-brand .logo img {
  height: 22px;
  width: auto;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-col h4 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s var(--ease);
}

/* Light / gray footer variant */
.site-footer--light {
  background: #f3f4f6;
  border-top: 1px solid rgba(12, 18, 34, 0.08);
}
.site-footer--light .footer-brand p {
  color: rgba(12, 18, 34, 0.55);
}
.site-footer--light .footer-col h4 {
  color: #0f172a;
}
.site-footer--light .footer-col a {
  color: rgba(12, 18, 34, 0.6);
}
.site-footer--light .footer-col a:hover {
  color: #0f172a;
}
.site-footer--light .footer-divider {
  background: rgba(12, 18, 34, 0.08);
}
.site-footer--light .footer-copy,
.site-footer--light .footer-legal a {
  color: rgba(12, 18, 34, 0.5);
}
.site-footer--light .footer-legal a:hover {
  color: #0f172a;
}
.site-footer--light .footer-social a {
  background: #fff;
  border-color: rgba(12, 18, 34, 0.08);
  color: rgba(12, 18, 34, 0.55);
}
.site-footer--light .footer-social a:hover {
  color: #0f172a;
}
.site-footer--light .footer-brand .logo img {
  filter: invert(1) brightness(0.2);
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .logo {
  display: block;
  width: auto;
  height: auto;
  background-image: none;
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 22px;
  width: auto;
  display: block;
}

.site-footer a {
  text-decoration: none;
}

.footer-col a {
  text-decoration: none;
}

.footer-brand a {
  text-decoration: none;
}

.site-footer .container {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer {
  margin-top: auto;
  padding: 40px 0 24px;
}

.tab-empty,
.profile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 24px 24px 24px 24px;
}

.tab-empty-icon,
.profile-empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
}

.tab-empty-icon svg,
.profile-empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--brand-strong);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-empty-title,
.profile-empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.tab-empty-text,
.profile-empty-text {
  max-width: 390px;
  margin: 2px auto 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 768px) {
  .tab-empty,
  .profile-empty {
    padding: 36px 24px 72px 24px;
  }
  .tab-empty-title,
  .profile-empty-title {
    font-size: 0.9rem;
  }

  .tab-empty-text,
  .empty-cta,
  .profile-empty-text {
    font-size: 0.8rem;
  }

  .tab-empty-icon,
  .profile-empty-icon {
    width: 52px;
    height: 52px;
  }
  .tab-empty-icon svg,
  .profile-empty-icon svg {
    width: 24px;
    height: 24px;
  }
}

.empty-cta {
  padding: 8px 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.header_diag_warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(255, 193, 7, 0.15);
  border: 1px solid #f0b429;

  color: #ffd45a;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.header_diag_warning_icon {
  font-size: 14px;
}

.header_diag_warning_text {
  color: #ffe082;
}

.header_diag_warning_link {
  color: #fff;
  text-decoration: underline;
}

.header_diag_warning_link:hover {
  color: #ffd45a;
}

.creator-tagline {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.avatar-dropdown .points-history-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

/* --- Unopened packs alert (kept from before) --- */
.alert-highlight {
  margin: 0 0px 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.1), transparent 40%),
    #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alert-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.alert-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.alert-title {
  margin-top: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.alert-sub {
  margin-top: 0;
  font-size: 0.78rem;
  color: #8b95a8;
}

.alert-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.alert-kicker-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.alert-title a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.alert-title a:hover {
  text-decoration: underline;
}

.alert-highlight--live .alert-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 7px;
  background: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(37, 99, 235, 0.08);
}
.hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.white-background {
  background: #fff !important;
}
