/* assets/css/style.css - EvenGO Senior UX/UI Design System
   Sleek, Minimalist, Ultra-Modern SaaS & Native Mobile App Experience
*/

:root {
  /* Brand Primary Palettes - Regal Purple #68348a */
  --brand-purple-dark: #3a1950;
  --brand-purple-deep: #4d2369;
  --brand-purple: #68348a;
  --brand-purple-vibrant: #68348a;
  --brand-purple-light: #7e3eab;
  --brand-purple-soft: #f7f2fa;
  --brand-purple-border: #dccae8;

  /* Brand Secondary / Electric Accent - Cyan #00f4dc */
  --brand-cyan: #00f4dc;
  --brand-cyan-hover: #00ddc7;
  --brand-cyan-dark: #00a897;
  --brand-cyan-soft: #e6fefa;
  --brand-cyan-border: #9cfbf1;

  --brand-accent: #00f4dc;
  --brand-accent-hover: #00ddc7;
  --brand-accent-soft: #e6fefa;
  --brand-accent-border: #9cfbf1;

  /* Functional Accents */
  --brand-yellow: #f59e0b;
  --brand-yellow-light: #fef3c7;
  --brand-emerald: #00f4dc;
  --brand-emerald-soft: #e6fefa;

  /* Surfaces & Pure White */
  --bg-page: #fbfbfd;
  --bg-card: #ffffff;
  --bg-subtle: #f8f6fb;
  --bg-muted: #ebe6f2;

  /* Typography Colors */
  --text-dark: #14081c;
  --text-secondary: #4a3e54;
  --text-muted: #73637f;
  --text-white: #ffffff;

  /* Borders & Radii */
  --border-card: #e7e0ee;
  --border-light: #f3eef7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Soft Elevation & Layered Shadows */
  --shadow-xs: 0 1px 2px rgba(104, 52, 138, 0.04);
  --shadow-sm: 0 2px 6px rgba(104, 52, 138, 0.05), 0 1px 2px rgba(104, 52, 138, 0.02);
  --shadow-md: 0 6px 18px rgba(104, 52, 138, 0.08), 0 2px 6px rgba(104, 52, 138, 0.04);
  --shadow-lg: 0 14px 34px rgba(104, 52, 138, 0.12), 0 4px 12px rgba(104, 52, 138, 0.06);
  --shadow-float: 0 20px 45px -10px rgba(104, 52, 138, 0.16), 0 8px 16px -6px rgba(0, 244, 220, 0.15);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive bottom padding on mobile for sticky navigation bar */
@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 10px)) !important;
  }
}

/* Headings */
h1, h2, h3, h4, h5, h6, .brand-heading {
  font-family: var(--font-family);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  line-height: 1.25;
}

/* Forzar Texto Blanco de Alto Contraste en Banners y Carruseles */
#heroEventsCarousel h1,
#heroEventsCarousel h2,
#heroEventsCarousel h3,
#heroEventsCarousel h4,
#heroEventsCarousel h5,
.hero-carousel-title,
.event-thumb-overlay h5,
.event-card-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

#heroEventsCarousel p,
#heroEventsCarousel .hero-carousel-meta,
#heroEventsCarousel span:not(.badge-date-pill):not(.badge-cat-pill) {
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85) !important;
}

/* Eyebrow & Pill Tags */
.section-title-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-purple-soft);
  color: var(--brand-purple);
  border: 1px solid var(--brand-purple-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Header & Desktop Navigation
   ========================================================================== */
.brand-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.2s ease;
}

.brand-logo-text {
  font-family: var(--font-family);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--brand-purple-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-badge {
  background: linear-gradient(135deg, #68348a 0%, #3a1950 100%);
  color: #00f4dc;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(104, 52, 138, 0.35);
  border: 1px solid rgba(0, 244, 220, 0.4);
}

.nav-link-brand {
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link-brand:hover {
  color: var(--brand-purple-vibrant);
  background: var(--brand-purple-soft);
}

.nav-link-brand.active {
  color: var(--brand-purple-vibrant);
  background: var(--brand-purple-soft);
  font-weight: 700;
}

/* BCV Live Rate Pill */
.bcv-pill {
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.bcv-pill .bcv-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--brand-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.bcv-pill strong {
  color: var(--brand-purple);
  font-weight: 800;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn-brand-purple {
  background: linear-gradient(135deg, #68348a 0%, #461f5f 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 244, 220, 0.2);
  box-shadow: 0 4px 14px rgba(104, 52, 138, 0.32);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-brand-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(104, 52, 138, 0.48);
  border-color: #00f4dc;
  color: #ffffff !important;
}

.btn-brand-purple:active {
  transform: scale(0.97);
}

/* High Conversion Electric Cyan Accent CTA (#00f4dc & #68348a) */
.btn-accent-cta {
  background: linear-gradient(135deg, #00f4dc 0%, #00ddc7 100%);
  color: #3a1950 !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 244, 220, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-accent-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 244, 220, 0.55);
  color: #14081c !important;
}

.btn-accent-cta:active {
  transform: scale(0.97);
}

.btn-brand-outline {
  background: #ffffff;
  color: #4a3e54 !important;
  border: 1px solid var(--border-card);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-brand-outline:hover {
  background: #f7f2fa;
  color: #68348a !important;
  border-color: var(--brand-purple-border);
}

/* ==========================================================================
   Hero Section & Floating Hero Search Bar
   ========================================================================== */
.hero-section-wrap {
  position: relative;
  padding-top: 64px;
  padding-bottom: 110px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (max-width: 991.98px) {
  .hero-section-wrap {
    padding-top: 36px;
    padding-bottom: 70px;
  }
}

.hero-search-container {
  position: relative;
  margin-top: -50px;
  margin-bottom: 35px;
  z-index: 30;
}

@media (max-width: 991.98px) {
  .hero-search-container {
    margin-top: -30px;
  }
}

.hero-floating-search {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 18px 24px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-field-segment {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
  border-right: 1px solid var(--border-light);
}

.search-field-segment:last-of-type {
  border-right: none;
}

.search-field-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-field-input {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  padding: 4px 0;
}

.search-field-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   Mobile-App Bottom Sticky Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-card);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
    padding: 8px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.15s ease;
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-nav-item.active {
    color: var(--brand-purple-vibrant);
    background: var(--brand-purple-soft);
  }

  .mobile-nav-item.active i {
    transform: translateY(-1px);
    color: var(--brand-purple-vibrant);
  }
}

/* Horizontal Swipeable Category Chips for Mobile & Web */
.cat-pills-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px;
}

.cat-pills-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cat-chip:hover {
  color: var(--brand-purple-vibrant);
  border-color: var(--brand-purple-border);
  background: var(--brand-purple-soft);
}

.cat-chip.active {
  background: var(--brand-purple-vibrant);
  color: #ffffff !important;
  border-color: var(--brand-purple-vibrant);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
}

/* ==========================================================================
   Clean Card Components
   ========================================================================== */
.white-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.white-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Event Item Card */
.event-item-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.event-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.event-thumb-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #0f172a;
}

.event-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-item-card:hover .event-thumb-img {
  transform: scale(1.05);
}

.event-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.1) 40%, rgba(15, 23, 42, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.badge-date-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.badge-cat-pill {
  font-weight: 800;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.badge-cat-purple {
  background: #68348a;
  color: #ffffff;
}
.badge-cat-green,
.badge-cat-cyan {
  background: #00f4dc;
  color: #230830;
  font-weight: 800;
}
.badge-cat-orange {
  background: #00f4dc;
  color: #230830;
  font-weight: 800;
}
.badge-cat-pink {
  background: #db2777;
  color: #ffffff;
}

/* Modern High-End Pill Badges (#68348a, #00f4dc, #ffffff) */
.badge-brand-purple {
  background: #f7f2fa;
  color: #68348a;
  border: 1px solid #dccae8;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.badge-brand-cyan {
  background: #00f4dc;
  color: #230830;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 244, 220, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.15s ease;
}
.badge-brand-cyan:hover {
  background: #00ddc7;
  color: #14081c;
  transform: translateY(-1px);
}

.badge-brand-dark {
  background: #230830;
  color: #00f4dc;
  border: 1px solid rgba(0, 244, 220, 0.4);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-card-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 2px;
}

.event-remain-text {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-weight: 600;
}

.event-card-bottom {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.event-venue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.event-venue-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--brand-purple-vibrant);
  flex-shrink: 0;
}

.event-venue-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-price-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.event-price-tag {
  display: flex;
  flex-direction: column;
}

.event-price-prefix {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.event-price-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand-purple);
  line-height: 1.1;
}

.event-price-bcv {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   3-Step Value Proposition (Directly from Reference Mockup)
   ========================================================================== */
.step-item-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-badge-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: #3a1950;
  background: #00f4dc;
  border: 1px solid #9cfbf1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 244, 220, 0.35);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Stats & Trust Counters ("Trusted by Thousands Across Venezuela")
   ========================================================================== */
.stats-counter-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.stats-counter-card:hover {
  transform: translateY(-2px);
}

.stats-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-purple);
  line-height: 1;
  margin-bottom: 6px;
}

.stats-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Customer Review Cards
   ========================================================================== */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-purple-border);
}

.review-user-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.review-user-city {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--brand-yellow);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.review-quote {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Artists Avatars
   ========================================================================== */
.artist-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  user-select: none;
  transition: transform 0.15s ease;
}

.artist-circle-item:hover {
  transform: translateY(-3px);
}

.artist-avatar-wrap {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-card);
  margin-bottom: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.artist-circle-item:hover .artist-avatar-wrap {
  border-color: var(--brand-purple-vibrant);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.artist-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Raffle Number Selector & Interactive Passes
   ========================================================================== */
.raffle-number-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: #1e293b;
}

.raffle-number-box:hover:not(.sold):not(.reserved) {
  border-color: #00f4dc;
  color: #68348a;
  background: #e6fefa;
  transform: scale(1.05);
}

.raffle-number-box.selected {
  background: #68348a !important;
  color: #ffffff !important;
  border-color: #00f4dc !important;
  box-shadow: 0 0 14px rgba(0, 244, 220, 0.5) !important;
}

.raffle-number-box.sold {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: var(--border-card);
  cursor: not-allowed;
  text-decoration: line-through;
}

.raffle-number-box.reserved {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  cursor: not-allowed;
}

/* Digital Ticket Pass */
.digital-ticket {
  background: #ffffff;
  border-radius: 20px;
  border: 2px dashed #dccae8;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.digital-ticket-header {
  background: linear-gradient(135deg, #68348a 0%, #3a1950 100%);
  padding: 24px;
  position: relative;
  color: #ffffff !important;
  border-bottom: 3px solid #00f4dc;
}

.digital-ticket-header h1,
.digital-ticket-header h2,
.digital-ticket-header h3,
.digital-ticket-header h4,
.digital-ticket-header h5,
.digital-ticket-header h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

.digital-ticket-header small,
.digital-ticket-header span:not(.badge-cat-pill):not(.badge),
.digital-ticket-header p {
  color: #f8fafc !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.digital-ticket-body {
  padding: 24px;
  color: #14081c;
}

.ticket-notch-left, .ticket-notch-right {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background-color: var(--bg-page);
  border-radius: 50%;
  border: 1px solid #dccae8;
}
.ticket-notch-left {
  left: -12px;
}
.ticket-notch-right {
  right: -12px;
}

/* ==========================================================================
   Clean Premium Footer (#2a123b with #00f4dc accent)
   ========================================================================== */
.brand-footer {
  background: #2a123b;
  color: #f3eaf8;
  margin-top: 70px;
  border-top: 3px solid #00f4dc;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
}

.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #00f4dc;
  margin-bottom: 14px;
}

.footer-phone-big {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
}

.hover-white:hover {
  color: #00f4dc !important;
}

/* ==========================================================================
   MOBILE-FIRST APP EXPERIENCE & TOUCH DESIGN SYSTEM (320px - 430px & Up)
   ========================================================================== */

/* 1. Touch Targets & iOS Zoom Prevention */
@media (max-width: 991.98px) {
  /* Prevent iOS Safari auto-zoom on input focus by ensuring >= 16px font-size */
  input, select, textarea, .form-control, .form-select {
    font-size: 16px !important;
    min-height: 48px;
    border-radius: var(--radius-md);
  }

  .btn, button.btn, a.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Tactile Press Feedback on mobile touch */
  .btn:active, 
  .mobile-nav-item:active, 
  .card-touchable:active, 
  .admin-mobile-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Safe Area Handling */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 12px)) !important;
  }
}

/* 2. Badge Wrapping & Contrast Protection */
.badge-wrap {
  white-space: normal !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  word-break: break-word !important;
}

.badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
}

.badge-brand-purple {
  background: var(--brand-purple-soft) !important;
  color: var(--brand-purple-vibrant) !important;
  border: 1px solid rgba(104, 52, 138, 0.25) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.badge-brand-cyan {
  background: #00f4dc !important;
  color: #14081c !important;
  box-shadow: 0 2px 8px rgba(0, 244, 220, 0.3);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* User Profile Navigation Pill (Desktop & Tablet) */
.btn-user-pill {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 4px 12px 4px 5px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  min-height: 40px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}
.btn-user-pill:hover,
.btn-user-pill:focus,
.btn-user-pill.show {
  border-color: #68348a !important;
  box-shadow: 0 4px 14px rgba(104, 52, 138, 0.15) !important;
  background: #fbfaff !important;
}

/* 3. Horizontal Scrollable Category / Filter Chips */
.chip-carousel-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px 10px 2px;
}
.chip-carousel-wrap::-webkit-scrollbar {
  display: none;
}

.filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.filter-chip-btn.active, .filter-chip-btn:hover {
  background: var(--brand-purple);
  color: #ffffff !important;
  border-color: var(--brand-purple);
  box-shadow: 0 4px 12px rgba(104, 52, 138, 0.25);
}

/* 4. Sticky Mobile Bottom Checkout Bar */
.sticky-mobile-cta-bar {
  display: none;
}
@media (max-width: 991.98px) {
  .sticky-mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-card);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    padding: 12px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

/* 5. Mobile Bottom Sheet for Modals (< 768px) */
@media (max-width: 767.98px) {
  .modal.bottom-sheet .modal-dialog {
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal.bottom-sheet.show .modal-dialog {
    transform: translateY(0);
  }
  .modal.bottom-sheet .modal-content {
    border-radius: 24px 24px 0 0 !important;
    border: none;
    border-top: 1px solid var(--border-card);
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  }
  .bottom-sheet-drag-handle {
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 99px;
    margin: 10px auto 4px auto;
  }
}

/* 6. Admin Panel Mobile Cards & Mobile Navigation */
.admin-mobile-card {
  background: #ffffff;
  border: 1px solid #e7e0ee;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(104, 52, 138, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-mobile-card:hover {
  border-color: #dccae8;
  box-shadow: 0 4px 16px rgba(104, 52, 138, 0.08);
}

.admin-mobile-bottom-nav {
  display: none;
}
@media (max-width: 991.98px) {
  .admin-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    padding: 8px 6px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    justify-content: space-around;
    align-items: center;
  }

  .admin-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    text-align: center;
  }
  .admin-mobile-nav-item i {
    font-size: 1.25rem;
  }
  .admin-mobile-nav-item.active {
    color: #68348a;
    background: #f7f2fa;
  }
  .admin-mobile-nav-item.active i {
    color: #68348a;
  }
}

/* Fluid responsive titles */
.fluid-title-xl {
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
}
.fluid-title-lg {
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
}

/* ==========================================================================
   Mobile-First Sticky Checkout Bottom Bars (Event Cart & Raffle Checkout)
   ========================================================================== */
@media (max-width: 767.98px) {
  .cart-floating-bar,
  .raffle-floating-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    border: none !important;
    border-top: 2px solid var(--brand-purple) !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.12) !important;
    padding: 12px 16px !important;
    z-index: 1040 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .cart-floating-bar.d-none,
  .raffle-floating-bar.d-none {
    display: none !important;
  }

  .cart-floating-bar > div,
  .raffle-floating-bar > div {
    width: 100% !important;
  }

  .cart-floating-bar .btn-brand-purple,
  .raffle-floating-bar .btn-brand-purple {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================================
   Mobile Offcanvas App Drawer (Full Viewport & Elevated Layer)
   ========================================================================== */
#publicMobileDrawer.offcanvas,
#publicMobileDrawer.offcanvas-start,
#adminMobileDrawer.offcanvas,
#adminMobileDrawer.offcanvas-start {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 310px !important;
  max-width: 86vw !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 1080 !important; /* CRITICAL: Must be above .offcanvas-backdrop (1060) */
  background: #ffffff !important;
  box-shadow: 10px 0 35px rgba(18, 6, 28, 0.3) !important;
  border: none !important;
  visibility: visible;
}

#publicMobileDrawer:not(.show),
#adminMobileDrawer:not(.show) {
  transform: translateX(-100%) !important;
  visibility: hidden !important;
}

#publicMobileDrawer.show,
#adminMobileDrawer.show {
  transform: none !important;
  visibility: visible !important;
}

.offcanvas-backdrop {
  z-index: 1060 !important;
}

.offcanvas-backdrop.show {
  background-color: rgba(18, 6, 28, 0.62) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* Prevent text overflow in alerts & mobile cards */
.alert {
  word-break: break-word !important;
}
.alert div {
  word-break: break-word !important;
}
.admin-mobile-card {
  word-break: break-word;
  overflow: hidden;
}

/* ==========================================================================
   Refined Break-Even Calculator Card (Admin Raffles)
   ========================================================================== */
.calc-break-even-card {
  padding: 22px 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #e9d5ff !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 22px rgba(104, 52, 138, 0.08) !important;
}

.calc-break-even-card .calc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3e8ff;
}

.calc-break-even-card .calc-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #68348a 0%, #461f5f 100%);
  color: #00f4dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(104, 52, 138, 0.25);
  flex-shrink: 0;
}

.calc-break-even-card .calc-metric-box {
  background: #faf8fd;
  border: 1px solid #ede4f7;
  border-radius: 14px;
  padding: 14px 16px;
  height: 100%;
  transition: all 0.2s ease;
}

.calc-break-even-card .calc-metric-box:hover {
  background: #ffffff;
  border-color: #dccae8;
  box-shadow: 0 4px 12px rgba(104, 52, 138, 0.07);
}


