@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   TURFONE DESIGN SYSTEM TOKENS (PRESERVED BRAND IDENTITY)
   ===================================================================== */
:root {
  /* Brand color palette */
  --ink:          #0e1712;
  --ink-2:        #142019;
  --ink-3:        #1b271f;
  --line:         rgba(245,243,237,0.08);
  --line-hover:   rgba(245,243,237,0.22);
  --turf:         #3f8f4e;
  --turf-hover:   #4ea860;
  --turf-active:  #2b6b39;
  --turf-deep:    #2b6b39;
  --floodlight:   #f2c14e;
  --gold:         #f5c84c;
  --chalk:        #f5f3ed;
  --clay:         #c1543c;
  --graphite:     #93a69a;
  --text-dim:     rgba(245,243,237,0.6);
  --text-dim2:    rgba(245,243,237,0.5);
  --text-dim3:    rgba(245,243,237,0.4);

  /* Radius scale */
  --radius-xs:    3px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-full:  9999px;

  /* Layout dimensions */
  --maxw:         1160px;
  --portal-maxw:  1440px;
  --header-height: 64px;
  --navbar-total-height: 64px;
  --mobile-nav-height: 64px;

  /* Glassmorphism & elevation */
  --glass-bg:     rgba(27,39,31,0.85);
  --glass-card-bg: rgba(20,32,25,0.78);
  --glass-blur:   blur(16px);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.25);
  --shadow-card:  0 8px 30px rgba(0,0,0,0.35);
  --shadow-hover: 0 14px 42px rgba(0,0,0,0.48);
  --shadow-modal: 0 24px 64px rgba(0,0,0,0.7);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Leaflet overrides — match dark theme ─── */
.leaflet-popup-content-wrapper { background:#1b271f; border:1px solid rgba(245,243,237,0.1); border-radius:10px; color:#f5f3ed; box-shadow:0 12px 40px rgba(0,0,0,0.5); }
.leaflet-popup-tip { background:#1b271f; }
.leaflet-popup-close-button { color:#93a69a !important; }
.leaflet-control-zoom a { background:#1b271f !important; color:#f5f3ed !important; border-color:rgba(245,243,237,0.1) !important; }
.leaflet-control-zoom a:hover { background:#3f8f4e !important; }

/* ─── Turfone Unified SVG Icon System ─── */
.turfone-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  transition: stroke var(--transition-fast), fill var(--transition-fast), transform var(--transition-fast);
}

/* ─── Location pulsing dot animation ─── */
@keyframes locatePulse {
  0%   { box-shadow: 0 0 0 0   rgba(59,130,246,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(59,130,246,0);   }
  100% { box-shadow: 0 0 0 0   rgba(59,130,246,0);    }
}

/* ─── Global Toast Notifications ─── */
#toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
@media (max-width: 640px) {
  #toast-container {
    bottom: 84px;
    right: 16px;
    left: 16px;
  }
}
.toast {
  background: rgba(14,23,18,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-hover);
  color: var(--chalk);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: auto;
}
.toast.hiding {
  animation: toastFadeOut 0.25s ease forwards;
}
@keyframes toastSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastFadeOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(16px); opacity: 0; }
}

/* ─── Skeleton Loading States ─── */
.skeleton {
  background: linear-gradient(90deg, var(--ink-2) 25%, var(--ink-3) 50%, var(--ink-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-md);
}
.skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.skeleton-img { height: 100%; width: 100%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Accessibility Focus States ─── */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* ─── Pitch Visualizer Styles ─── */
.pitch-area-group {
  cursor: pointer;
}
.pitch-area-group:hover rect:first-child {
  filter: brightness(1.2);
}
.pitch-area-group:focus-visible rect:first-child {
  stroke: var(--gold) !important;
  stroke-width: 3px !important;
}
.pitch-card {
  transition: all var(--transition-base);
}
.pitch-card:hover {
  border-color: rgba(245, 200, 76, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pitch-card:focus-visible {
  outline: 2px solid var(--gold) !important;
}

/* ─── Match Essentials Add-ons ─── */
.addon-card {
  transition: all var(--transition-base);
}
.addon-card:hover {
  border-color: rgba(245, 200, 76, 0.4) !important;
  transform: translateY(-1px);
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  background-color: var(--ink);
  color: var(--chalk);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Typography & Color Helpers ─── */
.fn-anton  { font-family: 'Anton', 'Bebas Neue', sans-serif; }
.fn-bebas  { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: 0.02em; line-height: 1.0; font-weight: 400; }
.fn-mono   { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.03em; }
.fn-inter  { font-family: 'Inter', system-ui, sans-serif; }

.text-chalk      { color: var(--chalk) !important; }
.text-graphite   { color: var(--graphite) !important; }
.text-dim        { color: var(--text-dim) !important; }
.text-gold       { color: var(--gold) !important; }
.text-turf       { color: var(--turf) !important; }
.text-turf-hover { color: var(--turf-hover) !important; }
.text-floodlight { color: var(--floodlight) !important; }
.text-danger, .text-clay { color: #ff7878 !important; }
.text-muted      { color: var(--text-dim2) !important; }

.bg-ink          { background-color: var(--ink) !important; }
.bg-ink-2        { background-color: var(--ink-2) !important; }
.bg-ink-3        { background-color: var(--ink-3) !important; }
.border-line     { border-color: var(--line) !important; }
.border-line-hover { border-color: var(--line-hover) !important; }
.border-gold     { border-color: var(--gold) !important; }

::selection { background: var(--turf); color: var(--ink); }

/* ─── Glass & Surface Layer ─── */
.glass {
  background: rgba(20,32,25,0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.glass-card:hover {
  border-color: rgba(245,200,76,0.24);
  box-shadow: var(--shadow-hover);
}

/* ─── Standardized Button System ─── */
.btn, .btn-gold, .btn-green, .btn-ghost, .btn-outline-gold, .btn-primary, .btn-secondary, .btn-outline, .btn-danger, .btn-destructive, .abtn-primary, .abtn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}
.btn:hover, .btn-gold:hover, .btn-green:hover, .btn-ghost:hover, .btn-outline-gold:hover, .btn-primary:hover, .btn-secondary:hover, .btn-outline:hover, .btn-danger:hover {
  transform: translateY(-1px);
}
.btn:active, .btn-gold:active, .btn-green:active, .btn-ghost:active, .btn-outline-gold:active, .btn-primary:active, .btn-secondary:active, .btn-outline:active, .btn-danger:active {
  transform: translateY(1px);
}
.btn:disabled, .btn-gold:disabled, .btn-green:disabled, .btn-ghost:disabled, .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Button Variants */
.btn-gold, .btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-gold:hover, .btn-primary:hover {
  background: var(--floodlight);
  box-shadow: 0 4px 18px rgba(245,200,76,0.36);
}

.btn-green, .btn-secondary, .abtn-primary {
  background: var(--turf);
  color: var(--chalk);
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-green:hover, .btn-secondary:hover, .abtn-primary:hover:not(:disabled) {
  background: var(--turf-hover);
  box-shadow: 0 4px 18px rgba(63,143,78,0.32);
}
.btn-green:active, .btn-secondary:active, .abtn-primary:active:not(:disabled) {
  background: var(--turf-active);
}

.btn-ghost {
  background: rgba(245,243,237,0.05);
  color: var(--chalk);
  font-weight: 500;
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(245,243,237,0.09);
  border-color: var(--line-hover);
  color: var(--chalk);
}

.btn-outline-gold, .btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover, .btn-outline:hover {
  background: rgba(245,200,76,0.09);
  box-shadow: 0 0 14px rgba(245,200,76,0.2);
}

.btn-danger, .btn-destructive {
  background: rgba(193,84,60,0.14);
  color: #ff7878;
  border: 1px solid rgba(193,84,60,0.35);
}
.btn-danger:hover, .btn-destructive:hover {
  background: rgba(193,84,60,0.28);
  border-color: var(--clay);
  color: #ff9494;
}

/* Button Sizing */
.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 12px;
}
.btn-md {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}
.btn-lg {
  min-height: 48px;
  padding: 13px 26px;
  font-size: 15px;
}

/* Mobile Touch Target Standards */
@media (max-width: 768px) {
  .btn, .btn-gold, .btn-green, .btn-primary, .btn-secondary {
    min-height: 44px;
  }
}

/* ─── Chips & Filter Pills ─── */
.chip, .filter-chip {
  background: rgba(245,243,237,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 15px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}
.chip:hover, .filter-chip:hover {
  background: rgba(245,200,76,0.08);
  border-color: rgba(245,200,76,0.35);
  color: var(--gold);
}
.chip.active, .filter-chip.active {
  background: rgba(245,200,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* ─── Forms, Inputs & Controls ─── */
.t-input, 
select.t-input,
.t-select,
select,
input[type="text"].t-input,
input[type="number"].t-input,
input[type="date"].t-input,
input[type="time"].t-input,
input[type="email"].t-input,
input[type="url"].t-input,
input[type="password"].t-input,
textarea.t-input,
textarea {
  background: rgba(20,32,25,0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--chalk);
  padding: 10px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  color-scheme: dark;
}

.t-input:hover,
.t-select:hover,
select:hover,
textarea.t-input:hover {
  border-color: var(--line-hover);
}

.t-input:focus,
.t-select:focus,
select:focus,
textarea.t-input:focus {
  border-color: var(--gold);
  background: rgba(27,39,31,0.95);
  box-shadow: 0 0 0 3px rgba(245,200,76,0.18);
}

.t-input::placeholder,
textarea.t-input::placeholder {
  color: var(--graphite);
  opacity: 0.75;
}

/* Dropdown Select Controls (Eliminate browser-default white styling) */
select,
.t-select,
select.t-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a69a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 34px;
  cursor: pointer;
  min-height: 38px;
}

select:hover,
.t-select:hover,
select.t-input:hover {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  border-color: var(--line-hover);
}

select option,
.t-select option,
select.t-input option {
  background: var(--ink-3);
  color: var(--chalk);
  padding: 8px 12px;
}

select:disabled,
.t-select:disabled,
.t-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--line);
}

/* Dark Theme Calendar & Time Picker Icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(100%) saturate(200%) hue-rotate(5deg);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

textarea.t-input,
textarea {
  resize: vertical;
  min-height: 84px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
  font-family: 'Inter', sans-serif;
}

/* ─── Badges & Status Indicators ─── */
.badge-gold {
  background: rgba(245,200,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(245,200,76,0.28);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-green {
  background: rgba(63,143,78,0.15);
  color: var(--turf-hover);
  border: 1px solid rgba(63,143,78,0.3);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-error {
  background: rgba(193,84,60,0.15);
  color: var(--clay);
  border: 1px solid rgba(193,84,60,0.3);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-info {
  background: rgba(96,165,250,0.12);
  color: #60A5FA;
  border: 1px solid rgba(96,165,250,0.3);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-neutral {
  background: rgba(245, 243, 237, 0.08);
  color: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-warning {
  background: rgba(242, 193, 78, 0.12);
  color: var(--floodlight);
  border: 1px solid rgba(242, 193, 78, 0.3);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Drawer & Inspector Panel ─── */
.inspector-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.inspector-drawer {
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: var(--ink-2);
  border-left: 1px solid var(--line-gold);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  animation: slideLeft 0.25s ease-out;
}
@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =====================================================================
   PORTAL RESPONSIVE LAYOUT SYSTEM (ADMIN & TURF OWNER PORTALS)
   ===================================================================== */
.portal-container {
  width: 100%;
  max-width: var(--portal-maxw);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 16px;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .portal-container {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 20px;
    padding-bottom: 56px;
  }
}

@media (min-width: 768px) {
  .portal-container {
    padding-left: 28px;
    padding-right: 28px;
    padding-top: calc(var(--navbar-total-height, 64px) + 24px);
    padding-bottom: 64px;
  }
}

@media (min-width: 1024px) {
  .portal-container {
    padding-left: 36px;
    padding-right: 36px;
    padding-top: calc(var(--navbar-total-height, 64px) + 28px);
    padding-bottom: 80px;
  }
}

@media (min-width: 1440px) {
  .portal-container {
    padding-left: 48px;
    padding-right: 48px;
    padding-top: calc(var(--navbar-total-height, 64px) + 32px);
    padding-bottom: 96px;
  }
}

/* Specific narrow form constraints within portal */
.portal-container.max-w-4xl {
  max-width: 960px !important;
}
.portal-container.max-w-3xl {
  max-width: 768px !important;
}

/* KPI Responsive Grid & Aligned Cards */
.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 540px) {
  .portal-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .portal-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }
}

.portal-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 120px;
  padding: 20px;
  background: var(--glass-card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.portal-kpi-card:hover {
  border-color: rgba(245,200,76,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.38);
}

/* Quick Actions Grid & Standard Action Card */
.portal-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .portal-actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.portal-action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  min-height: 84px;
  background: var(--glass-card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
  color: var(--chalk);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  box-sizing: border-box;
}
.portal-action-card:hover {
  background: rgba(27,39,31,0.95);
  border-color: rgba(245,200,76,0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.portal-action-card:active {
  transform: translateY(0);
}
.portal-action-card .action-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.portal-action-card .action-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--chalk);
}
.portal-action-card .action-arrow {
  color: var(--gold);
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
}
.portal-action-card:hover .action-arrow {
  transform: translateX(3px);
}

/* ─── Portal Quick Navigation Tabs ─── */
.portal-quicknav-container {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  background: rgba(20,32,25,0.65);
  border: 1px solid var(--line);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.portal-quicknav-container::-webkit-scrollbar {
  display: none;
}
.portal-quicknav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
  font-family: 'IBM Plex Mono', monospace;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-dim);
  background: transparent;
}
.portal-quicknav-btn:hover {
  color: var(--chalk);
  background: rgba(245,243,237,0.06);
  border-color: var(--line-hover);
}
.portal-quicknav-btn.active {
  background: rgba(245,200,76,0.14);
  color: var(--gold);
  border-color: rgba(245,200,76,0.4);
  font-weight: 700;
}

/* ─── Portal Filter Button Groups ─── */
.portal-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(20,32,25,0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  box-sizing: border-box;
}
.portal-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.portal-filter-btn:hover {
  color: var(--chalk);
  background: rgba(245,243,237,0.06);
}
.portal-filter-btn.active {
  background: rgba(245,200,76,0.14);
  color: var(--gold);
  border-color: rgba(245,200,76,0.4);
  font-weight: 700;
}

/* Top Navbar Desktop Portal Nav Link */
.portal-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
}
.portal-nav-link:hover {
  color: var(--chalk);
  background: rgba(245,243,237,0.06);
  border-color: var(--line-hover);
}
.portal-nav-link.active {
  background: rgba(245,200,76,0.12);
  color: var(--gold);
  border-color: rgba(245,200,76,0.35);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(245,200,76,0.12);
}

/* ─── Responsive Tables (Owner & Admin) ─── */
.table-responsive, .table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(14,23,18,0.7);
  box-sizing: border-box;
}
.glass-card > .table-responsive,
.glass-card > .table-wrapper {
  border: none;
  border-radius: 0;
  background: transparent;
}
table.table-modern {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
table.table-modern th {
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
  background: rgba(20,32,25,0.92);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.table-modern td {
  padding: 14px 16px;
  color: var(--chalk);
  border-bottom: 1px solid rgba(245,243,237,0.05);
  vertical-align: middle;
}
table.table-modern tr:last-child td {
  border-bottom: none;
}
table.table-modern tr:hover td {
  background: rgba(245,243,237,0.02);
}

/* ─── Turf Card Modernization ─── */
.turf-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.turf-card:hover {
  border-color: rgba(245,200,76,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.turf-card-imgwrap {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.turf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.turf-card:hover .turf-card-img {
  transform: scale(1.04);
}

/* ─── Decorative ─── */
.gold-line { width: 36px; height: 3px; background: var(--gold); border-radius: 2px; }
.divider   { border: none; height: 1px; background: var(--line); margin: 0; }

/* ─── Horizontal scroll ─── */
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar         { width: 5px; height: 5px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: rgba(245,243,237,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,200,76,0.35); }

/* ─── Animations ─── */
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.35s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.25s ease forwards; }
@keyframes pulseGold { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,200,76,0.35); } 50% { box-shadow: 0 0 0 8px rgba(245,200,76,0); } }
.pulse-gold { animation: pulseGold 2s infinite; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   UTILITY LAYER (Tailwind equivalents + escaped class compatibility)
   ===================================================================== */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-none { line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.overflow-y-auto { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.max-w-full { max-width: 100%; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-px { width: 1px; }
.w-40 { width: 160px; }
.w-64 { width: 256px; }
.h-40 { height: 160px; }
.h-64 { height: 256px; }
.h-7 { height: 28px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1 { margin-left: 4px; } .ml-2 { margin-left: 8px; } .ml-auto { margin-left: auto; }
.rounded-full { border-radius: 9999px; }
.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; } .top-2 { top: 8px; } .top-3 { top: 12px; } .top-4 { top: 16px; } .top-20 { top: 80px; } .top-full { top: 100%; }
.top-1\/2, .top-1-2 { top: 50%; }
.right-0 { right: 0; } .right-2 { right: 8px; } .right-3 { right: 12px; } .right-4 { right: 16px; }
.bottom-0 { bottom: 0; } .bottom-2 { bottom: 8px; } .bottom-3 { bottom: 12px; } .bottom-4 { bottom: 16px; }
.left-0 { left: 0; } .left-2 { left: 8px; } .left-3 { left: 12px; } .left-4 { left: 16px; } .left-5 { left: 20px; }
.left-1\/2, .left-1-2 { left: 50%; }
.-top-1 { top: -4px; } .-bottom-1 { bottom: -4px; } .-right-1 { right: -4px; }
.-translate-x-1\/2, .-translate-x-1-2 { transform: translateX(-50%); }
.-translate-y-1\/2, .-translate-y-1-2 { transform: translateY(-50%); }
.z-10{z-index:10;} .z-20{z-index:20;} .z-30{z-index:30;} .z-40{z-index:40;} .z-50{z-index:50;}
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1; }

.gap-0\.5, .gap-0-5{gap:2px;} .gap-1{gap:4px;} .gap-1\.5, .gap-1-5{gap:6px;} .gap-2{gap:8px;} .gap-2\.5, .gap-2-5{gap:10px;}
.gap-3{gap:12px;} .gap-4{gap:16px;} .gap-5{gap:20px;} .gap-6{gap:24px;} .gap-7{gap:28px;} .gap-8{gap:32px;}

.p-1{padding:4px;} .p-1\.5, .p-1-5{padding:6px;} .p-2{padding:8px;} .p-2\.5, .p-2-5{padding:10px;} .p-3{padding:12px;} .p-3\.5, .p-3-5{padding:14px;} .p-4{padding:16px;}
.p-5{padding:20px;} .p-6{padding:24px;} .p-7{padding:28px;} .p-8{padding:32px;} .p-16{padding:64px;}
.px-2{padding-left:8px;padding-right:8px;} .px-3{padding-left:12px;padding-right:12px;}
.px-4{padding-left:16px;padding-right:16px;} .px-5{padding-left:20px;padding-right:20px;}
.px-6{padding-left:24px;padding-right:24px;} .px-7{padding-left:28px;padding-right:28px;} .px-8{padding-left:32px;padding-right:32px;}
.py-1{padding-top:4px;padding-bottom:4px;} .py-1\.5, .py-1-5{padding-top:6px;padding-bottom:6px;}
.py-2{padding-top:8px;padding-bottom:8px;} .py-2\.5, .py-2-5{padding-top:10px;padding-bottom:10px;}
.py-3{padding-top:12px;padding-bottom:12px;} .py-3\.5, .py-3-5{padding-top:14px;padding-bottom:14px;}
.py-4{padding-top:16px;padding-bottom:16px;} .py-6{padding-top:24px;padding-bottom:24px;}
.pt-2\.5, .pt-2-5{padding-top:10px;} .pt-4{padding-top:16px;} .pt-5{padding-top:20px;} .pt-6{padding-top:24px;}
.pb-1{padding-bottom:4px;} .pb-2{padding-bottom:8px;} .pb-4{padding-bottom:16px;} .pb-6{padding-bottom:24px;}

.mb-0\.5, .mb-0-5{margin-bottom:2px;} .mb-1{margin-bottom:4px;} .mb-1\.5, .mb-1-5{margin-bottom:6px;} .mb-2{margin-bottom:8px;}
.mb-3{margin-bottom:12px;} .mb-4{margin-bottom:16px;} .mb-5{margin-bottom:20px;} .mb-6{margin-bottom:24px;}
.mb-7{margin-bottom:28px;} .mb-8{margin-bottom:32px;} .mb-10{margin-bottom:40px;}
.mt-1{margin-top:4px;} .mt-1\.5, .mt-1-5{margin-top:6px;} .mt-2{margin-top:8px;} .mt-3{margin-top:12px;}
.mt-4{margin-top:16px;} .mt-5{margin-top:20px;} .mt-6{margin-top:24px;} .mt-8{margin-top:32px;} .mt-10{margin-top:40px;} .mt-12{margin-top:48px;}
.mt-auto{margin-top:auto;}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* ─── Responsive Breakpoints (Mobile, Tablet, Desktop) ─── */
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:hidden { display: none !important; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 48px; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:flex { display: flex !important; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:w-72 { width: 288px; }
}

/* Mobile Safe Bottom Navigation Padding */
@media (max-width: 767px) {
  #main-content {
    padding-bottom: 96px !important;
  }
}

/* =====================================================================
   LANDING PAGE & AUTH VIEW (from index.html styling)
   ===================================================================== */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 23, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  font-family: 'Anton', 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0; background: none; border: none; color: var(--chalk); padding: 0;
}
.logo .g { color: var(--chalk); }
.logo .o { color: var(--gold); }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--graphite); }
.nav-links a:hover { color: var(--chalk); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--chalk); width: 40px; height: 40px; border-radius: var(--radius-sm); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 56px;
  background:
    radial-gradient(600px 300px at 12% -10%, rgba(242, 193, 78, 0.16), transparent 60%),
    radial-gradient(700px 320px at 100% 0%, rgba(63, 143, 78, 0.22), transparent 55%);
}
.pitch-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 119px, var(--line) 120px);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--floodlight); background: rgba(242, 193, 78, 0.08); border: 1px solid rgba(242, 193, 78, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--floodlight); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hero h1 { font-size: clamp(42px, 8vw, 84px); text-transform: uppercase; font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; line-height: 0.95; margin: 0; }
.hero h1 span { color: var(--turf); }
.hero p { color: var(--graphite); font-size: 17px; max-width: 520px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Live ticker */
.ticker-shell {
  margin: 64px auto 0; max-width: 920px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.ticker-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--graphite); }
.ticker-head .live { color: var(--clay); display: flex; align-items: center; gap: 6px; }
.ticker-head .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); animation: pulse 1.2s infinite; }
.ticker-track-wrap { overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: scroll-left 26s linear infinite; padding: 0 18px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.slot { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink); min-width: 150px; }
.slot .turf-name { font-size: 13px; color: var(--chalk); font-weight: 600; }
.slot .slot-time { font-size: 12px; color: var(--turf); }
.slot.taken .slot-time { color: var(--clay); }
.slot.taken { opacity: 0.55; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 520px; margin-bottom: 40px; }
.section-head .kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--turf); margin-bottom: 10px; display: block; font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; line-height: 0.95; margin: 0; }
.section-head p { color: var(--graphite); margin-top: 12px; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step .num { font-family: 'IBM Plex Mono'; color: var(--turf); font-size: 13px; font-weight: 600; }
.step h3 { font-size: 22px; text-transform: uppercase; margin: 14px 0 8px; font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; line-height: 0.95; }
.step p { color: var(--graphite); font-size: 14px; }

.turfs { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.turf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.turf-photo {
  height: 150px;
  background:
    radial-gradient(160px 90px at 30% 20%, rgba(242, 193, 78, 0.35), transparent 60%),
    linear-gradient(135deg, var(--turf-deep), var(--ink-3));
  position: relative;
}
.turf-photo .badge { position: absolute; top: 10px; right: 10px; background: rgba(14, 23, 18, 0.7); font-size: 11px; padding: 4px 8px; border-radius: 999px; color: var(--floodlight); font-family: 'IBM Plex Mono'; }
.turf-body { padding: 16px 18px 20px; }
.turf-body h3 { font-family: 'Inter'; font-size: 16px; font-weight: 600; text-transform: none; margin: 0; }
.turf-body .loc { color: var(--graphite); font-size: 13px; margin-top: 4px; }
.turf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-family: 'IBM Plex Mono'; color: var(--turf); font-size: 14px; }
.price span { color: var(--graphite); font-size: 11px; }

.cta-banner {
  text-align: center; background: linear-gradient(135deg, var(--turf-deep), var(--ink-2)); border-radius: var(--radius-md);
  padding: 56px 24px; margin: 0 24px; max-width: calc(var(--maxw) - 48px); margin-inline: auto;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); text-transform: uppercase; margin-bottom: 14px; font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; line-height: 0.95; }
.cta-banner p { color: var(--chalk); opacity: 0.8; max-width: 480px; margin: 0 auto 28px; font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--graphite); margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
footer ul a:hover { color: var(--turf); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--graphite); flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .steps, .turf-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 76px 0 40px; }
}

/* ─── Auth View (index.html) ─── */
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes progressFill { from { width: 0%; } to { width: 100%; } }

.fade-in-left { animation: fadeInLeft 500ms ease both; }
.fade-in-right { animation: fadeInRight 500ms ease both; }

#authView { padding: 0 0 88px; }
.auth-back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--graphite);
  margin: 0; max-width: var(--maxw); padding: 14px 24px 18px;
}
.auth-back:hover { color: var(--chalk); }
.split { max-width: var(--maxw); margin: 0 auto; min-height: 560px; display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }

.brand-panel {
  flex: 0 0 42%; position: relative; overflow: hidden; background: var(--ink); padding: 72px 48px;
  display: flex; flex-direction: column; justify-content: flex-start;
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(43, 107, 57, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 80% 80%, rgba(14, 23, 18, 0.9) 0%, transparent 80%);
}
.brand-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(245, 243, 237, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 237, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.brand-content { position: relative; z-index: 1; max-width: 380px; }
.brand-content h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; color: var(--chalk); line-height: 1; letter-spacing: 0.01em; margin: 0 0 16px; min-height: 2em; }
.brand-content h1 span { color: var(--gold); }
.brand-content p.lead { font-size: 15px; color: var(--text-dim); line-height: 1.6; margin: 0 0 40px; font-family: 'Inter'; min-height: 3.2em; }

.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature { display: flex; align-items: center; gap: 12px; }
.feature-icon {
  width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid rgba(63, 143, 78, 0.35); background: rgba(63, 143, 78, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.feature span { font-size: 14px; color: rgba(245, 243, 237, 0.75); font-family: 'Inter'; }

.card-panel {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--ink);
  background-image: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(27, 39, 31, 0.7) 0%, transparent 70%);
}
.card {
  width: 100%; max-width: 420px; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 12px; padding: 36px 36px 32px; font-family: 'Inter';
}
.card h2 { font-family: 'Inter'; margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--chalk); letter-spacing: -0.015em; text-transform: none; }
.card > form > div:first-child p { margin: 0; font-size: 14px; color: var(--text-dim2); }

.method-label { margin: 0 0 8px; font-size: 12px; color: var(--text-dim3); font-weight: 500; letter-spacing: 0.04em; }
.tabs { display: flex; background: rgba(245, 243, 237, 0.04); border: 1px solid var(--line); border-radius: 7px; padding: 3px; gap: 3px; }
.tab {
  flex: 1; padding: 8px 0; border-radius: 5px; border: none; background: transparent;
  font-size: 13px; font-weight: 600; color: rgba(245, 243, 237, 0.45);
  transition: background-color 200ms, color 200ms; letter-spacing: 0.01em; font-family: 'Inter';
}
.tab.active { background: var(--turf); color: var(--chalk); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-dim); letter-spacing: 0.01em; }
.field label .req { color: var(--clay); margin-left: 3px; }
.input-wrap { position: relative; border-radius: 6px; box-shadow: 0 0 0 3px transparent; transition: box-shadow 220ms; }
.input-wrap input {
  width: 100%; padding: 12px 14px; background: rgba(245, 243, 237, 0.04); border: 1px solid rgba(245, 243, 237, 0.1);
  border-radius: 6px; color: var(--chalk); font-size: 14px; font-family: 'Inter'; outline: none; transition: border-color 200ms, background-color 200ms;
}
.input-wrap input::placeholder { color: rgba(245, 243, 237, 0.3); }
.input-wrap.has-suffix input { padding-right: 44px; }
.input-wrap:hover input { border-color: var(--line-hover); }
.input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(63, 143, 78, 0.18); }
.input-wrap:focus-within input { border-color: var(--turf); }
.input-wrap.error { box-shadow: 0 0 0 3px rgba(193, 84, 60, 0.18); }
.input-wrap.error input { border-color: var(--clay); }
.input-wrap.success { box-shadow: 0 0 0 3px rgba(63, 143, 78, 0.12); }
.input-wrap.success input { border-color: var(--turf); }
.suffix-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0; color: rgba(245, 243, 237, 0.4); display: flex; align-items: center; cursor: pointer; }
.field-msg { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.field-msg.error { color: var(--clay); }
.field-msg.success { color: var(--turf); }
.field-msg:empty { display: none; }

.row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; margin-bottom: 24px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-row input { accent-color: var(--turf); width: 14px; height: 14px; cursor: pointer; }
.checkbox-row span { font-size: 13px; color: rgba(245, 243, 237, 0.6); }
.link-turf { font-size: 13px; color: var(--turf); font-weight: 500; transition: color 150ms; }
.link-turf:hover { color: var(--turf-hover); }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(245, 243, 237, 0.3); border-top-color: var(--chalk); animation: spin .8s linear infinite; display: none; }
.abtn-primary.loading .spinner { display: inline-block; }

.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.divider .line { flex: 1; height: 1px; background: rgba(245, 243, 237, 0.08); }
.divider span { font-size: 12px; color: rgba(245, 243, 237, 0.35); font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.social-row { display: flex; gap: 12px; }
.social-row > * { flex: 1; }
.switch-line { margin: 24px 0 0; font-size: 13px; color: rgba(245, 243, 237, 0.5); text-align: center; }
.switch-line a { color: var(--turf); font-weight: 600; transition: color 150ms; }
.switch-line a:hover { color: var(--turf-hover); }
.terms-row { margin-top: 16px; }
.terms-row label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.terms-row input { accent-color: var(--turf); width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.terms-row span { font-size: 13px; color: rgba(245, 243, 237, 0.6); line-height: 1.5; }
.terms-row a { color: var(--turf); font-weight: 500; }

.success-box { text-align: center; padding: 16px 0; }
.success-check {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(63, 143, 78, 0.15); border: 1.5px solid rgba(63, 143, 78, 0.4);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-box h3 { font-family: 'Inter'; margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--chalk); text-transform: none; }
.success-box p { margin: 0 0 24px; font-size: 14px; color: rgba(245, 243, 237, 0.55); }
.progress-track { height: 3px; background: rgba(63, 143, 78, 0.15); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--turf); border-radius: 2px; animation: progressFill 1.8s ease forwards; }

@media (max-width: 900px) {
  .brand-panel { display: none; }
  .card-panel { padding: 32px 20px; }
  .split { min-height: 0; }
}
@media (max-width: 480px) {
  .card { padding: 28px 20px 24px; }
}
