/* ===== COMPONENTS - PARAÍSO ASTRAL ===== */

/* ===== HEADER ===== */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(13,6,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo-text { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--primary); letter-spacing: 0.1em; line-height: 1.2; }
.logo-sub { font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; }
.header-actions { display: flex; gap: 0.5rem; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  position: relative;
}
.icon-btn:hover { background: rgba(209,37,244,0.15); }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(13,6,16,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; padding: 0.4rem 0.6rem;
  color: var(--text-muted); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: all 0.2s; border: none; background: none;
  text-decoration: none;
}
.nav-item .nav-icon { font-size: 1.35rem; transition: all 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active .nav-icon { text-shadow: 0 0 12px var(--primary); }
.nav-item.nav-center { position: relative; top: -10px; }
.nav-fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem;
  box-shadow: 0 0 20px var(--primary-glow);
  cursor: pointer;
  transition: all 0.2s;
}
.nav-fab:hover { box-shadow: 0 0 30px var(--primary-glow); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.card:hover { border-color: rgba(209,37,244,0.5); }
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glow-card { box-shadow: 0 0 20px var(--primary-glow); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; cursor: pointer; font-family: var(--font-body);
  font-weight: 700; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: white;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-xl);
  font-size: 0.9rem; letter-spacing: 0.05em;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 0 30px var(--primary-glow); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.6rem 1.2rem; border-radius: var(--radius-xl);
  font-size: 0.85rem;
}
.btn-ghost { background: var(--bg-glass); color: var(--text); padding: 0.5rem 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ===== BADGE ===== */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: 999px; font-size: 0.6rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-primary { background: var(--primary); color: white; }
.badge-glass { background: rgba(209,37,244,0.15); color: var(--primary); border: 1px solid var(--border); }
.badge-live { background: #ff0040; color: white; animation: pulse-live 1.5s infinite; }
.badge-cyan { background: rgba(0,242,255,0.15); color: var(--cyan); border: 1px solid rgba(0,242,255,0.3); }

@keyframes pulse-live {
  0%,100% { box-shadow: 0 0 6px rgba(255,0,64,0.5); }
  50% { box-shadow: 0 0 15px rgba(255,0,64,0.8); }
}

/* ===== SECTION HEADER ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; margin-top: 1.5rem; }
.section-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text); letter-spacing: 0.05em; }
.section-link { font-size: 0.8rem; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }

/* ===== INPUTS ===== */
.input {
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text); padding: 0.75rem 1rem;
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 0.9rem; width: 100%; outline: none; transition: all 0.2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(209,37,244,0.15); }
.input::placeholder { color: var(--text-muted); }
.select { appearance: none; }
label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.3rem; display: block; }
.form-group { margin-bottom: 1rem; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0.5rem; background: var(--bg-glass); padding: 0.3rem; border-radius: var(--radius-xl); border: 1px solid var(--border); margin-bottom: 1.2rem; }
.tab { flex: 1; text-align: center; padding: 0.5rem; border-radius: var(--radius-lg); font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s; color: var(--text-muted); }
.tab.active { background: var(--primary); color: white; box-shadow: 0 0 12px var(--primary-glow); }

/* ===== SEARCH BAR ===== */
.search-bar { position: relative; margin-bottom: 1rem; }
.search-bar .input { padding-left: 2.5rem; }
.search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-title { font-weight: 700; margin-bottom: 0.3rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes glow-pulse { 0%,100% { box-shadow: 0 0 8px var(--primary-glow); } 50% { box-shadow: 0 0 20px var(--primary-glow); } }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--border); margin: 1rem 0; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat-card { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.3rem; }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.stat-change { font-size: 0.7rem; font-weight: 700; margin-top: 0.3rem; display: flex; align-items: center; gap: 0.2rem; }
.stat-up { color: var(--green); }
.stat-down { color: var(--pink); }

/* ===== LIST ITEMS ===== */
.list-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem;
  background: var(--bg-glass); border: 1px solid rgba(209,37,244,0.08);
  border-radius: var(--radius-lg); margin-bottom: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.list-item:hover { border-color: var(--border); }
.list-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(209,37,244,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; color: var(--primary);
}
.list-body { flex: 1; min-width: 0; }
.list-title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.list-right { text-align: right; flex-shrink: 0; }

/* ===== EVENT CARD ===== */
.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-card);
}
.event-card:hover { transform: translateY(-2px); border-color: rgba(209,37,244,0.5); box-shadow: 0 8px 30px rgba(209,37,244,0.15); }
.event-img { width: 100%; height: 180px; object-fit: cover; display: block; background: linear-gradient(135deg, #1a0d20, #2d1b38); }
.event-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #1a0d20 0%, #2d1b38 50%, #1a0d20 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--primary);
}
.event-body { padding: 1rem; }
.event-meta { display: flex; justify-content: space-between; align-items: flex-start; }
.event-name { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.event-venue { color: var(--primary); font-size: 0.8rem; font-weight: 600; margin-top: 0.2rem; }
.event-date-badge { background: rgba(209,37,244,0.15); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.3rem 0.6rem; text-align: center; flex-shrink: 0; }
.event-date-month { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 700; }
.event-date-day { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1; }
.event-lineup { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(209,37,244,0.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== ARTIST CARD ===== */
.artist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.artist-card {
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  position: relative; aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.artist-card:hover { transform: scale(1.02); border-color: rgba(209,37,244,0.5); }
.artist-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1a0d20, #2d0040, #1a0d20);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.artist-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,6,16,0.95), transparent);
  padding: 1rem 0.75rem 0.75rem;
}
.artist-role { font-size: 0.55rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }
.artist-name { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.artist-genre { font-size: 0.7rem; color: rgba(209,37,244,0.7); margin-top: 0.2rem; display: flex; align-items: center; gap: 0.2rem; }

/* ===== CALENDAR ===== */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-header { text-align: center; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); padding: 0.4rem 0; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
  position: relative; font-weight: 500;
}
.cal-day:hover { background: rgba(209,37,244,0.1); }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; }
.cal-day.active { background: var(--primary); color: white; box-shadow: 0 0 12px var(--primary-glow); font-weight: 700; }
.cal-day.other-month { color: rgba(122,107,138,0.4); }

/* ===== CHART ===== */
.bar-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 120px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.bar-track { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; border-radius: 4px 4px 0 0; transition: height 0.5s ease; position: relative; overflow: hidden; min-height: 4px; }
.bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,0.1), transparent); }
.bar-label { font-size: 0.6rem; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.bar-purple { background: linear-gradient(to top, var(--primary), rgba(209,37,244,0.4)); }
.bar-green { background: linear-gradient(to top, var(--green), rgba(57,255,20,0.4)); box-shadow: 0 0 10px rgba(57,255,20,0.3); }

/* ===== MODALS / SHEETS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  display: none; align-items: flex-end;
}
.modal-overlay.show { display: flex; }
.bottom-sheet {
  width: 100%; max-width: 430px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border);
  max-height: 90dvh; overflow-y: auto;
  padding: 1rem 1.2rem 2rem;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 40px; height: 4px; background: var(--border); border-radius: 999px; margin: 0 auto 1.2rem; }
.sheet-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); border: 1px solid var(--primary);
  color: var(--text); padding: 0.75rem 1.5rem; border-radius: var(--radius-xl);
  font-size: 0.85rem; font-weight: 600; z-index: 300;
  opacity: 0; transition: all 0.3s; white-space: nowrap;
  box-shadow: 0 0 20px var(--primary-glow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 1.5rem;
}
.hero-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.hero-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, #1a0820 0%, #3d0055 40%, #1a0820 100%);
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,6,16,1) 0%, rgba(13,6,16,0.4) 40%, transparent 100%);
}
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.hero-title { font-size: 1.8rem; font-weight: 900; line-height: 1.1; }
.hero-sub { color: var(--cyan); font-weight: 600; font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== AVATAR ROW ===== */
.avatar-row { display: flex; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg-dark); background: var(--bg-glass); margin-left: -8px; overflow: hidden; }
.avatar:first-child { margin-left: 0; }
.avatar-count { background: var(--bg-glass); border: 2px solid var(--bg-dark); color: var(--text-muted); font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ===== TICKET ===== */
.ticket-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem; }

/* ===== PROGRESS ===== */
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: white; border-radius: 999px; transition: width 0.5s ease; }

/* ===== HORIZONTAL SCROLL ===== */
.h-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.h-scroll::-webkit-scrollbar { display: none; }

/* ===== CIRCLE AVATAR ===== */
.circle-avatar { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 72px; }
.circle-avatar-img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--border); overflow: hidden; background: var(--bg-glass); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.circle-avatar-img.active-border { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.circle-avatar-name { font-size: 0.7rem; font-weight: 600; text-align: center; white-space: nowrap; }

/* ===== NOTIFICATION ===== */
.notif-item { display: flex; gap: 0.75rem; padding: 0.9rem; border-bottom: 1px solid rgba(209,37,244,0.06); }
.notif-item.unread { background: rgba(209,37,244,0.04); }
.notif-dot-badge { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.notif-body { flex: 1; }
.notif-text { font-size: 0.85rem; line-height: 1.4; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ===== RRPP ===== */
.rrpp-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); padding: 1rem; background: var(--bg-glass); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: all 0.2s; }
.rrpp-card:hover { border-color: rgba(209,37,244,0.4); }
.rrpp-info { flex: 1; }
.rrpp-name { font-weight: 700; }
.rrpp-stats { font-size: 0.75rem; color: var(--text-muted); }
.rrpp-revenue { text-align: right; }
.rrpp-amount { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--green); }
.rrpp-comm { font-size: 0.65rem; color: var(--text-muted); }

/* ===== PIE CHART SVG ===== */
.pie-svg { width: 120px; height: 120px; }
