/* ========================================
   Turn The Page — Global Styles
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-card: #FFFFFF;
  --bg-elevated: #F0F0F2;
  --border: #E2E2E5;
  --border-light: #D0D0D5;
  --text: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #FF8201;
  --accent-light: #FF9A2E;
  --accent-dark: #E07300;
  --danger: #D64545;
  --success: #4CAF50;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.accent { color: var(--accent); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 3px; margin-bottom: 12px; display: block; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--text); margin-bottom: 16px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin: 0 auto; line-height: 1.6; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--delay, 0) * 0.06s); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   HEADER
   ======================================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0; transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.header-inner { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 52px; height: 52px; object-fit: contain; }
.footer .logo-img { width: 128px; height: 128px; }

/* Inner pages + scrolled home: light bar */
.header-solid,
.header--home.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 32px rgba(15,23,42,0.06); }
.header-solid .nav-link,
.header--home.scrolled .nav-link { color: #475569; }
.header-solid .nav-link:hover,
.header--home.scrolled .nav-link:hover { color: #0f172a; }
.header-solid .nav-link-active,
.header--home.scrolled .nav-link-active { color: var(--accent); }
.header-solid .menu-icon,
.header-solid .menu-icon::before,
.header-solid .menu-icon::after,
.header--home.scrolled .menu-icon,
.header--home.scrolled .menu-icon::before,
.header--home.scrolled .menu-icon::after { background: #0f172a; }

/* Home top (over hero): deep slate bar */
.header--home:not(.scrolled) { background: linear-gradient(180deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.88) 100%); border-bottom: 1px solid rgba(255,255,255,0.08); }
.header--home:not(.scrolled) .nav-link { color: rgba(248,250,252,0.82); }
.header--home:not(.scrolled) .nav-link:hover { color: #fff; }
.header--home:not(.scrolled) .nav-link-active { color: var(--accent-light); }
.header--home:not(.scrolled) .nav-link::after { background: var(--accent); }
.header--home:not(.scrolled) .menu-icon,
.header--home:not(.scrolled) .menu-icon::before,
.header--home:not(.scrolled) .menu-icon::after { background: #f8fafc; }

.nav { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: color 0.2s; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.2s; border-radius: 1px; }
.nav-link:hover::after { width: 100%; }
.nav-link-active::after { width: 100%; }

.cta-btn { font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); padding: 10px 20px; border-radius: 999px; transition: all 0.2s; letter-spacing: 0.02em; }
.cta-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,130,1,0.35); }

.nav-btn-ghost { font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); transition: all 0.2s; }
.nav-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.header--home:not(.scrolled) .nav-btn-ghost { border-color: rgba(255,255,255,0.35); color: rgba(248,250,252,0.95); }
.header--home:not(.scrolled) .nav-btn-ghost:hover { border-color: var(--accent-light); color: #fff; }

.mobile-logout { display: none; }

/* Profile dropdown */
.profile-wrap { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); padding: 6px 14px 6px 6px; border-radius: 50px; cursor: pointer; transition: all 0.2s; }
.profile-btn:hover { border-color: var(--border-light); background: var(--bg-elevated); }
.header--home:not(.scrolled) .profile-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.header--home:not(.scrolled) .profile-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.header--home:not(.scrolled) .profile-name { color: #f8fafc; }
.header--home:not(.scrolled) .profile-chevron { color: rgba(248,250,252,0.6); }
.profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-name { font-size: 13px; font-weight: 600; color: var(--text); }
.profile-chevron { color: var(--text-muted); transition: transform 0.2s; }
.profile-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); animation: dropdownIn 0.15s ease; }
.profile-dropdown.show { display: block; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.dropdown-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dropdown-name { font-size: 14px; font-weight: 600; color: var(--text); }
.dropdown-bike { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text-secondary); transition: all 0.15s; }
.dropdown-item:hover { background: var(--bg-elevated); color: var(--text); }
.dropdown-item-danger { color: var(--danger); }
.dropdown-item-danger:hover { background: rgba(214,69,69,0.08); }

.menu-btn { display: none; background: transparent; color: var(--text); padding: 8px; width: 40px; height: 40px; position: relative; z-index: 101; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; position: absolute; left: 8px; }
.menu-icon { top: 19px; }
.menu-icon::before { content: ''; top: -7px; }
.menu-icon::after { content: ''; top: 7px; }
.menu-btn.active .menu-icon { background: transparent; }
.menu-btn.active .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn.active .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* ========================================
   HERO — split layout
   ======================================== */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; padding-top: 76px; }
.hero-split-panel { position: relative; background: linear-gradient(165deg, #0f172a 0%, #1e293b 48%, #0f172a 100%); display: flex; align-items: center; justify-content: center; padding: 48px 40px 64px; overflow: hidden; }
.hero-split-decor { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255,130,1,0.14) 0%, transparent 55%), radial-gradient(ellipse 70% 50% at 90% 80%, rgba(59,130,246,0.08) 0%, transparent 50%); pointer-events: none; }
.hero-split-inner { position: relative; z-index: 1; max-width: 520px; width: 100%; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent-light); margin-bottom: 20px; text-transform: uppercase; }
.hero-split-title { font-size: clamp(32px, 4.2vw, 52px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; color: #f8fafc; margin-bottom: 20px; }
.hero-split-accent { color: var(--accent); display: inline-block; }
.hero-split-lead { font-size: 17px; line-height: 1.65; color: rgba(248,250,252,0.72); margin-bottom: 32px; max-width: 440px; }
.hero-split-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn-split-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; border-radius: 12px; transition: all 0.2s; }
.btn-split-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,130,1,0.35); }
.btn-split-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; background: transparent; color: #f8fafc; font-size: 15px; font-weight: 600; border-radius: 12px; border: 1px solid rgba(248,250,252,0.28); transition: all 0.2s; }
.btn-split-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(248,250,252,0.45); }

.hero-split-metrics { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; padding: 0; border-top: 1px solid rgba(248,250,252,0.12); padding-top: 28px; }
.hero-split-metrics li { display: flex; flex-direction: column; gap: 4px; }
.hero-split-metrics strong { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-split-metrics span { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(248,250,252,0.45); }

.hero-split-visual { position: relative; min-height: 420px; overflow: hidden; }
.hero-split-visual-bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; transform: scale(1.02); }
.hero-split-visual-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.08) 50%, rgba(255,130,1,0.08) 100%); }
.hero-split-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,0.35) 100%); pointer-events: none; }
.hero-split-caption { position: absolute; left: 28px; bottom: 28px; right: 28px; z-index: 2; padding: 18px 20px; background: rgba(15,23,42,0.72); backdrop-filter: blur(12px); border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); }
.hero-caption-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.15em; color: var(--accent-light); margin-bottom: 6px; }
.hero-split-caption p { font-size: 14px; font-weight: 500; color: rgba(248,250,252,0.9); line-height: 1.45; margin: 0; }

.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5; width: 28px; height: 44px; border: 2px solid rgba(248,250,252,0.35); border-radius: 16px; display: flex; justify-content: center; padding-top: 8px; transition: border-color 0.2s; }
.hero-scroll span { width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: heroScrollDot 2s ease-in-out infinite; }
.hero-split .hero-scroll { bottom: 24px; }
@keyframes heroScrollDot { 0%,100%{opacity:0.4; transform:translateY(0)} 50%{opacity:1; transform:translateY(6px)} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; border-radius: 12px; transition: all 0.2s; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,130,1,0.25); }

/* ========================================
   SECTION SHARED
   ======================================== */
.section-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 16px; }
.section-header-left { }
.section-header-left .section-label { margin-bottom: 8px; }
.section-header-left .section-title { margin-bottom: 0; text-align: left; }
.see-all-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); transition: all 0.2s; white-space: nowrap; }
.see-all-btn:hover { color: var(--accent-light); gap: 10px; }

/* ========================================
   HOME — UPCOMING EVENTS
   ======================================== */
.home-events-section { background: var(--bg); }
.home-events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-event-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.25s; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.home-event-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.home-event-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.home-event-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.home-event-card:hover .home-event-img { transform: scale(1.05); }
.home-event-date-badge { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 8px; }
.date-badge-day { font-size: 13px; font-weight: 700; color: #fff; }
.home-event-body { padding: 16px; }
.home-event-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-event-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.home-event-meta span { display: flex; align-items: center; gap: 5px; }
.home-event-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.home-event-attendees { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.home-event-distance { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(255,130,1,0.1); padding: 3px 10px; border-radius: 6px; }

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-feature { display: flex; gap: 14px; align-items: flex-start; }
.about-feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,130,1,0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-feature strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.about-feature p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.about-image-wrap { border-radius: 20px; overflow: hidden; }
.about-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ========================================
   HOME — FEATURED CLUBS
   ======================================== */
.home-clubs-section { background: var(--bg); }
.home-clubs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-club-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.25s; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.home-club-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.home-club-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.home-club-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.home-club-card:hover .home-club-img { transform: scale(1.05); }
.home-club-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 20px 14px 12px; }
.home-club-name { font-size: 16px; font-weight: 800; color: #fff; }
.home-club-city { display: flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.home-club-body { padding: 14px 16px; }
.home-club-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-club-footer { display: flex; align-items: center; justify-content: space-between; }
.home-club-tags { display: flex; gap: 6px; }
.home-club-members { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ========================================
   HOME — MARKETPLACE PREVIEW
   ======================================== */
.home-market-section { background: var(--bg-secondary); }
.home-market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-market-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.25s; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.home-market-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.home-market-img-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.home-market-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.home-market-card:hover .home-market-img { transform: scale(1.05); }
.home-market-body { padding: 14px 16px; }
.home-market-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.home-market-specs { display: flex; gap: 8px; margin-bottom: 8px; }
.home-market-specs span { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg-elevated); padding: 3px 10px; border-radius: 6px; }
.home-market-price { font-size: 18px; font-weight: 800; color: var(--accent); }

/* ========================================
   JOIN CTA
   ======================================== */
.join-section { position: relative; overflow: hidden; }
.join-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,130,1,0.08) 0%, transparent 70%); }
.join-content { text-align: center; position: relative; max-width: 600px; margin: 0 auto; }
.join-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.join-actions { display: flex; justify-content: center; gap: 16px; }

/* ========================================
   COMMUNITY
   ======================================== */
.community-section { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.testimonial-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.quote-icon { color: var(--accent); margin-bottom: 16px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.author-name { font-size: 15px; font-weight: 700; }
.author-role { font-size: 13px; color: var(--text-muted); }

/* ========================================
   DOWNLOAD
   ======================================== */
.download-section { position: relative; overflow: hidden; }
.download-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(232,160,51,0.08) 0%, transparent 70%); }
.download-content { text-align: center; position: relative; max-width: 600px; margin: 0 auto; }
.download-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(232,160,51,0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.download-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.store-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.store-btn { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: all 0.2s; }
.store-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.store-small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; }
.store-name { display: block; font-size: 17px; font-weight: 700; }
.download-note { font-size: 13px; color: var(--text-muted); }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 64px; margin-bottom: 48px; }
.footer-brand { max-width: 320px; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.link-group { display: flex; flex-direction: column; gap: 10px; }
.link-group h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.link-group a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.link-group a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.legal-links { display: flex; gap: 24px; }
.legal-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.legal-links a:hover { color: var(--text-secondary); }

/* ========================================
   PAGE HERO (Shared for inner pages)
   ======================================== */
.page-hero { padding: 120px 24px 48px; background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.page-hero-title { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.page-hero-subtitle { font-size: 15px; color: var(--text-muted); }
.page-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-hero-btn { display: flex; align-items: center; gap: 6px; padding: 12px 24px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; border-radius: 12px; transition: all 0.2s; }
.page-hero-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.page-container { padding-top: 28px; padding-bottom: 80px; }

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px 60px; position: relative; overflow: hidden; }
.auth-pattern { position: absolute; inset: 0; pointer-events: none; }
.auth-pattern-line { position: absolute; left: -20%; width: 140%; height: 1px; background: var(--border); opacity: 0.3; transform: rotate(-35deg); }
.auth-pattern-line:nth-child(1) { top: 10%; }
.auth-pattern-line:nth-child(2) { top: 22%; }
.auth-pattern-line:nth-child(3) { top: 34%; }
.auth-pattern-line:nth-child(4) { top: 46%; }
.auth-pattern-line:nth-child(5) { top: 58%; }
.auth-pattern-line:nth-child(6) { top: 70%; }
.auth-pattern-line:nth-child(7) { top: 82%; }
.auth-pattern-line:nth-child(8) { top: 94%; }

.auth-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 40px 36px; position: relative; z-index: 1; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 16px; }
.auth-title { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-error { background: rgba(214,69,69,0.1); border: 1px solid rgba(214,69,69,0.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--danger); }

.input-group { display: flex; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; transition: border-color 0.2s; }
.input-group:focus-within { border-color: var(--accent); }
.input-icon { color: var(--text-muted); flex-shrink: 0; }
.input-group input { flex: 1; background: none; border: none; outline: none; padding: 14px 12px; font-size: 14px; color: var(--text); font-family: inherit; }
.input-group input::placeholder { color: var(--text-muted); }
.input-row { display: flex; gap: 12px; }
.phone-prefix { color: var(--text-muted); font-size: 14px; font-weight: 500; white-space: nowrap; padding-left: 4px; }

.eye-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; display: flex; }
.eye-btn:hover { color: var(--text-secondary); }

.forgot-row { text-align: right; margin-top: -8px; }
.forgot-link { font-size: 13px; color: var(--accent); }
.forgot-link:hover { text-decoration: underline; }

.auth-submit { width: 100%; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; padding: 14px; border-radius: 12px; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; margin-top: 4px; }
.auth-submit:hover { background: var(--accent-light); transform: translateY(-1px); }

.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--border); }
.auth-divider-text { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

.social-row { display: flex; gap: 12px; }
.social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.social-btn:hover { border-color: var(--border-light); color: var(--text); }

.auth-switch { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 24px; }
.auth-switch-link { color: var(--accent); font-weight: 600; }
.auth-switch-link:hover { text-decoration: underline; }

/* ========================================
   TABS & FILTERS (shared)
   ======================================== */
.tabs-row { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.tab-btn { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; font-family: inherit; white-space: nowrap; transition: all 0.2s; }
.tab-btn:hover { border-color: var(--border-light); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.filters-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; transition: border-color 0.2s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; background: none; border: none; outline: none; padding: 12px; font-size: 14px; color: var(--text); font-family: inherit; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box-hero { max-width: 480px; margin-top: 24px; }

.filter-select { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; }
.filter-select select { background: none; border: none; outline: none; padding: 12px 4px; font-size: 14px; color: var(--text); font-family: inherit; cursor: pointer; }
.filter-select select option { background: var(--bg-card); color: var(--text); }

.results-info { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ========================================
   MARKETPLACE
   ======================================== */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.market-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.25s; }
.market-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.market-card-premium { border-color: rgba(232,160,51,0.3); }
.market-card-premium:hover { border-color: var(--accent); }
.market-card-img-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.market-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.market-card:hover .market-card-img { transform: scale(1.05); }
.premium-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.category-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.market-card-body { padding: 16px; }
.market-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-card-price { font-size: 18px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.market-card-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.market-card-meta span { display: flex; align-items: center; gap: 4px; }
.market-card-seller { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); padding-top: 12px; border-top: 1px solid var(--border); }
.seller-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ========================================
   EVENTS
   ======================================== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.event-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.25s; }
.event-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.event-card-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.event-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.event-card:hover .event-card-img { transform: scale(1.05); }
.type-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 8px; position: absolute; top: 10px; left: 10px; }
.type-badge-ride { background: rgba(76,175,80,0.15); color: var(--success); }
.type-badge-event { background: rgba(232,160,51,0.15); color: var(--accent); }
.event-card-body { padding: 16px; }
.event-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.event-card-info { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.event-card-info span { display: flex; align-items: center; gap: 5px; }
.event-tags { display: flex; gap: 8px; margin: 10px 0; }
.event-tag { font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.attendee-info { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }

.join-btn { padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--accent); color: #fff; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.join-btn:hover { background: var(--accent-light); }
.join-btn.joined { background: var(--bg-elevated); color: var(--success); border: 1px solid var(--border); }

/* ========================================
   CLUBS
   ======================================== */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.club-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.25s; }
.club-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.club-card-img-wrap { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.club-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.club-card:hover .club-card-img { transform: scale(1.05); }
.club-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 16px 16px 12px; }
.club-card-name { font-size: 18px; font-weight: 800; color: #fff; }
.club-card-body { padding: 16px; }
.club-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.club-card-tags { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.club-tag { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--bg-elevated); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; }
.club-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.club-card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); }
.club-card-meta span { display: flex; align-items: center; gap: 5px; }

/* ========================================
   PEOPLE
   ======================================== */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.person-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: all 0.2s; }
.person-card:hover { border-color: var(--border-light); }
.person-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.person-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.person-info { min-width: 0; }
.person-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.person-bike { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); margin-bottom: 2px; }
.person-city { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }

.person-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 12px; background: var(--bg-elevated); border-radius: 10px; flex-wrap: wrap; }
.person-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.meta-value { font-weight: 700; color: var(--text); }
.person-club-badge { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(232,160,51,0.1); padding: 3px 10px; border-radius: 6px; margin-left: auto; }

.friend-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.friend-btn-add { background: var(--accent); color: #fff; }
.friend-btn-add:hover { background: var(--accent-light); }
.friend-btn-pending { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); cursor: default; }
.friend-btn-friends { background: rgba(76,175,80,0.1); color: var(--success); border: 1px solid rgba(76,175,80,0.2); cursor: default; }

/* ========================================
   FEED
   ======================================== */
.feed-page { padding-top: 70px; min-height: 100vh; }
.feed-container { max-width: 1280px; margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: 260px 1fr 280px; gap: 28px; align-items: start; }

.feed-sidebar, .feed-sidebar-right { position: sticky; top: 90px; }
.sidebar-profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; margin-bottom: 16px; }
.sidebar-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--accent); }
.sidebar-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sidebar-bike { font-size: 13px; color: var(--accent); margin-bottom: 2px; }
.sidebar-city { font-size: 13px; color: var(--text-muted); }
.sidebar-links { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.sidebar-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; padding: 0 8px; }
.sidebar-link { display: block; padding: 10px 8px; font-size: 14px; color: var(--text-secondary); border-radius: 8px; transition: all 0.15s; }
.sidebar-link:hover { background: var(--bg-elevated); color: var(--text); }

.feed-main { min-width: 0; }
.compose-box { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 8px; }
.compose-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.compose-input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 24px; padding: 10px 16px; font-size: 14px; color: var(--text-muted); cursor: pointer; text-align: left; font-family: inherit; transition: all 0.2s; }
.compose-input:hover { border-color: var(--border-light); }
.compose-expanded { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 8px; }
.compose-textarea { width: 100%; min-height: 100px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--text); font-family: inherit; resize: vertical; outline: none; margin-bottom: 12px; }
.compose-textarea:focus { border-color: var(--accent); }
.compose-actions { display: flex; justify-content: flex-end; gap: 10px; }
.compose-cancel { padding: 10px 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.compose-submit { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--accent); border: none; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.compose-submit:hover { background: var(--accent-light); }

.feed-posts { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-author { font-size: 15px; font-weight: 700; color: var(--text); }
.post-meta-info { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.post-more { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.post-content { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 14px; }
.post-img-wrap { margin: 0 -20px 14px; }
.post-img { width: 100%; max-height: 420px; object-fit: cover; }
.post-actions { display: flex; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; font-size: 14px; color: var(--text-muted); background: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.action-btn:hover { background: var(--bg-elevated); color: var(--text-secondary); }
.action-btn.liked { color: var(--danger); }
.action-btn.liked svg { fill: var(--danger); }

.trending-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.trending-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.trending-list { display: flex; flex-direction: column; gap: 12px; }
.trending-item { display: flex; flex-direction: column; gap: 2px; }
.trending-tag { font-size: 14px; font-weight: 600; color: var(--accent); }
.trending-count { font-size: 12px; color: var(--text-muted); }

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-page { padding-top: 70px; }
.profile-cover { position: relative; height: 240px; overflow: hidden; }
.profile-cover-img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(255,255,255,1) 100%); }
.profile-main { position: relative; margin-top: -60px; z-index: 1; padding-bottom: 80px; }
.profile-header-row { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.profile-avatar-wrap { flex-shrink: 0; }
.profile-page-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); }
.profile-header-info { flex: 1; min-width: 200px; padding-bottom: 8px; }
.profile-header-name { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.profile-header-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.profile-header-meta span { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-secondary); }
.profile-header-actions { padding-bottom: 8px; }
.edit-profile-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.edit-profile-btn:hover { background: var(--accent-light); }

.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.profile-side-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.profile-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.profile-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.profile-info-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.profile-info-row:last-child { margin-bottom: 0; }
.profile-info-row svg { color: var(--text-muted); flex-shrink: 0; }

.profile-stats-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-stat { text-align: center; padding: 8px; }
.profile-stat-value { display: block; font-size: 22px; font-weight: 800; color: var(--text); }
.profile-stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-badge { font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; }

.profile-logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(214,69,69,0.08); border: 1px solid rgba(214,69,69,0.2); color: var(--danger); font-size: 14px; font-weight: 600; transition: all 0.2s; }
.profile-logout-btn:hover { background: rgba(214,69,69,0.15); }

.profile-main-col { min-width: 0; }
.profile-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 6px; }
.profile-tab { flex: 1; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); background: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; text-align: center; }
.profile-tab:hover { color: var(--text); }
.profile-tab.active { background: var(--accent); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel > .empty-state, .tab-panel > .profile-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; min-height: 300px; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin: 16px 0 8px; }
.empty-state p { font-size: 14px; }

.profile-list { display: flex; flex-direction: column; gap: 8px; }
.profile-list-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg-elevated); font-size: 15px; font-weight: 500; color: var(--text); transition: background 0.15s; }
.profile-list-item:hover { background: var(--bg-card); }
.profile-list-item svg { color: var(--accent); }

/* ========================================
   MODAL
   ======================================== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 200; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; position: relative; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.5); border: none; color: #fff; padding: 8px; border-radius: 50%; cursor: pointer; z-index: 2; display: flex; }
.modal-close:hover { background: rgba(0,0,0,0.7); }
.modal-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.modal-body { padding: 24px; }
.modal-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 800; color: var(--text); }
.modal-price { font-size: 20px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.modal-specs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.modal-specs span { background: var(--bg-elevated); border: 1px solid var(--border); padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.modal-desc { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; }
.modal-seller-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.modal-seller-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.modal-seller-name { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-seller-city { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.modal-actions { display: flex; gap: 12px; }
.modal-btn-primary { flex: 1; text-align: center; padding: 14px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; border-radius: 12px; transition: all 0.2s; }
.modal-btn-primary:hover { background: var(--accent-light); }
.modal-btn-secondary { flex: 1; text-align: center; padding: 14px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); font-size: 15px; font-weight: 700; border-radius: 12px; transition: all 0.2s; }
.modal-btn-secondary:hover { border-color: var(--border-light); }

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input { width: 100%; padding: 12px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text); font-family: inherit; outline: none; }
.form-input:focus { border-color: var(--accent); }
.form-textarea { width: 100%; min-height: 80px; padding: 12px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text); font-family: inherit; resize: vertical; outline: none; }
.form-textarea:focus { border-color: var(--accent); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .feed-container { grid-template-columns: 1fr; }
  .feed-sidebar, .feed-sidebar-right { display: none; }
}

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; padding-top: 72px; min-height: auto; }
  .hero-split-visual { min-height: 52vh; order: -1; }
  .hero-split-panel { padding: 40px 24px 56px; }
  .hero-scroll { display: none; }
  .home-events-grid, .home-clubs-grid, .home-market-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .profile-wrap { display: none; }
  .mobile-logout { display: block; font-size: 18px; font-weight: 500; color: var(--danger); }
  .nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 99; padding: 24px; }
  .nav.open { opacity: 1; pointer-events: all; }
  .header--home:not(.scrolled) .nav.open { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
  .header--home:not(.scrolled) .nav.open .nav-link { color: rgba(248,250,252,0.9); font-size: 18px; }
  .header--home:not(.scrolled) .nav.open .nav-link-active { color: var(--accent-light); }
  .header--home:not(.scrolled) .nav.open .nav-btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
  .header--home:not(.scrolled) .nav.open .cta-btn { margin-top: 8px; }
  .header--home:not(.scrolled) .nav.open .mobile-logout { color: #fca5a5; }
  .nav-link { font-size: 18px; font-weight: 600; }
  .cta-btn { font-size: 15px; padding: 12px 28px; }
  .nav-btn-ghost { font-size: 15px; padding: 12px 24px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero-split-actions { flex-direction: column; }
  .btn-split-primary, .btn-split-secondary { width: 100%; }
  .hero-split-metrics { gap: 20px; }
  .hero-split-metrics strong { font-size: 22px; }
  .home-events-grid, .home-clubs-grid, .home-market-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-row { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .about-image-wrap { display: none; }
  .page-hero-title { font-size: 26px; }
  .events-grid, .clubs-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .filters-row { flex-direction: column; }
  .profile-cover { height: 160px; }
  .profile-main { margin-top: -40px; }
  .profile-page-avatar { width: 90px; height: 90px; }
  .profile-header-name { font-size: 22px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-side-col { position: static; }
  .profile-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .profile-tab { white-space: nowrap; flex: none; padding: 10px 16px; }
  .auth-card { padding: 32px 24px; }
  .input-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .phone-frame { width: 120px; height: 260px; border-radius: 18px; }
  .phones { gap: 8px; }
}
