/* -------------------------------------------------------------
 * STYLE.CSS - Camarotes Festa do Peão de Barretos
 * Design System: Dark Mode Premium (Couro, Ouro, Âmbar e Neon)
 * ------------------------------------------------------------- */

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

:root {
  --bg-main: #0c0908;
  --bg-card: #171311;
  --bg-card-hover: #1f1a17;
  --primary-gold: #d97706;
  --primary-gold-light: #fbbf24;
  --accent-amber: #f97316;
  --text-primary: #f5f5f4;
  --text-secondary: #a8a29e;
  --border-color: rgba(217, 119, 6, 0.12);
  --border-color-focus: rgba(251, 191, 36, 0.4);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --error: #ef4444;
  --glass-bg: rgba(23, 19, 17, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.04) 0%, transparent 40%);
}

/* -------------------------------------------------------------
 * MAIN LAYOUT - SIDE BY SIDE
 * ------------------------------------------------------------- */

.simulator-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-amber));
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.logo-info h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-back-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-back-portal:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(217, 119, 6, 0.3);
  transform: translateX(-3px);
}

/* -------------------------------------------------------------
 * WORKSPACE: PHONE VS TOTEM
 * ------------------------------------------------------------- */

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* -------------------------------------------------------------
 * SMARTPHONE SIMULATOR FRAME
 * ------------------------------------------------------------- */

.phone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.desktop-app-branding {
  text-align: center;
  margin-bottom: 1.5rem;
}

.desktop-app-branding h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.desktop-app-branding p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.phone-wrapper {
  width: 375px;
  height: 760px;
  position: relative;
  background: #000;
  border-radius: 55px;
  padding: 12px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 4px #262626,
    0 0 0 12px #171717;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  border-radius: 43px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status Bar */
.phone-status-bar {
  height: 48px;
  padding: 0 28px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  z-index: 90;
  background: linear-gradient(to bottom, rgba(12, 9, 8, 0.8), transparent);
  pointer-events: none;
}

.phone-status-bar .icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-status-bar .status-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* App Header */
.app-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.app-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-profile .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-amber));
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
}

.app-profile .greeting {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.app-profile .sub-greeting {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.notif-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  border-radius: 50px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

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

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
}

/* App Body Content Container */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 5rem 1.25rem;
  position: relative;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

/* Push Notification Banner */
.phone-notification-banner {
  position: absolute;
  top: -100px;
  left: 12px;
  right: 12px;
  background: rgba(28, 25, 23, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 20px;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.phone-notification-banner.active {
  transform: translateY(152px); /* notch is at the top */
}

.notif-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.notif-logo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold-light);
}

.notif-logo {
  width: 14px;
  height: 14px;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.notif-body h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.notif-body p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Bottom Tab Navigation */
.app-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(12, 9, 8, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 12px; /* Area for iPhone home indicator bar */
  z-index: 95;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  width: 60px;
  transition: var(--transition-fast);
}

.nav-item i {
  width: 20px;
  height: 20px;
  transition: var(--transition-fast);
}

.nav-item.active {
  color: var(--primary-gold-light);
  font-weight: 700;
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--primary-gold-light);
}

/* App Tabs Content Display */
.app-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.app-tab-content.active {
  display: block;
}

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

/* -------------------------------------------------------------
 * SCREEN 1: HOME VITRINE
 * ------------------------------------------------------------- */

.home-banner {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(12, 9, 8, 1)), 
              url('https://images.unsplash.com/photo-1549417229-aa67d3263c09?q=80&w=600&auto=format&fit=crop') center/cover;
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.home-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 15px rgba(217,119,6,0.15);
  pointer-events: none;
}

.banner-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--primary-gold);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.banner-subtitle {
  font-size: 0.75rem;
  color: var(--primary-gold-light);
  font-weight: 600;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 1.5rem 0 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-label span {
  font-size: 0.75rem;
  color: var(--primary-gold-light);
  font-weight: 500;
}

/* Day Selector Scroll */
.day-selector-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.day-selector-scroll::-webkit-scrollbar {
  display: none;
}

.day-btn {
  flex: 0 0 75px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.day-btn.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(249, 115, 22, 0.2));
  border-color: var(--primary-gold-light);
  transform: translateY(-2px);
}

.day-btn .num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.day-btn .month {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
}

.day-btn .artist-preview {
  font-size: 0.6rem;
  color: var(--primary-gold-light);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.day-btn.active .artist-preview {
  color: #fff;
  font-weight: 600;
}

/* Cabin Card */
.cabin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.cabin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--text-secondary);
}

.cabin-card.brahma::before {
  background: var(--primary-gold);
}
.cabin-card.arena::before {
  background: #3b82f6;
}
.cabin-card.superbull::before {
  background: #ec4899;
}
.cabin-card.vip::before {
  background: #a855f7;
}

.cabin-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(217, 119, 6, 0.3);
  transform: translateY(-2px);
}

.cabin-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.cabin-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cabin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cabin-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.cabin-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

.cabin-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.cabin-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-gold-light);
}

.cabin-price span {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.cabin-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * BACK HEADER & FORM STYLING
 * ------------------------------------------------------------- */

.back-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.back-btn:hover {
  color: #fff;
  transform: translateX(-2px);
}

.back-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.cabin-detail-img {
  width: 100%;
  height: 130px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.info-box h4 {
  font-size: 0.8rem;
  color: var(--primary-gold-light);
  margin-bottom: 4px;
  font-weight: 700;
}

.info-box p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.benefit-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.benefit-tag {
  font-size: 0.65rem;
  padding: 4px 8px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: 6px;
  color: var(--primary-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-amber));
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(217,119,6,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Form Styles */
.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.input-group input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-gold-light);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 10px rgba(217,119,6,0.15);
}

/* -------------------------------------------------------------
 * BIOMETRIA FACIAL CAPTURE SECTION
 * ------------------------------------------------------------- */

.biometric-setup-box {
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.camera-preview-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 0.75rem auto;
  border: 2px solid var(--primary-gold);
  position: relative;
  overflow: hidden;
  background: #171311;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-preview-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror effect */
}

.camera-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed var(--success);
  pointer-events: none;
  animation: rotateMesh 20s linear infinite;
  display: none;
}

.camera-placeholder {
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.biometric-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(217, 119, 6, 0.3);
}

.avatar-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.avatar-opt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  background-size: cover;
  transition: var(--transition-fast);
}

.avatar-opt.active {
  border-color: var(--primary-gold-light);
  transform: scale(1.1);
}

@keyframes rotateMesh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
 * CHECKOUT & PIX SCREEN
 * ------------------------------------------------------------- */

.checkout-summary {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

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

.summary-row.total {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pay-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pay-btn.active {
  border-color: var(--primary-gold-light);
  background: rgba(217, 119, 6, 0.05);
  color: var(--primary-gold-light);
}

.pix-checkout-box {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.pix-qr-wrapper {
  background: #fff;
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem auto;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr-wrapper svg {
  width: 100%;
  height: 100%;
}

.pix-code-input {
  width: 100%;
  background: #1c1917;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
  outline: none;
}

.pix-status-spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--primary-gold-light);
  margin-top: 0.5rem;
}

.pix-status-spinner .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(217, 119, 6, 0.2);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
 * WALLET & TICKETS
 * ------------------------------------------------------------- */

.no-tickets-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.no-tickets-state i {
  font-size: 2.5rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.no-tickets-state p {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.ticket-pass-card {
  background: linear-gradient(135deg, #1c1917, #0c0908);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
}

.ticket-pass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-gold), var(--accent-amber));
}

.ticket-header-pass {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(217, 119, 6, 0.2);
}

.ticket-header-pass h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-header-pass span {
  font-size: 0.65rem;
  color: var(--primary-gold-light);
  font-weight: 700;
}

.ticket-body-pass {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ticket-notch-left, .ticket-notch-right {
  position: absolute;
  top: 48px; /* Alignment with dashed line */
  width: 12px;
  height: 24px;
  background: var(--bg-main);
  z-index: 10;
}
.ticket-notch-left {
  left: -1px;
  border-radius: 0 12px 12px 0;
  border: 1px solid var(--border-color);
  border-left: none;
}
.ticket-notch-right {
  right: -1px;
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--border-color);
  border-right: none;
}

.ticket-qr-container {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  width: 150px;
  height: 150px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-qr-container svg {
  width: 100%;
  height: 100%;
}

.qr-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: laserScan 2s linear infinite;
}

@keyframes laserScan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.qr-timer {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qr-timer .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.ticket-holder-details {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticket-holder-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  background-size: cover;
  background-position: center;
}

.ticket-holder-info {
  flex: 1;
}

.ticket-holder-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.ticket-holder-cpf {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.ticket-biometric-badge {
  font-size: 0.6rem;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--success-glow);
  padding: 3px 6px;
  border-radius: 6px;
  font-weight: 700;
}

.ticket-btn-catraca {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #1e1b4b, #311005);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold-light);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.ticket-btn-catraca:hover {
  background: linear-gradient(135deg, #2e2a75, #491a0a);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
}

/* -------------------------------------------------------------
 * TOTEM GATE VALIDATOR MOCKUP (RIGHT SIDE)
 * ------------------------------------------------------------- */

.totem-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.totem-frame {
  width: 380px;
  background: #171311;
  border: 4px solid #292524;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.totem-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #10b981, #d97706, #3b82f6);
}

.totem-header {
  padding: 1.5rem;
  background: #0c0908;
  border-bottom: 2px solid #292524;
  text-align: center;
}

.totem-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.totem-header p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.totem-screen-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Totem LED Bar Indicator */
.totem-led-bar {
  height: 8px;
  background: #2563eb; /* Blue default (waiting) */
  border-radius: 4px;
  box-shadow: 0 0 12px #2563eb;
  transition: var(--transition-normal);
}

.totem-led-bar.searching {
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
  animation: pulseLed 1s infinite alternate;
}

.totem-led-bar.granted {
  background: #10b981;
  box-shadow: 0 0 20px #10b981;
}

.totem-led-bar.denied {
  background: #ef4444;
  box-shadow: 0 0 20px #ef4444;
}

@keyframes pulseLed {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Camera Scan Viewport */
.totem-scanner-viewport {
  height: 220px;
  background: #000;
  border: 2px solid #44403c;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.totem-scanner-viewport.searching {
  border-color: #f59e0b;
}

.totem-scanner-viewport.granted {
  border-color: #10b981;
}

.scanner-video-mock {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1c1917 10%, #000 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-target-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  background-size: cover;
  background-position: center;
  display: none;
  z-index: 5;
  transition: transform 0.5s ease;
}

.scanner-face-points {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.4);
  z-index: 10;
  display: none;
}

.scanner-face-points::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.3);
}

.scanner-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
}

.scanner-status-text {
  position: absolute;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.05);
  z-index: 15;
}

.totem-scanner-viewport.granted .scanner-status-text {
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Biometric Mesh Grid dots */
.biometric-grid-mesh {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 12;
}

.bio-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
}

.bio-line {
  position: absolute;
  background: rgba(16, 185, 129, 0.3);
  transform-origin: top left;
}

/* Turnstile Animation Section */
.totem-turnstile-status {
  background: #0c0908;
  border: 1px solid #292524;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}

.gate-visual-wrapper {
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 0.5rem;
}

.turnstile-hub {
  width: 32px;
  height: 32px;
  background: #333;
  border-radius: 50%;
  position: relative;
  z-index: 20;
  border: 3px solid #666;
}

.turnstile-bar {
  position: absolute;
  width: 70px;
  height: 8px;
  background: #555;
  border-radius: 4px;
  transform-origin: left center;
  left: 50%;
  z-index: 15;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.turnstile-bar-1 { transform: rotate(0deg); }
.turnstile-bar-2 { transform: rotate(120deg); }
.turnstile-bar-3 { transform: rotate(240deg); }

.totem-turnstile-status.active-open .turnstile-bar-1 { transform: rotate(90deg); }
.totem-turnstile-status.active-open .turnstile-bar-2 { transform: rotate(210deg); }
.totem-turnstile-status.active-open .turnstile-bar-3 { transform: rotate(330deg); }

.turnstile-display-arrow {
  font-size: 2rem;
  color: #222;
  transition: var(--transition-fast);
}

.totem-turnstile-status.active-open .turnstile-display-arrow {
  color: var(--success);
  animation: flashArrow 1s infinite alternate;
}

@keyframes flashArrow {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* Totem Stats Console */
.totem-stats-console {
  background: rgba(0, 0, 0, 0.4);
  border-top: 2px solid #292524;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.stat-entry span.label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.stat-entry span.val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.totem-control-panel {
  width: 380px;
  background: #171311;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* -------------------------------------------------------------
 * NOTIFICATIONS & TOASTS (SIMULATED SYSTEM)
 * ------------------------------------------------------------- */

.demo-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1c1917;
  border: 1px solid var(--primary-gold);
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.demo-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.demo-toast i {
  color: var(--primary-gold-light);
}

/* -------------------------------------------------------------
 * MOCK CAMERA GRID DOTS (SCAN BIOMETRICS EFFECT)
 * ------------------------------------------------------------- */

.bio-pulse-circle {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  animation: pulseCircle 1.5s infinite ease-out;
  pointer-events: none;
  display: none;
}

@keyframes pulseCircle {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ticket-pass-card .glow-brahma {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, transparent 100%);
  box-shadow: inset 0 0 30px rgba(217, 119, 6, 0.1);
}
.ticket-pass-card .glow-arena {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.1);
}
.ticket-pass-card .glow-superbull {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, transparent 100%);
  box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.1);
}
.ticket-pass-card .glow-vip {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, transparent 100%);
  box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.1);
}
