/* Layout Styles - Page Structure and Sections */

/* Hero Section */
.hero {
  padding: 100px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 80px;
  align-items: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, #0a0a0a 100%);
  z-index: 3;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.6s ease backwards;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-title span {
  background: linear-gradient(135deg, #FF5C00 0%, #ff8c00 50%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FF5C00, transparent);
  border-radius: 2px;
  opacity: 0.3;
}

.hero-sub {
  font-size: 17px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-stat-val {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  font-weight: 500;
}

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

/* Hero Map */
.hero-map {
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  height: 360px;
  position: relative;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 92, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: mapFloat 6s ease-in-out infinite, fadeInUp 0.6s ease 0.2s backwards;
}

@keyframes mapFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 92, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.map-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(255, 92, 0, 0.6);
  animation: pinPulse 2s ease-in-out infinite;
}

.map-pin.blue {
  background: var(--secondary-color);
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.6);
}

.map-pin.green {
  background: var(--success-color);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

@keyframes pinPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.map-label {
  position: absolute;
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sections */
.section {
  padding: 48px 48px 0;
  animation: sectionFadeIn 0.8s ease-out;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  padding-bottom: 16px;
}

.section-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 92, 0, 0.5) 0%, 
    rgba(255, 92, 0, 0.2) 30%, 
    rgba(255, 92, 0, 0.1) 50%,
    rgba(255, 92, 0, 0.2) 70%,
    rgba(255, 92, 0, 0.5) 100%
  );
  background-size: 200% 100%;
  animation: shimmerLine 3s linear infinite;
}

@keyframes shimmerLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #FF5C00, #ff8c00);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 92, 0, 0.5);
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.section-title svg {
  width: 28px;
  height: 28px;
  color: #FF5C00;
  filter: drop-shadow(0 0 8px rgba(255, 92, 0, 0.4));
}

/* ── Ride Tab Wrapper (segmented control container) ── */
.section-title:has(.ride-tab) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.ride-tab {
  cursor: pointer;
  color: #777;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  border: none;
  background: transparent;
  user-select: none;
  white-space: nowrap;
}

.ride-tab:hover {
  color: #bbb;
  background: rgba(255, 255, 255, 0.06);
}

.ride-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #FF5C00 0%, #ff7a2e 100%);
  box-shadow:
    0 4px 16px rgba(255, 92, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ride-tab.active:hover {
  background: linear-gradient(135deg, #e65400 0%, #ff6a1a 100%);
  box-shadow:
    0 6px 22px rgba(255, 92, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: none;
}

/* Remove all old pseudo-element decorations */
.ride-tab::before,
.ride-tab::after,
.ride-tab.active::before,
.ride-tab.active::after {
  display: none;
}

/* Tab badge for notification */
.ride-tab .tab-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ff3b3b;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.6);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.section-link {
  font-size: 13px;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: #ff7a33;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px;
}

/* Enhanced chip styling for filters */
.filters .chip {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filters .chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.filters .chip:hover::before {
  left: 100%;
}

.filters .chip:hover {
  border-color: rgba(255, 92, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filters .chip.on {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.2) 0%, rgba(255, 92, 0, 0.1) 100%);
  border-color: rgba(255, 92, 0, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 92, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filters .chip.on:hover {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.25) 0%, rgba(255, 92, 0, 0.15) 100%);
  box-shadow: 0 6px 20px rgba(255, 92, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Upcoming Rides Controls */
.ur-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ur-sort-select {
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border: 1px solid #272727;
  border-radius: 10px;
  color: #ccc;
  padding: 10px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23FF5C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ur-sort-select:hover {
  border-color: rgba(255, 92, 0, 0.5);
  box-shadow: 0 4px 16px rgba(255, 92, 0, 0.1);
  transform: translateY(-1px);
}

.ur-sort-select:focus {
  border-color: #FF5C00;
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1), 0 4px 16px rgba(255, 92, 0, 0.15);
}

.ur-sort-select option {
  background: #1a1a1a;
  color: #ccc;
  padding: 8px;
}

.ur-search-input {
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border: 1px solid #272727;
  border-radius: 24px;
  color: #ccc;
  padding: 10px 18px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  width: 200px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ur-search-input:hover {
  border-color: rgba(255, 92, 0, 0.3);
}

.ur-search-input:focus {
  border-color: #FF5C00;
  width: 280px;
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1), 0 4px 20px rgba(255, 92, 0, 0.1);
}

.ur-search-input::placeholder {
  color: #555;
  transition: color 0.3s ease;
}

.ur-search-input:focus::placeholder {
  color: #777;
}

/* Ride Grid */
.ride-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}

/* Ride Cards - Modern Glassmorphism */
.rcard {
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 92, 0, 0) inset;
}

.rcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.rcard:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 92, 0, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 92, 0, 0.15) inset,
    0 0 40px rgba(255, 92, 0, 0.08);
}

.rcard::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.rcard:hover::after {
  opacity: 1;
}

.rcard-map {
  height: 140px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 30, 40, 0.8) 0%, rgba(10, 20, 15, 0.9) 100%);
}

.rcard-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 92, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.rcard-map svg {
  width: 100%;
  height: 100%;
}

.rcard-map .route-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawRoute 2s ease forwards;
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

.rcard:hover .rcard-map .route-path {
  animation: drawRoute 1.5s ease forwards;
}

.rcard-map .route-point {
  animation: pointPulse 2s ease-in-out infinite;
}

@keyframes pointPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.rcard-body {
  padding: 20px;
  position: relative;
}

.rcard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.rcard-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.2px;
  transition: color 0.3s ease;
}

.rcard:hover .rcard-title {
  color: #FF5C00;
}

.rcard-price {
  font-size: 14px;
  font-weight: 700;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.rcard-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rcard-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.rcard-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.accent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5C00, #ff8c00);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 92, 0, 0.5);
}

.accent-dot.b {
  background: linear-gradient(135deg, #1E90FF, #4facfe);
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.5);
}

.rcard-route {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.rcard-route svg {
  width: 14px;
  height: 14px;
  color: #FF5C00;
  opacity: 0.8;
}

.rcard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 8px;
}

/* Riders */
.riders-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avs {
  display: flex;
}

.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(20, 20, 20, 0.9);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.av:hover {
  transform: scale(1.15);
  z-index: 10;
}

.av-o {
  background: linear-gradient(135deg, #FF5C00, #ff7730);
  color: #fff;
  margin-right: -8px;
  box-shadow: 0 2px 8px rgba(255, 92, 0, 0.4);
}

.av-b {
  background: linear-gradient(135deg, #1E90FF, #4facfe);
  color: #fff;
  margin-right: -8px;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.4);
}

.av-p {
  background: linear-gradient(135deg, #9C27B0, #E040FB);
  color: #fff;
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

.riders-count {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

/* Modern Buttons */
.join-btn {
  background: linear-gradient(135deg, #FF5C00 0%, #ff7730 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.join-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.join-btn:hover::before {
  left: 100%;
}

.join-btn:hover {
  background: linear-gradient(135deg, #ff6a1a 0%, #ff8533 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 92, 0, 0.4);
}

.join-btn:active {
  transform: translateY(0);
}

.join-btn.joined {
  background: transparent;
  border: 1px solid #4CAF50;
  color: #4CAF50;
  box-shadow: none;
}

.join-btn.joined:hover {
  background: rgba(76, 175, 80, 0.1);
}

.view-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-btn:hover {
  background: rgba(255, 92, 0, 0.1);
  border-color: rgba(255, 92, 0, 0.3);
  color: #FF5C00;
  transform: translateY(-2px);
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Features Section */
.feat-section {
  padding: 48px;
  border-top: 1px solid #1a1a1a;
  margin-top: 8px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.feat-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 92, 0, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.feat-card:hover::before {
  left: 100%;
}

.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 92, 0, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feat-card:hover::after {
  opacity: 1;
}

.feat-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 92, 0, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 92, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feat-card:hover .feat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feat-card:hover .feat-title {
  color: var(--primary-color);
  transform: translateX(4px);
}

.feat-card:hover .feat-sub {
  color: #aaa;
}

/* Glow pulse animation on hover */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(255, 92, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.4),
      0 0 50px rgba(255, 92, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.feat-card:hover {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Floating particles effect */
.feat-card::backdrop {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .feat-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 768px) {
  .feat-card {
    animation: none;
  }
  
  .feat-card:hover {
    transform: translateY(-2px);
    animation: none;
  }
}

.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-title {
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.feat-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Features Section Header */
.feat-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Credits Section */
.credits-section {
  padding: 48px 48px;
  border-top: 1px solid #1a1a1a;
}

.credits-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.credit-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.credit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,0,0,0.08) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.credit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 92, 0, 0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 92, 0, 0.1);
}

.youtube-icon {
  width: 80px;
  height: 80px;
  background: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.credit-card:hover .youtube-icon {
  transform: scale(1.05);
  border-color: #FF5C00;
}

.credit-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.credit-sub {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.credit-stats {
  font-size: 12px;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.credit-card:hover .credit-stats {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.credit-stats::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #FF0000;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,0,0,0.6);
}

/* Footer */
.footer-bar {
  border-top: 1px solid #1a1a1a;
  padding: 24px 100px 24px 48px; /* Extra right padding for FAB */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-size: 13px;
  color: #444;
}

.footer-right {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Post Ride Card */
.post-ride-card {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-ride-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,92,0,0.05) 0%, rgba(255,92,0,0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-ride-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,92,0,0.15);
  border-color: #ff7a33;
}

.post-ride-card:hover::before {
  opacity: 1;
}

.post-ride-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.post-ride-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,92,0,0.1);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.post-ride-card:hover .post-ride-icon {
  background: rgba(255,92,0,0.15);
  transform: scale(1.05);
}

.post-ride-text {
  flex: 1;
}

.post-ride-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.post-ride-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.post-ride-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.post-ride-btn:hover {
  background: #ff7a33;
  transform: scale(1.05);
}

/* New Ride Card Animations */
.ride-card-enter {
  animation: rideCardEnter 0.5s ease-out;
}

@keyframes rideCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.new-ride {
  position: relative;
}

.new-ride::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), #ff7a33, var(--primary-color));
  border-radius: 14px;
  z-index: -1;
  animation: newRideGlow 2s ease-in-out;
  opacity: 0;
}

@keyframes newRideGlow {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Enhanced join button animation */
.join-btn.joining {
  animation: joinRide 0.6s ease-in-out;
}

@keyframes joinRide {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Success state for joined rides */
.join-btn.joined {
  background: #4CAF50 !important;
  color: white !important;
  border-color: #4CAF50 !important;
}

.join-btn.joined:hover {
  background: #45a049 !important;
  transform: translateY(-1px);
}

/* Ride card hover enhancements for new rides */
.new-ride:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255,92,0,0.2);
  z-index: 10;
  position: relative;
}

/* Badge Row */
.badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* =======================================================
   RESPONSIVE DESIGN — Tablet (769px - 1024px)
   ======================================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    padding: 60px 30px 40px;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .ride-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =======================================================
   RESPONSIVE DESIGN — Mobile (max-width: 768px)
   ======================================================= */
@media (max-width: 768px) {

  /* ── Hero ── */
  .hero {
    padding: 24px 16px 32px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
  }
  
  .hero-eyebrow::before {
    width: 20px;
    height: 1.5px;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }
  
  .hero-title span::after {
    height: 2px;
    bottom: -2px;
  }
  
  .hero-sub {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
  }
  
  .hero-actions .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .nav .btn-primary {
    position: relative;
    padding: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 92, 0, 0.2);
    cursor: pointer;
    font-size: 0;
  }

  .nav .btn-primary::after {
    content: '+';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
  }

  /* ── Performance Opts ── */
  .credit-card {
    transition: none !important;
  }
  .credit-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .youtube-icon {
    box-shadow: none !important;
    transition: none !important;
  }
  .credit-card:hover .youtube-icon {
    transform: none !important;
  }

  .profile-badge-desktop .profile-badge-text {
    display: none;
  }
  .profile-badge-desktop .profile-badge-icon {
    display: inline-block !important;
  }
  .profile-badge-desktop {
    padding: 4px 8px !important;
  }
  
  .hero-stats {
    gap: 24px;
    justify-content: center;
  }
  
  .hero-stat-val {
    font-size: 24px;
  }
  
  .hero-map {
    height: 220px;
    border-radius: 16px;
    order: -1;
  }
  
  .hero::before {
    width: 400px;
    height: 400px;
    top: -20%;
    right: -30%;
  }

  /* ── Sections ── */
  .section {
    padding: 32px 16px 0;
    animation: none; /* Disable fade-in on mobile for performance */
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }

  .section-header::before {
    display: none; /* Hide gradient line on mobile */
  }
  
  .section-title {
    font-size: 20px;
    width: 100%;
  }

  /* ── Ride Tabs Mobile ── */
  .section-title:has(.ride-tab) {
    padding: 3px;
    border-radius: 12px;
  }

  .ride-tab {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* ── Filters ── */
  .filters {
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
  }

  .filters .chip {
    padding: 6px 14px;
    font-size: 12px;
  }

  .filters > div[style*="margin-left:auto"] {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 8px;
  }

  .ur-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
  }

  .ur-search-input:focus {
    width: 100%;
    box-shadow: 0 0 0 2px rgba(255, 92, 0, 0.1);
  }

  .ur-sort-select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
  }

  .ur-controls {
    width: 100%;
  }

  /* ── Ride Grid ── */
  .ride-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 32px;
  }

  /* ── Features Section ── */
  .feat-section {
    padding: 32px 16px;
  }

  .feat-section > div[style] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px;
  }
  
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .feat-card {
    padding: 16px;
    animation: none; /* Disable entrance animation on mobile */
  }

  .feat-card:hover {
    transform: translateY(-2px); /* Reduced lift on mobile */
    animation: none; /* Disable glow pulse on mobile */
  }

  /* ── Credits Section ── */
  .credits-section {
    padding: 32px 16px;
  }

  .credits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .credit-card {
    padding: 16px;
  }

  .credit-name {
    font-size: 14px;
  }

  .credit-sub {
    font-size: 12px;
  }

  /* ── Footer ── */
  .footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 90px; /* Bottom padding for FAB */
    gap: 12px;
  }

  .footer-right {
    gap: 16px;
    justify-content: center;
  }

  /* ── Post Ride Card ── */
  .post-ride-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .post-ride-content {
    flex-direction: column;
  }

  .post-ride-icon {
    width: 48px;
    height: 48px;
  }
}

/* =======================================================
   RESPONSIVE DESIGN — Small Mobile (max-width: 480px)
   ======================================================= */
@media (max-width: 480px) {
  .hero {
    padding: 20px 12px 24px;
  }
  
  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    gap: 6px;
  }
  
  .hero-eyebrow::before {
    width: 15px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.2;
  }
  
  .hero-title br {
    display: none;
  }

  .hero-sub {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .hero-actions .btn-large {
    padding: 14px 24px;
    font-size: 14px;
  }

  .hero-map {
    height: 180px;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .hero-stat-val {
    font-size: 20px;
  }
  
  .hero-stat-label {
    font-size: 11px;
  }

  .section {
    padding: 24px 12px 0;
  }

  .section-title {
    font-size: 18px;
  }

  .ride-tab {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 9px;
  }

  .filters .chip {
    padding: 5px 12px;
    font-size: 11px;
  }

  .credits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feat-section {
    padding: 24px 12px;
  }

  .feat-grid {
    gap: 10px;
  }

  .credits-section {
    padding: 24px 12px;
  }

  .footer-bar {
    padding: 16px 12px 90px; /* Bottom padding for FAB */
  }

  /* Touch-friendly tap targets */
  .chip, .ride-tab, .ur-search-input, .ur-sort-select {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* =======================================================
   RESPONSIVE DESIGN — Landscape Mobile (max-height: 500px)
   ======================================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .section {
    padding: 16px 16px 0;
  }
  
  .section-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero {
    padding: 20px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-map {
    height: 150px;
  }
}
