/* ============================================
   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;
}

.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;
}

.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 {
  display: block;
}

.nav-dropdown:hover .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;
}

.nav-cta {
  font-size: 0.85rem !important;
  padding: 10px 24px !important;
}

.nav-mobile-contact {
  display: none;
}

.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-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.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%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

.event-modal-content {
  padding: 32px;
}

.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/301MB.jpg') center / cover no-repeat;
  background-attachment: fixed;
  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/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: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 360px;
  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);
}

/* 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;
}

.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;
}

.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;
}

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

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

.ne-home-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.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-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 80%;
    max-width: 340px;
    scroll-snap-align: start;
  }

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

  /* --- 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/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;
  }

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

  .event-modal-banner {
    height: 160px;
  }

  .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,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* --- 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 */
  .nav-links.open .nav-mobile-contact {
    display: block;
  }
  .nav-links.open .nav-mobile-contact a {
    display: block;
    margin: 10px 48px 4px;
    padding: 9px 0;
    background: var(--color-primary);
    color: var(--color-white);
    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-mobile-contact a:hover {
    background: var(--color-primary-dark, #d06818);
    color: var(--color-white);
  }

  .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;
  }

  .pricing-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .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: 640px;
    gap: 12px;
  }

  .contact-card {
    padding: 32px 16px;
  }

  .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.78rem;
    margin-bottom: 12px;
  }

  .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%;
  }

  .event-modal-banner {
    height: 140px;
  }

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

  .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 {
    font-size: 0.88rem;
  }

  /* --- 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: 160px;
    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: 12px;
  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;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.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);
}

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

/* --- Listing Card --- */
.tp-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;
}

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

/* Sold card state */
.tp-card-sold {
  opacity: 0.7;
  pointer-events: auto;
}
.tp-card-sold:hover {
  transform: none;
  box-shadow: none;
}

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

.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);
}

/* Sold overlay on card image */
.tp-card-image,
.tp-card-placeholder {
  position: relative;
}
.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-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: 2000;
  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; }

.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;
}

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

.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);
}

.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;
}

/* --- Detail Modal Content --- */
#tpDetailModal .tp-modal {
  padding-top: 20px;
}

#tpDetailModal .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 {
  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: cover;
}

.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);
}

.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;
}

.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: 3000;
  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; }

/* --- Mobile account icon (hidden on desktop, shown on mobile) --- */
.sp-account-icon {
  display: none;
  position: relative;
  margin-right: 10px;
}

.sp-account-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  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;
}

.sp-account-menu .sp-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 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-grid {
    grid-template-columns: repeat(2, 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: scrollable tabs + inline create button --- */
  .tp-action-bar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .tp-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
  }

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

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

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

  /* --- 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;
  }

  .trading-post-page .sf-auth-buttons {
    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 {
    display: block;
    order: -1;
    margin-right: auto;
  }

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

@media (max-width: 600px) {
  .tp-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    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;
  }
}

/* =============================================================
   SHARED AUTH UI
   ============================================================= */
.sf-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  flex-shrink: 0;
}

.sf-login-btn {
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.sf-register-btn {
  font-size: 0.85rem;
}

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

.sf-admin-btn {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-size: 0.8rem !important;
}

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

.sf-logout-btn {
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.sf-logout-btn:hover {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.sf-pending-notice {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* =============================================================
   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-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: var(--color-dark);
}

.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-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.ma-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  gap: 16px;
}

.ma-card-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

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

.ma-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}
.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; }

@media (max-width: 600px) {
  .ma-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ma-card .btn {
    align-self: flex-end;
  }
}

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

/* --- Body (no hero, goes straight to content) --- */
.admin-body {
  padding: 120px 0 80px;
  background: var(--color-bg);
  min-height: 100vh;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-text);
}

/* --- 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;
}

.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;
}

/* --- 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;
}

.admin-table tr:hover {
  background: var(--color-bg-alt);
}

/* --- 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: 6px;
}

.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);
}

/* --- Listings grid (reuses tp-card patterns) --- */
.admin-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.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;
}

/* --- 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-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-event-card-header:hover {
  background: var(--color-bg-alt);
}

.admin-event-card-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.admin-event-card-count {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 600;
}

.admin-event-card-body {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--color-border);
}

.admin-event-card-body.open {
  display: block;
}

/* --- 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;
}

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

@media (max-width: 768px) {
  .admin-body {
    padding: 100px 0 60px;
  }

  .admin-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .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;
  }
}

@media (max-width: 600px) {
  .admin-listings-grid {
    grid-template-columns: 1fr;
  }

  .sf-auth-buttons {
    gap: 4px;
  }

  .sf-username {
    display: none;
  }
}
