/* ============================================
   SHOTS FACTORY — Clean, Dark-Accented Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #FAFAFA;
  --color-bg-alt: #F3F4F2;
  --color-bg-card: #FFFFFF;
  --color-bg-dark: #1A1A1A;
  --color-primary: #E8741A;
  --color-primary-light: #F08A3A;
  --color-primary-lighter: #FDDCBE;
  --color-primary-pale: #FFF3E8;
  --color-accent: #E8741A;
  --color-text: #1A1A1A;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-border: #E5E5E5;
  --color-white: #FFFFFF;
  --color-shadow: rgba(0, 0, 0, 0.04);
  --color-shadow-md: rgba(0, 0, 0, 0.08);
  --color-shadow-lg: rgba(0, 0, 0, 0.12);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }

p {
  color: var(--color-text-light);
  line-height: 1.75;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
@media (min-width: 769px) {
  .news-events .section-header {
    margin-bottom: 32px;
  }
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-pale);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.1rem;
  margin-top: 16px;
  color: var(--color-text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 116, 26, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  height: 102px;
  width: auto;
  transition: var(--transition);
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer .logo-icon {
  filter: brightness(0) invert(1);
}

.footer-logo-lg {
  height: 108px !important;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-white);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  white-space: nowrap;
}

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

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 0;
  padding-top: 16px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

/* Invisible bridge to keep hover when moving from toggle to menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Contact link inside nav-links — orange text with permanent pill background */
.nav-cta {
  color: var(--color-white) !important;
  background: transparent !important;
  border: 2px solid var(--color-primary) !important;
}

.nav-cta:hover {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 100px 0 80px;
  padding-top: clamp(180px, 22vh, 240px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000000 0%, #111111 25%, #1A1A1A 50%, #2A2A2A 75%, #3A3A3A 100%);
  z-index: 0;
  will-change: transform;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(232, 116, 26, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(232, 116, 26, 0.06) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
}

.hero-features-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.hero-feature:hover {
  opacity: 0.85;
}

.hero-feature-icon {
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-feature strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--color-primary);
}

.hero-feature span {
  font-size: 0.88rem;
  color: var(--color-white);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  background: var(--color-bg);
}

.pricing .section-header {
  max-width: 720px;
}

.pricing .section-header h2 {
  white-space: normal;
}

/* Pricing Tabs */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pricing-tab:hover {
  color: var(--color-text);
}

.pricing-tab.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* Instructor Rate Toggle */
.instructor-toggle-wrap {
  display: none;
  justify-content: center;
  margin-bottom: 12px;
}

.instructor-toggle-wrap.visible {
  display: flex;
}

.instructor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.instructor-option {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.instructor-option:hover {
  color: var(--color-text);
}

.instructor-option.instructor-active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-shadow);
  font-weight: 600;
}

/* Pricing Panels */
.pricing-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tagline {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.visitor-note,
.pricing-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 24px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.price-amount .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.price-brands {
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.pricing-grid-equal {
  align-items: stretch;
}

.pricing-grid-equal .price-card {
  display: flex;
  flex-direction: column;
}

.pricing-grid-equal .price-features {
  flex: 1;
}

.price-feature-highlight {
  color: var(--color-primary) !important;
  font-weight: 500;
}

.price-feature-highlight::before {
  border-color: var(--color-primary) !important;
}

.price-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-md);
}

.price-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px var(--color-shadow-md);
  transform: scale(1.03);
}

.price-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.price-header h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.price-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.price-amount {
  padding: 28px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.currency {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  padding-left: 28px;
  position: relative;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-primary-pale);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23E8741A' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ============================================
   LOCATIONS
   ============================================ */
.locations {
  background: var(--color-bg-alt);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.location-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.location-card:hover {
  box-shadow: 0 16px 48px var(--color-shadow-md);
}

.location-image {
  height: 220px;
  overflow: hidden;
}

.location-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.location-image[data-gallery] {
  cursor: pointer;
}

.gallery-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
  pointer-events: none;
  z-index: 2;
}

.location-image[data-gallery]:hover .gallery-hint {
  opacity: 1;
  transform: translateY(0);
}

.location-image {
  position: relative;
}

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

/* ============================================
   STUDIO GALLERY MODAL
   ============================================ */
.gallery-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.gallery-backdrop.active {
  display: flex;
}

.gallery-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.gallery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--color-white);
}

.gallery-modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.gallery-image-wrap {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  animation: galleryFadeIn 0.3s ease;
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.gallery-image-wrap:hover .gallery-description {
  opacity: 1;
  transform: translateY(0);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-white);
  z-index: 5;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px;
  gap: 10px;
}

.gallery-counter {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.gallery-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

.gallery-dot:hover {
  background: var(--color-text-muted);
}

.location-content {
  padding: 32px;
}

.location-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.location-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.location-address-link {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.location-address-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.location-specs {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.spec {
  text-align: center;
  flex: 1;
}

.spec-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.spec-suffix {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.spec-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.spec-total {
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}

.location-features {
  list-style: none;
  margin-bottom: 28px;
}

.location-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.location-features .feature-check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   INSTRUCTORS
   ============================================ */
.instructors {
  background: var(--color-bg-alt);
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.instructor-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-align: center;
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--color-shadow-md);
}

.instructor-photo {
  height: 280px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.instructor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.instructor-card:hover .instructor-img {
  transform: scale(1.05);
}

.instructor-info {
  padding: 24px 20px;
}

.instructor-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.instructor-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.instructor-location {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* --- Instructor Modal --- */
.instructor-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.instructor-modal-backdrop.active {
  display: flex;
}

.instructor-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.instructor-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--color-text-muted);
}

.instructor-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.instructor-modal-body {
  display: flex;
  gap: 0;
}

.instructor-modal-photo {
  width: 240px;
  flex-shrink: 0;
}

.instructor-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.instructor-modal-content {
  padding: 36px 32px;
  flex: 1;
}

.instructor-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.instructor-modal-title {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.instructor-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.modal-section h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.modal-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-light);
  margin: 0;
}

/* ============================================
   EVENT MODAL
   ============================================ */
.event-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.event-modal-backdrop.active {
  display: flex;
}

.event-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--color-text-muted);
}

.event-modal-close:hover {
  background: var(--color-white);
  color: var(--color-text);
}

.event-modal-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.event-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-modal-content {
  padding: 32px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.event-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.event-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.event-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.event-signup-btn {
  width: 100%;
}

/* Clickable event cards */
.ne-home-card[data-event-id] {
  cursor: pointer;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.auth-modal-backdrop.active {
  display: flex;
}

.auth-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--color-text-muted);
}

.auth-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.auth-modal-content {
  padding: 36px 32px;
  text-align: center;
}

.auth-modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.auth-modal-content > p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-modal-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.auth-modal-buttons .btn {
  flex: 1;
}

.auth-modal-buttons .btn-outline {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.auth-modal-buttons .btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.auth-login-form,
.auth-register-form {
  margin-top: 24px;
  text-align: left;
}

.auth-login-form.hidden,
.auth-register-form.hidden {
  display: none;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition);
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 116, 26, 0.15);
}

.auth-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.auth-message {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
}

.auth-message.hidden {
  display: none;
}

.auth-message.success {
  background: #E8F5E9;
  color: #2E7D32;
}

.auth-message.error {
  background: #FFEBEE;
  color: #C62828;
}

/* ============================================
   TAKOMO
   ============================================ */
.takomo {
  position: relative;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.takomo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/products/301MB.jpg') center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.takomo .container {
  position: relative;
  z-index: 1;
}

.takomo-content {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

.takomo .section-header {
  text-align: center;
}

.takomo-logo-wrap {
  margin-bottom: 20px;
}

.takomo-logo {
  height: 48px;
  width: auto;
  margin: 0 auto;
  content: url('../images/logos/Takomo-Logo.png');
}

.takomo .section-label {
  color: var(--color-primary);
  background: rgba(232, 116, 26, 0.15);
}

.takomo .section-description {
  color: rgba(255, 255, 255, 0.75);
}

.takomo-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 32px;
}

.takomo-subheading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  text-align: center;
}

.takomo-models {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.takomo-model {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.takomo-model:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.takomo-offers {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 36px;
}

.takomo-offer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.takomo-offer:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.takomo-offer-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.takomo-offer-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 6px;
}

.takomo-offer-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.takomo-offer {
  position: relative;
}

.takomo-offer-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  position: absolute;
  top: 24px;
  right: 24px;
  height: 64px;
}

.takomo-price-old {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.takomo-price-new {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.takomo-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.takomo-image {
  display: none;
}

/* ============================================
   NEWS & EVENTS (HOME PAGE INLINE)
   ============================================ */
.news-events {
  background: var(--color-bg);
}

/* Tabs — mirrors .resources-tabs */
.ne-home-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.ne-home-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.ne-home-tab:hover {
  color: var(--color-text);
}

.ne-home-tab.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* --- View toggle row (Cards/Tiles + Active/Past) --- */
.ne-view-toggles {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 16px;
}
.ne-toggle-group {
  display: inline-flex;
  background: var(--color-bg-alt, #f5f5f5);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.ne-toggle-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light, #666);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ne-toggle-btn.active {
  background: var(--color-white, #fff);
  color: var(--color-text, #333);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.ne-toggle-btn:hover:not(.active) {
  color: var(--color-text, #333);
}

/* --- Leaderboards tab: desktop only --- */
/* --- Tiles view (compact Trading Post style) --- */
.ne-home-grid.tiles-view {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  overflow: visible !important;
  scroll-snap-type: none !important;
  max-height: 600px;
  overflow-y: auto;
  padding: 4px;
}
/* Hide the full-size cards, show tile cards */
.ne-home-grid.tiles-view .ne-home-card { display: none !important; }
.ne-tile-card { display: none; }
.ne-home-grid.tiles-view .ne-tile-card {
  display: flex !important;
  flex-direction: row;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.ne-home-grid.tiles-view .ne-tile-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(232, 116, 26, 0.25);
}
.ne-tile-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.ne-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ne-tile-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  width: 100%;
  height: 100%;
}
.ne-tile-info {
  flex: 1;
  min-width: 0;
  padding: 6px 12px 2px;
  display: flex;
  flex-direction: column;
}
.ne-tile-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ne-tile-meta {
  display: block;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.ne-tile-meta-sub {
  font-size: 0.72rem;
  margin-bottom: 3px;
}
.ne-tile-pills {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-top: auto;
  justify-content: flex-start;
}
.ne-tile-pills .ne-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.2;
}

/* Hide scroll arrows and dots in tiles view */
.ne-home-scroll-wrap.tiles-active .ne-home-scroll-arrow {
  display: none !important;
}
.tiles-active + .scroll-dots {
  display: none !important;
}

/* Past items in main grid */
.ne-home-card.past-item,
.ne-tile-card.past-item {
  opacity: 0.7;
}

/* Scroll wrapper — mirrors .resources-scroll-wrap */
.ne-home-scroll-wrap {
  position: relative;
}

.ne-home-grid {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.ne-home-grid .ne-home-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

/* Scroll arrows — mirrors resources arrows */
.ne-home-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 16px var(--color-shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  color: var(--color-text);
}

.ne-home-scroll-arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(232, 116, 26, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.ne-home-arrow-left {
  left: -22px;
}

.ne-home-arrow-right {
  right: -22px;
}

.ne-home-scroll-arrow.hidden {
  display: none;
}

.ne-home-card-ph {
  opacity: 0.65;
}

/* Card — mirrors .resource-card */
.ne-home-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ne-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-md);
}

.ne-home-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.ne-home-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ne-home-card-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

/* Type pill overlay on card photo */
.ne-card-img-pills {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ne-card-img-pills .ne-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* News category pill colors */
.ne-badge-newscat { font-size: 0.68rem; font-weight: 600; border-radius: 20px; padding: 3px 10px; }
.ne-badge-newscat-announcement { background: #1565C0; color: #fff; }
.ne-badge-newscat-update { background: #6A1B9A; color: #fff; }
.ne-badge-newscat-promotion { background: #E65100; color: #fff; }
.ne-badge-newscat-tournament_results { background: #2E7D32; color: #fff; }
.ne-badge-newscat-new_course_drop { background: #00838F; color: #fff; }

/* Days-left pill overlay on bottom-left of card photo */
.ne-card-img-bottom-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}
.ne-card-img-bottom-pill .ne-deadline-pill {
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.ne-home-card-body {
  padding: 24px 24px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* Share button on event cards */
.ne-card-share-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0.8;
  z-index: 5;
}
.ne-home-card:hover .ne-card-share-btn {
  opacity: 1;
}
.ne-card-share-btn:hover {
  background: var(--color-primary-dark, #c5620f);
  color: var(--color-white);
  opacity: 1;
}
.ne-card-share-btn:focus-visible {
  opacity: 1;
}

.ne-home-card-bottom {
  margin-top: auto;
}

.ne-home-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.ne-home-card-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ne-home-card-header .ne-badge {
  margin-bottom: 0;
}

.ne-home-card-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.ne-home-card-info-row {
  margin-top: 16px;
}
.ne-home-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.ne-home-card-value {
  font-size: 0.82rem;
  color: var(--color-text);
}
.ne-home-card-value .ne-deadline-pill {
  margin-left: 6px;
  vertical-align: middle;
}

.ne-home-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-home-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-home-card-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.ne-home-card-capacity {
  margin-top: 8px;
}

.ne-home-capacity-bar {
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.ne-home-capacity-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.ne-home-capacity-fill.full {
  background: #E53935;
}

/* Empty state */
.ne-home-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.ne-home-empty.hidden {
  display: none;
}

/* ============================================
   RESOURCES
   ============================================ */
.resources {
  background: var(--color-bg-alt);
}

/* Resources Tabs */
.resources-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.resources-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.resources-tab:hover {
  color: var(--color-text);
}

.resources-tab.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* Resources Panels */
.resources-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

/* Resources Scroll Wrapper */
.resources-scroll-wrap {
  position: relative;
}

.resources-grid {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.resources-grid .resource-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.resources-grid .resource-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Resources Scroll Arrows */
.resources-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 16px var(--color-shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  color: var(--color-text);
}

.resources-scroll-arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(232, 116, 26, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.resources-arrow-left {
  left: -22px;
}

.resources-arrow-right {
  right: -22px;
}

.resources-scroll-arrow.hidden {
  display: none;
}

/* Resource Card */
.resource-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-md);
}

.resource-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.resource-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.resource-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  overflow: hidden;
}

.resource-thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.resource-thumb:hover img {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 0.85;
}

.resource-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.resource-thumb:hover .resource-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.resource-info {
  padding: 24px;
}

.resource-info h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2.6em; /* 2 lines × 1.3 line-height — aligns descriptions across cards */
}

.resource-info p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.resource-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

.resource-doc-link:hover {
  color: var(--color-primary-light);
  gap: 8px;
}

.resource-doc-link svg {
  flex-shrink: 0;
}

/* Resource Placeholder Card */
.resource-placeholder-img {
  width: 100%;
  padding-top: 56.25%;
  background: var(--color-bg-alt);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-placeholder-img svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.resource-placeholder {
  opacity: 0.65;
}

.resource-placeholder .resource-info h4 {
  color: var(--color-text-muted);
}

.resource-placeholder .resource-info p {
  color: var(--color-text-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--color-bg-dark);
  padding: 120px 0;
}

.contact .section-label {
  background: rgba(232, 116, 26, 0.15);
  color: var(--color-accent);
}

.contact .section-header h2 {
  color: var(--color-white);
}

.contact .section-description {
  color: rgba(255, 255, 255, 0.5);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-whatsapp .contact-card-icon {
  color: #25D366;
}

.contact-email .contact-card-icon {
  color: var(--color-accent);
}

.contact-instagram .contact-card-icon {
  color: #E4405F;
}

.contact-youtube .contact-card-icon {
  color: #FF0000;
}

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  white-space: nowrap;
}

.contact-email p {
  font-size: 0.78rem;
}

.contact-card-action {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.contact-card:hover .contact-card-action {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .logo-text {
  color: var(--color-white);
}

.footer-brand > p {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll dots: hidden on desktop, shown at mobile via media query */
.scroll-dots {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .instructors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-features {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  /* --- Pricing: horizontal scroll on mobile --- */
  .pricing-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-grid-2 {
    max-width: none;
  }

  .pricing-grid .price-card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: start;
  }

  .pricing-grid-2 .price-card {
    flex: 0 0 85%;
    max-width: 400px;
  }

  /* Equal-height pricing cards with bottom-aligned buttons on mobile */
  .pricing-grid-equal .price-card {
    display: flex;
    flex-direction: column;
  }

  .pricing-grid-equal .price-card .btn {
    margin-top: auto;
  }

  .price-card-featured {
    transform: none;
  }

  .price-card-featured:hover {
    transform: translateY(-4px);
  }

  /* --- Studios: horizontal scroll on mobile --- */
  .locations-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .locations-grid::-webkit-scrollbar {
    display: none;
  }

  .locations-grid .location-card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }

  .locations-grid .location-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .locations-grid .location-features {
    flex: 1;
  }

  .locations-grid .location-content .btn {
    margin-top: auto;
  }

  .locations-grid .location-subtitle {
    min-height: 3.4em;
  }

  .locations-grid .location-specs {
    align-items: center;
  }

  /* --- Tutorials: horizontal scroll on mobile --- */
  .resources-grid {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .resources-grid::-webkit-scrollbar {
    display: none;
  }

  .resources-grid .resource-card {
    flex: 0 0 80%;
    max-width: 340px;
    scroll-snap-align: start;
  }

  .resources-scroll-arrow {
    display: none !important;
  }

  /* --- News & Events: horizontal scroll on mobile --- */
  .ne-home-grid {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .ne-home-grid::-webkit-scrollbar {
    display: none;
  }

  .ne-home-grid .ne-home-card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: start;
  }

  .ne-home-scroll-arrow {
    display: none !important;
  }

  /* Tiles view on mobile — single column */
  .ne-home-grid.tiles-view {
    grid-template-columns: 1fr !important;
    max-height: 450px;
  }

  /* Toggle buttons on mobile */
  .ne-view-toggles {
    gap: 8px;
  }
  .ne-toggle-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  /* --- Instructors: horizontal scroll on mobile --- */
  .instructors-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .instructors-grid::-webkit-scrollbar {
    display: none;
  }

  .instructors-grid .instructor-card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }

  .instructors-grid .instructor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .instructors-grid .instructor-info .btn {
    margin-top: auto;
  }

  /* --- Scroll indicator dots (mobile carousels) --- */
  .scroll-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
  }

  .scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .scroll-dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
  }

  /* Takomo mobile adjustments */
  .takomo::before {
    background-image: url('../images/products/301CB.jpg');
  }

  .takomo-cta-buttons {
    flex-wrap: nowrap;
  }

  .takomo-cta-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .takomo-offers {
    flex-direction: column;
  }

  .takomo-offer {
    flex-direction: row;
  }

  .takomo-offer-price {
    position: static;
    height: auto;
  }

  .takomo-models {
    grid-template-columns: repeat(2, auto);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
  }

  .footer-logo-lg {
    height: 97px !important;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col-nav2 h4 {
    visibility: hidden;
  }

  .instructor-modal-body {
    flex-direction: column;
  }

  .instructor-modal-photo {
    width: 100%;
    height: 240px;
  }

  .instructor-modal-photo img {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    object-position: center center !important;
  }

  /* --- Event modal responsive --- */
  .event-modal {
    max-width: 90%;
  }

  .event-modal-content {
    padding: 24px 20px;
  }

  .event-modal-content h3 {
    font-size: 1.3rem;
  }

  .event-modal-meta {
    flex-direction: column;
    gap: 8px;
  }

  /* --- Auth modal responsive --- */
  .auth-modal {
    max-width: 90%;
  }

  .auth-modal-content {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .gallery-backdrop {
    padding: 16px;
  }

  .gallery-img {
    height: 280px;
  }

  .gallery-description {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.82rem;
    padding: 12px 16px;
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .section {
    padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* --- Home page: show account icon on mobile next to hamburger --- */
  .nav-container .sp-account-icon {
    order: 0;
    margin-left: 8px;
  }

  .sp-account-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .sp-account-btn svg {
    width: 19px;
    height: 19px;
  }

  /* --- Mobile navbar layout: hamburger left, logo center, lang right --- */
  .nav-container {
    position: relative;
  }

  .nav-container .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-container .mobile-toggle {
    order: -1;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    width: 240px;
    background: linear-gradient(165deg, rgba(32, 32, 36, 0.98) 0%, rgba(22, 22, 26, 0.99) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border: none;
    gap: 0;
    animation: menuSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .nav-links.open li {
    text-align: center;
  }

  .nav-links.open a {
    padding: 14px 0;
    margin: 3px 24px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    display: block;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.open li:last-child a {
    border-bottom: none;
  }

  .nav-links.open a:hover,
  .nav-links.open a.active {
    color: var(--color-primary);
    background: transparent;
  }

  /* Nav dropdown mobile */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a {
    padding: 12px 0 !important;
    margin: 0 24px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-menu a:hover {
    color: var(--color-primary) !important;
    background: transparent !important;
  }

  .nav-dropdown-toggle {
    justify-content: center;
  }

  /* Contact button inside mobile menu — bright solid orange */
  .nav-links.open .nav-contact-item a {
    display: block;
    margin: 10px 48px 4px;
    padding: 9px 0;
    background: #E8741A !important;
    color: #fff !important;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    border-bottom: none;
    letter-spacing: 0.03em;
  }
  .nav-links.open .nav-contact-item a:hover {
    background: #d06818 !important;
    color: #fff !important;
  }

  .hero {
    padding-top: clamp(144px, 17.6vh, 192px);
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
  }

  .hero-stat {
    text-align: center;
    min-width: 0;
    flex: 1;
  }

  .hero-stat-number {
    font-size: 1.8rem;
  }

  .hero-stat-label {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .hero-stat-divider {
    height: 30px;
    flex-shrink: 0;
  }

  .pricing-tabs {
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
  }

  .pricing-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
    border-radius: var(--radius-md);
  }

  .instructor-option {
    padding: 6px 12px;
    font-size: 0.68rem;
  }

  .resources-tabs {
    max-width: 100%;
    flex-wrap: nowrap;
  }

  .resources-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.82rem;
    text-align: center;
  }

  .ne-home-tabs {
    max-width: 100%;
    flex-wrap: nowrap;
  }

  .ne-home-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.82rem;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 12px;
  }

  .contact-card {
    padding: 32px 16px;
    min-width: 0;
    overflow: hidden;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .contact-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .contact-card h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .contact-card p {
    font-size: 0.7rem;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
  }

  .contact-card-action {
    font-size: 0.78rem;
    padding: 6px 16px;
  }

  .contact {
    padding: 80px 0;
  }

  .hero-scroll {
    display: none;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 600px) {
  .gallery-modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
  }

  .gallery-img {
    height: 220px;
  }

  .gallery-footer {
    padding: 16px 20px;
  }

  .instructor-modal {
    max-width: 100%;
    margin: 12px;
  }

  .instructor-modal-content {
    padding: 24px 20px;
  }

  /* --- Event modal small screens --- */
  .event-modal-backdrop {
    padding: 12px;
  }

  .event-modal {
    max-width: 100%;
    overflow: hidden;
  }

  .event-modal-content {
    padding: 20px 16px;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
  }

  .event-modal-content h3 {
    font-size: 1.15rem;
  }

  .event-modal-meta-item {
    font-size: 0.82rem;
  }

  .event-modal-sections .modal-section h4 {
    font-size: 0.88rem;
  }

  .event-modal-sections .modal-section p,
  .event-modal-sections .modal-section div {
    font-size: 0.88rem;
    overflow: hidden;
  }

  /* --- Auth modal small screens --- */
  .auth-modal-backdrop {
    padding: 12px;
  }

  .auth-modal {
    max-width: 100%;
  }

  .auth-modal-content {
    padding: 24px 16px;
  }

  .auth-modal-content h3 {
    font-size: 1.1rem;
  }

  .auth-modal-buttons {
    flex-direction: column;
  }

  .auth-field input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

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

  .hero {
    padding-top: 128px;
    padding-bottom: 60px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .hero-stat-divider {
    height: 24px;
  }

  .hero-actions {
    flex-direction: row;
    margin-bottom: 48px;
  }

  .hero-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.88rem;
  }


  .location-specs {
    flex-wrap: wrap;
    gap: 16px;
  }

  .spec-total {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    flex-basis: 100%;
  }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 5px 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-option {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.lang-option.lang-active {
  color: var(--color-white);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile: lang toggle pushed right */
@media (max-width: 900px) {
  .lang-toggle {
    margin-left: auto;
  }
}

/* ============================================
   CHINESE FONT OVERRIDES
   ============================================ */
html[lang="zh-Hant"] body {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3,
html[lang="zh-Hant"] h4 {
  font-family: 'Noto Sans TC', 'Playfair Display', Georgia, serif;
}

html[lang="zh-Hant"] .hero h1 {
  font-family: 'Noto Sans TC', 'Teko', sans-serif;
}

html[lang="zh-Hant"] .btn,
html[lang="zh-Hant"] .pricing-tab,
html[lang="zh-Hant"] .resources-tab,
html[lang="zh-Hant"] .lang-option,
html[lang="zh-Hant"] .section-label,
html[lang="zh-Hant"] .footer-col h4,
html[lang="zh-Hant"] .modal-section h4,
html[lang="zh-Hant"] .takomo-subheading {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   TERMS OF SERVICE PAGE
   ============================================ */

/* --- Terms Nav --- */
.terms-nav-spacer {
  flex: 1;
}

/* --- Terms Hero / Header --- */
.terms-hero {
  padding: 160px 0 60px;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.terms-hero .section-header {
  text-align: left;
  max-width: 100%;
}

.terms-hero .section-label {
  display: none;
}

.terms-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.terms-updated {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-bottom: 8px;
}

.terms-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7) !important;
  max-width: 680px;
}

/* --- Terms Body --- */
.terms-body {
  padding: 60px 0 100px;
  background: var(--color-bg);
}

.terms-content {
  max-width: 820px;
}

/* Language show/hide */
.terms-content-zh {
  display: none;
}

html[lang="zh-Hant"] .terms-content-en {
  display: none;
}

html[lang="zh-Hant"] .terms-content-zh {
  display: block;
}

/* --- Terms Sections --- */
.terms-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 20px;
  color: var(--color-text);
}

.terms-section h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--color-text);
}

/* --- Terms Lists --- */
.terms-section > ul {
  list-style: none;
  padding: 0;
}

.terms-section > ul > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.terms-section > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Nested lists */
.terms-section ul ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.terms-section ul ul > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.75;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.terms-section ul ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text-muted);
  background: transparent;
}

/* --- Terms Important (Disclaimer) --- */
.terms-important {
  background: var(--color-primary-pale);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 16px;
  margin-bottom: 8px;
}

.terms-important p {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
}

/* --- Terms Examples --- */
.terms-example {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.terms-example p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* --- Highlighted Policy Text --- */
.terms-highlight {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Footer Terms Link --- */
.footer-terms-link {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  transition: var(--transition);
}

.footer-terms-link:hover {
  color: var(--color-primary);
}

/* --- Terms Page Responsive --- */
@media (max-width: 768px) {
  .terms-hero {
    padding: 120px 0 40px;
  }

  .terms-body {
    padding: 40px 0 60px;
  }

  .terms-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .terms-section h2 {
    font-size: 1.3rem;
  }

  .terms-important {
    padding: 16px 18px;
  }

  .terms-example {
    padding: 12px 14px;
  }
}


/* ============================================
   TRADING POST PAGE
   ============================================ */

/* --- Trading Post Nav --- */
.tp-nav-spacer {
  flex: 1;
}

.tp-back-btn {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-size: 0.85rem;
  padding: 8px 18px;
  margin-right: 12px;
}

.tp-back-btn:hover {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  background: rgba(232, 116, 26, 0.1) !important;
}

.tp-login-btn,
.tp-register-btn {
  margin-right: 8px;
}

.tp-login-btn {
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.tp-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 12px;
}

.tp-username {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* --- Trading Post Hero (matches Studios section) --- */
.tp-hero {
  padding: 140px 0 48px;
  background: var(--color-bg-alt);
}

.tp-hero .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.tp-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.tp-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Trading Post Body --- */
.tp-body {
  padding: 48px 0 100px;
  background: var(--color-bg);
  min-height: 60vh;
}

/* --- Action Bar (Tabs + Create Button) --- */
.tp-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  align-self: stretch;
}

.tp-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
}

.tp-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tp-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tp-tab:hover {
  color: var(--color-text);
}

.tp-tab.active {
  background: var(--color-bg-dark);
  color: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* --- Trading Post Search Bar --- */
.tp-search-bar {
  flex: 1;
  min-width: 0;
}
.tp-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-white);
  transition: var(--transition);
}
.tp-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 116, 26, 0.15);
}

/* --- Trading Post Listing Card (uses ma-card classes) --- */
.tp-listing-card {
  cursor: pointer;
  transition: var(--transition);
}
.tp-listing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Offer button on Trading Post cards */
.tp-compact-offer-btn {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border-color: var(--color-primary) !important;
  font-weight: 600;
}
.tp-compact-offer-btn:hover {
  background: var(--color-primary-hover, #d06a1a) !important;
}

/* WhatsApp button on Shots Factory Store cards */
.tp-wa-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0 !important;
  text-decoration: none !important;
  transition: var(--transition);
}
.tp-wa-btn:hover {
  background: #1ebe57 !important;
  transform: scale(1.1);
}
.tp-wa-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Category tabs inside collapsible sections */
.tp-section-tabs {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tp-section-tabs::-webkit-scrollbar {
  display: none;
}
.tp-tab-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.tp-subtabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 2px;
}
.tp-subtab {
  padding: 4px 10px;
  font-size: 0.72rem;
  border: 1px solid #ddd;
  border-left: none;
  background: #f9f9f9;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.tp-subtab:first-child {
  border-left: 1px solid #ddd;
  border-radius: 14px 0 0 14px;
}
.tp-subtab:last-child {
  border-radius: 0 14px 14px 0;
}
.tp-subtab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.tp-subtab:hover:not(.active) {
  background: #eee;
}

/* Section cards container — scrollable within sections */
.tp-section-cards {
  max-height: 600px;
  max-width: none;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  padding: 4px;
}

/* Sold card state in Trading Post */
.tp-listing-card.tp-card-sold {
  opacity: 0.7;
}

/* Legacy classes kept for detail modal compatibility */
.tp-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-sold-overlay span {
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-full);
}

.tp-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-card-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.tp-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tp-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-card-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  min-height: 1.4em;
}

.tp-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  min-height: 28px;
}

/* Condition Badge */
.tp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.tp-badge-brand-new { background: #E8F5E9; color: #2E7D32; }
.tp-badge-like-new { background: #E3F2FD; color: #1565C0; }
.tp-badge-lightly-used { background: #FFF8E1; color: #F57F17; }
.tp-badge-well-used { background: #FFF3E0; color: #E65100; }
.tp-badge-heavily-used { background: #FFEBEE; color: #C62828; }
.tp-badge-trade { background: #F3E5F5; color: #7B1FA2; font-size: 0.7rem; }
.tp-badge-stale { background: #FFF3E0; color: #E65100; animation: pulse-stale 2s infinite; }
@keyframes pulse-stale { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Sold label button on card */
.tp-sold-label {
  background: var(--color-bg-alt) !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border) !important;
  cursor: default !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.tp-card-actions {
  margin-top: auto;
  padding-top: 4px;
}

/* --- Empty State --- */
.tp-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* --- Modals (shared) --- */
.tp-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.tp-modal-backdrop.active {
  display: flex;
}

.tp-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.3s ease;
  padding: 36px 32px;
}

.tp-modal-lg { max-width: 680px; }
.tp-modal-sm { max-width: 400px; }

/* Signups detail modal — wider & taller */
.tp-modal-signups {
  max-width: 920px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.tp-modal-signups #adminEventDetailContent {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Compact header inside signups modal */
.admin-event-detail-header {
  flex-shrink: 0;
  padding-bottom: 8px;
  padding-right: 32px;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  margin-bottom: 8px;
}
.admin-event-detail-header h3 {
  font-size: 1rem !important;
  margin: 0 !important;
}
.admin-event-detail-header p {
  font-size: 0.78rem !important;
  margin-bottom: 0 !important;
}

/* Scrollable signups area */
#adminEventSignupsTable {
  overflow: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Compact section toggles inside signups & activity log */
#adminEventSignupsTable .ma-section-toggle,
#adminEventActivityLog .ma-section-toggle {
  padding: 6px 12px;
  font-size: 0.8rem;
}
#adminEventSignupsTable .ma-section-body {
  padding: 0;
  max-height: 50vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#adminEventActivityLog .ma-section-body {
  padding: 0;
  max-height: 35vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#adminEventSignupsTable .ma-listing-section,
#adminEventActivityLog .ma-listing-section {
  margin-bottom: 4px;
}

/* Compact tables inside signups & activity log */
#adminEventSignupsTable .admin-table,
#adminEventActivityLog .admin-table {
  min-width: 620px;
  font-size: 0.75rem;
}
#adminEventSignupsTable .admin-table th,
#adminEventSignupsTable .admin-table td {
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1.3;
}
#adminEventSignupsTable .admin-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
#adminEventSignupsTable .signup-type-pill,
#adminEventSignupsTable .signup-status-pill {
  padding: 1px 7px;
  font-size: 0.65rem;
}
#adminEventSignupsTable .admin-action-btn {
  font-size: 0.68rem;
  padding: 2px 8px;
}
#adminEventSignupsTable .guest-row td {
  font-size: 0.72rem;
}

/* Sticky first two columns (Type + Name) on horizontal scroll */
#adminEventSignupsTable .admin-table th:nth-child(1),
#adminEventSignupsTable .admin-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
#adminEventSignupsTable .admin-table th:nth-child(2),
#adminEventSignupsTable .admin-table td:nth-child(2) {
  position: sticky;
  left: 56px;
  z-index: 2;
  background: #fff;
}
#adminEventSignupsTable .admin-table th:nth-child(1),
#adminEventSignupsTable .admin-table th:nth-child(2) {
  z-index: 3;
}
#adminEventSignupsTable .admin-table td:nth-child(2)::after,
#adminEventSignupsTable .admin-table th:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -6px;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}

.tp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--color-text-muted);
}

.tp-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.tp-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* Fix admin post modal right-side border radius with scroll */
#adminPostModal .tp-modal {
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}

#adminListingPreview .tp-modal {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#adminListingPreview .tp-modal #adminListingPreviewContent {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
#adminPostModal .tp-modal h3 {
  flex-shrink: 0;
}
#adminPostModal .tp-form {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
}

/* --- Forms --- */
.tp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tp-form-row .tp-form-group { min-width: 0; }
.tp-form-row input { min-width: 0; }

.tp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tp-form-group input,
.tp-form-group select,
.tp-form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--color-white);
  color: var(--color-text);
}

.tp-form-group input:focus,
.tp-form-group select:focus,
.tp-form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 116, 26, 0.15);
}

.tp-form-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --- Password label hint (e.g. "(6-20 characters)") --- */
.sf-label-hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.tp-form-footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.tp-form-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

.tp-char-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* --- Cash/Trade Toggle --- */
.tp-toggle {
  display: inline-flex;
  gap: 2px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.tp-toggle-opt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.tp-toggle-opt.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-shadow);
  font-weight: 600;
}

/* --- Photo Upload Grid --- */
.tp-photo-upload {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tp-photo-slot {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.tp-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-photo-add {
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.tp-photo-add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tp-photo-add span {
  font-size: 1.4rem;
  line-height: 1;
}

.tp-photo-add small {
  font-size: 0.65rem;
}

.tp-photo-upload.drag-over {
  outline: 2px dashed var(--color-primary);
  outline-offset: -2px;
  background: rgba(232, 116, 26, 0.05);
  border-radius: var(--radius-sm);
}

/* (Two-column name row removed — names are now on separate rows) */

/* --- Detail Modal Content --- */
#tpDetailModal .tp-modal,
#maDetailModal .tp-modal {
  padding-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* Fix: allow scrolling inside Trading Post detail modal */
#tpDetailModal .tp-detail-content {
  overflow-y: auto;
  max-height: calc(90vh - 40px);
  padding: 0 32px 32px;
}

#tpDetailModal .tp-modal-close,
#maDetailModal .tp-modal-close {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#tpDetailModal .tp-modal-close:hover,
#maDetailModal .tp-modal-close:hover {
  background: var(--color-white);
}

.tp-detail-content {
  padding-top: 24px;
}

.tp-detail-gallery {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tp-detail-main-img {
  flex: 1;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.tp-detail-thumb.active,
.tp-detail-thumb:hover {
  border-color: var(--color-primary);
}

/* --- Photo Lightbox --- */
.tp-detail-main-img {
  cursor: pointer;
  position: relative;
}

.tp-detail-main-img::after {
  content: '\2922';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tp-detail-main-img:hover::after {
  opacity: 1;
}

.tp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tp-lightbox.active {
  display: flex;
}

.tp-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  user-select: none;
}

.tp-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 5001;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.tp-lightbox-close:hover { opacity: 1; }

.tp-lightbox-prev,
.tp-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5001;
}

.tp-lightbox-prev:hover,
.tp-lightbox-next:hover { background: rgba(255,255,255,0.3); }

.tp-lightbox-prev { left: 16px; }
.tp-lightbox-next { right: 16px; }

.tp-lightbox-prev.visible,
.tp-lightbox-next.visible { display: flex; }

.tp-detail-info h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.tp-detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.tp-detail-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}

.tp-detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Detail modal action buttons — side by side */
.tp-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tp-detail-actions .btn {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  padding: 10px 16px;
  white-space: nowrap;
}
.tp-detail-actions .tp-detail-wa-btn {
  background: #25D366;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.tp-detail-actions .tp-detail-wa-btn:hover {
  background: #1ebe57;
}
.tp-detail-actions .tp-sold-label {
  background: #f0f0f0;
  color: #888;
  border: none;
}

.tp-detail-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
}

/* --- Toast Notification --- */
.tp-toast {
  position: fixed;
  top: 36%;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 420px;
  letter-spacing: 0.01em;
}

.tp-toast p {
  color: inherit;
  margin: 0;
}

.tp-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.tp-toast.tp-toast-success {
  background: #16a34a;
}

.tp-toast.tp-toast-error {
  background: #dc2626;
}

/* --- Listing Placeholder Colors --- */
.tp-placeholder-clubs { background: #4A6741; }
.tp-placeholder-bags { background: #2C5282; }
.tp-placeholder-training { background: #744210; }
.tp-placeholder-accessories { background: #553C9A; }

/* --- Account icon + dropdown (visible on all screen sizes) --- */
.sp-account-icon {
  position: relative;
  margin-right: 0;
}

.sp-account-btn {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition);
}

.sp-account-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.sp-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  list-style: none;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.sp-account-menu.open {
  display: block;
}

.sp-account-menu li {
  padding: 0;
}

.sp-account-menu button,
.sp-account-menu a {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.sp-account-menu button:hover,
.sp-account-menu a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.sp-account-menu .sp-menu-name {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 20px 6px;
  cursor: default;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-account-menu .sp-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* Desktop: right-align the account dropdown */
@media (min-width: 901px) {
  .sp-account-menu {
    left: auto;
    right: 0;
  }
}

/* --- Home pill button in navbar --- */
.sp-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-primary);
  text-decoration: none;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  margin-right: 12px;
  transition: var(--transition);
}

.sp-back-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Trading Post Responsive --- */
@media (max-width: 900px) {
  .tp-section-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .tp-hero {
    padding: 100px 0 28px;
  }

  .tp-hero .section-header {
    margin-bottom: 20px;
  }

  .tp-body {
    padding: 32px 0 60px;
  }

  /* --- Action bar: search + create button --- */
  .tp-action-bar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .tp-create-btn {
    flex-shrink: 0;
    font-size: 0.72rem !important;
    padding: 7px 12px !important;
    white-space: nowrap;
  }

  .tp-search-input {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .tp-section-cards {
    max-height: 450px;
  }

  .tp-section-tabs .tp-tab {
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .tp-section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .tp-subtab {
    padding: 3px 8px;
    font-size: 0.65rem;
  }

  /* --- Sub-page mobile nav: match main site navbar height --- */
  .trading-post-page .navbar.scrolled,
  .terms-page .navbar.scrolled {
    padding: 20px 0;
  }

  /* --- Sub-page mobile nav: Home+account left, logo center, lang right --- */
  .tp-back-btn,
  .ne-back-btn {
    display: none;
  }

  .sp-back-link {
    order: -2;
    padding: 8px 16px;
    font-size: 0.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 36px;
    box-sizing: border-box;
    margin-right: 8px;
    margin-left: 0;
  }

  .sp-account-icon {
    order: -1;
    margin-right: auto;
  }

  .tp-nav-spacer,
  .terms-nav-spacer {
    display: none;
  }
}

@media (max-width: 600px) {
  .tp-section-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .tp-modal {
    padding: 24px 20px;
    margin: 16px;
  }

  .tp-detail-gallery {
    flex-direction: column;
  }

  .tp-detail-thumbs {
    flex-direction: row;
  }

  #tpDetailModal .tp-detail-content {
    padding: 0 20px 24px;
    max-height: calc(90vh - 50px);
  }
}

/* (Inline auth buttons removed – auth is handled via account icon dropdown) */

/* =============================================================
   NEWS & EVENTS PAGE
   ============================================================= */

.ne-back-btn {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-size: 0.85rem;
  padding: 8px 18px;
  margin-right: 12px;
}

.ne-back-btn:hover {
  background: rgba(232, 116, 26, 0.1) !important;
}

/* --- Hero (matches Studios section) --- */
.ne-hero {
  padding: 140px 0 48px;
  background: var(--color-bg-alt);
}

.ne-hero .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.ne-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.ne-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Body --- */
.ne-body {
  padding: 48px 0 80px;
  background: var(--color-bg);
  min-height: 60vh;
}

/* --- Tabs (matching TP tab bar) --- */
.ne-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
}

.ne-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ne-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.ne-tab:hover {
  color: var(--color-text);
}

.ne-tab.active {
  background: var(--color-bg-dark);
  color: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* --- Grid --- */
.ne-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Card --- */
.ne-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ne-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-md);
}

.ne-card-image {
  width: 100%;
  height: 200px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.ne-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ne-card-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--color-bg-alt);
}

.ne-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ne-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  width: fit-content;
}

.ne-badge-news {
  background: #E3F2FD;
  color: #1565C0;
}

.ne-badge-event {
  background: #F3E5F5;
  color: #7B1FA2;
}

.ne-badge-tournament {
  background: #FFF7ED;
  color: #B7791F;
}

.ne-view-leaderboard-btn {
  font-size: 0.78rem !important;
  padding: 5px 14px !important;
}

.ne-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-card-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.ne-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.ne-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ne-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* --- Capacity Bar --- */
.ne-card-capacity {
  margin-bottom: 16px;
}

.ne-card-capacity span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 6px;
}

.ne-capacity-bar {
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.ne-capacity-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.ne-capacity-fill.full {
  background: #E53935;
}

/* --- Sign-up button --- */
.ne-card-actions {
  margin-top: auto;
}

.ne-signup-btn {
  width: 100%;
}

.ne-signup-btn.signed-up {
  background: #4CAF50 !important;
  border-color: #4CAF50 !important;
  cursor: default;
}

.ne-signup-btn.event-full {
  background: var(--color-text-muted) !important;
  border-color: var(--color-text-muted) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* --- Guest Sign-Up Modal --- */
.ne-guest-section {
  margin-bottom: 20px;
}
.ne-guest-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.ne-guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.ne-guest-name {
  font-weight: 600;
}
.ne-guest-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.ne-guest-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.ne-guest-slot-header small {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.ne-guest-entry {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}
.ne-guest-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}
.ne-guest-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0 4px;
  line-height: 1;
}
.ne-guest-remove:hover {
  color: #e53e3e;
}
.ne-guest-entry .tp-form-group {
  margin-bottom: 8px;
}
.ne-guest-entry .tp-form-group:last-child {
  margin-bottom: 0;
}
.ne-add-guest-btn {
  width: 100%;
  margin-bottom: 16px;
}

/* --- Manage Sign-Up Modal --- */
.ne-manage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ne-manage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.ne-manage-member {
  background: var(--color-bg-alt);
}
.ne-manage-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ne-manage-info small {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.ne-manage-cancel-all {
  color: #e53e3e !important;
  border-color: #e53e3e !important;
  white-space: nowrap;
}
.ne-manage-remove-guest {
  white-space: nowrap;
}

/* --- Detail Modal --- */
.ne-detail-content {
  padding-top: 24px;
}

.ne-detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.ne-detail-badge {
  margin-bottom: 12px;
}

.ne-detail-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.ne-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.ne-detail-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.ne-detail-meta-item strong {
  color: var(--color-text);
}

.ne-detail-meta-item span {
  color: var(--color-text-muted);
}

.ne-detail-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
}

.ne-detail-signup-area {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* --- Empty state --- */
.ne-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ne-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ne-hero {
    padding: 100px 0 28px;
  }

  .ne-hero .section-header {
    margin-bottom: 20px;
  }

  .ne-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .ne-tabs::-webkit-scrollbar {
    display: none;
  }

  .ne-tab {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .ne-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =============================================================
   MY ACCOUNT PAGE
   ============================================================= */
.my-account-page .navbar.scrolled,
.my-account-page .navbar {
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ma-login-required {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}
.ma-login-required .btn {
  margin-top: 16px;
}

.ma-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.ma-event-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}
.ma-event-tile {
  display: flex;
  flex-direction: row;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.ma-event-tile:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(232, 116, 26, 0.25);
}
.ne-tile-pills {
  align-items: center;
}

.ma-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ma-card {
  display: flex;
  flex-direction: row;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.ma-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(232, 116, 26, 0.25);
}

/* Thumbnail for listing cards */
.ma-card-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.ma-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ma-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-muted);
}

/* Date badge for event cards */
.ma-card-date-badge {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 8px;
}

.ma-date-month {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.ma-date-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Card body (info area next to thumb / date badge) */
.ma-card-info {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ma-card > .btn {
  flex-shrink: 0;
  align-self: center;
  margin-right: 14px;
}

.ma-card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ma-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.ma-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.ma-card-status {
  font-size: 0.82rem;
  color: #4CAF50;
  font-weight: 500;
}

.ma-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 2px;
  width: fit-content;
  white-space: nowrap;
}
.ma-status-pending { background: #FFF8E1; color: #F57F17; }
.ma-status-active { background: #E8F5E9; color: #2E7D32; }
.ma-status-sold { background: var(--color-bg-alt); color: var(--color-text-muted); }
.ma-status-rejected { background: #FFEBEE; color: #C62828; }
.ma-status-archived { background: #ECEFF1; color: #546E7A; }
.ma-status-draft { background: #FFF3E0; color: #E65100; }
/* Category pill colors - per category */
.ma-status-category { background: #E3F2FD; color: #1565C0; }
.ma-cat-clubs { background: #E8F5E9; color: #2E7D32; }
.ma-cat-bags { background: #FFF3E0; color: #E65100; }
.ma-cat-training { background: #F3E5F5; color: #7B1FA2; }
.ma-cat-tech { background: #E0F7FA; color: #00838F; }
.ma-cat-accessories { background: #FBE9E7; color: #BF360C; }
.ma-cat-shotsfactory { background: #FFF8E1; color: #F57F17; }
.ma-card-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  margin-top: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE 10+ */
}
.ma-card-pills::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.ma-subcat-pill {
  background: #ECEFF1 !important;
  color: #455A64 !important;
}

/* --- Archived listings collapsible section --- */
/* --- My Account detail modal content --- */
#maDetailModal .tp-detail-content {
  overflow-y: auto;
  max-height: calc(90vh - 40px);
  padding: 0 32px 32px;
}

#maDetailModal .tp-detail-gallery {
  margin-left: -32px;
  margin-right: -32px;
  margin-top: -20px;
  margin-bottom: 24px;
}

.ma-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* --- My Account listing sections (collapsible) --- */
.ma-listing-section {
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  overflow: hidden;
}

.ma-section-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: var(--transition);
}

.ma-section-toggle:hover {
  background: var(--color-border);
}

.ma-section-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

.ma-section-toggle.open .ma-section-chevron {
  transform: rotate(0deg);
}

.ma-section-body {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 16px;
}

.ma-section-body.open {
  display: block;
}

@media (max-width: 600px) {
  .ma-cards {
    grid-template-columns: 1fr;
  }
  .ma-card-thumb {
    width: 80px;
    height: 80px;
  }
  .ma-card-date-badge {
    width: 56px;
  }
  .ma-card-info {
    padding: 10px 12px;
  }
}

/* --- My Account: Panel Header with Create Button --- */
.ma-panel-header {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 12px;
}

/* Listing card action buttons stack */
.ma-card-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  align-self: center;
  margin-right: 10px;
}
.ma-card-action-btn {
  background: none;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text-muted, #666);
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.ma-card-action-btn:hover {
  background: var(--color-bg-alt, #f7f8fa);
  color: var(--color-text, #333);
}
.ma-card-action-btn.ma-card-sold-btn {
  color: #2E7D32;
  border-color: #2E7D32;
}
.ma-card-action-btn.ma-card-sold-btn:hover {
  background: #E8F5E9;
}
.ma-card-action-btn.ma-card-relist-btn {
  color: #2E7D32;
  border-color: #2E7D32;
}
.ma-card-action-btn.ma-card-relist-btn:hover {
  background: #E8F5E9;
}

/* Clickable listing card */
.ma-listing-card-clickable {
  cursor: pointer;
  transition: var(--transition);
}
.ma-listing-card-clickable:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Search bar */
.ma-search-bar {
  margin-bottom: 16px;
}
.ma-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.ma-search-input:focus {
  border-color: var(--color-primary, #E8741A);
  box-shadow: 0 0 0 3px rgba(232,116,26,0.1);
}

/* Filter buttons */
.ma-filter-btn {
  background: var(--color-bg-alt, #f7f8fa);
  border: 1px solid var(--color-border, #e2e8f0);
  color: var(--color-text-muted, #666);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.ma-filter-btn.active {
  background: var(--color-primary, #E8741A);
  color: #fff;
  border-color: var(--color-primary, #E8741A);
}

/* Create Listing button - exact match to Trading Post tp-create-btn (btn btn-primary btn-sm) */
.ma-create-listing-btn {
  font-size: 0.85rem;
  padding: 10px 24px;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
@media (max-width: 768px) {
  .ma-create-listing-btn {
    flex-shrink: 0;
    font-size: 0.72rem !important;
    padding: 7px 12px !important;
    white-space: nowrap;
    width: auto;
  }
}

/* --- My Account: Clickable Event Card --- */
.ma-event-card-clickable {
  cursor: pointer;
}

/* Event status row: event type pill + signup status pill */
.ma-event-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Event type pill — inline next to signup status pill, same height */
.ma-evt-type-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  line-height: 1.3;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Withdraw button — top-right corner of event card */
.ma-card-withdraw-btn.btn {
  position: absolute;
  top: 6px;
  right: 4px;
  z-index: 2;
}
.ma-evt-type-indoor { background: #EDE9FE; color: #6B21A8; }
.ma-evt-type-on-course { background: #EDE9FE; color: #6B21A8; }
.ma-evt-type-overseas { background: #EDE9FE; color: #6B21A8; }
.ma-evt-type-clinic { background: #EDE9FE; color: #6B21A8; }
.ma-evt-type-other { background: #EDE9FE; color: #6B21A8; }

/* --- My Account: Event Signed-Up Badge --- */
.ma-event-signed-badge {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

.ma-event-signup-status {
  text-align: center;
  margin-top: 16px;
}

/* --- Account Tab: Profile & Password --- */
.ma-account-section {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  max-width: 560px;
}

.ma-account-heading {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  color: var(--text-primary, #1a1a1a);
}

/* --- My Stats Section --- */
.ma-stats-section {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ma-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.ma-stats-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--color-bg-alt, #f9f9f9);
  border-radius: 10px;
}
.ma-stats-card-value {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary, #E8741A);
  line-height: 1.1;
}
.ma-stats-card-label {
  font-size: 0.78rem;
  color: var(--color-text-muted, #666);
  margin-top: 4px;
}
.ma-stats-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ma-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ma-stats-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, #666);
  border-bottom: 2px solid var(--color-border, #e2e8f0);
  white-space: nowrap;
}
.ma-stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.ma-stats-table tr:last-child td { border-bottom: none; }
.ma-stats-format-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #FFF7ED;
  color: #B7791F;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.ma-stats-position {
  font-weight: 700;
  color: var(--color-primary, #E8741A);
}
/* Highlight stat card (orange tint — matches admin summary-highlight) */
.ma-stats-card-highlight {
  background: rgba(232, 116, 26, 0.08) !important;
  border: 1px solid rgba(232, 116, 26, 0.2);
}
/* 6-column wide grid for listings stats */
.ma-stats-summary-wide {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 768px) {
  .ma-stats-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .ma-stats-summary-wide {
    grid-template-columns: repeat(3, 1fr);
  }
  .ma-stats-card { padding: 14px 8px; }
  .ma-stats-card-value { font-size: 1.5rem; }
  .ma-stats-section { padding: 20px 16px; }
}

/* --- Member Directory --- */
.md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px 0 40px;
}
.md-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.md-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.md-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary, #E8741A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.md-card-avatar-photo {
  background: none !important;
  overflow: hidden;
}
.md-card-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.md-card-info { flex: 1; min-width: 0; }
.md-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}
.md-card-role {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--color-primary, #E8741A);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}
.md-card-meta {
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
}

/* Member Detail Modal */
.md-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.md-detail-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 28px;
}
.md-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #999;
}
.md-detail-close:hover { color: #333; }
.md-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.md-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary, #E8741A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.md-detail-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.md-detail-meta {
  font-size: 0.82rem;
  color: #888;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .md-grid { grid-template-columns: 1fr; }
  .md-detail-modal { padding: 20px; max-width: 100%; }
}

/* Member Directory Toolbar */
.md-toolbar {
  margin-bottom: 16px;
}
.md-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.md-toolbar-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.md-toolbar-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.md-toolbar-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Mobile: filter controls take full width, buttons below */
@media (max-width: 768px) {
  .md-toolbar-filter-row {
    flex-wrap: wrap;
  }
  .md-toolbar-filter-controls {
    width: 100%;
  }
  .md-toolbar-filter-btns {
    width: 100%;
  }
}

/* Member Directory Filters */
.md-filter-select {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.78rem;
  background: #fff;
  cursor: pointer;
  color: #555;
}
.md-filter-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.73rem;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: all 0.15s ease;
  font-weight: 500;
}
.md-filter-btn:hover {
  border-color: #E8741A;
  color: #E8741A;
}
.md-filter-btn.md-filter-active {
  background: #E8741A;
  color: #fff;
  border-color: #E8741A;
}

/* Event Stats - Bar Chart */
.ma-event-chart {
  margin-top: 24px;
}
.ma-event-chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: #333;
}
.ma-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ma-chart-label {
  width: 90px;
  font-size: 0.82rem;
  color: #555;
  text-align: right;
  flex-shrink: 0;
}
.ma-chart-bar {
  flex: 1;
  height: 22px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.ma-chart-bar-fill {
  height: 100%;
  background: var(--color-primary, #E8741A);
  border-radius: 4px;
  min-width: 4px;
  transition: width 0.4s ease;
}
.ma-chart-count {
  width: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  flex-shrink: 0;
}

/* Event Stats - Timeline */
.ma-timeline {
  margin-top: 28px;
}
.ma-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.ma-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -10px;
  width: 2px;
  background: #e0e0e0;
}
.ma-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary, #E8741A);
  flex-shrink: 0;
  margin-top: 4px;
}
.ma-timeline-content {
  flex: 1;
  min-width: 0;
}
.ma-timeline-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ma-timeline-meta {
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
}

.ma-profile-row {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ma-profile-row:last-of-type {
  border-bottom: none;
}

.ma-profile-label {
  flex: 0 0 140px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
}

.ma-profile-value {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-primary, #1a1a1a);
}

.ma-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.ma-profile-form .tp-form-group {
  margin-bottom: 16px;
}

.ma-password-form .tp-form-group {
  margin-bottom: 16px;
}

.ma-btn-outline {
  background: transparent;
  border: 1.5px solid #ccc;
  color: #555;
  padding: 8px 20px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ma-btn-outline:hover {
  border-color: #888;
  color: #333;
}

.ma-status-approved {
  background: #E8F5E9;
  color: #2E7D32;
}

.ma-status-suspended {
  background: #FBE9E7;
  color: #C62828;
}

@media (max-width: 600px) {
  .ma-account-section {
    padding: 20px 18px;
  }
  .ma-profile-row {
    flex-direction: column;
    gap: 2px;
  }
  .ma-profile-label {
    flex: none;
    font-size: 0.78rem;
  }
}

/* =============================================================
   ADMIN DASHBOARD PAGE
   ============================================================= */

/* --- Body (no hero, goes straight to content) --- */
.admin-page {
  overflow-x: hidden;
}

.admin-body {
  padding: 140px 0 80px;
  background: var(--color-bg);
  min-height: 100vh;
}

/* --- Admin Login Required Pill --- */
.admin-access-denied {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.admin-login-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
  max-width: 440px;
  margin: 0 auto;
}

.admin-login-pill svg {
  flex-shrink: 0;
  opacity: 0.7;
  width: 20px;
  height: 20px;
}

.admin-login-pill p {
  margin: 0;
  color: inherit;
  line-height: 1.4;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header .section-label {
  font-size: 0.82rem;
  padding: 8px 22px;
}

/* --- Tabs --- */
.admin-tabs {
  display: flex;
  background: var(--color-bg-alt);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  width: fit-content;
  flex-wrap: wrap;
  gap: 2px;
}

.admin-tab {
  background: none;
  border: none;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-shadow-sm);
}

/* --- Panels --- */
.admin-panel {
  display: none;
}

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

/* --- Collapsible Sections --- */
.admin-section {
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}

.admin-section-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: var(--transition);
}

.admin-section-toggle:hover {
  background: var(--color-border);
}

.admin-section-count {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.admin-section-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

.admin-section-toggle.open .admin-section-chevron {
  transform: rotate(0deg);
}

.admin-section-body {
  display: none;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}

.admin-section-body.open {
  display: block;
}

/* Scrollbar styling for section bodies */
.admin-section-body::-webkit-scrollbar {
  width: 6px;
}
.admin-section-body::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
.admin-section-body::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
.admin-section-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-panel-header h2 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0;
}

.admin-news-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-news-action-bar .btn,
.admin-news-action-bar .admin-action-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
/* Create/Announce buttons: match action button size & shape, keep orange */
.admin-news-action-bar .btn.btn-primary.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.admin-news-action-bar .btn.btn-outline.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* --- Admin Search Bar --- */
.admin-search-bar {
  margin-bottom: 16px;
}
.admin-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  background: var(--color-white, #fff);
}
.admin-search-input:focus {
  border-color: var(--color-primary, #E8741A);
  box-shadow: 0 0 0 3px rgba(232,116,26,0.1);
}

/* --- Table (Users) --- */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tr:hover {
  background: var(--color-bg-alt);
}

/* Tables: scrollable horizontally so everything stays on one row */
#panelUsers .admin-section-body,
#panelListings .admin-section-body,
#panelNewsonly .admin-section-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* --- Action buttons --- */
.admin-action-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 4px;
  margin-bottom: 4px;
}

.admin-action-btn.approve {
  background: #E8F5E9;
  color: #2E7D32;
}

.admin-action-btn.approve:hover {
  background: #C8E6C9;
}

.admin-action-btn.reject {
  background: #FFEBEE;
  color: #C62828;
}

.admin-action-btn.reject:hover {
  background: #FFCDD2;
}

.admin-action-btn.edit {
  background: #E3F2FD;
  color: #1565C0;
}

.admin-action-btn.edit:hover {
  background: #BBDEFB;
}

.admin-action-btn.delete {
  background: #FFEBEE;
  color: #C62828;
}

.admin-action-btn.delete:hover {
  background: #FFCDD2;
}

.admin-action-btn.export {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.admin-action-btn.export:hover {
  background: var(--color-border);
}

/* --- Tournament Results Modal --- */
.results-modal {
  max-width: 720px;
  width: 95%;
}
.results-table-wrap {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
}
.results-thead {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg-alt, #f7f7f7);
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 1;
}
.results-th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.results-row {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}
.results-row:last-child { border-bottom: none; }
.results-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.results-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: var(--color-white, #fff);
  transition: border-color 0.2s;
}
.results-input:focus {
  outline: none;
  border-color: var(--color-primary, #E8741A);
}
.results-input[type="number"] {
  -moz-appearance: textfield;
  text-align: center;
}
.results-input[type="number"]::-webkit-inner-spin-button,
.results-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.results-del-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.15s;
}
.results-del-btn:hover {
  color: #e53e3e;
  background: #FFF5F5;
}
.admin-action-btn-results {
  color: var(--color-primary, #E8741A) !important;
  font-weight: 600 !important;
}

/* Public tournament results table */
.tournament-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 8px;
}
.tournament-results-table th {
  text-align: left;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted, #888);
  border-bottom: 2px solid var(--color-border, #e2e8f0);
}
.tournament-results-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.tournament-results-table .results-pos {
  font-weight: 700;
  color: var(--color-primary, #E8741A);
  width: 40px;
}
.tournament-results-table tr.podium-1 { background: #FFFBEB; }
.tournament-results-table tr.podium-2 { background: #F9FAFB; }
.tournament-results-table tr.podium-3 { background: #FFF7ED; }

/* Player autocomplete dropdown */
.player-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.player-ac-item {
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.player-ac-item:hover { background: var(--color-bg-alt, #f7f7f7); }
.player-ac-name { font-weight: 500; }
.player-ac-email { color: var(--color-text-muted, #888); font-size: 0.75rem; }
.player-ac-manual {
  color: var(--color-text-muted, #888);
  font-size: 0.78rem;
  cursor: default;
}
.player-ac-invite-link {
  color: var(--color-primary, #E8741A);
  cursor: pointer;
  text-decoration: underline;
}

.player-ac-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
}
.player-ac-registered { background: #e6ffed; color: #22863a; }
.player-ac-not-registered { background: #fff3e0; color: #e65100; }
.player-ac-divider {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.player-ac-preapproved { background: #fffbf0; }

/* Admin Add Participant autocomplete */
.admin-add-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
}
.admin-add-autocomplete-dropdown .player-ac-item {
  padding: 6px 10px;
  font-size: 0.78rem;
}
.admin-add-autocomplete-dropdown .player-ac-email {
  font-size: 0.7rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

/* Inline email prompt */
.results-email-prompt {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.results-email-input {
  flex: 1;
  font-size: 0.75rem !important;
  padding: 4px 6px !important;
}
.results-invite-btn {
  padding: 4px 10px;
  background: var(--color-primary, #E8741A);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.results-invite-btn:hover { opacity: 0.85; }

/* --- Achievement Badge Cards (stat-card style, 3x2 grid) --- */
.sf-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.sf-badge-card {
  text-align: center;
  padding: 18px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sf-badge-card-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}
.sf-badge-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.3;
}
/* Locked / unearned */
.sf-badge-card-locked {
  background: #f0f0f0;
  border-color: #ddd;
}
.sf-badge-card-locked .sf-badge-card-value {
  color: #bbb;
  font-size: 1.4rem;
}
.sf-badge-card-locked .sf-badge-card-label {
  color: #999;
}
/* Tier colours */
.sf-badge-card-bronze {
  background: #FDF2E4;
  border-color: #CD7F32;
}
.sf-badge-card-bronze .sf-badge-card-value { color: #434343; }
.sf-badge-card-bronze .sf-badge-card-label { color: #434343; }

.sf-badge-card-silver {
  background: #b7b7b7;
  border-color: #C0C0C0;
}
.sf-badge-card-silver .sf-badge-card-value { color: #000000; }
.sf-badge-card-silver .sf-badge-card-label { color: #000000; }

.sf-badge-card-gold {
  background: #eacf65;
  border-color: #FFD700;
}
.sf-badge-card-gold .sf-badge-card-value { color: #92730A; }
.sf-badge-card-gold .sf-badge-card-label { color: #92730A; }

.sf-badge-card-platinum {
  background: #d9ead3;
  border-color: #E5E4E2;
}
.sf-badge-card-platinum .sf-badge-card-value { color: #5C5C6D; }
.sf-badge-card-platinum .sf-badge-card-label { color: #5C5C6D; }

.sf-badge-card-diamond {
  background: #EFF6FF;
  border-color: #93C5FD;
}
.sf-badge-card-diamond .sf-badge-card-value { color: #1E40AF; }
.sf-badge-card-diamond .sf-badge-card-label { color: #1E40AF; }

@media (max-width: 768px) {
  .sf-badges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .sf-badge-card { padding: 14px 6px; }
  .sf-badge-card-value { font-size: 1.3rem; }
  .sf-badge-card-label { font-size: 0.68rem; }
}

/* --- Admin User Name Link --- */
.admin-user-name-link {
  color: var(--color-primary, #E8741A);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.admin-user-name-link:hover {
  text-decoration: underline;
}

/* --- Admin User Detail Popup --- */
.admin-ud-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-ud-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.admin-ud-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #999;
  z-index: 2;
}
.admin-ud-close:hover { color: #333; }
.admin-ud-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.admin-ud-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.admin-ud-meta {
  font-size: 0.82rem;
  color: #888;
}
.admin-ud-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-ud-edit-name-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.admin-ud-edit-name-btn:hover { color: var(--color-primary, #E8741A); background: #f5f5f5; }
.admin-ud-name-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-ud-name-edit input {
  font-size: 0.88rem;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 130px;
}
.admin-ud-name-edit .btn {
  font-size: 0.78rem;
  padding: 6px 14px;
}
.admin-ud-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 28px;
}
.admin-ud-tab {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.admin-ud-tab:hover { color: #333; }
.admin-ud-tab.active {
  color: var(--color-primary, #E8741A);
  border-bottom-color: var(--color-primary, #E8741A);
}
.admin-ud-body {
  padding: 20px 28px 28px;
}
.admin-ud-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.admin-ud-stat {
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px 10px;
}
.admin-ud-stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary, #E8741A);
}
.admin-ud-stat-lbl {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .admin-ud-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-ud-modal { max-width: 100%; }
  .admin-ud-header { padding: 18px 18px 12px; }
  .admin-ud-tabs { padding: 0 18px; }
  .admin-ud-body { padding: 16px 18px 20px; }
  .admin-ud-tab { padding: 10px 12px; font-size: 0.8rem; }
}

/* --- Admin status change dropdown --- */
.admin-status-select {
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  margin-left: 4px;
  transition: var(--transition);
}
.admin-status-select:hover {
  border-color: var(--color-primary);
}
.admin-status-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-lighter);
}

/* --- Admin listing category tabs --- */
.admin-listing-tabs {
  margin-bottom: 10px;
}

/* --- Admin listing table tweaks --- */
.admin-listing-table td:first-child {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
  min-width: 140px;
}

.admin-listing-table tr {
  cursor: pointer;
}

.admin-listing-table tr:hover {
  background: rgba(232, 116, 26, 0.06);
}

.admin-listing-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-listing-status.pending {
  background: #FFF8E1;
  color: #F57F17;
}

.admin-listing-status.approved {
  background: #E8F5E9;
  color: #2E7D32;
}

.admin-listing-status.rejected {
  background: #FFEBEE;
  color: #C62828;
}

.admin-listing-status.sold {
  background: #E3F2FD;
  color: #1565C0;
}

.admin-listing-status.archived {
  background: #ECEFF1;
  color: #546E7A;
}

.admin-listing-status.not_for_sale {
  background: #FFF3E0;
  color: #E65100;
}

.admin-listing-status.sold_elsewhere {
  background: #F3E8FF;
  color: #7C3AED;
}

.admin-listing-status.suspended {
  background: #FFF3E0;
  color: #E65100;
}

.admin-listing-status.removed {
  background: #ECEFF1;
  color: #546E7A;
}

/* User role badges */
.admin-listing-status.admin-role {
  background: #EDE7F6;
  color: #5E35B1;
}

.admin-listing-status.member-role {
  background: #E3F2FD;
  color: #1565C0;
}

.admin-action-btn.make-admin {
  background: #E3F2FD;
  color: #1565C0;
}
.admin-action-btn.make-admin:hover {
  background: #BBDEFB;
}

.admin-action-btn.suspend {
  background: #FFF3E0;
  color: #E65100;
}
.admin-action-btn.suspend:hover {
  background: #FFE0B2;
}

.admin-action-btn.remove-member {
  background: #FFEBEE;
  color: #C62828;
}
.admin-action-btn.remove-member:hover {
  background: #FFCDD2;
}

/* --- News list (admin panel) --- */
.admin-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.admin-news-item:hover {
  box-shadow: 0 4px 12px var(--color-shadow-sm);
}

.admin-news-item-info {
  flex: 1;
  min-width: 0;
}

.admin-news-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-news-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-news-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* --- Signups panel --- */
.admin-event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-event-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-event-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  transition: var(--transition);
}

/* Row 1: plain text action links */
.admin-evt-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-evt-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border, #e2e8f0);
  flex-wrap: nowrap;
}

.admin-evt-actions .admin-action-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted, #666);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.admin-evt-actions .admin-action-btn:hover {
  text-decoration: underline;
  color: var(--color-text, #333);
}

/* Sign-ups and Export CSV same color as other buttons */

.admin-evt-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.admin-evt-link:hover {
  text-decoration: underline;
}

.admin-evt-link-sep {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  user-select: none;
}

/* Row 2: type pill + date/time */
.admin-evt-row-type-date {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-evt-datetime {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Row 3: event name */
.admin-evt-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Row 4: location */
.admin-evt-location {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Row 5: capacity progress bar */
.admin-evt-capacity {
  margin-top: 4px;
}

.admin-evt-capacity span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}

.admin-evt-capacity-bar {
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.admin-evt-capacity-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.admin-evt-capacity-fill.full {
  background: #E53935;
}

/* Tournament cards — compact pills, 10% larger fonts */
.admin-trn-card-compact .ne-badge {
  font-size: 0.61rem;
  padding: 2px 8px;
}
.admin-trn-card-compact .admin-evt-datetime {
  font-size: 0.77rem;
}
.admin-trn-card-compact .admin-evt-title {
  font-size: 0.89rem;
}
.admin-trn-card-compact .admin-evt-location {
  font-size: 0.77rem;
}
.admin-trn-card-compact .admin-action-btn {
  font-size: 0.73rem;
}

/* Event cards — compact pills, 10% larger fonts */
.admin-evt-card-compact .ne-badge {
  font-size: 0.61rem;
  padding: 2px 8px;
}
.admin-evt-card-compact .admin-evt-datetime {
  font-size: 0.77rem;
}
.admin-evt-card-compact .admin-evt-title {
  font-size: 0.89rem;
}
.admin-evt-card-compact .admin-evt-location {
  font-size: 0.77rem;
}
.admin-evt-card-compact .admin-action-btn {
  font-size: 0.73rem;
}
.admin-evt-card-compact .admin-evt-capacity span {
  font-size: 0.73rem;
}

@media (max-width: 768px) {
  .admin-evt-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* --- Empty states --- */
.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Create/Edit News Modal --- */
.admin-create-modal .tp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-event-fields {
  display: none;
}

.admin-event-fields.show {
  display: contents;
}

/* --- Notification Settings --- */
.admin-notif-desc {
  font-size: 0.88rem;
  color: #666;
  margin: 0 0 20px;
}

.admin-notif-card {
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
}

.admin-notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.admin-notif-row:last-child {
  border-bottom: none;
}

.admin-notif-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-right: 20px;
}

.admin-notif-label strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
}

.admin-notif-label span {
  font-size: 0.8rem;
  color: #888;
}

/* Toggle switch */
.admin-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

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

.admin-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.admin-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.admin-toggle input:checked + .admin-toggle-slider {
  background-color: #2E7D32;
}

.admin-toggle input:checked + .admin-toggle-slider::before {
  transform: translateX(20px);
}

.admin-notif-actions {
  margin-top: 20px;
}

/* --- Summary Dashboard --- */
.admin-summary-dashboard {
  margin-bottom: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.admin-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.admin-summary-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-summary-card.summary-highlight {
  background: rgba(232, 116, 26, 0.08);
  border: 1px solid rgba(232, 116, 26, 0.2);
}

.admin-summary-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.admin-summary-card.summary-highlight .admin-summary-value {
  color: var(--color-primary);
}

.admin-summary-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-summary-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.admin-summary-filter label {
  font-weight: 600;
  color: var(--color-text);
}

.admin-summary-filter select {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--color-white);
}

.admin-summary-breakdown {
  max-height: 300px;
  overflow-y: auto;
}

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

@media (max-width: 480px) {
  .admin-summary-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .admin-summary-value {
    font-size: 1.1rem;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .admin-body {
    padding: 120px 0 60px;
  }

  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    gap: 4px;
    box-sizing: border-box;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    padding: 8px 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .admin-section-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-section-body .admin-table {
    min-width: 600px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .admin-news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-create-modal .tp-form-row {
    grid-template-columns: 1fr;
  }

  .admin-section-toggle {
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

/* --- Login/Register tagline --- */
.tp-form-tagline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: -4px 0 16px;
  text-align: center;
}

/* --- Remember me checkbox --- */
.tp-form-remember {
  margin-top: -4px !important;
  margin-bottom: 8px !important;
}
.sf-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-light);
  cursor: pointer;
}
.sf-remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* --- Share button on cards --- */
.tp-share-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.tp-card:hover .tp-share-btn,
.tp-share-btn:focus { opacity: 1; }

/* --- Sold price display --- */
.tp-price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.85em;
  margin-right: 6px;
}
.tp-price-sold {
  color: #2E7D32;
  font-weight: 600;
}

/* --- Share popup --- */
.sf-share-popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.sf-share-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.sf-share-menu { position: relative; background: #fff; border-radius: 12px; padding: 24px; min-width: 260px; max-width: 320px; z-index: 1; }
.sf-share-menu h4 { margin: 0 0 16px; font-size: 1.1rem; }
.sf-share-options { display: flex; flex-direction: column; gap: 8px; }
.sf-share-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #f5f5f5; border: none; cursor: pointer; text-decoration: none; color: #333; font-size: 0.92rem; transition: background 0.15s; }
.sf-share-option:hover { background: #eee; }
.sf-share-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #888; }

/* --- Admin summary custom range --- */
.admin-summary-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.admin-summary-custom-range input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* --- Admin category filter --- */
.admin-summary-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}
.sf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
}
.sf-checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
}

/* --- Label hint (Optional) --- */
.sf-label-hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* --- Rich Text Editor --- */
.sf-richtext-toolbar {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: #f5f5f5;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.sf-richtext-toolbar button {
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #444;
  min-width: 28px;
  line-height: 1;
}
.sf-richtext-toolbar button:hover {
  background: #e0e0e0;
  border-color: #ccc;
}
.sf-rt-highlight {
  background: #FFEB3B !important;
  color: #333 !important;
}
.sf-richtext-editor {
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
  outline: none;
  background: #fff;
  overflow-y: auto;
  max-height: 300px;
}
.sf-richtext-editor:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(232, 116, 26, 0.15);
}
.sf-richtext-editor ul, .sf-richtext-editor ol {
  padding-left: 20px;
  margin: 4px 0;
}

/* --- Cost rows --- */
.admin-cost-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cost-type-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.cost-dollar {
  font-weight: 600;
  color: var(--color-text-light);
}
.cost-amount-input {
  width: 100px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.admin-cost-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #e53e3e;
  cursor: pointer;
  padding: 4px 8px;
}
.admin-cost-remove:hover { color: #c53030; }

/* --- Event status badges --- */
.ne-badge-status-open { background: #C6F6D5; color: #276749; }
.ne-badge-status-complete { background: #E2E8F0; color: #4A5568; }
.ne-badge-status-canceled { background: #FED7D7; color: #9B2C2C; }

/* --- Event type badges — unique colour per type --- */
.ne-badge-etype {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #F3F4F6;
  color: #374151;
}
.ne-badge-etype-indoor { background: #DBEAFE; color: #1E40AF; }
.ne-badge-etype-on_course { background: #D1FAE5; color: #065F46; }
.ne-badge-etype-overseas { background: #FEF3C7; color: #92400E; }
.ne-badge-etype-clinic { background: #EDE9FE; color: #6B21A8; }
.ne-badge-etype-other { background: #F3F4F6; color: #374151; }

/* Tournament format colours */
.ne-badge-fmt-18_strokeplay { background: #DBEAFE; color: #1E40AF; }
.ne-badge-fmt-9_strokeplay { background: #D1FAE5; color: #065F46; }
.ne-badge-fmt-9_stableford { background: #FEF3C7; color: #92400E; }
.ne-badge-fmt-closest_to_pin { background: #FCE7F3; color: #9D174D; }

/* --- Location badge --- */
.ne-badge-location {
  background: #E6F7EE;
  color: #276749;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
}

/* --- Event modal title row (title + share) --- */
.event-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.event-modal-title-row h3 {
  margin: 0 0 12px;
  flex: 1;
}
.event-modal-share-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  cursor: pointer;
  color: var(--color-white);
  transition: background 0.2s, color 0.2s;
  padding: 0;
  opacity: 0.8;
}
.event-modal-share-btn:hover {
  background: var(--color-primary-dark, #c5620f);
  color: var(--color-white);
  opacity: 1;
}

/* --- Registration deadline pills --- */
.ne-deadline-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.ne-deadline-green { background: #C6F6D5; color: #276749; }
.ne-deadline-amber { background: #FEFCBF; color: #975A16; }
.ne-deadline-red { background: #FED7D7; color: #9B2C2C; }

.ne-home-card-deadline {
  margin-top: 6px;
}

/* Small card: deadline info row spacing */
.ne-home-card-info-deadline {
  margin-bottom: 14px;
}
.ne-home-card-info-deadline .ne-deadline-pill {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.65rem;
  padding: 2px 7px;
}

/* --- Event modal badges row --- */
.event-modal-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* --- Event modal deadline --- */
/* Event modal info rows (new standardized layout) */
.event-modal-info-row {
  margin-bottom: 12px;
}
.event-modal-info-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.event-modal-info-value {
  font-size: 0.9rem;
  color: var(--color-text);
}
.event-modal-capacity-bar-wrap {
  margin-top: 4px;
}
.event-modal-deadline-row {
  margin-bottom: 12px;
}
.event-modal-deadline-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.event-modal-deadline-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-modal-deadline-date-row .event-modal-deadline-pill {
  font-size: 0.65rem;
  padding: 2px 7px;
}

/* --- Description & other info overflow fix --- */
.event-modal-sections {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.event-modal-sections .modal-section {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.event-modal-sections .modal-section div {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-light);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.event-modal-sections .modal-section div *,
.event-modal-sections .modal-section p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}
.event-modal-sections .modal-section div ul,
.event-modal-sections .modal-section div ol {
  padding-left: 20px;
  margin: 0;
}
.event-modal-sections .modal-section div img {
  max-width: 100%;
  height: auto;
}

/* --- Event cost table --- */
.event-cost-table {
  width: 100%;
  border-collapse: collapse;
}
.event-cost-table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
}
.event-cost-table td:last-child {
  font-weight: 600;
  text-align: right;
}


/* --- Past Events section --- */
.ne-past-events {
  margin-top: 48px;
}
.ne-past-heading {
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.ne-past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ne-past-grid .ne-home-card {
  opacity: 0.75;
}

/* --- Admin filters mobile fix --- */
@media (max-width: 900px) {
  .admin-summary-filter {
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-summary-filter > label {
    flex-basis: auto;
  }
  .admin-summary-category-filter {
    flex-basis: 100%;
    gap: 2px 10px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .sf-checkbox-label {
    font-size: 0.78rem;
  }
}

/* --- Guest Sign-Up Section --- */
.guest-signup-section {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.guest-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  user-select: none;
}

.guest-toggle-label input[type="checkbox"] {
  display: none;
}

.guest-toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: background var(--transition);
}

.guest-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.guest-toggle-label input:checked + .guest-toggle-switch {
  background: var(--color-primary);
}

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

.guest-fields-wrapper {
  margin-top: 16px;
}

.guest-count-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.guest-count-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.guest-count-row select {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.guest-count-row select:focus {
  border-color: var(--color-primary);
}

.guest-entry {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.guest-entry-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.guest-entry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guest-entry-fields input {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.guest-entry-fields input:focus {
  border-color: var(--color-primary);
}

.guest-entry-fields input::placeholder {
  color: var(--color-text-muted);
}

/* --- Mobile: event card pills stack, modal adjustments --- */
@media (max-width: 768px) {
  .ne-home-card-pills {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .event-modal-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .guest-entry-fields {
    grid-template-columns: 1fr;
  }
  .guest-signup-section {
    padding: 12px;
  }
  .ne-home-card-image {
    height: 180px;
  }
  .ne-home-card-placeholder {
    height: 180px;
  }
  .ne-home-card .ne-home-card-title {
    font-size: 0.95rem;
  }
  .ne-home-card .ne-home-card-info-row {
    font-size: 0.78rem;
  }
  .ne-home-card .ne-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
  }
  .ne-home-card .ne-deadline-pill {
    font-size: 0.68rem;
  }
  .ne-view-leaderboard-btn {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
  }
}

/* ============================================
   SIGNUP STATUS PILLS (Admin Signups Table)
   ============================================ */
.signup-status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.signup-status-confirmed {
  background: #E8F5E9;
  color: #2E7D32;
}
.signup-status-waitlisted {
  background: #FFF8E1;
  color: #F57F17;
}
.signup-status-withdrew {
  background: #F5F5F5;
  color: #757575;
}
.signup-status-removed {
  background: #FFEBEE;
  color: #C62828;
}

/* Member / Guest type pills — distinct colors */
.signup-type-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.signup-type-member {
  background: #E3F2FD;
  color: #1565C0;
}
.signup-type-guest {
  background: #EDE9FE;
  color: #6B21A8;
}
.signup-type-offline {
  background: #FFF3E0;
  color: #E65100;
}

/* Guest row subtle styling */
.guest-row {
  opacity: 0.85;
}
.guest-row td {
  font-size: 0.85rem;
}

/* Enrol button accent */
.admin-action-btn.enrol-btn {
  color: #2E7D32 !important;
  font-weight: 600;
}

/* ============================================
   SIGNED-UP / WAITLISTED PILLS ON NE CARDS
   ============================================ */
.ne-signed-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #E8F5E9;
  color: #2E7D32;
  margin-top: 6px;
}
.ne-waitlisted-pill {
  background: #FFF8E1;
  color: #F57F17;
}

/* Waitlist button state */
.event-signup-btn.waitlisted {
  background: #FFF8E1 !important;
  color: #F57F17 !important;
  border-color: #F57F17 !important;
  cursor: default;
}

/* ============================================
   MY ACCOUNT — SIGNUP STATUS PILLS
   ============================================ */
.ma-signup-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
  width: fit-content;
  text-transform: uppercase;
}
.ma-signup-status-confirmed {
  background: #E8F5E9;
  color: #2E7D32;
}
.ma-signup-status-waitlisted {
  background: #FFF8E1;
  color: #F57F17;
}
.ma-signup-status-withdrew {
  background: #FED7D7;
  color: #9B2C2C;
}
.ma-signup-status-removed {
  background: #FFEBEE;
  color: #C62828;
}

/* Guest list in My Account event modal */
.ma-guest-list {
  margin-top: 12px;
  padding: 12px;
  background: #FAFAFA;
  border-radius: 8px;
}
.ma-guest-list h5 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #666;
}
.ma-guest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.ma-guest-item:last-child {
  border-bottom: none;
}
.ma-guest-name {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tournament Leaderboard Modal — smaller fonts */
#tournamentLeaderboardModal .tp-modal h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
#tournamentLeaderboardModal .tp-modal .ne-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
}
#tournamentLeaderboardModal .ne-home-card-info-row {
  font-size: 0.8rem;
}

/* Withdrawal section */
.ma-event-withdraw-section {
  margin-top: 16px;
  padding: 16px;
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 8px;
}

/* ---- Rich Text Editor toolbar ---- */
.rte-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1;
  transition: background 0.15s;
}
.rte-btn:hover { background: #eee; }
.rte-select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.75rem;
  background: #fff;
  cursor: pointer;
}

/* ---- Collapsible sections (My Stats) ---- */
.ma-collapsible { margin-top: 12px; }
.ma-collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: #f7f7f7;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text, #333);
  transition: background 0.15s;
}
.ma-collapsible-toggle:hover { background: #f0f0f0; }
.ma-collapsible-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ma-collapsible-toggle.open .ma-collapsible-chevron { transform: rotate(180deg); }
.ma-collapsible-body {
  border: 1px solid var(--color-border, #e2e8f0);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

/* ---- Monthly participation graph ---- */
.ma-graph-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ma-graph-date-range label {
  font-size: 0.78rem;
  color: var(--color-text-light, #666);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ma-graph-date-range input[type="date"] {
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 3px 8px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 6px;
  background: var(--color-white, #fff);
  color: var(--color-text, #333);
}
.ma-monthly-graph {
  padding: 8px 0;
}
.ma-monthly-graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  padding-bottom: 24px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.ma-monthly-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.ma-monthly-bar-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary, #E8741A);
  margin-bottom: 4px;
  height: 14px;
}
.ma-monthly-bar-track {
  flex: 1;
  width: 70%;
  max-width: 36px;
  display: flex;
  align-items: flex-end;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: #f0f0f0;
}
.ma-monthly-bar-fill {
  width: 100%;
  background: var(--color-primary, #E8741A);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}
.ma-monthly-bar-label {
  font-size: 0.65rem;
  color: #888;
  margin-top: 6px;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
  transform: translateY(100%);
}

/* ---- Admin form button row (Publish + Save Draft side-by-side) ---- */
.admin-form-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.admin-form-btn-row .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 16px;
}

/* ---- Global popup/modal rounded corners fix ---- */
.tp-modal,
.gallery-modal,
.instructor-modal,
.event-modal,
.auth-modal,
.results-modal,
.admin-ud-modal,
.md-detail-modal,
#adminPostModal .tp-modal,
#adminListingPreview .tp-modal,
#maCreateModal .tp-modal,
#tpDetailModal .tp-modal,
#maDetailModal .tp-modal {
  border-radius: var(--radius-xl, 16px) !important;
}

/* Mobile: keep rounded corners on modals */
@media (max-width: 600px) {
  .tp-modal,
  .gallery-modal,
  .instructor-modal,
  .event-modal,
  .auth-modal,
  .results-modal,
  .admin-ud-modal,
  .md-detail-modal {
    border-radius: var(--radius-lg, 12px) !important;
    margin: 8px;
  }
}

/* ---- Trading Post Save/Watchlist button ---- */
.tp-save-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}
.tp-save-btn.tp-saved {
  color: var(--color-primary, #E8741A);
  border-color: var(--color-primary, #E8741A);
}

/* ---- Member profile popup (My Account) ---- */
.md-profile-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 4px 0;
}
.md-profile-contact-item a {
  color: var(--color-primary, #E8741A);
  text-decoration: none;
}
.md-profile-contact-item a:hover { text-decoration: underline; }
.md-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border, #e2e8f0);
}
.md-profile-stat {
  text-align: center;
  padding: 8px 6px;
  background: #f7f7f7;
  border-radius: 8px;
}
.md-profile-stat-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary, #E8741A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-profile-stat-label {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-profile-stat-clickable:hover {
  background: #eee;
  transform: translateY(-1px);
  transition: all 0.15s;
}
@media (max-width: 600px) {
  .md-profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .md-profile-stat {
    padding: 8px 4px;
  }
  .md-profile-stat-val {
    font-size: 1.1rem;
  }
  .md-profile-stat-label {
    font-size: 0.65rem;
  }
}

/* ============ Admin Course Management ============ */
.admin-stat-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  color: #555;
}
.admin-course-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.admin-course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-course-table th {
  text-align: left;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  border-bottom: 2px solid #eee;
  white-space: nowrap;
}
.admin-course-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-course-table tr:hover {
  background: #fafafa;
}
.admin-course-table .course-thumb {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #e8e8e8;
}
.admin-course-table .course-thumb-placeholder {
  width: 56px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2d5016 0%, #1a3a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
}
.admin-course-table .course-name-cell {
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-course-table .course-actions {
  display: flex;
  gap: 4px;
}
.admin-course-table .course-actions button {
  padding: 4px 8px;
  font-size: 0.72rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.admin-course-table .course-actions button:hover {
  background: #f5f5f5;
}
.admin-course-table .course-actions .btn-del {
  color: #c00;
  border-color: #fcc;
}
.admin-course-table .course-actions .btn-del:hover {
  background: #fff0f0;
}
.admin-course-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
}
.admin-course-pagination button {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.admin-course-pagination button:hover {
  background: #f5f5f5;
}
.admin-course-pagination button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.admin-course-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
