/* 
  PremioMax RD - Premium Styling System
  Reference-matched Design and 100% Mobile Responsive Layout.
  Colors: Obsidian navy dark background, electric blue, neon purple, success green, white.
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors from Reference Image - Upgraded to Vivid High-Contrast Neon Palette */
  --bg-base: #020308;
  --bg-surface: #070914;
  --bg-surface-elevated: #0f1225;
  --bg-surface-glass: rgba(7, 9, 20, 0.75);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(0, 242, 254, 0.6);
  
  --primary: #0072ff;
  --primary-neon: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.45);
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #0052ff 100%);
  --brand-gradient: linear-gradient(135deg, #00f2fe 0%, #0052ff 45%, #a855f7 75%, #ec4899 100%);
  --button-purple-gradient: linear-gradient(135deg, #a855f7 0%, #0052ff 100%);
  
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.45);
  --accent-pink: #ec4899;
  --accent-pink-glow: rgba(236, 72, 153, 0.4);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.35);
  --danger: #f43f5e;
  --danger-glow: rgba(244, 63, 94, 0.4);
  
  --text-primary: #f9fafb;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', Courier, monospace;
  
  /* Layout tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-premium: 0 25px 60px -10px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.18);
}

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(0, 82, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  filter: brightness(1.2);
}

.text-center {
  text-align: center;
}

/* Glassmorphism containers */
.glass {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* App Shell Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: none;
  background: rgba(3, 5, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.03em;
  color: #fff;
  cursor: pointer;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.logo:hover .brand-main {
  background: linear-gradient(120deg, #ffffff 30%, #00f2fe 45%, #a855f7 55%, #ffffff 70%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shineText 1.2s linear infinite !important;
  display: inline-block !important;
}

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

/* Commented out legacy color override to allow brand color customization */
/*
.logo span {
  color: var(--accent-purple);
}
*/

.logo svg {
  stroke: var(--primary);
  fill: rgba(0, 82, 255, 0.1);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid var(--accent-purple);
  filter: drop-shadow(0 0 6px var(--accent-purple-glow));
}

nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15%;
  width: 70%;
  height: 1.5px;
  background: var(--brand-gradient);
  box-shadow: 0 0 6px var(--primary-glow);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-outline-nav {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-outline-nav:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.05);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #060917;
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto; /* Enable vertical scroll for intermediate heights */
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.drawer-link-item {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.drawer-link-item:hover, .drawer-link-item.active {
  background: var(--bg-surface-elevated);
  color: #fff;
}

.drawer-link-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 2px;
  background: var(--brand-gradient);
  box-shadow: 0 0 6px var(--primary-glow);
  border-radius: var(--radius-full);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.drawer-link-item:hover::before,
.drawer-link-item.active::before {
  transform: scaleY(1);
  transform-origin: top;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 20px -6px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btnShine 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes btnShine {
  0% {
    left: -70%;
  }
  100% {
    left: 130%;
  }
}

.btn-primary:hover {
  transform: translateY(-2.5px);
  filter: brightness(1.1);
  box-shadow: 0 10px 25px -4px var(--primary-glow), 0 0 15px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  transition: 0.75s ease;
}

.btn-glow:hover::after {
  left: 125%;
}

/* User Account Quick Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  cursor: pointer;
}

.user-avatar {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.7rem;
  color: #fff;
}

/* View Section Control */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.view-section {
  display: none;
  animation: viewTransition 0.3s ease-out forwards;
}

.view-section.active {
  display: block;
}

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

/* ============================================== */
/* 🏠 HOME VIEW STYLING */
/* ============================================== */

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 5.5rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 4.2rem;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

/* Stack of avatars in hero */
.participants-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
  margin-left: -8px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.participants-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.participants-text span {
  font-weight: 700;
  color: #fff;
}

.hero-glow-back {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.22) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 100%);
  filter: blur(60px);
  z-index: 0;
}



/* Statistics row */
.stats-row-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3.5rem 0;
}

.stat-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper.blue { background: rgba(0, 82, 255, 0.1); color: var(--primary); }
.stat-icon-wrapper.gold { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon-wrapper.green { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.stat-icon-wrapper.trophy { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }

.stat-icon-wrapper svg {
  stroke-width: 2.2px;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-box-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.1;
}

.stat-box-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.15rem;
}

.stat-box-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* SECTION HEADER STYLING */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* RIFAS GRID & CARDS */
.raffles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.raffle-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.raffle-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: var(--shadow-premium), 0 12px 35px rgba(0, 82, 255, 0.15), 0 0 20px rgba(168, 85, 247, 0.1);
}

.raffle-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #090c14;
}

.raffle-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.raffle-card:hover .raffle-img-wrapper img {
  transform: scale(1.04);
}

.raffle-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent-purple);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

.raffle-price-tag {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

/* Heart floating button */
.raffle-favorite-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(10, 13, 26, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.raffle-favorite-btn:hover {
  background: #fff;
  color: var(--danger);
  border-color: #fff;
}

.raffle-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.raffle-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.raffle-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
}

.progress-bar-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: bgPulse 3s infinite linear;
  pointer-events: none;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-neon) 50%, var(--primary) 100%);
  background-size: 200% 100%;
  animation: progressBarSweep 2s linear infinite;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.8s ease-out;
}

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

.raffle-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.raffle-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.raffle-meta-item strong {
  color: #fff;
}

/* ¿CÓMO FUNCIONA? TIMELINE */
.how-it-works-section {
  padding: 4rem 0;
  position: relative;
}

.how-steps-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2rem;
}

.how-steps-timeline::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  border-top: 2px dotted rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.step-item {
  flex: 1;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 250px;
}

.step-icon-glow {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
  transition: transform 0.3s;
}

.step-item:hover .step-icon-glow {
  transform: translateY(-4px);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.step-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num-bubble {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.step-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.step-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* POR QUÉ ELEGIR PREMIOMAX RD */
.why-choose-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.feature-box-premium {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.25s;
}

.feature-box-premium:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}

.f-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.f-icon.green { background: rgba(34, 197, 94, 0.08); color: var(--success); }
.f-icon.purple { background: rgba(139, 92, 246, 0.08); color: var(--accent-purple); }
.f-icon.blue { background: rgba(0, 82, 255, 0.08); color: var(--primary); }
.f-icon.cyan { background: rgba(6, 182, 212, 0.08); color: #06b6d4; }
.f-icon.orange { background: rgba(245, 158, 11, 0.08); color: var(--warning); }

.feature-box-premium h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-box-premium p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CALL TO ACTION BOTTOM BANNER */
.cta-banner-container {
  position: relative;
  background: linear-gradient(135deg, #070a19 0%, #150c2e 50%, #030409 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 4.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  margin: 4.5rem 0;
  box-shadow: var(--shadow-premium), 0 0 35px rgba(168, 85, 247, 0.08);
}

.cta-glow-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(0, 242, 254, 0.1) 45%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
}

.cta-content {
  max-width: 500px;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-visual-phone {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.cta-3d-wrapper {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(10deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-banner-container:hover .cta-3d-wrapper {
  transform: rotateY(-4deg) rotateX(6deg) scale(1.02);
}

/* Mock Phone mockup */
.phone-mockup {
  width: 165px;
  height: 285px;
  border-radius: 32px;
  border: 4.5px solid #1e2238;
  background: linear-gradient(180deg, #080a1c 0%, #030409 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 242, 254, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transform: translateZ(20px);
  animation: floatPhone 6s ease-in-out infinite;
}

.phone-header {
  height: 14px;
  background: #1e2238;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 55%;
  margin: 0 auto;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  padding: 1.5rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Screen glossy glare reflection */
.phone-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  pointer-events: none;
  transform: rotate(-15deg);
  z-index: 5;
}

.phone-success-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px var(--success-glow);
  z-index: 2;
}

/* Mock printed ticket mockup */
.ticket-mockup {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem 0.85rem 1rem;
  width: 150px;
  height: 265px;
  color: #070914;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transform: translateZ(50px) rotateY(12deg) rotateZ(-3deg);
  animation: floatTicket 6s ease-in-out infinite;
  animation-delay: -3s;
}

/* Jagged top/bottom ticket edge */
.ticket-mockup::before, .ticket-mockup::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-size: 8px 6px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.ticket-mockup::before {
  top: -6px;
  background-image: linear-gradient(45deg, transparent 33.333%, #ffffff 33.333%, #ffffff 66.667%, transparent 66.667%), linear-gradient(-45deg, transparent 33.333%, #ffffff 33.333%, #ffffff 66.667%, transparent 66.667%);
}

.ticket-mockup::after {
  bottom: -6px;
  background-image: linear-gradient(45deg, #ffffff 33.333%, transparent 33.333%, transparent 66.667%, #ffffff 66.667%), linear-gradient(-45deg, #ffffff 33.333%, transparent 33.333%, transparent 66.667%, #ffffff 66.667%);
}

.ticket-logo-header {
  font-size: 0.85rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #0052ff;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}

.ticket-mock-num {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  color: #070914;
  letter-spacing: -0.03em;
  margin: 0.2rem 0;
}

@keyframes floatPhone {
  0%, 100% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(20px) translateY(-10px); }
}

@keyframes floatTicket {
  0%, 100% { transform: translateZ(50px) rotateY(12deg) rotateZ(-3deg) translateY(0); }
  50% { transform: translateZ(50px) rotateY(12deg) rotateZ(-3deg) translateY(-12px); }
}

/* ============================================== */
/* 🛒 TICKET PURCHASE FLOW STYLING */
/* ============================================== */
.purchase-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.flow-step-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  position: relative;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Quantity Selection */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.qty-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  width: 60px;
  text-align: center;
}

.qty-presets {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.preset-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  color: #fff;
}

/* Number Selection */
.numbers-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.number-selection-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-numbers-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem;
  background: rgba(255,255,255,0.01);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  align-items: center;
}

.number-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: scaleIn 0.2s ease forwards;
}

.number-pill span {
  cursor: pointer;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.num-cell {
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.num-cell:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

.num-cell.selected {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  font-weight: 700;
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Payment selection */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pay-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s;
  position: relative;
}

.pay-card:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.02);
}

.pay-card.selected {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(0, 82, 255, 0.04) 100%);
}

.pay-card.selected::after {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.pay-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.pay-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pay-icon-badge {
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* File Receipt Uploader */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.02);
}

.upload-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.upload-text span {
  color: var(--accent-purple);
  font-weight: 600;
}

.uploaded-file-details {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.uploaded-file-details.active {
  display: flex;
}

/* Sidebar summary */
.purchase-sidebar {
  position: sticky;
  top: 100px;
}

.summary-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.summary-header {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.summary-item.total {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.summary-item.total span {
  font-family: var(--font-mono);
}

.summary-raffle-details {
  display: flex;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.summary-raffle-details img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.summary-raffle-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-raffle-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.summary-raffle-price {
  font-size: 0.85rem;
  color: var(--accent-purple);
  font-weight: 600;
}

/* ============================================== */
/* 🔍 PUBLIC TICKET VALIDATOR VIEW STYLING */
/* ============================================== */
.validator-container {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

.search-box-wrapper {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  transition: border-color 0.25s;
}

.search-box-wrapper:focus-within {
  border-color: var(--accent-purple);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
}

.validator-result-card {
  display: none;
  animation: scaleIn 0.3s ease forwards;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: left;
}

.validator-result-card.active {
  display: block;
}

.ticket-header {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-status-badge {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.ticket-status-badge.verified {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ticket-status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ticket-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ticket-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticket-info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ticket-info-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.ticket-info-value.numbers {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.ticket-num-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.ticket-qr-section {
  grid-column: span 2;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.qr-canvas-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-hash-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.03);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  word-break: break-all;
}

/* ============================================== */
/* 👤 CLIENT PANEL VIEW STYLING */
/* ============================================== */
.client-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.client-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-tab-link {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-tab-link:hover, .client-tab-link.active {
  background: var(--bg-surface-elevated);
  color: #fff;
}

.client-tab-link.active {
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

.client-content-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  min-height: 500px;
}

.client-subview {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.client-subview.active {
  display: block;
}

.ticket-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.client-ticket-item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.01);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}

.client-ticket-item:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.client-ticket-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.client-ticket-raffle {
  font-size: 0.95rem;
  font-weight: 700;
}

.client-ticket-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.client-ticket-numbers {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.client-num-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Security logs list */
.audit-logs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.audit-logs-table th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.audit-logs-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

/* ============================================== */
/* 👨‍💼 ADMIN PANEL VIEW STYLING */
/* ============================================== */
.admin-grid-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-metric-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.admin-metric-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.admin-metric-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-charts-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-chart-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  height: 350px;
  display: flex;
  flex-direction: column;
}

.admin-chart-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.admin-chart-canvas-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.9rem;
}

.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.01);
}

/* ============================================== */
/* 🏆 GANADORES VIEW STYLING */
/* ============================================== */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.winner-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s;
}

.winner-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

.winner-image {
  height: 160px;
  background: #11141c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.winner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-badge-number {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--accent-purple);
  color: #fff;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.winner-info {
  padding: 1.25rem;
}

.winner-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.winner-prize {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.winner-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ============================================== */
/* 📈 MARKETING PROGRAM VIEW STYLING */
/* ============================================== */
.marketing-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.referral-link-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ref-link-box {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  align-items: center;
}

.ref-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================== */
/* 🤖 OCR AI SCANNING SIMULATOR MODAL */
/* ============================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.ocr-modal {
  width: 100%;
  max-width: 950px;
  height: 620px; /* Fixed height to prevent bottom cuts on desktop */
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: var(--shadow-premium), 0 0 50px rgba(0, 82, 255, 0.1);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ocr-visualizer {
  background: #050711;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-right: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%; /* Fill parent modal height */
}

.receipt-preview-container {
  width: 100%;
  height: 100%;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.receipt-preview-container img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  filter: brightness(0.9);
}

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--primary), var(--accent-purple), var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary), 0 0 8px var(--accent-purple);
  top: 10%;
  animation: laserScan 2.5s ease-in-out infinite alternate;
  z-index: 10;
  display: none;
}

.scan-laser-line.active {
  display: block;
}

@keyframes laserScan {
  0% { top: 10%; }
  100% { top: 90%; }
}

.ocr-bounding-box {
  position: absolute;
  border: 1px solid var(--primary);
  background: rgba(0, 82, 255, 0.1);
  pointer-events: none;
  display: none;
  animation: blinkBorder 0.4s infinite alternate;
}

.ocr-bounding-box.active {
  display: block;
}

@keyframes blinkBorder {
  0% { border-color: var(--primary); background: rgba(0, 82, 255, 0.1); }
  100% { border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.15); }
}

.ocr-console {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%; /* Fill parent modal height */
  background: #080c18;
  overflow: hidden; /* Prevent internal container overflow */
}

.ocr-console-header {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ocr-console-header svg {
  color: var(--accent-purple);
}

.ocr-console-logs {
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}

.ocr-log-line {
  line-height: 1.4;
}

.ocr-log-line.system { color: var(--text-muted); }
.ocr-log-line.success { color: var(--success); }
.ocr-log-line.error { color: var(--danger); }
.ocr-log-line.warn { color: var(--warning); }

.ocr-result-display {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  animation: scaleIn 0.3s ease forwards;
}

.ocr-result-display.active {
  display: block;
}

.ocr-result-display.approved {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.ocr-data-matched {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.25rem;
}

/* ============================================== */
/* 📜 DIGITAL CERTIFICATE STYLING */
/* ============================================== */
.cert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-overlay.active {
  display: flex;
}

.cert-modal {
  width: 100%;
  max-width: 700px;
  background: #0a0d1c;
  border: 4px double rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 3rem;
  position: relative;
  text-align: center;
  box-shadow: 0 0 50px rgba(139,92,246,0.25);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cert-header {
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.cert-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cert-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cert-winner-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  padding-left: 2rem;
  padding-right: 2rem;
}

.cert-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cert-meta-lbl {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.cert-meta-val {
  font-weight: 700;
}

.cert-meta-val.num {
  font-family: var(--font-mono);
  color: var(--accent-purple);
}

.cert-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  border: 2px dashed var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
}

.cert-badge-inner {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: rgba(139,92,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

/* ============================================== */
/* 📧 TOAST NOTIFICATIONS STYLING */
/* ============================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
  width: calc(100% - 4rem);
}

.toast {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.whatsapp { border-left-color: #25d366; }
.toast.email { border-left-color: var(--accent-purple); }
.toast.sms { border-left-color: var(--primary); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--primary); }
.toast.system { border-left-color: var(--accent-purple); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.toast-close {
  cursor: pointer;
  color: var(--text-secondary);
}
.toast-close:hover {
  color: #fff;
}

@keyframes slideInLeft {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(50px); }
}

/* ============================================== */
/* 📂 FOOTER COLUMNS STYLING */
/* ============================================== */
.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-info-col {
  display: flex;
  flex-direction: column;
}

.social-icons-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icons-row a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-icons-row a:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

.footer-links-col h4, .footer-payments-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.footer-links-col li:hover {
  color: #fff;
}

.footer-payments-col {
  display: flex;
  flex-direction: column;
}

.payment-badges-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pay-badge-ft {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-bottom-row {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.scroll-top-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: background-color 0.2s;
}

.scroll-top-btn:hover {
  background: var(--primary);
}

/* ============================================== */
/* 📱 100% RESPONSIVE ADAPTATIONS (MEDIA QUERIES) */
/* ============================================== */

@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .footer-columns {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  }
  .footer-payments-col {
    grid-column: span 4;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
  }
}

@media (max-width: 992px) {
  /* Toggle hamburger visibility */
  .menu-toggle {
    display: block;
  }
  
  /* Hide main nav links on desktop layout */
  nav {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 2rem 0;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .participants-social {
    justify-content: center;
  }
  

  
  .stats-row-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .raffles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .how-steps-timeline::after {
    display: none;
  }
  
  .how-steps-timeline {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  
  .step-item {
    max-width: 100%;
    width: 100%;
  }
  
  .cta-banner-container {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .cta-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    padding: 0.75rem 1.5rem;
  }
  
  .hero h1 { font-size: 2.8rem; }
  
  .client-layout {
    grid-template-columns: 1fr;
  }
  
  .client-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .client-tab-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .purchase-layout {
    grid-template-columns: 1fr;
  }
  
  .purchase-sidebar {
    position: static;
  }
  
  .admin-charts-row {
    grid-template-columns: 1fr;
  }
  
  .admin-grid-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-info-col {
    grid-column: span 2;
    margin-bottom: 1.5rem;
  }
  
  .footer-payments-col {
    grid-column: span 2;
  }
  
  .ocr-modal {
    grid-template-columns: 1fr;
    height: auto !important; /* Override fixed desktop height */
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .ocr-visualizer {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    height: 250px;
  }

  .ocr-console {
    height: auto !important; /* Override fixed height on mobile */
    overflow: visible !important;
  }
}

@media (max-width: 576px) {
  main {
    padding: 1rem;
  }
  
  .hero h1 { font-size: 2.2rem; }
  

  

  
  .stats-row-container {
    grid-template-columns: 1fr;
  }
  
  .raffles-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .payment-grid {
    grid-template-columns: 1fr;
  }
  
  .ticket-body {
    grid-template-columns: 1fr;
  }
  
  .ticket-qr-section {
    flex-direction: column;
    text-align: center;
  }
  
  .cert-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .cert-badge {
    position: static;
    margin: 1.5rem auto 0;
  }
  
  .cta-banner-container {
    padding: 2.5rem 1rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-visual-phone {
    width: 100%;
    justify-content: center;
    transform: scale(0.9);
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
  }
  
  .footer-info-col, .footer-payments-col {
    grid-column: span 1;
  }
  
  .footer-bottom-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .admin-grid-metrics {
    grid-template-columns: 1fr;
  }
  
  .manual-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .toast-container {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 1rem;
  }
}

/* ============================================== */
/* 🔑 LOGIN TABS & CONSULTING VIEWS */
/* ============================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  width: 100%;
  padding: 2rem 1rem;
}

.login-card {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.login-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-top: 1.25rem;
}
.login-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 0.5rem;
  border-radius: calc(var(--radius-md) - 4px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-tab:hover {
  color: #fff;
}
.login-tab.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================== */
/* ⚠️ CUSTOM PREMIUM ALERT MODAL STYLING */
/* ============================================== */
.custom-alert-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-premium), 0 0 35px rgba(139, 92, 246, 0.12);
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}
.custom-alert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}
.custom-alert-card.success::before {
  background: linear-gradient(90deg, var(--success) 0%, #10b981 100%);
}
.custom-alert-card.error::before {
  background: linear-gradient(90deg, var(--danger) 0%, #f43f5e 100%);
}
.custom-alert-card.info::before {
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
}
.custom-alert-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
}
.custom-alert-icon.error {
  filter: drop-shadow(0 0 8px rgba(239,68,68,0.4));
}
.custom-alert-icon.success {
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.4));
}
.custom-alert-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.custom-alert-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.custom-alert-actions {
  display: flex;
  justify-content: center;
}

/* ============================================== */
/* 🔥 SPECIAL DYNAMICS & INSTANT REWARDS */
/* ============================================== */
.bonus-fire-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
  animation: firePulse 2s infinite ease-in-out;
}
@keyframes firePulse {
  0% { transform: scale(1); box-shadow: 0 0 0px rgba(239,68,68,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 8px rgba(239,68,68,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0px rgba(239,68,68,0); }
}

/* Dynamic Hover Effects */
.glass {
  transition: border-color 0.25s, box-shadow 0.25s;
}
.glass:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-primary:active, .btn-secondary:active, .btn-success:active {
  transform: scale(0.97) !important;
}

/* ============================================== */
/* Removed cursor glow tracker to clean up pointer style */

/* ============================================== */
/* 🔥 PUBLIC DYNAMICS CARDS & TEXT SHADOWS */
/* ============================================== */
.public-dynamic-card {
  background: rgba(10, 13, 26, 0.65);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.public-dynamic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
  opacity: 0.85;
}
.public-dynamic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.18), 0 0 20px rgba(239, 68, 68, 0.08);
}
.public-dynamic-num {
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.public-dynamic-prize {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.public-dynamic-raffle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ============================================== */
/* 🔎 INLINE LOOKUP TICKET CARDS & TIMELINE */
/* ============================================== */
.lookup-ticket-card {
  background: rgba(13, 17, 36, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.lookup-ticket-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(13, 17, 36, 0.75);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform: translateY(-1.5px);
}
.lookup-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.65rem;
}
.lookup-ticket-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.lookup-ticket-status {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.lookup-ticket-status.pendiente {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.lookup-ticket-status.verificado {
  background: rgba(34, 197, 94, 0.08);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.lookup-ticket-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lookup-ticket-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lookup-ticket-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.35rem;
}

/* ============================================== */
/* 👨‍💼 PREMIUM ADMIN DASHBOARD SaaS GRIDS & TABLES */
/* ============================================== */
.admin-metric-card {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}
.admin-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}
.admin-metric-card::after {
  content: '';
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-glow);
  filter: blur(25px);
  opacity: 0.35;
  pointer-events: none;
}
.admin-metric-card:nth-child(2)::after { background: var(--accent-purple-glow); }
.admin-metric-card:nth-child(3)::after { background: var(--warning-glow); }
.admin-metric-card:nth-child(4)::after { background: var(--success-glow); }

.admin-chart-card {
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
}
.admin-chart-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 2px solid var(--border-color);
  padding: 1.1rem 1rem;
}
.admin-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}
.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Scroll wrapper for responsive safety */
.admin-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(10, 13, 26, 0.35);
  box-shadow: var(--shadow-premium);
}

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

/* ======================================================== */
/* 🚀 PHASE 2 PREMIUM AESTHETIC POLISH & LAYOUT OVERHAULS */
/* ======================================================== */

/* 1. Quick Login Cards & Avatars */
.quick-login-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  gap: 0.35rem !important;
  position: relative !important;
  overflow: hidden !important;
}

.quick-login-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--accent-purple) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2) !important;
}

.quick-login-card.admin:hover {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 12px 30px rgba(0, 82, 255, 0.2) !important;
}

.quick-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--button-purple-gradient) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  margin-bottom: 0.5rem !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4) !important;
  transition: transform 0.3s ease !important;
}

.quick-login-card:hover .quick-avatar {
  transform: scale(1.1);
}

.quick-avatar.admin {
  background: linear-gradient(135deg, #0052ff 0%, #00d2ff 100%) !important;
  box-shadow: 0 0 12px rgba(0, 82, 255, 0.4) !important;
}

/* 2. Premium Mobile Drawer Overhaul */
.mobile-drawer {
  background: rgba(10, 12, 22, 0.85) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.75) !important;
}

.drawer-close {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.15rem !important;
  transition: all 0.25s ease !important;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-color: var(--accent-purple) !important;
  transform: rotate(90deg);
}

.drawer-link-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  padding: 0.9rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.drawer-link-item svg {
  color: var(--text-secondary);
  opacity: 0.65;
  transition: all 0.25s ease;
}

.drawer-link-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
}

.drawer-link-item:hover svg,
.drawer-link-item.active svg {
  color: #fff !important;
  opacity: 1 !important;
}

.drawer-link-item.active {
  background: rgba(139, 92, 246, 0.08) !important;
  color: #fff !important;
  padding-left: 1.25rem !important;
}

/* 3. Header Action Spacing & User Badge Separation */
.header-actions {
  gap: 1.25rem !important;
  margin-left: 2.5rem !important;
}

.user-badge {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: var(--radius-full) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 0.85rem !important;
  font-weight: 650 !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.user-badge:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--accent-purple) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15) !important;
}

.user-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: var(--radius-full) !important;
  background: var(--button-purple-gradient) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
}

/* 4. OCR Console Scanner Pending Display */
.ocr-result-display.pending {
  background: rgba(245, 158, 11, 0.04) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

/* Responsive safety spacing for desktop header on intermediate viewports */
@media (max-width: 1200px) {
  .nav-wrapper {
    padding: 1rem 1.25rem !important;
  }
  nav {
    gap: 0.25rem !important;
  }
  .nav-link {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.85rem !important;
  }
  .header-actions {
    margin-left: 1rem !important;
  }
}

/* ======================================================== */
/* 🚀 BRAND LOGO-FREE BRANDING & MOBILE DRAWER BACKDROP */
/* ======================================================== */

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.brand-main {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}

.brand-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic !important;
  color: #ffffff !important;
  text-align: right;
  margin-top: -2px;
  align-self: flex-end;
  letter-spacing: 0.05em;
}

/* 5. Mobile Drawer Backdrop Overlay */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 13, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  display: block;
  opacity: 1;
}

/* 6. Admin Secure Lock Button */
.admin-secure-lock-btn:hover {
  opacity: 0.8 !important;
  color: var(--accent-purple) !important;
  transform: scale(1.1);
}

/* 7. OCR Modal Close Button */
.ocr-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
}

.ocr-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Fix mobile scrollability for OCR modal content */
.modal-overlay {
  overflow-y: auto;
}

.ocr-modal {
  margin: auto;
}

/* ======================================================== */
/* 💎 INNOVATIVE GLOWING ICONS FOR LOGIN CARDS & BRAND LOGO */
/* ======================================================== */
.brand-logo-svg {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.35));
  flex-shrink: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  animation: floatLogo 3.5s infinite ease-in-out;
}

.brand-logo-svg:hover,
.logo:hover .brand-logo-svg {
  transform: rotateY(25deg) rotateX(-12deg) scale(1.18);
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.8)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}

@keyframes floatLogo {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.login-header-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.innovative-glowing-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 70%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15), inset 0 0 12px rgba(139, 92, 246, 0.1);
  animation: floatGlowingIcon 3s infinite ease-in-out;
}

.innovative-glowing-icon.blue {
  background: radial-gradient(circle at 50% 50%, rgba(0, 82, 255, 0.15), transparent 70%);
  border: 2px solid rgba(0, 82, 255, 0.3);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 82, 255, 0.15), inset 0 0 12px rgba(0, 82, 255, 0.1);
  animation: floatGlowingIconBlue 3s infinite ease-in-out;
}

@keyframes floatGlowingIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); border-color: var(--accent-purple); box-shadow: 0 0 25px rgba(139, 92, 246, 0.3); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatGlowingIconBlue {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); border-color: var(--primary); box-shadow: 0 0 25px rgba(0, 82, 255, 0.3); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Responsive adjustment for user actions badge in header */
@media (max-width: 1250px) {
  .user-badge span {
    display: none !important;
  }
  .user-badge {
    padding: 0.4rem !important;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50% !important;
  }
}

/* Premium Hero Prize Main Image styling */
.hero-prizes-main-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

/* 💎 Upgrade Verifier Tabs & Drag Drop visual states */
.verifier-tab-btn.active {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.verifier-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
}

.ocr-drag-drop-zone:hover .ocr-zone-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.ocr-drag-drop-zone .ocr-zone-icon {
  transition: all 0.3s ease;
}

.verifier-scanner-viewport {
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
}

/* 💬 PremioMax AI Virtual Assistant Chatbot Styling */
.chatbot-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #0052ff 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.5);
}

.chatbot-floating-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
}

.chatbot-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
  animation: chatbotPulse 2s infinite alternate;
}

@keyframes chatbotPulse {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.8; }
}

.chatbot-window {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 360px;
  height: 520px;
  border-radius: var(--radius-lg);
  background: #080b18;
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  box-shadow: var(--shadow-premium), 0 0 35px rgba(139, 92, 246, 0.15);
  animation: chatAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatAppear {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  background: #0f1326;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.chatbot-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #0052ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.chatbot-header-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chatbot-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.chatbot-status {
  font-size: 0.68rem;
  color: #a1a1aa;
  margin-top: 0.05rem;
}

.chatbot-close-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.chatbot-close-btn:hover {
  color: #fff;
}

.chatbot-body {
  flex: 1;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03), transparent 70%);
}

.chat-msg {
  max-width: 82%;
  padding: 0.75rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.chat-msg.user {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.2);
}

.chat-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: flex-start;
  width: 100%;
}

.chat-action-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(0, 114, 255, 0.3);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  width: 100%;
}

.chat-action-btn:hover {
  background: rgba(0, 114, 255, 0.08);
  border-color: var(--primary-neon);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  transform: translateY(-1px);
}

.chat-action-btn-whatsapp {
  background: rgba(16, 185, 129, 0.03);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  width: 100%;
}

.chat-action-btn-whatsapp:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.chatbot-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0f1326;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#chatbot-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s;
}

#chatbot-input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 82, 255, 0.3);
}

.chatbot-typing {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-style: italic;
}

/* Responsive adjustments for chatbot on mobile devices */
@media (max-width: 480px) {
  .chatbot-floating-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }
  .chatbot-window {
    right: 1rem;
    bottom: 5.5rem;
    width: calc(100vw - 2rem);
    height: 460px;
  }
}

/* Scroll Reveal Animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================== */
/* 🚀 ADMIN MODE breakout, brand logo tracer & grid helpers */
/* ======================================================== */

body.admin-mode main {
  max-width: 100% !important;
  padding-left: 3.5rem !important;
  padding-right: 3.5rem !important;
}

@media (max-width: 768px) {
  body.admin-mode main {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

.brand-logo-trace {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: traceLogo 5s linear infinite;
  filter: drop-shadow(0 0 5px var(--primary-neon));
}

@keyframes traceLogo {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Responsive Grid Helpers */
.admin-layout-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Media Queries for Admin and grid responsiveness */
@media (max-width: 992px) {
  .admin-layout-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .referral-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Custom Simulator Rejilla Adaptativa */
.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: flex-end;
}

/* Tablas Responsivas sin desborde y scroll neón premium */
.admin-table-container,
div[style*="overflow-x: auto"] {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.02);
}

div[style*="overflow-x: auto"]::-webkit-scrollbar,
.admin-table-container::-webkit-scrollbar {
  height: 6px;
}

div[style*="overflow-x: auto"]::-webkit-scrollbar-track,
.admin-table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb,
.admin-table-container::-webkit-scrollbar-thumb {
  background: var(--brand-gradient);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th,
.admin-table td,
.audit-logs-table th,
.audit-logs-table td {
  white-space: nowrap;
}

/* Botón de Salida Circular Moderno */
.logout-icon-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.03);
}

.logout-icon-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff8787;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.logout-icon-btn:active {
  transform: scale(0.95);
}

/* Google Authenticator Widget Simulator */
.authenticator-simulator-box {
  animation: floatAuthenticator 4s ease-in-out infinite;
}

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

/* Cuenta Regresiva Sorteos */
.raffle-countdown-container {
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 15px rgba(0, 242, 254, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-neon);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  min-width: 2.2rem;
  text-align: center;
  border: 1px solid rgba(0, 242, 254, 0.1);
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
  font-weight: 700;
}

.countdown-divider {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
  animation: pulseDivider 1s infinite alternate;
}

@keyframes pulseDivider {
  0% { opacity: 0.2; }
  100% { opacity: 0.8; }
}




