/* ========================================================
   MI LOTERÍA WEB - MODERN PWA STYLESHEET
   Mobile-First, High-Performance, Lottery Emerald & Gold
   ======================================================== */

:root {
  --bg-main: #090e17;
  --bg-card: #131c2e;
  --bg-card-hover: #1a263d;
  --bg-secondary: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-400: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --gold-500: #eab308;
  --gold-400: #facc15;
  --gold-600: #ca8a04;
  --gold-glow: rgba(234, 179, 8, 0.25);

  --danger-500: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   HEADER & SUMMARY BANNER
   ======================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 14px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.brand-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px var(--emerald-glow);
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(234, 179, 8, 0.3);
  margin-left: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-header-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--gold-400);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-header-qr:active {
  transform: scale(0.92);
  background: rgba(234, 179, 8, 0.25);
}

.btn-header-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px var(--emerald-glow);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn-header-add:active {
  transform: scale(0.94);
}

@media (max-width: 390px) {
  .brand-badge {
    display: none;
  }
  .brand-title {
    font-size: 1rem;
  }
}

.header-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  text-align: center;
}

.stat-box.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.2));
  border-color: rgba(16, 185, 129, 0.3);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-value.gold {
  color: var(--gold-400);
}

.stat-value.green {
  color: var(--emerald-400);
}

/* ========================================================
   MAIN CONTENT & TABS
   ======================================================== */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.tab-pane.active {
  display: block;
}

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

/* ========================================================
   WALLET VIEW (CARTERA)
   ======================================================== */
.wallet-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

/* Fila 1: 3 botones ocupan 2 columnas cada uno */
.wallet-filters .filter-btn:nth-child(1),
.wallet-filters .filter-btn:nth-child(2),
.wallet-filters .filter-btn:nth-child(3) {
  grid-column: span 2;
}

/* Fila 2: 2 botones ocupan 3 columnas cada uno */
.wallet-filters .filter-btn:nth-child(4),
.wallet-filters .filter-btn:nth-child(5) {
  grid-column: span 3;
}

@media (min-width: 600px) {
  .wallet-filters {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .wallet-filters .filter-btn:nth-child(1),
  .wallet-filters .filter-btn:nth-child(2),
  .wallet-filters .filter-btn:nth-child(3),
  .wallet-filters .filter-btn:nth-child(4),
  .wallet-filters .filter-btn:nth-child(5) {
    grid-column: span 1;
  }
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 8px 3px;
  min-height: 38px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: clamp(0.68rem, 2.4vw, 0.77rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-width: 0;
  overflow: hidden;
}

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

.filter-btn .filter-icon {
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.filter-btn .filter-name {
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.2px;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-btn .filter-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  min-width: 16px;
  height: 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 78, 59, 0.45));
  color: #ffffff;
  border-color: var(--emerald-500);
  box-shadow: 0 0 14px var(--emerald-glow);
}

.filter-btn.active .filter-count {
  background: var(--emerald-500);
  color: #ffffff;
}

.filter-btn[data-filter="premiado"].active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(16, 185, 129, 0.3));
  border-color: var(--gold-400);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}

.filter-btn[data-filter="premiado"].active .filter-count {
  background: var(--gold-500);
  color: #000;
}

.filter-btn[data-filter="regalos"].active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(225, 29, 72, 0.35));
  border-color: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.filter-btn[data-filter="regalos"].active .filter-count {
  background: #f43f5e;
  color: #fff;
}

/* TICKET CARD STYLING */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.ticket-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.ticket-card:active {
  transform: scale(0.99);
}

.ticket-card.status-premiado {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px var(--emerald-glow);
}

.ticket-card.status-caducando {
  border-color: rgba(239, 68, 68, 0.4);
}

.ticket-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
}

.ticket-game-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tag-papeleta {
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.tag-decimo {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ticket-body {
  padding: 14px;
}

.ticket-club-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ticket-number-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin: 10px 0;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.ticket-number {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  font-family: monospace;
}

.ticket-series-fraction {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ticket-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breakdown-item strong {
  color: var(--text-main);
}

.ticket-donation-badge {
  font-size: 0.7rem;
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Status banner inside card */
.ticket-status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill-pendiente {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.status-pill-premiado {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill-nopremio {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-dim);
}

.prize-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald-400);
}

.ticket-countdown-alert {
  margin-top: 8px;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.alert-warning {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ticket-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.btn-ticket-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-ticket-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================================
   SCANNER VIEW (FOTO EN ALTA RESOLUCIÓN + IA)
   ======================================================== */
.photo-scan-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 78, 59, 0.3));
  border: 2px dashed rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.photo-scan-hero:hover {
  border-color: var(--emerald-400);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 78, 59, 0.4));
}

.photo-scan-icon {
  font-size: 3.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 16px var(--emerald-glow));
}

.photo-scan-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.photo-scan-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 16px auto;
  line-height: 1.4;
}

.photo-preview-area {
  display: none;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  position: relative;
}

.photo-preview-area.active {
  display: block;
}

.photo-preview-img-active {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  background: #0b1120;
}

.photo-preview-status {
  padding: 12px 14px;
  background: rgba(9, 14, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
}

.scanner-viewport {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 360px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.scanner-frame {
  width: 90%;
  height: 60%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  position: relative;
}

.scanner-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: scanLine 2s infinite ease-in-out;
}

@keyframes scanLine {
  0% { top: 5%; }
  50% { top: 95%; }
  100% { top: 5%; }
}

.scanner-hint {
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #fff;
  z-index: 2;
}

.scanner-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--emerald-glow);
  transition: all 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.scanner-ai-card {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
}

/* ========================================================
   BOTTOM NAVIGATION
   ======================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(9, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  max-width: 600px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  flex: 1;
}

.nav-item.active {
  color: var(--emerald-400);
}

.nav-icon {
  font-size: 1.3rem;
}

.nav-scan-cta {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  border-radius: var(--radius-full);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-top: -24px;
  box-shadow: 0 4px 16px var(--emerald-glow);
  border: 3px solid var(--bg-main);
}

/* ========================================================
   MODALS & BOTTOM SHEETS
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border-color);
  padding: 20px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--emerald-500);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Photo Preview Modal */
.photo-preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}

/* Share Peña Box */
.peña-share-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 12px 0;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: #e2e8f0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

/* ========================================================
   DETALLE COMPLETO DEL BOLETO (WIDGET MODAL)
   ======================================================== */
.ticket-tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--gold-400);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.9;
  letter-spacing: 0.2px;
}

.detail-header-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.detail-number-hero {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.detail-number-main {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: monospace;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.detail-number-extra {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--gold-400);
  font-weight: 600;
}

.detail-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.95rem;
  color: #f8fafc;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
}

.detail-value-large {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 800;
  word-break: break-word;
  line-height: 1.35;
}

.detail-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-money-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.detail-money-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
}

.detail-money-card .money-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-money-card .money-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-400);
  margin-top: 2px;
}

.detail-photo-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  margin-bottom: 6px;
  transition: opacity 0.15s, transform 0.15s;
}

.detail-photo-preview:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.detail-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* ========================================================
   REGALOS, NOTIFICACIONES Y AUTOMATIZACIÓN
   ======================================================== */
.ticket-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(234, 179, 8, 0.18));
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
}

.ticket-gift-badge strong {
  color: #ffffff;
}

.notification-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 78, 59, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-banner.alert-prize {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(16, 185, 129, 0.25));
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.btn-mini {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.whatsapp-box-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(18, 140, 126, 0.2));
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
}
