@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');
    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root { --primary: #FF4D00; --secondary: #0A1628; --accent: #00D4FF; --surface: #0F1D32; --surface2: #162540; --text: #F1F5F9; --text-muted: #8899AA; --success: #10B981; --warning: #F59E0B; --gradient: linear-gradient(135deg, #FF4D00 0%, #FF8A00 100%); --gradient2: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%); }
    /* iOS header-float fix: body never scrolls (nothing to rubber-band); the app scrolls inside .app-container */
    html, body { height: 100%; overflow: hidden; overscroll-behavior-y: none; touch-action: manipulation; }
    body { font-family: 'Source Sans 3', sans-serif; background: var(--secondary); color: var(--text); position: fixed; inset: 0; width: 100%; }
    .app-container { height: 100%; background: var(--secondary); display: flex; flex-direction: column; overflow: hidden; }
    /* The ONLY scrolling element. The nav lives outside it, so iOS physically cannot move the nav. */
    .app-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: none; padding-bottom: 88px; }
    h1, h2, h3, h4, h5 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
    .hero { position: relative; min-height: calc(100vh - 42px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 20px 32px; overflow: hidden; }
    .announce-bar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 6px 16px; background: linear-gradient(90deg, rgba(255,77,0,0.22), rgba(255,138,0,0.22)); border-bottom: 1px solid rgba(255,138,0,0.4); color: #fff; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
    .announce-bar:hover { background: linear-gradient(90deg, rgba(255,77,0,0.32), rgba(255,138,0,0.32)); }
    .announce-bar .arrow { color: var(--primary); font-weight: 700; }
    .hero-bg { position: absolute; inset: 0; z-index: 0; }
    .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
    .hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,22,40,0.25) 0%, transparent 25%, transparent 45%, rgba(10,22,40,0.55) 62%, rgba(10,22,40,0.88) 78%, var(--secondary) 94%); z-index: 1; }
    .hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 58% at 50% 52%, rgba(6,14,26,0.74) 0%, rgba(6,14,26,0.35) 48%, transparent 78%); }
    .hero-content { position: relative; z-index: 2; max-width: 800px; padding-bottom: 8px; }
    .hero-grid { display: none; }
    .logo-text { font-family: 'Oswald', sans-serif; font-size: 64px; font-weight: 700; letter-spacing: 5px; background: linear-gradient(135deg, #FF4D00, #FF8A00, #FFB800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 4px; }
    .logo-sub { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 8px; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
    .hero-headline { font-size: 22px; font-weight: 400; color: var(--text); line-height: 1.3; margin-bottom: 20px; font-family: 'Source Sans 3', sans-serif; text-transform: none; letter-spacing: 0; font-style: italic; }
    .hero-headline strong { font-weight: 700; color: #fff; }
    .cta-btn { display: inline-block; padding: 16px 48px; background: var(--gradient); color: white; font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; }
    .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,77,0,0.4); }
    .cta-btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
    .cta-btn-outline:hover { background: var(--accent); color: var(--secondary); }
    .cta-btn-sm { padding: 10px 24px; font-size: 13px; }
    .stats-bar { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
    .stat-item { text-align: center; }
    .stat-num { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
    .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; padding: 80px 20px; }
    .feature-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 32px; transition: all 0.3s; position: relative; overflow: hidden; }
    .feature-card:hover { border-color: rgba(255,77,0,0.3); transform: translateY(-4px); }
    .feature-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); opacity: 0; transition: opacity 0.3s; }
    .feature-card:hover::after { opacity: 1; }
    .feature-icon { font-size: 36px; margin-bottom: 16px; }
    .feature-title { font-family: 'Oswald', sans-serif; font-size: 18px; margin-bottom: 8px; color: #fff; letter-spacing: 1px; }
    .feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
    .nav { position: relative; z-index: 100; flex-shrink: 0; background: rgba(10,22,40,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 16px; padding-top: env(safe-area-inset-top); display: flex; align-items: center; height: calc(64px + env(safe-area-inset-top)); gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav-logo { font-family: "Oswald", sans-serif; font-size: 31px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; cursor: pointer; letter-spacing: 3px; flex-shrink: 0; }
    .nav-links { display: flex; gap: 4px; flex-shrink: 0; }
    .nav-link { padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 4px; transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px; font-family: 'Oswald', sans-serif; border: none; background: none; white-space: nowrap; }
    .nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.06); }
    .nav-link.active { color: var(--primary); }
    .page-content { max-width: 1200px; margin: 0 auto; padding: 32px 20px; width: 100%; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
    .page-content.page-in { opacity: 1; transform: none; }
    .filter-bar { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; align-items: center; }
    .sport-pill { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-family: 'Source Sans 3', sans-serif; }
    .sport-pill.active { background: var(--gradient); color: white; border-color: transparent; }
    .sport-pill:hover:not(.active) { border-color: rgba(255,77,0,0.4); color: #fff; }
    .search-input { flex: 1; min-width: 200px; padding: 10px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); background: var(--surface); color: #fff; font-size: 14px; font-family: 'Source Sans 3', sans-serif; outline: none; }
    .search-input:focus { border-color: var(--primary); }
    .search-input::placeholder { color: var(--text-muted); }
    .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
    .listing-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 24px; transition: all 0.3s; cursor: pointer; position: relative; }
    .listing-card:hover { border-color: rgba(255,77,0,0.3); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
    .listing-card.featured { border-color: rgba(255,77,0,0.2); }
    .listing-card.featured::before { content: 'FEATURED'; position: absolute; top: 12px; right: 12px; font-family: 'Oswald'; font-size: 10px; letter-spacing: 2px; color: var(--primary); background: rgba(255,77,0,0.1); padding: 3px 10px; border-radius: 3px; border: 1px solid rgba(255,77,0,0.2); }
    .listing-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .trainer-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 24px; display: flex; gap: 20px; transition: all 0.3s; }
    .trainer-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }
    .trainer-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; font-family: 'Oswald'; color: white; flex-shrink: 0; }
    .tab-bar { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 2px solid rgba(255,255,255,0.06); overflow-x: auto; scrollbar-width: none; }
    .tab { padding: 14px 22px; font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); cursor: pointer; border: none; background: none; position: relative; transition: color 0.2s; white-space: nowrap; flex-shrink: 0; }
    .tab.active { color: var(--primary); }
    .tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--gradient); }
    .profile-section { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 32px; margin-bottom: 24px; }
    .input-group { margin-bottom: 20px; }
    .input-label { display: block; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
    .input-field { width: 100%; padding: 12px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); background: var(--surface2); color: #fff; font-size: 15px; font-family: 'Source Sans 3', sans-serif; outline: none; }
    .input-field:focus { border-color: var(--primary); }
    select.input-field { cursor: pointer; }
    .hero-select { height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #fff; background-color: rgba(8,16,30,0.92); border: 1.5px solid rgba(255,255,255,0.45); -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding: 0 42px 0 14px; }
    .hero-select:focus { border-color: var(--accent); }
    textarea.input-field { resize: vertical; min-height: 60px; }
    .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
    .video-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
    .video-card:hover { border-color: rgba(255,77,0,0.3); transform: translateY(-2px); }
    .video-thumb { height: 170px; background: var(--surface2); display: flex; align-items: center; justify-content: center; position: relative; }
    .play-btn { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,77,0,0.9); display: flex; align-items: center; justify-content: center; font-size: 20px; }
    .lock-overlay { position: absolute; inset: 0; background: rgba(10,22,40,0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
    .modal { background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 40px; max-width: 480px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
    .modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
    .pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; margin: 0 auto; }
    .price-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 32px; text-align: center; }
    .price-card.featured { border-color: var(--primary); position: relative; }
    .price-card.featured::before { content: 'BEST VALUE'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; font-family: 'Oswald'; font-size: 11px; letter-spacing: 2px; padding: 4px 16px; border-radius: 20px; }
    .price-amount { font-family: 'Oswald', sans-serif; font-size: 48px; font-weight: 700; color: #fff; }
    .price-features { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
    .price-features li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.04); }
    .price-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }
    .section-title { font-family: 'Oswald', sans-serif; font-size: 32px; text-align: center; margin-bottom: 12px; letter-spacing: 2px; }
    .section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 16px; }
    .footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
    /* Rivalry bar */
    /* Onboarding */
    .onboard-card { background: var(--surface); border: 2px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; cursor: pointer; transition: all 0.3s; text-align: center; }
    .onboard-card:hover { border-color: rgba(255,77,0,0.4); transform: translateY(-3px); }
    .onboard-card.selected { border-color: var(--primary); background: rgba(255,77,0,0.06); }
    @keyframes fadeSlideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
    .fade-in { animation: fadeSlideIn 0.5s ease forwards; }
    .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: rgba(10,22,40,0.97); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-around; align-items: center; padding: 8px 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    .bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; background: none; border: none; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
    .bottom-nav-item.active { color: var(--primary); }
    .bottom-nav-item svg { width: 24; height: 24; stroke: currentColor; fill: none; stroke-width: 2; }
    .bottom-nav-label { font-size: 10px; font-family: 'Source Sans 3', sans-serif; letter-spacing: 0.5px; }
    @media (max-width: 768px) { .logo-text { font-size: 40px; letter-spacing: 3px; } .logo-sub { font-size: 12px; letter-spacing: 6px; } .hero-headline { font-size: 18px; } .stats-bar { gap: 8px; } .card-grid { grid-template-columns: 1fr; } .pricing-grid { grid-template-columns: 1fr; } .input-row { grid-template-columns: 1fr; } .nav-link { padding: 6px 8px; font-size: 10px; } }
