/* ================================================
   RAVEPASS - Premium Dark Theme
   Sophisticated. Modern. Elegant.
   ================================================ */

/* CSS Variables */
:root {
  /* Core Colors */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-card: #1a1a1d;
  --bg-card-hover: #222225;
  
  /* Accent Colors - Subtle Purple */
  --accent-primary: #8b5cf6;
  --accent-secondary: #a78bfa;
  --accent-muted: #6d28d9;
  --accent-glow: rgba(139, 92, 246, 0.15);
  
  /* Text Colors */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #0a0a0b;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0b 0%, #111113 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  
  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 120px;
  --container-max: 1280px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ================================================
   BASE STYLES
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

main {
  padding-top: 0;
  padding-bottom: 0;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin: 0;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ================================================
   CONTAINER
   ================================================ */

.rp-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@@media (min-width: 768px) {
  .rp-container {
    padding: 0 40px;
  }
}

/* ================================================
   BUTTONS
   ================================================ */

.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.rp-btn-primary {
  background: #1a1a2e;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: white;
  background: #2a2a3e;
}

.rp-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.rp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.rp-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: none;
}

.rp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.rp-btn-outline {
  background: #1a1a2e;
  color: white;
  border: 2px solid #1a1a2e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rp-btn-outline:hover {
  background: #2a2a3e;
  border-color: #2a2a3e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rp-btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.rp-btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.rp-btn i {
  font-size: 0.875em;
}

/* Bootstrap button overrides */
.btn-primary {
  background: #1a1a2e;
  border: none;
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #2a2a3e;
}

.btn-outline-primary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 14px 28px;
  border-radius: var(--radius-full);
}

.btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ================================================
   CARDS
   ================================================ */

.rp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.rp-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   HERO SECTION
   ================================================ */

.rp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  overflow: hidden;
}

.rp-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(99, 102, 241, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.08), transparent);
}

.rp-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.rp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.rp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: 32px;
}

.rp-hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rp-hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rp-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.rp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border-subtle);
}

.rp-hero-stat {
  text-align: center;
}

.rp-hero-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rp-hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================================
   SECTIONS
   ================================================ */

.rp-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.rp-section-dark {
  background: var(--bg-secondary);
}

.rp-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.rp-section-header h2 {
  margin-bottom: 16px;
}

.rp-section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ================================================
   GRID LAYOUTS
   ================================================ */

.rp-grid {
  display: grid;
  gap: 24px;
}

.rp-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rp-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.rp-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@@media (min-width: 1024px) {
  .rp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================
   FEATURES
   ================================================ */

.rp-feature {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.rp-feature:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.rp-feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.rp-feature-icon i {
  font-size: 1.5rem;
  color: var(--accent-secondary);
}

.rp-feature h4 {
  margin-bottom: 12px;
}

.rp-feature p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   EVENT CARDS
   ================================================ */

.rp-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.rp-event-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-decoration: none;
}

.rp-event-image {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.rp-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.rp-event-card:hover .rp-event-image img {
  transform: scale(1.08);
}

.rp-event-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1e1e24 100%);
}

.rp-event-placeholder i {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.rp-event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  min-width: 60px;
}

.rp-event-date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-secondary);
  line-height: 1;
}

.rp-event-date-month {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.rp-event-category {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-primary);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rp-event-body {
  padding: 24px;
}

.rp-event-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.rp-event-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.rp-event-meta-item i {
  width: 16px;
  color: var(--text-muted);
}

.rp-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.rp-event-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rp-event-price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ================================================
   FORMS
   ================================================ */

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  color: var(--text-primary);
  outline: none;
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.form-check-label {
  color: var(--text-secondary);
}

.form-check-input:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* ================================================
   LOGIN FLYOUT
   ================================================ */

.login-flyout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.login-flyout.active {
  visibility: visible;
  opacity: 1;
}

.login-flyout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1100;
}

.login-flyout-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 1101;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.login-flyout.active .login-flyout-panel {
  transform: translateX(0);
}

.login-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.login-flyout-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.login-flyout-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.login-flyout-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.login-flyout-body {
  padding: 24px;
}

.login-flyout-body hr {
  border-color: var(--border-subtle);
  opacity: 1;
}

.login-flyout-body small {
  color: var(--text-muted);
}

/* Door Scanner Button */
.door-scanner-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.door-scanner-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.door-scanner-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.door-scanner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.door-scanner-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.door-scanner-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.door-scanner-arrow {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.door-scanner-btn:hover .door-scanner-arrow {
  transform: translateX(3px);
  color: var(--accent-primary);
}

/* ================================================
   FOOTER
   ================================================ */

.rp-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.rp-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

@@media (max-width: 768px) {
  .rp-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.rp-footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 300px;
}

.rp-footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.rp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rp-footer-links li {
  margin-bottom: 12px;
}

.rp-footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.rp-footer-links a:hover {
  color: var(--text-primary);
}

.rp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 20px;
}

.rp-footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rp-footer-socials {
  display: flex;
  gap: 12px;
}

.rp-footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.rp-footer-socials a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Legacy footer support */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary);
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--text-primary);
}

.footer hr {
  border-color: var(--border-subtle);
  opacity: 1;
}

/* ================================================
   NAVBAR
   ================================================ */

.navbar {
  background: rgba(245, 243, 239, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 0 !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  height: 80px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 42px;
}

.nav-link {
  color: #4a4a4a !important;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #1a1a2e !important;
}

.dropdown-menu {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-top: 12px;
}

.dropdown-item {
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dropdown-divider {
  border-color: var(--border-subtle);
}

/* Cart badge */
.badge.bg-danger {
  background: var(--accent-primary) !important;
}

/* ================================================
   UTILITIES
   ================================================ */

.rp-text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rp-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 40px 0;
}

.rp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

/* ================================================
   PAGE HEADER
   ================================================ */

.rp-page-header {
  padding: 140px 0 60px;
  background: var(--bg-primary);
  text-align: center;
}

.rp-page-header h1 {
  margin-bottom: 16px;
}

.rp-page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================
   ACCOUNT SECTION
   ================================================ */

.account-section {
  background: var(--bg-primary);
  min-height: 100vh;
  padding: 120px 24px 60px;
}

/* ================================================
   RESPONSIVE - COMPREHENSIVE MOBILE STYLES
   ================================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .rp-container {
    padding: 0 24px;
  }
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
  /* Typography scaling */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  /* Hero section mobile */
  .rp-hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .rp-section {
    padding: 60px 0;
  }
  
  .rp-page-header {
    padding: 100px 0 40px;
  }
  
  /* Buttons mobile */
  .rp-btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
  
  .rp-btn-lg {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }
  
  /* Navigation mobile improvements */
  .navbar {
    padding: 12px 0;
  }
  
  .navbar-collapse {
    background: rgba(10, 10, 11, 0.98);
    padding: 20px;
    border-radius: 0 0 16px 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }
  
  .navbar-nav {
    gap: 8px !important;
    align-items: flex-start !important;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 16px;
    width: 100%;
  }
  
  /* Footer mobile */
  .rp-footer {
    padding: 60px 0 30px;
  }
  
  .rp-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .rp-footer-brand p {
    max-width: 100%;
    margin: 16px auto 0;
  }
  
  .rp-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .rp-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  /* Cards mobile */
  .rp-card {
    border-radius: var(--radius-md);
  }
  
  /* Login flyout mobile */
  .login-flyout-panel {
    max-width: 100%;
    width: 100%;
  }
  
  /* Feature section mobile */
  .rp-feature {
    padding: 24px;
  }
  
  .rp-feature-icon {
    width: 48px;
    height: 48px;
  }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
  /* Even smaller typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .rp-container {
    padding: 0 16px;
  }
  
  .rp-section {
    padding: 48px 0;
  }
  
  /* Buttons full width on small mobile */
  .rp-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .rp-hero-actions .rp-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Cards tighter padding */
  .rp-card {
    border-radius: var(--radius-sm);
  }
  
  /* Event cards mobile */
  .rp-event-body {
    padding: 16px;
  }
  
  .rp-event-title {
    font-size: 1.1rem;
  }
  
  .rp-event-date-badge {
    padding: 8px 12px;
    top: 12px;
    left: 12px;
  }
  
  /* Form elements mobile */
  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Footer mobile small */
  .rp-footer-socials {
    justify-content: center;
  }
}

/* ================================================
   PAGE TRANSITIONS
   ================================================ */

.rp-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   SCROLLBAR
   ================================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-muted);
}

/* ================================================
   CONTENT PAGES
   ================================================ */

.rp-content {
  padding: 60px 0;
}

.rp-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.rp-content-card h2,
.rp-content-card h3,
.rp-content-card h4 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.rp-content-card h2:first-child,
.rp-content-card h3:first-child {
  margin-top: 0;
}

.rp-content-card p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.rp-content-card ul,
.rp-content-card ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.rp-content-card li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ================================================
   ALERTS
   ================================================ */

.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.alert-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
}

.alert-info {
  background: var(--accent-glow);
  color: var(--accent-secondary);
}

/* ================================================
   DISCOVER SECTION - 2 COLUMN LAYOUT
   ================================================ */

.rp-discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rp-discover-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rp-discover-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bg-primary);
  margin: 0;
  line-height: 1.2;
}

.rp-discover-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rp-discover-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rp-discover-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #1a1a2e;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
}

.rp-discover-feature-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-primary);
  margin: 0 0 4px 0;
}

.rp-discover-feature-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.rp-discover-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-discover-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rp-discover-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px rgba(0,0,0,0.25), 0 15px 25px rgba(0,0,0,0.15);
}

.rp-discover-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  border: 2px dashed var(--border-medium);
}

.rp-discover-image-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.rp-discover-image-placeholder span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .rp-discover-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .rp-discover-image {
    order: -1;
  }
  
  .rp-discover-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .rp-discover-content {
    align-items: center;
    text-align: center;
  }
  
  .rp-discover-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
