:root{
  --bg: #07130f;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.55);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.16);
  --shadow: 0 30px 70px rgba(0,0,0,.35);
  --forest: #0B3D2E;
  --forest2: #0E4A35;
  --mint: #58C79A;
  --mint2: #2FA579;
  --ink: #06120E;
  --white: #fff;
  --radius: 22px;
  --radius2: 28px;
  --container: 1400px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --gradient-main: linear-gradient(135deg, #58C79A 0%, #4a9eff 100%);
  --purple-soft: #c3a6ff;
  --accent-gold: #ffd15c;
  --mint-rgb: 88,199,154;
  --forest-rgb: 11,61,46;
  --purple-rgb: 123,79,255;
  --accent-gold-rgb: 255,209,92;
  --bg-start: #04110d;
  --bg-mid: #061611;
  --bg-end: #040e0b;
  --bg-gradient: radial-gradient(1200px 700px at 30% -10%, rgba(var(--mint-rgb),.24), transparent 60%),
    radial-gradient(900px 600px at 95% 20%, rgba(var(--forest-rgb),.55), transparent 55%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 40%, var(--bg-end) 100%);
  --pitch-grass-1: #1a5c3a;
  --pitch-grass-2: #2a7d4a;
}

*{box-sizing:border-box; min-width:0;}
html,body{height:100%; width:100%;}
html{
  -webkit-text-size-adjust:100%;
  -webkit-tap-highlight-color:transparent;
  overflow-x:hidden;
  max-width:100vw;
  position:relative;
}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  /* Fully customizable background - uses CSS variables that can be overridden */
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100vw;
  width:100%;
  position: relative;
}

/* Grid effect for portal pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
  z-index: 0;
}

/* Grid can be disabled via data attribute */
body[data-grid-disabled="true"]::before {
  display: none;
}

/* Ensure content is above grid */
body > * {
  position: relative;
  z-index: 1;
}

a{color:inherit;text-decoration:none}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
  max-width:100%;
  padding-left:20px;
  padding-right:20px;
  box-sizing:border-box;
}

@media (max-width: 520px){
  .container{
    width:100%;
    padding-left:16px;
    padding-right:16px;
  }
}

/* Respect reduced motion preferences */
@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;
  }
}

/* Progress */
.progress{position:fixed; top:0; left:0; right:0; height:3px; z-index:1000; background:transparent}
.progress__bar{height:100%; width:0%; background: linear-gradient(90deg, var(--mint), rgba(var(--mint-rgb, 88,199,154),.4)); box-shadow: 0 0 20px rgba(var(--mint-rgb, 88,199,154),.45)}

/* Loading state - always centered (league-init/org-init may override .loading-spinner for custom logos) */
.loading-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px 20px;
  color:var(--muted);
}
.loading-spinner{
  width:48px;
  height:48px;
  border:3px solid rgba(var(--mint-rgb, 88,199,154),.3);
  border-top-color:var(--mint);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin:0 auto 16px;
  flex-shrink:0;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* Original Nav style for index.html landing page */
.nav{position:sticky; top:0; z-index:999; backdrop-filter: blur(14px); background: rgba(5,14,11,.55); border-bottom: 1px solid rgba(255,255,255,.06); width:100%; max-width:100vw; overflow:hidden;}
.nav__inner{display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0; max-width:100%; box-sizing:border-box;}

/* Unified Portal Header Styles - Only apply to portal pages (not index.html) */
/* Portal pages use header > .container > .nav structure, index.html uses header.nav */
header:not(.nav) {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(14px);
    background: rgba(5, 14, 11, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    left: 0;
    right: 0;
}

header:not(.nav) .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header:not(.nav) .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    padding-left: clamp(12px, 2.5vw, 24px);
    padding-right: clamp(12px, 2.5vw, 24px);
    flex-wrap: nowrap;
}

header:not(.nav) .brand,
header:not(.nav) .nav > a[href*="index.html"] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
    flex-shrink: 1;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

header:not(.nav) .brand:hover,
header:not(.nav) .nav > a[href*="index.html"]:hover {
    transform: translateX(2px);
}

/* Only apply brand-logo styles to portal pages (not index.html which uses brand__logo-wrapper) */
header:not(.nav) .brand-logo {
    max-width: clamp(36px, 5vw, 50px);
    max-height: clamp(36px, 5vw, 50px);
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
    /* Ambient light background effect */
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(var(--mint-rgb, 88, 199, 154), 0.08) 40%,
        transparent 70%);
    border-radius: 50%;
    padding: 4px;
}

header:not(.nav) .brand:hover .brand-logo,
header:not(.nav) .nav > a[href*="index.html"]:hover .brand-logo {
    transform: scale(1.05) rotate(2deg);
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(var(--mint-rgb, 88, 199, 154), 0.14) 40%,
        transparent 70%);
}

header:not(.nav) .brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
}

header:not(.nav) .brand:hover .brand-logo img,
header:not(.nav) .nav > a[href*="index.html"]:hover .brand-logo img {
    filter: drop-shadow(0 4px 12px rgba(var(--mint-rgb, 88, 199, 154), 0.24))
            drop-shadow(0 0 18px rgba(255, 255, 255, 0.14));
}

/* Only apply to portal pages - index.html uses .brand__text with .brand__name */
header:not(.nav) .brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

header:not(.nav) .brand-text span:first-child {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, rgba(255,255,255,0.72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
}

/* Slogan/tagline styling - shown under organization name */
header:not(.nav) .brand-text span[data-org-slogan],
header:not(.nav) .brand-text .org-slogan,
header:not(.nav) .brand-text #org-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
    opacity: 0.8;
    line-height: 1.2;
    display: block !important;
    margin-top: 2px;
    animation: fadeInUp 0.6s ease 0.1s both;
    transition: opacity 0.3s ease;
}

header:not(.nav) .brand:hover .brand-text span[data-org-slogan],
header:not(.nav) .brand:hover .brand-text .org-slogan,
header:not(.nav) .brand:hover .brand-text #org-tagline {
    opacity: 1;
    max-width: 100%;
}

header:not(.nav) .brand:hover .brand-text span:first-child,
header:not(.nav) .nav > a[href*="index.html"]:hover .brand-text span:first-child {
    background: linear-gradient(135deg, var(--text) 0%, var(--mint) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-1px);
}

/* Only hide last child if it's NOT the slogan, org name, or team name */
header:not(.nav) .brand-text span:last-child:not([data-org-slogan]):not(.org-slogan):not(#org-tagline):not(#team-name):not([data-league-name]) {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

header:not(.nav) .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

header:not(.nav) .nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

header:not(.nav) .nav-links a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

header:not(.nav) .nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

header:not(.nav) .nav-links a:hover::before {
    transform: scaleX(1);
}

/* Mobile Navigation - Portal pages only */
header:not(.nav) .nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: clamp(44px, 11vw, 52px);
    height: clamp(44px, 11vw, 52px);
    min-width: clamp(44px, 11vw, 52px);
    min-height: clamp(44px, 11vw, 52px);
    padding: 0;
    border-radius: clamp(12px, 3vw, 16px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    align-self: center;
}

header:not(.nav) .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

header:not(.nav) .nav-toggle span {
    width: clamp(20px, 5vw, 24px);
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    flex: 0 0 auto;
}

header:not(.nav) .nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 12px clamp(12px, 2.5vw, 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

header:not(.nav) .nav-links-mobile.active {
    display: flex;
}

header:not(.nav) .nav-links-mobile a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

header:not(.nav) .nav-links-mobile a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    header:not(.nav) .nav-toggle {
        display: flex;
    }
    
    header:not(.nav) .nav-links {
        display: none;
    }
    
    header:not(.nav) .brand-text span:first-child {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    header:not(.nav) .brand,
    header:not(.nav) .nav > a[href*="index.html"] {
        gap: 10px;
        flex: 1 1 0;
        min-width: 0;
        max-width: calc(100% - clamp(56px, 14vw, 72px));
    }
    
    header:not(.nav) .brand-logo {
        max-width: 40px;
        max-height: 40px;
        flex-shrink: 0;
    }
    
    header:not(.nav) .container {
        padding: 0;
    }

    header:not(.nav) .brand-text span[data-org-slogan],
    header:not(.nav) .brand-text .org-slogan,
    header:not(.nav) .brand-text #org-tagline {
        opacity: 0.86;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header:not(.nav) .brand-text span:first-child {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }
    
    header:not(.nav) .brand,
    header:not(.nav) .nav > a[href*="index.html"] {
        gap: 8px;
        max-width: calc(100% - clamp(52px, 16vw, 64px));
    }
    
    header:not(.nav) .brand-logo {
        max-width: 36px;
        max-height: 36px;
    }
    
    header:not(.nav) .nav {
        padding: 12px 0;
        gap: 12px;
    }

    header:not(.nav) .brand-text span[data-org-slogan],
    header:not(.nav) .brand-text .org-slogan,
    header:not(.nav) .brand-text #org-tagline {
        display: none !important;
    }
}

@media (max-width: 380px) {
    header:not(.nav) .container {
        padding: 0;
    }

    header:not(.nav) .nav {
        gap: 10px;
    }

    header:not(.nav) .brand-logo {
        max-width: 32px;
        max-height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* Global responsive foundation for portal/dashboard/content pages */
img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  .signup-card,
  .account-card,
  .summary-box,
  .account-section,
  .portal-section {
    padding: clamp(16px, 2.8vw, 28px) !important;
  }

  .dashboard-quick-links {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .hero,
  .section,
  .cta {
    padding-top: clamp(36px, 8vw, 56px);
    padding-bottom: clamp(28px, 7vw, 42px);
  }

  .hero__inner,
  .preview__grid,
  .featureGrid,
  .pricing,
  .how,
  .customize,
  .termGrid,
  .cta__inner {
    grid-template-columns: 1fr !important;
  }

  .hero__inner,
  .customize,
  .how,
  .cta__inner {
    gap: 16px !important;
  }

  .preview__chips,
  .hero__cta,
  .hero__trust,
  .strip__inner,
  .strip__items,
  .toggle,
  .actions,
  .admin-header-row,
  .admin-header-controls,
  .dashboard-quick-links,
  .portal-footer__legal {
    width: 100%;
  }

  .hero__cta > *,
  .cta__actions > *,
  .actions > *,
  .admin-header-controls > *,
  .dashboard-quick-links > * {
    max-width: 100%;
  }

  .cta__inner,
  .footer__inner,
  .portal-footer .container,
  .admin-header-row,
  .admin-header-controls {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-header-row,
  .admin-header-controls,
  .welcome-header {
    gap: 12px !important;
  }

  .dashboard-quick-links {
    grid-template-columns: 1fr !important;
  }

  .dashboard-quick-link,
  .portal-footer__legal a,
  .footer__right a {
    width: 100%;
    justify-content: center;
  }

  .dashboard-table {
    min-width: 640px;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 10px 12px;
  }

  .signup-card [style*="display:flex"],
  .account-card [style*="display:flex"],
  .account-section [style*="display:flex"],
  .portal-section [style*="display:flex"],
  .summary-box [style*="display:flex"],
  .register-card [style*="display:flex"],
  form [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  .signup-card [style*="min-width"],
  .account-card [style*="min-width"],
  .account-section [style*="min-width"],
  .portal-section [style*="min-width"],
  .summary-box [style*="min-width"],
  .signup-card [style*="max-width"],
  .account-card [style*="max-width"],
  .account-section [style*="max-width"],
  .portal-section [style*="max-width"],
  .summary-box [style*="max-width"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
  select,
  textarea,
  .input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="range"]) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .signup-card input,
  .signup-card select,
  .signup-card textarea,
  .account-card input,
  .account-card select,
  .account-card textarea,
  .account-section input,
  .account-section select,
  .account-section textarea,
  .portal-section input,
  .portal-section select,
  .portal-section textarea,
  .summary-box input,
  .summary-box select,
  .summary-box textarea,
  .signup-card button,
  .account-card button,
  .account-section button,
  .portal-section button,
  .summary-box button {
    max-width: 100%;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  input[style*="min-width"],
  select[style*="min-width"],
  textarea[style*="min-width"],
  input[style*="max-width"],
  select[style*="max-width"],
  textarea[style*="max-width"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  [style*="min-width"] {
    min-width: 0 !important;
  }

  input[style*="width"],
  select[style*="width"],
  textarea[style*="width"],
  button[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-title,
  .h1,
  .h2 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .signup-card,
  .account-card,
  .summary-box,
  .account-section,
  .portal-section {
    border-radius: 18px !important;
    padding: 16px !important;
  }

  .dashboard-quick-link {
    padding: 0.9rem 1rem;
    gap: 12px;
  }

  .dashboard-quick-link i {
    font-size: 1.25rem;
  }

  .hero__trust,
  .preview__bottom,
  .cta__actions,
  .actions {
    gap: 10px !important;
  }

  .hero__cta > *,
  .cta__actions > *,
  .actions > * {
    width: 100%;
    justify-content: center;
  }

  .trustItem,
  .pillBtn,
  .btn,
  .btn--ghost,
  .btn-ghost,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .platform-legal-gate__panel,
  .modal__panel {
    padding: 16px;
    border-radius: 16px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
  select,
  textarea,
  .input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="range"]) {
    padding: 12px 14px;
    border-radius: 12px;
  }
}

/* Shared responsive shell for landing and marketing pages */
@media (max-width: 980px) {
  .nav__inner {
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  .brand--enhanced,
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 56px);
  }

  .brand__text,
  .brand__name,
  .brand__tagline {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__actions {
    gap: 8px !important;
    flex: 0 0 auto;
    min-width: fit-content;
  }

  .nav__mobileInner,
  .nav__mobileCtas {
    width: 100%;
  }

  .nav__mobileCtas {
    flex-wrap: wrap;
  }

  .nav__mobileCtas > * {
    flex: 1 1 220px;
    max-width: 100%;
  }

  .hero__copy,
  .hero__visual,
  .section__head,
  .cta__inner > * {
    min-width: 0;
  }

  .preview,
  .platform2__stage,
  .mockup-pair,
  .cta__inner,
  .modal__panel,
  .platform-legal-gate__panel {
    width: 100%;
    max-width: 100%;
  }

  .preview__top,
  .screenTop,
  .phoneCard__head,
  .miniCard,
  .mockRow {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .nav__inner {
    align-items: center;
  }

  .brand--enhanced {
    padding: 4px 6px;
    gap: 8px;
  }

  .brand__logo-wrapper {
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    max-height: 36px;
  }

  .brand__logo {
    max-width: 36px;
    max-height: 36px;
  }

  .brand__name {
    font-size: clamp(0.95rem, 5vw, 1.05rem);
  }

  .hero__trust > *,
  .preview__bottom > *,
  .cta__actions > * {
    flex: 1 1 100%;
  }

  .preview__chips {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav__actions {
    gap: 6px !important;
  }

  .iconbtn,
  .nav__burger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .platform-legal-gate,
  .modal {
    padding: 14px;
  }

  .platform-legal-gate__panel,
  .modal__panel {
    border-radius: 14px;
    padding: 14px;
  }
}

/* Responsive adjustments for medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    header:not(.nav) .brand-text span:first-child {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    header:not(.nav) .nav-links a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

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

/* Section Header Styles - Portal pages only */
header:not(.nav) ~ section .section-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease;
}

header:not(.nav) ~ section .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, var(--purple-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

header:not(.nav) ~ section .section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.brand{display:flex; align-items:center; gap:12px; transition: all 0.3s var(--ease); min-width:0; flex-shrink:1;}
.brand--enhanced{gap:16px; padding:8px 12px; border-radius:16px; position:relative;}
.brand--enhanced::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(var(--mint-rgb, 88,199,154),0.05);
  border-radius:16px;
  opacity:0;
  transition: opacity 0.3s var(--ease);
}
.brand--enhanced:hover::before{opacity:1;}
.brand__logo-wrapper{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:50px;
  max-width:50px;
  height:50px;
  max-height:50px;
  overflow:visible;
}
.brand__logo{
  height:auto;
  max-height:50px;
  max-width:50px;
  width:auto;
  transition: all 0.4s var(--ease);
  position:relative;
  z-index:2;
  object-fit:contain;
}
.brand--enhanced:hover .brand__logo{ transform: scale(1.08) rotate(-3deg); }

.brand__glow{
  position:absolute;
  inset:-8px;
  background: radial-gradient(circle, rgba(var(--mint-rgb, 88,199,154),0.4), transparent 70%);
  border-radius:50%;
  opacity:0;
  transition: opacity 0.4s var(--ease);
  z-index:1;
  filter:blur(12px);
}
.brand--enhanced:hover .brand__glow{ opacity:1; animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow{
  0%, 100% {transform: scale(1); opacity:0.6;}
  50% {transform: scale(1.1); opacity:0.8;}
}

.brand__text{display:flex; flex-direction:column; gap:2px; transition: transform 0.3s var(--ease);}
.brand--enhanced:hover .brand__text{ transform: translateX(3px); }

.brand__name{
  font-size:22px;
  font-weight:900;
  color:var(--text);
  line-height:1.1;
  letter-spacing:-0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand__tagline{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  letter-spacing:0.02em;
}

.nav__links{display:flex; gap:20px; align-items:center}
.nav__links a{color:var(--muted); font-weight:700; font-size:14px; padding:10px 10px; border-radius: 12px; transition: all .2s var(--ease)}
.nav__links a:hover{color:var(--text); background: rgba(255,255,255,.06)}

.nav__actions{display:flex; gap:10px; align-items:center; flex-shrink:0;}

.iconbtn{
  width:42px; height:42px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius: 14px;
  cursor:pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.iconbtn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07)}
.nav__burger{display:none}

.nav__mobile{border-top:1px solid rgba(255,255,255,.06); padding:8px 0; background: rgba(5,14,11,.72)}
.nav__mobileInner{display:flex; flex-direction:column; gap:10px; padding:12px 0}
.nav__mobileInner a{padding:12px 12px; border-radius:14px; background: rgba(255,255,255,.04)}
.nav__mobileCtas{display:flex; gap:10px}

/* Buttons - Modern & Sleek */
.btn{
  appearance:none; border:0; cursor:pointer;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2) 100%);
  color: #04110d;
  font-weight:700;
  padding:12px 20px;
  border-radius: 12px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 4px 12px rgba(var(--mint-rgb, 88,199,154), .25), 0 2px 4px rgba(0,0,0,.1);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .2s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover{
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(var(--mint-rgb, 88,199,154), .35), 0 4px 8px rgba(0,0,0,.15);
}

.btn:active{
  transform: translateY(0px) scale(.98);
  box-shadow: 0 2px 8px rgba(var(--mint-rgb, 88,199,154), .25);
}

.btn--ghost,
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--ghost:hover,
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Primary & secondary buttons - tighter radius for a cleaner portal UI */
.btn-primary,
.btn-secondary {
  border-radius: 14px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2) 100%) !important;
  color: #04110d !important;
  border: none !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--mint-rgb, 88,199,154), 0.35);
}
.btn-secondary {
  background: rgba(255,255,255,.05) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
  transform: translateY(-2px);
}

.btn--lg{padding:14px 24px; border-radius: 14px; font-size:15px; font-weight:700}
.btn--block{width:100%; justify-content:center}

/* ========== PORTAL UI: Sleek & Animated ========== */
/* Shared portal tabs, stat cards, and action buttons */

#assignment-location-tabs button,
#submission-location-tabs button,
.admin-nav-tabs button,
.config-subtab,
.branding-subtab,
.tab-nav button,
.location-tabs button {
  border-radius: 14px !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#assignment-location-tabs button:hover,
#submission-location-tabs button:hover,
.admin-nav-tabs button:hover,
.config-subtab:hover,
.branding-subtab:hover,
.tab-nav button:hover,
.location-tabs button:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#assignment-location-tabs button.active-location-tab,
#submission-location-tabs button.active-location-tab,
.admin-nav-tabs button.active,
.config-subtab.active,
.branding-subtab.active,
.tab-nav button.active,
.location-tabs button.active {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2) 100%) !important;
  border-color: transparent !important;
  color: #04110d !important;
  box-shadow: 0 4px 16px rgba(var(--mint-rgb, 88,199,154), 0.4), 0 2px 8px rgba(0,0,0,0.15) !important;
  transform: translateY(-1px);
}

#admin-day-filter-tabs button {
  border-radius: 12px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(10px);
}

#admin-day-filter-tabs button:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: translateY(-1px);
}

#admin-day-filter-tabs button.active {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2) 100%) !important;
  border-color: transparent !important;
  color: #04110d !important;
  box-shadow: 0 2px 12px rgba(var(--mint-rgb, 88,199,154), 0.35);
}

.view-toggle-btn {
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.9) !important;
  cursor: pointer;
}

.view-toggle-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: translateY(-1px);
}

.view-toggle-btn.active {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2) 100%) !important;
  border-color: transparent !important;
  color: #04110d !important;
  box-shadow: 0 2px 12px rgba(var(--mint-rgb, 88,199,154), 0.35);
}

/* Stat cards - sleek with subtle glow */
.portal-stat-card,
.stats-grid .stat-card {
  border-radius: 20px !important;
  padding: 20px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.portal-stat-card:hover,
.stats-grid .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(var(--mint-rgb, 88,199,154), 0.15);
  border-color: rgba(var(--mint-rgb, 88,199,154), 0.2) !important;
}

/* Action buttons (Make Admin, Make Coach) - high visibility */
.btn-action-admin,
.btn-action-coach {
  border-radius: 12px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}

.btn-action-admin {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #1c1917 !important;
}

.btn-action-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,191,36,0.4);
}

.btn-action-coach {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2) 100%) !important;
  color: #04110d !important;
}

.btn-action-coach:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--mint-rgb, 88,199,154), 0.4);
}

/* Summary boxes & account cards - sleek, animated */
.summary-box {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.summary-box:hover {
  border-color: rgba(var(--mint-rgb, 88,199,154), 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), 0 0 0 1px rgba(var(--mint-rgb, 88,199,154), 0.08);
}

.account-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.account-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--mint-rgb, 88,199,154), 0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 0 0 1px rgba(var(--mint-rgb, 88,199,154), 0.1);
}

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

.summary-box,
.account-card {
  animation: portalFadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Signup/dashboard cards - portal main content */
.signup-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.signup-card:hover {
  border-color: rgba(var(--mint-rgb, 88,199,154), 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(var(--mint-rgb, 88,199,154), 0.06);
}
.signup-card .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 1rem 0;
}
.signup-card .section-mini {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-soft);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.signup-card .section-mini i { color: var(--mint); }

/* Dashboard quick links grid */
.dashboard-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}
.dashboard-quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.25rem;
  background: rgba(var(--accent-rgb, 34, 23, 61), 0.4);
  border: 1px solid rgba(var(--purple-soft-rgb, 195, 166, 255), 0.2);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-quick-link:hover {
  background: rgba(var(--accent-rgb, 34, 23, 61), 0.6);
  border-color: rgba(var(--mint-rgb, 88,199,154), 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.dashboard-quick-link i {
  font-size: 1.5rem;
  color: var(--mint);
  flex-shrink: 0;
}
.dashboard-quick-link span { flex: 1; }

/* Dashboard table styling */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}
.dashboard-table th,
.dashboard-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dashboard-table th {
  color: var(--purple-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dashboard-table td { color: var(--text); font-size: 0.9rem; }
.dashboard-table tr:hover td { background: rgba(255,255,255,0.03); }
.dashboard-table .input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
}
.dashboard-table .input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(var(--mint-rgb, 88,199,154), 0.2);
}

.hidden { display: none !important; }

.account-section,
.portal-section {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.account-section:hover,
.portal-section:hover {
  border-color: rgba(var(--mint-rgb, 88,199,154), 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(var(--mint-rgb, 88,199,154), 0.08);
}

/* Search & inputs in portals - ensure visibility */
.search-box .input,
input[type="search"],
input[placeholder*="Search"],
input[placeholder*="search"] {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box .input::placeholder,
input[placeholder*="Search"]::placeholder,
input[placeholder*="search"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-box .input:focus,
input[type="search"]:focus,
input[placeholder*="Search"]:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb, 88,199,154), 0.2);
}

/* Hero */
.hero{position:relative; padding:64px 0 42px}
.hero__inner{display:grid; grid-template-columns: 1.1fr .9fr; gap:40px; align-items:center}
.hero__bg{position:absolute; inset:0; overflow:hidden; pointer-events:none}
.grid{position:absolute; inset:-1px; background:
        linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(closest-side at 40% 30%, rgba(0,0,0,.9), transparent 68%);
  opacity:.35;
}
.blob{position:absolute; width:560px; height:560px; filter: blur(30px); opacity:.35; transform: translate3d(0,0,0)}
.blob--1{left:-160px; top:-120px; background: radial-gradient(circle at 30% 30%, rgba(var(--mint-rgb, 88,199,154),.55), rgba(var(--forest-rgb, 11,61,46),.25), transparent 60%)}
.blob--2{right:-220px; top:0; background: radial-gradient(circle at 30% 30%, rgba(var(--forest-rgb, 11,61,46),.85), rgba(var(--mint-rgb, 88,199,154),.15), transparent 62%)}

.pill{display:inline-flex; align-items:center; gap:10px; padding:10px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: var(--muted); font-weight:800; font-size:13px}
.dot{width:8px; height:8px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 16px rgba(var(--mint-rgb, 88,199,154),.55)}

.h1{font-size: clamp(36px, 4.2vw, 60px); line-height:1.03; margin:14px 0 12px; letter-spacing: -0.03em}
.lead{color:var(--muted); font-size: 16.5px; line-height:1.7; margin:0 0 18px; max-width: 52ch}

.hero__cta{display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:18px 0}
.hero__trust{display:flex; gap:16px; flex-wrap:wrap; margin-top:16px}
.trustItem{display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:14px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); color: var(--muted); font-weight:750; font-size:13px}
.trustItem i{color: var(--mint)}

.card{background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius2); box-shadow: var(--shadow)}
.preview{padding:16px; position:relative; overflow:hidden}
.preview::before{content:""; position:absolute; inset:-2px; background: radial-gradient(600px 260px at 20% 0%, rgba(var(--mint-rgb, 88,199,154),.18), transparent 55%), radial-gradient(520px 260px at 100% 10%, rgba(var(--forest-rgb, 11,61,46),.35), transparent 60%); pointer-events:none}
.preview__top{position:relative; display:flex; justify-content:space-between; align-items:center; margin-bottom:12px}
.miniBrand{display:flex; gap:10px; align-items:center; color: var(--muted); font-weight:800; font-size:13px}
.miniDot{width:10px; height:10px; border-radius:999px; background: var(--mint2)}
.preview__chips{display:flex; gap:8px; align-items:center}
.chip{padding:7px 10px; border-radius:999px; background: rgba(var(--mint-rgb, 88,199,154),.14); border: 1px solid rgba(var(--mint-rgb, 88,199,154),.25); color: rgba(255,255,255,.90); font-weight:900; font-size:12px}
.chip--soft{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); color: var(--muted)}

.preview__grid{position:relative; display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.kpi{background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius: 18px; padding:12px}
.kpi--wide{grid-column:1/-1}
.kpi__label{color: var(--muted2); font-weight:800; font-size:12px}
.kpi__value{font-size: 18px; font-weight:1000; margin-top:6px}
.kpi__sub{color: var(--muted); font-size:12.5px; margin-top:6px}
.timeline{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.titem{display:flex; gap:10px; align-items:flex-start}
.t{width:9px; height:9px; border-radius:999px; background: rgba(var(--mint-rgb, 88,199,154),.7); margin-top:6px; box-shadow: 0 0 18px rgba(var(--mint-rgb, 88,199,154),.3)}
.muted{color: var(--muted)}

.preview__bottom{position:relative; display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.pillBtn{border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); color: var(--text); border-radius: 999px; padding:10px 12px; font-weight:900; cursor:pointer; transition: transform .18s var(--ease), background .18s var(--ease)}
.pillBtn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07)}

.floating{position:absolute; right:-18px; bottom:22px; transform: translate3d(0,0,0)}
.floating--2{right:auto; left:-18px; bottom:88px}
.miniCard{display:flex; gap:10px; align-items:flex-start; padding:12px 12px; border-radius:18px; background: rgba(5,14,11,.72); border:1px solid rgba(255,255,255,.10); box-shadow: 0 24px 60px rgba(0,0,0,.35)}
.miniCard i{color: var(--mint); font-size:18px; margin-top:2px}

/* Strip */
.strip{padding:18px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02)}
.strip__inner{display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.strip__title{color: var(--muted2); font-weight:900; letter-spacing:.08em; text-transform:uppercase; font-size:12px}
.strip__items{display:flex; gap:10px; flex-wrap:wrap}
.tag{padding:9px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--muted); font-weight:800; font-size:13px}

/* Sections */
.section{padding:76px 0}
.section--alt{background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border-top:1px solid rgba(255,255,255,.05); border-bottom:1px solid rgba(255,255,255,.05)}
.section__head{display:flex; flex-direction:column; gap:10px; margin-bottom:26px}
.h2{font-size: clamp(26px, 2.7vw, 40px); letter-spacing: -0.02em; margin:0; font-weight:1000}
.h3{font-size: 22px; margin:0; font-weight:1000}
.sub{color: var(--muted); margin:0; line-height:1.6; max-width: 70ch}

/* Features */
.featureGrid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.fcard{padding:18px; border-radius: var(--radius); background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); will-change: transform}
.fcard:hover{transform: translateY(-6px) scale(1.02); background: rgba(255,255,255,.08); border-color: rgba(var(--mint-rgb, 88,199,154),.35); box-shadow: 0 20px 40px rgba(var(--mint-rgb, 88,199,154),.15)}
.ficon{width:46px; height:46px; border-radius: 16px; display:grid; place-items:center; background: rgba(var(--mint-rgb, 88,199,154),.14); border:1px solid rgba(var(--mint-rgb, 88,199,154),.25); color: rgba(255,255,255,.92); margin-bottom:12px}
.fcard h3{margin:0 0 8px; font-size:16px; font-weight:1000}
.fcard p{margin:0 0 12px; color: var(--muted); line-height:1.6; font-size:14px}
.fmeta{color: var(--muted2); font-weight:800; font-size:12.5px}

.customize{margin-top:18px; display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; align-items:start; padding:18px; border-radius: var(--radius2); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08)}
.term{grid-column: 1 / -1; padding:14px; border-radius: 18px; background: rgba(5,14,11,.65); border:1px solid rgba(255,255,255,.10)}
.termGrid{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px}
.termCell{padding:12px; border-radius: 16px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08)}
.termCell .k{color: var(--muted2); font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.06em}
.termCell .v{margin-top:6px; font-weight:1000}

/* How */
.how{display:grid; grid-template-columns: .9fr 1.1fr; gap:14px; align-items:stretch}
.how__steps{display:flex; flex-direction:column; gap:10px}
.step{display:grid; gap:4px; text-align:left; padding:14px; border-radius: 20px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); color: var(--text); cursor:pointer; transition: all .18s var(--ease)}
.step:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.step.is-active{border-color: rgba(var(--mint-rgb, 88,199,154),.28); background: rgba(var(--mint-rgb, 88,199,154),.10)}
.step__num{color: var(--muted2); font-weight:1000; letter-spacing:.08em}
.step__title{font-weight:1000}
.step__desc{color: var(--muted); font-weight:700; font-size:13px}

.how__panel{padding:16px}
.how__panelTop{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
.how__panelBody{display:grid; gap:12px}
.mockRow{display:flex; justify-content:space-between; gap:12px; padding:12px; border-radius: 16px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08)}
.mockRow strong{font-weight:1000}

/* Pricing */
.toggle{display:flex; gap:10px; align-items:center; margin-top:12px}
.toggle__btn{width:52px; height:30px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); position:relative; cursor:pointer}
.toggle__knob{position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:999px; background: linear-gradient(180deg, var(--mint) 0%, var(--mint2) 100%); transition: transform .22s var(--ease)}
.toggle__btn[aria-pressed="true"] .toggle__knob{transform: translateX(22px)}
.badge{padding:3px 8px; border-radius:999px; background: rgba(var(--mint-rgb, 88,199,154),.12); border:1px solid rgba(var(--mint-rgb, 88,199,154),.22); color: rgba(255,255,255,.88); font-weight:900; font-size:11px}

.pricing{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.pcard{padding:18px; border-radius: var(--radius2); background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); position:relative; overflow:hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); will-change: transform}
.pcard:hover{transform: translateY(-8px) scale(1.03); box-shadow: 0 25px 50px rgba(var(--mint-rgb, 88,199,154),.2)}
.pcard--featured{border-color: rgba(var(--mint-rgb, 88,199,154),.35); background: rgba(var(--mint-rgb, 88,199,154),.08)}
.pcard--featured::before{content:""; position:absolute; inset:-2px; background: radial-gradient(520px 220px at 20% 0%, rgba(var(--mint-rgb, 88,199,154),.20), transparent 55%); pointer-events:none}
.most{position:absolute; top:14px; right:14px; padding:7px 10px; border-radius:999px; background: rgba(var(--mint-rgb, 88,199,154),.18); border:1px solid rgba(var(--mint-rgb, 88,199,154),.28); font-weight:1000; font-size:12px}
.phead h3{margin:0 0 6px; font-weight:1000}
.price{display:flex; align-items:baseline; gap:6px; margin:12px 0 10px; position:relative}
.pval{font-size: 38px; font-weight:1100; letter-spacing: -0.03em}
.psub{color: var(--muted)}
.plist{list-style:none; padding:0; margin:0 0 14px; display:grid; gap:10px}
.plist li{display:flex; gap:10px; align-items:flex-start; color: var(--muted); font-weight:700}
.plist i{color: var(--mint); margin-top:2px}

.note{margin-top:14px; display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius: 18px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); color: var(--muted)}
.note i{color: var(--mint); margin-top:2px}

/* FAQ */
.faq{display:grid; gap:12px}
.faq details{background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10); border-radius: 18px; padding:12px 14px}
.faq summary{cursor:pointer; font-weight:1000}
.faq__body{color: var(--muted); margin-top:10px; line-height:1.7}

/* CTA */
.cta{padding:56px 0; background: radial-gradient(900px 480px at 40% 20%, rgba(var(--mint-rgb, 88,199,154),.18), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01))}
.cta__inner{display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px; border-radius: var(--radius2); background: rgba(5,14,11,.65); border:1px solid rgba(255,255,255,.10)}
.cta__actions{display:flex; gap:12px; flex-wrap:wrap}

/* Footer */
.footer{padding:22px 0 26px; border-top:1px solid rgba(255,255,255,.06)}
.footer__inner{display:flex; justify-content:space-between; gap:14px; align-items:center; flex-wrap:wrap}
.footer__logo{height:34px; width:auto; border-radius:10px}
.footer__right{display:flex; gap:14px; flex-wrap:wrap}
.footer__right a{color: var(--muted); font-weight:800}
.footer__right a:hover{color: var(--text)}

/* Portal footer - Powered by CoachMate (all dashboards/portals) */
.portal-footer {
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}
.portal-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portal-footer__org {
  color: var(--muted);
  font-size: 0.875rem;
}
.portal-footer__powered {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.portal-footer__powered-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.portal-footer__powered-link:hover {
  color: var(--mint);
}
.portal-footer__logo {
  height: 20px;
  width: auto;
  border-radius: 6px;
  vertical-align: middle;
}
.portal-footer__legal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}
.portal-footer__legal a {
  color: var(--muted2);
  font-size: 0.8rem;
  text-decoration: none;
}
.portal-footer__legal a:hover {
  color: var(--mint);
}
.portal-footer--minimal .portal-footer__org {
  display: none;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer__right {
    width: 100%;
    gap: 8px;
  }
  .footer__right a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }
  .footer__right a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(0,0,0,0.24);
  }
  .footer__right a:active {
    transform: translateY(0);
  }
  .portal-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .portal-footer__org,
  .portal-footer__powered {
    width: 100%;
  }
  .portal-footer__legal {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .portal-footer__legal a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }
  .portal-footer__legal a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(0,0,0,0.24);
  }
  .portal-footer__legal a:active {
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .portal-footer__legal {
    grid-template-columns: 1fr;
  }
}

.platform-legal-gate {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.platform-legal-gate__panel {
  width: min(760px, 100%);
  background: rgba(8, 18, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  padding: 20px;
}
.platform-legal-gate__panel h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
}
.platform-legal-gate__sub {
  margin: 0 0 4px;
  color: var(--muted);
}
.platform-legal-gate__version {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
}
.platform-legal-gate__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}
.platform-legal-gate__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.platform-legal-gate__check a {
  color: var(--mint);
}
.platform-legal-gate__links {
  margin: 10px 0 14px;
  font-size: 0.85rem;
}
.platform-legal-gate__links a {
  color: var(--muted);
}
.platform-legal-gate__links a:hover {
  color: var(--mint);
}
.platform-legal-gate__error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #ff6b6b;
  font-size: 0.85rem;
}

/* Modal */
.modal{position:fixed; inset:0; z-index:1200; display:none}
.modal[aria-hidden="false"]{display:block}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px)}
.modal__panel{position:relative; width:min(520px, calc(100% - 26px)); margin: 8vh auto 0; padding:16px; border-radius: 22px; background: rgba(5,14,11,.92); border:1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px rgba(0,0,0,.45)}
.modal__top{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.form{display:grid; gap:10px; margin-top:12px}
label span{display:block; font-size:12px; color: var(--muted2); font-weight:900; margin-bottom:6px}
input, textarea, select{
  width:100%;
  padding:12px 16px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
  font-family:inherit;
  font-size:14px;
  box-sizing:border-box;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(10px);
}
/* Universal select/dropdown styling - Modern & Visible */
select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23ffffff' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

select:hover, select:focus{
  border-color: var(--mint);
  background-color: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb, 88,199,154), .15);
}

/* Dropdown options - High contrast and visible */
select option{
  background: #0a1f1a !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  border: none !important;
  font-size: 14px !important;
}

select option:hover, 
select option:focus, 
select option:checked{
  background: var(--mint) !important;
  color: #04110d !important;
  font-weight: 600 !important;
}

/* Ensure dropdowns appear above other content */
select {
  z-index: 100;
}

/* For browsers that support it, style the dropdown list */
select:focus {
  z-index: 1000;
}
textarea{ resize:vertical; min-height:80px; line-height:1.5; }
input:focus, textarea:focus, select:focus{
  border-color: var(--mint);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb, 88,199,154),.15), 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-1px);
}
/* Logo size constraints - global (for pages that don't use brand__logo-wrapper) */
.brand-logo{
  max-width: 50px;
  max-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Toast */
#toast-container{
  position: fixed;
  inset: 0;
  z-index: 13001;
  pointer-events: none;
}

.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 13001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5,14,11,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color: var(--text);
  pointer-events: auto;
}
.toast[hidden]{display:none;}
.toast i{color: var(--mint); font-size: 18px;}
@media (max-width: 980px){
  .toast{
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }
}

/* Reveal animations: visible by default for safety */
[data-reveal], .fcard, .pcard, .h2, .h3 {
  opacity: 1;
  visibility: visible;
}

/* Reveal-ready mode hides items until they enter the viewport */
html.js.reveal-ready [data-reveal],
html.js.reveal-ready .fcard,
html.js.reveal-ready .pcard,
html.js.reveal-ready .h2,
html.js.reveal-ready .h3,
html.js.reveal-ready .mockup-pair {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js.reveal-ready [data-reveal].is-revealed,
html.js.reveal-ready .fcard.is-revealed,
html.js.reveal-ready .pcard.is-revealed,
html.js.reveal-ready .h2.is-revealed,
html.js.reveal-ready .h3.is-revealed,
html.js.reveal-ready .mockup-pair.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  [data-reveal], .fcard, .pcard, .h2, .h3, .mockup-pair{
    opacity: 1 !important; 
    transform: none !important; 
    transition: none !important;
  }
}

/* ✅ Tap-to-hover (mobile): emulate hover glow/lift on tap */
@media (hover: none) and (pointer: coarse){
  .fcard.is-tapped,
  .pcard.is-tapped,
  .step.is-tapped,
  .ptab2.is-tapped{
    transform: translateY(-2px);
    background: rgba(255,255,255,.07);
    border-color: rgba(var(--mint-rgb, 88,199,154),.22);
  }

  .pcard--featured.is-tapped{
    border-color: rgba(var(--mint-rgb, 88,199,154),.45);
    background: rgba(var(--mint-rgb, 88,199,154),.10);
  }

  .fcard.is-tapped .ficon{
    background: rgba(var(--mint-rgb, 88,199,154),.18);
    border-color: rgba(var(--mint-rgb, 88,199,154),.32);
  }
}

/* =========================
   Platform v2: Phone + Desktop
   ========================= */

.platform2{
  display:grid;
  grid-template-columns: .42fr .58fr;
  gap:14px;
  align-items:stretch;
}

/* Hide desktop platform on mobile */
@media (max-width: 980px){
  .platform2--desktop{
    display:none !important;
  }
}

/* Mobile scroll-based platform showcase */
.platform-scroll{
  display:none;
}

@media (max-width: 980px){
  .platform-scroll--mobile{
    display:block;
  }
}

/* Compact mobile mockups */
.mobile-mockups{
  padding:0;
}

.mobile-mockups__header{
  text-align:center;
  margin-bottom:48px;
}

.mobile-mockups__header .h3{
  margin-bottom:8px;
}

.mockup-pair{
  margin-bottom:64px;
  padding:32px 20px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  position:relative;
  overflow:hidden;
}

.mockup-pair::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(500px 250px at 50% 0%, rgba(var(--mint-rgb, 88,199,154),.10), transparent 70%);
  pointer-events:none;
  opacity:0;
  transition: opacity 0.5s var(--ease);
}

.mockup-pair.is-visible::before{
  opacity:1;
}

.mockup-pair__content{
  position:relative;
  z-index:2;
}

.mockup-pair__info{
  text-align:center;
  margin-bottom:32px;
}

.mockup-pair__icon{
  width:64px;
  height:64px;
  border-radius:20px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  background: rgba(var(--mint-rgb, 88,199,154),.12);
  border:1px solid rgba(var(--mint-rgb, 88,199,154),.20);
  color: var(--mint);
  font-size:28px;
}

.mockup-pair__info h4{
  font-size:20px;
  font-weight:800;
  margin:0 0 8px;
  letter-spacing:-0.01em;
}

.mockup-pair__info p{
  color: var(--muted);
  font-size:14px;
  margin:0;
}

.mockup-pair__devices{
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.mockup-device{
  flex:1;
  min-width:140px;
  max-width:200px;
  position:relative;
}

.mockup-device--desktop{
  order:1;
}

.mockup-device--phone{
  order:2;
}

.mockup-device .device{
  width:100%;
  transform:scale(0.9);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mockup-pair.is-visible .mockup-device .device{
  transform:scale(1);
}

.mockup-device--desktop .device{
  animation: floatDesktop 4s ease-in-out infinite;
  animation-delay:0s;
}

.mockup-device--phone .device{
  animation: floatPhone 4s ease-in-out infinite;
  animation-delay:0.5s;
}

@keyframes floatDesktop{
  0%, 100%{ transform:translateY(0) scale(1); }
  50%{ transform:translateY(-8px) scale(1.02); }
}

@keyframes floatPhone{
  0%, 100%{ transform:translateY(0) scale(1); }
  50%{ transform:translateY(8px) scale(1.02); }
}

.mockup-pair--2 .mockup-device--desktop .device{
  animation-delay:0.3s;
}

.mockup-pair--2 .mockup-device--phone .device{
  animation-delay:0.8s;
}

.platform-scroll__cta{
  margin-top:48px;
  display:grid;
  gap:12px;
  padding-top:40px;
  border-top:1px solid rgba(255,255,255,.10);
}

.platform2__tabs{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ptab2{
  display:flex;
  gap:12px;
  align-items:center;
  text-align:left;
  padding:14px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  transition: all .18s var(--ease);
}
.ptab2 i{font-size:20px; color: rgba(255,255,255,.92)}
.ptab2 span{display:flex; flex-direction:column; gap:3px}
.ptab2 strong{font-weight:1000}
.ptab2:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.ptab2.is-active{border-color: rgba(var(--mint-rgb, 88,199,154),.30); background: rgba(var(--mint-rgb, 88,199,154),.10)}

.platform2__cta{display:grid; gap:10px; margin-top:6px}

.platform2__stage{
  position:relative;
  border-radius: var(--radius2);
  padding:18px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  display:grid;
  grid-template-columns: .42fr .58fr;
  gap:14px;
  align-items:center;
}
.platform2__stage::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
          radial-gradient(700px 280px at 15% 0%, rgba(var(--mint-rgb, 88,199,154),.16), transparent 55%),
          radial-gradient(540px 300px at 100% 10%, rgba(var(--forest-rgb, 11,61,46),.32), transparent 60%);
  pointer-events:none;
}

/* Device wrappers */
.device{position:relative; z-index:2}
.device--phone{justify-self:start}
.device--desktop{justify-self:stretch}

/* Phone frame */
.device__bezel{
  width:min(320px, 100%);
  aspect-ratio: 10 / 20;
  border-radius: 34px;
  padding:12px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: perspective(900px) rotateY(8deg) rotateX(1deg);
  position:relative;
}
.device__notch{
  position:absolute;
  left:50%;
  top:10px;
  transform: translateX(-50%);
  width: 42%;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
  z-index:3;
}
.device__screen{
  height:100%;
  border-radius: 26px;
  background: rgba(5,14,11,.72);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  position:relative;
}
.device__shadow{
  position:absolute;
  inset:auto 0 -18px 0;
  height: 36px;
  filter: blur(18px);
  background: radial-gradient(circle at 40% 50%, rgba(0,0,0,.5), transparent 70%);
  z-index:1;
}

/* Phone UI */
.screenTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.screenTop__left{display:flex; gap:10px; align-items:center}
.avatar{
  width:38px; height:38px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(var(--mint-rgb, 88,199,154),.14);
  border:1px solid rgba(var(--mint-rgb, 88,199,154),.25);
  font-weight:1000;
}
.screenTop__title{font-weight:1000}
.screenTop__sub{font-size:12.5px}
.badgePill{
  padding:7px 10px;
  border-radius: 999px;
  background: rgba(var(--mint-rgb, 88,199,154),.14);
  border:1px solid rgba(var(--mint-rgb, 88,199,154),.25);
  font-weight:1000;
  font-size:12px;
}

.screenBody{padding:14px; display:grid; gap:10px}
.phoneCard{
  padding:12px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.phoneCard__head{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.rsvpRow{display:flex; gap:8px; margin-top:10px}
.rsvpBtn{
  flex:1;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
  padding:10px;
  font-weight:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.rsvpBtn.is-yes{background: rgba(var(--mint-rgb, 88,199,154),.14); border-color: rgba(var(--mint-rgb, 88,199,154),.25)}

/* Pills used inside platform blocks */
.pspill{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(var(--mint-rgb, 88,199,154),.14);
  border:1px solid rgba(var(--mint-rgb, 88,199,154),.25);
  font-weight:1000;
  font-size:12px;
  color: rgba(255,255,255,.92);
  white-space:nowrap;
}
.pspill--soft{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: var(--muted);
}

/* Desktop browser frame */
.browser{
  width:100%;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  transform: perspective(1200px) rotateY(-6deg) rotateX(1deg);
}
.browser__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  background: rgba(5,14,11,.62);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.dots{display:flex; gap:8px; align-items:center}
.d{width:10px; height:10px; border-radius:999px; opacity:.9}
.d--r{background:#ff5f57}
.d--y{background:#febc2e}
.d--g{background:#28c840}

.url{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-weight:900;
  font-size:12.5px;
  max-width: 460px;
  margin:0 10px;
}
.browser__actions{display:flex; gap:8px; align-items:center}
.browser__screen{
  padding:14px;
  background: rgba(255,255,255,.02);
}

/* Desktop UI blocks */
.dashGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
}
.dashKpi{
  padding:16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.dashKpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,.2);
}
.dashKpi .k{color: var(--muted2); font-weight:700; font-size:0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom:8px}
.dashKpi .v{font-weight:800; font-size:24px; margin-top:4px; line-height:1.2}
.dashWide{
  grid-column: 1 / -1;
  padding:16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.tableRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  margin-top:10px;
  transition: all 0.2s ease;
}
.tableRow:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  transform: translateX(4px);
}

/* Floating cards */
.floatCard{
  position:absolute;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:18px;
  background: rgba(5,14,11,.78);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.40);
  z-index:3;
}
.floatCard i{color: var(--mint); font-size:18px; margin-top:2px}
.floatCard--a{right:22px; top:24px}
.floatCard--b{left:22px; bottom:22px}

/* Responsive */
@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr; gap:28px;}
  .hero{padding-top:32px; padding-bottom:24px;}
  .h1{line-height:1.1;}
  .featureGrid{grid-template-columns: 1fr 1fr}
  .pricing{grid-template-columns: 1fr}
  .how{grid-template-columns: 1fr}
  .customize{grid-template-columns: 1fr}
  .floating{display:none}
  .nav__links{display:none}
  .nav__burger{display:grid}

  .nav__inner{gap:8px; padding:12px 0;}
  .nav__actions{gap:6px;}

  /* Hide demo button on tablet/mobile — it's in the mobile menu */
  #openDemo{ display:none !important; }

  .brand__logo-wrapper{min-width:42px; max-width:42px; height:42px; max-height:42px;}
  .brand__logo{height:auto; max-height:42px; max-width:42px;}
  .brand__name{font-size:18px;}
  .brand__tagline{font-size:9px; max-width:120px;}
  .brand--enhanced{gap:8px; padding:4px 8px;}

  .nav__actions .btn{
    font-size:13px;
    padding:0 16px;
    min-height:38px;
  }
  .nav__actions .btn--ghost{
    padding:0 12px;
    min-height:38px;
  }
  .iconbtn{ width:38px; height:38px; }

  .h1{font-size:38px;}
  .h2{font-size:32px;}
  .h3{font-size:22px;}

  .platform2{grid-template-columns:1fr}
  .platform2__stage{grid-template-columns:1fr; gap:12px}
  .device__bezel, .browser{transform:none}
  .floatCard{display:none}
}

@media (max-width: 640px){
  /* On small mobile, hide all nav text buttons — only burger remains */
  .nav__actions > .btn,
  .nav__actions > a.btn{ display:none !important; }
  .brand__tagline{ display:none; }
}

@media (max-width: 520px){
  .featureGrid{grid-template-columns: 1fr}
  .termGrid{grid-template-columns: 1fr}
  .cta__inner{flex-direction:column; align-items:flex-start}

  .brand__logo-wrapper{min-width:36px; max-width:36px; height:36px; max-height:36px;}
  .brand__logo{height:auto; max-height:36px; max-width:36px;}
  .brand__name{font-size:16px;}
  .brand__tagline{display:none;}

  /* Only show phone mockup on very small screens */
  .mockup-device--desktop{ display:none; }
  .mockup-device--phone{ max-width:100%; flex:1 1 100%; }
}

/* ============================================================================
   Shared responsive table styles
   ============================================================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

@media (max-width: 768px) {
  table {
    font-size: 0.85rem;
  }
  table th, table td {
    padding: 8px 6px;
  }
}

@media (max-width: 480px) {
  table {
    font-size: 0.78rem;
  }
  table th, table td {
    padding: 6px 4px;
  }
}

/* ============================================================================
   Popup / Modal visibility
   Makes overlays and modals stand out clearly on dark backgrounds.
   Add .popup-visible-overlay / .popup-visible-content to any modal for consistency.
   ============================================================================ */
.address-validation-overlay,
.popup-visible-overlay {
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(8px);
}
.address-validation-modal,
.popup-visible-content {
  background: var(--bg, rgba(14, 32, 28, 0.98)) !important;
  border: 2px solid rgba(var(--mint-rgb, 88, 199, 154), 0.25) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 32px 64px rgba(0,0,0,0.6), 0 0 80px rgba(var(--mint-rgb, 88, 199, 154), 0.08) !important;
}
