/* ==========================================================================
   Design Tokens & Base Setup
   ========================================================================== */

:root {
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Gvents Brand Color Tokens */
  --hue-primary: 233; /* Brand Blue (#5268EE) */
  --hue-accent: 180;  /* Brand Teal (#01D0D0) */
  --hue-danger: 0;    /* Brand Red (#D83A3A) */

  --bg-app: hsl(230, 25%, 8%);
  --bg-card: hsla(230, 20%, 15%, 0.4);
  --bg-card-hover: hsla(230, 20%, 20%, 0.6);
  --border-glass: hsla(0, 0%, 100%, 0.08);
  --border-focus: hsl(var(--hue-primary), 82%, 65%);
  
  --text-main: hsl(210, 20%, 95%);
  --text-muted: hsl(210, 10%, 65%);
  
  --primary: hsl(var(--hue-primary), 82%, 63%);
  --primary-glow: hsla(var(--hue-primary), 82%, 63%, 0.35);
  --accent: hsl(var(--hue-accent), 99%, 41%);
  
  --brand-gradient: linear-gradient(135deg, hsl(var(--hue-danger), 67%, 54%) 0%, hsl(var(--hue-primary), 82%, 63%) 60%, hsl(var(--hue-accent), 99%, 41%) 100%);

  --success: hsl(142, 70%, 45%);
  --success-glow: hsla(142, 70%, 45%, 0.2);
  --danger: hsl(var(--hue-danger), 67%, 54%);
  --warning: hsl(38, 90%, 55%);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-neon: 0 8px 32px 0 var(--primary-glow);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(var(--hue-danger), 67%, 54%, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, hsla(var(--hue-primary), 82%, 63%, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, hsla(var(--hue-accent), 99%, 41%, 0.08) 0%, transparent 45%);
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header & Mode Banner
   ========================================================================== */

.mode-banner {
  width: 100%;
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.mode-banner.mock-mode {
  background: hsla(38, 90%, 55%, 0.15);
  color: hsl(38, 95%, 65%);
  border-bottom-color: hsla(38, 90%, 55%, 0.25);
}

.mode-banner.live-mode {
  background: hsla(142, 70%, 45%, 0.15);
  color: hsl(142, 85%, 60%);
  border-bottom-color: hsla(142, 70%, 45%, 0.25);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mock-mode .pulse-indicator {
  background-color: hsl(38, 90%, 55%);
  box-shadow: 0 0 10px hsl(38, 90%, 55%);
  animation: pulse 1.5s infinite;
}

.live-mode .pulse-indicator {
  background-color: hsl(142, 70%, 45%);
  box-shadow: 0 0 10px hsl(142, 70%, 45%);
  animation: pulse 1.5s infinite;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(82, 104, 238, 0.25));
}

.logo-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-glass);
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}

.logo-text p {
  font-family: var(--font-secondary);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ==========================================================================
   UI Components (Cards & Buttons)
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.card.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: hsla(0, 0%, 100%, 0.12);
}

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

.card-header i {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.card-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Form Styling */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-secondary);
  font-size: 14px;
  transition: var(--transition-smooth);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px hsla(var(--hue-primary), 85%, 60%, 0.15);
}

input:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.input-with-icon input {
  padding-left: 44px;
}

/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px hsla(var(--hue-primary), 85%, 60%, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: hsl(var(--hue-primary), 85%, 65%);
  box-shadow: 0 6px 24px hsla(var(--hue-primary), 85%, 60%, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-glass);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none !important;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

/* ==========================================================================
   Layout Grid & States
   ========================================================================== */

.app-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

@media (max-width: 968px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

.disabled-card {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(80%);
}

.hidden {
  display: none !important;
}

.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 16px 0;
}

.margin-top-sm { margin-top: 8px; }
.margin-top-md { margin-top: 16px; }
.margin-top-lg { margin-top: 24px; }

/* ==========================================================================
   Verification State Display
   ========================================================================== */

.attendee-details h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--success);
  margin-bottom: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item.full-width {
  grid-column: span 2;
}

.detail-item .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.detail-item .value {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid hsla(var(--hue-accent), 85%, 50%, 0.2);
}

.badge#attendeeTier {
  align-self: flex-start;
}

/* ==========================================================================
   Workspace / Camera Viewport
   ========================================================================== */

.main-workspace {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
}

.main-workspace:not(.disabled-card) .indicator-dot {
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.5s infinite;
}

.booth-viewport-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: hsl(230, 20%, 6%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  transition: opacity 0.5s ease;
}

.placeholder-content {
  max-width: 320px;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.placeholder-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.placeholder-content p {
  font-size: 13px;
  color: var(--text-muted);
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#webcam {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera feed */
}

/* Filters applied via CSS classes to the video element */
#webcam.filter-grayscale { filter: grayscale(100%) contrast(1.1); }
#webcam.filter-vintage { filter: sepia(60%) contrast(0.9) brightness(1.05) saturate(1.2); }
#webcam.filter-neon { filter: hue-rotate(280deg) saturate(1.8) contrast(1.2); }
#webcam.filter-summer { filter: saturate(1.4) contrast(1.05) brightness(1.02) hue-rotate(10deg); }

/* ==========================================================================
   Photo Frames Overlay Styles
   ========================================================================== */

.frame-overlay-view {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
}

/* RAVE Neon Frame */
.frame-overlay-view.rave {
  border: 12px solid #000;
  box-shadow: inset 0 0 0 3px var(--primary), inset 0 0 30px var(--primary-glow);
}
.frame-overlay-view.rave::after {
  content: "LIVE AT THE RAVE";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  letter-spacing: 3px;
}

/* GALA Elegant VIP Frame */
.frame-overlay-view.gala {
  border: 20px solid hsl(230, 20%, 5%);
}
.frame-overlay-view.gala::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed hsl(43, 80%, 65%);
}
.frame-overlay-view.gala::after {
  content: "GVENTS ANNUAL SUMMIT";
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: hsl(43, 85%, 65%);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* RETRO Polaroid Style Frame */
.frame-overlay-view.retro {
  border-top: 15px solid #f8f6f0;
  border-left: 15px solid #f8f6f0;
  border-right: 15px solid #f8f6f0;
  border-bottom: 70px solid #f8f6f0;
}
.frame-overlay-view.retro::after {
  content: "GVENTS FILM CO. — 2026";
  position: absolute;
  bottom: -45px;
  left: 20px;
  font-family: monospace;
  font-size: 14px;
  color: #333;
  letter-spacing: 1px;
}

/* Workspace Footer controls */
.booth-controls-footer {
  padding: 24px;
  background: rgba(0, 0, 0, 0.15);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 70px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-label i {
  width: 14px;
  height: 14px;
}

/* Filter buttons */
.filter-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

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

.filter-btn.active {
  background: var(--accent);
  color: var(--bg-app);
  border-color: var(--accent);
  font-weight: 700;
}

/* Frame Selection Cards */
.frame-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.frame-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.frame-card span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.frame-preview {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: #222;
  border: 2px solid var(--border-glass);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.frame-card.active .frame-preview {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.frame-card.active span {
  color: var(--primary);
}

.frame-preview.none {
  background: linear-gradient(135deg, #111, #222);
}

.frame-preview.rave {
  border-width: 4px;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.frame-preview.gala {
  border: 6px solid #111;
  background: #222;
}
.frame-preview.gala::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 0.5px dashed hsl(43, 80%, 65%);
}

.frame-preview.retro {
  border-top: 3px solid #eee;
  border-left: 3px solid #eee;
  border-right: 3px solid #eee;
  border-bottom: 12px solid #eee;
}

/* ==========================================================================
   Visual FX: Countdown, Flash, Animations
   ========================================================================== */

.countdown-overlay {
  position: absolute;
  z-index: 30;
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--primary);
  animation: countdownBounce 1s infinite;
}

.flash-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 40;
  opacity: 0;
}

.flash-overlay.flash-active {
  animation: triggerFlash 0.5s ease-out;
}

@keyframes triggerFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes countdownBounce {
  0% { transform: scale(0.6); opacity: 0; }
  20% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Event Gallery Layout
   ========================================================================== */

.gallery-section {
  border-top: 1px solid var(--border-glass);
  padding-top: 32px;
  margin-bottom: 40px;
}

.gallery-header {
  margin-bottom: 24px;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-with-badge h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  gap: 12px;
}

.gallery-empty i {
  width: 40px;
  height: 40px;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-overlay h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.gallery-card-overlay p {
  font-size: 11px;
  color: var(--text-muted);
}

.download-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--bg-app);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.download-indicator i {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
  text-align: center;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border-glass);
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   Sleek Settings Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.modal-content {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  width: 90%;
  max-width: 440px;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.modal-title i {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.modal-title h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.05);
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Slide up animation for modal */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Connection Status Badge */
.connection-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.connection-status-badge.live {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
  color: var(--success);
}

.connection-status-badge.live .indicator-dot {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.connection-status-badge.mock {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.04);
  color: var(--warning);
}

.connection-status-badge.mock .indicator-dot {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.justify-between {
  justify-content: space-between;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   QR Code Scanner Modal Styles
   ========================================================================== */

.margin-bottom-sm {
  margin-bottom: 8px;
}

.scanner-viewport-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

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

.scanner-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), inset 0 0 20px rgba(6, 182, 212, 0.4);
  pointer-events: none;
  animation: reticlePulse 2s infinite ease-in-out;
}

.scanner-reticle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: scanLine 2s infinite linear;
}

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

@keyframes reticlePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); border-color: var(--accent); }
  50% { transform: translate(-50%, -50%) scale(1.03); border-color: var(--primary); }
}

.scanner-status {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.qr-test-sheet h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qr-test-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.qr-test-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qr-test-card img {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-xs);
  padding: 4px;
}

.qr-test-card span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.qr-test-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

/* ==========================================================================
   Share Modal Styling
   ========================================================================== */

.share-preview-container {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

.line-share-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.line-share-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.line-share-header h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.line-share-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.qr-code-placeholder {
  width: 110px;
  height: 110px;
  background: white;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.qr-code-placeholder img {
  width: 100%;
  height: 100%;
}

.line-share-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-helper-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.btn-line {
  background: #06c755;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-line:hover {
  background: #05b04b;
  transform: translateY(-1px);
}

.line-logo-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ==========================================================================
   View Panels & Hero Banner
   ========================================================================== */

.view-panel {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
}

.view-panel.hidden {
  display: none !important;
  opacity: 0;
}

.hero-section {
  position: relative;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  text-align: center;
  background: hsla(230, 20%, 12%, 0.4);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}

.hero-glow-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
  background: radial-gradient(circle, var(--danger) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 250px;
  height: 250px;
  bottom: -50px;
  right: -50px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(82, 104, 238, 0.1);
  border: 1px solid rgba(82, 104, 238, 0.25);
  color: hsl(233, 85%, 75%);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-content h2 {
  font-size: 36px;
  font-weight: 850;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  min-width: 140px;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.brand-pulse {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--primary-glow);
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 0 15px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 30px rgba(82, 104, 238, 0.6);
  }
}

/* ==========================================================================
   Gallery Controls Bar
   ========================================================================== */

.gallery-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: hsla(230, 20%, 12%, 0.3);
  border: 1px solid var(--border-glass);
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .gallery-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

@media (max-width: 580px) {
  .search-filter-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

@media (max-width: 580px) {
  .search-input-wrapper {
    max-width: none;
  }
}

.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-input-wrapper input {
  width: 100%;
  background: hsla(230, 20%, 8%, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 38px;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 13px;
  transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  background: hsla(230, 20%, 8%, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 32px 10px 16px;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 12px;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
}

.layout-toggle-group {
  display: flex;
  background: hsla(230, 20%, 8%, 0.5);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.btn-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-toggle i {
  width: 14px;
  height: 14px;
}

.btn-toggle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.btn-toggle.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

/* ==========================================================================
   Pinterest Masonry Layout
   ========================================================================== */

.pinterest-grid {
  column-count: 3;
  column-gap: 20px;
  width: 100%;
}

@media (max-width: 1024px) {
  .pinterest-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .pinterest-grid {
    column-count: 1;
  }
}

.pinterest-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pinterest-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.pinterest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.pinterest-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.pinterest-card:hover img {
  transform: scale(1.02);
}

.pinterest-card:hover .pinterest-card-overlay {
  opacity: 1;
}

.pinterest-card-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pinterest-card-info p {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pinterest-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.card-badge.vip {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.card-badge.gen {
  background: rgba(82, 104, 238, 0.15);
  color: hsl(233, 85%, 75%);
  border: 1px solid rgba(82, 104, 238, 0.25);
}

.card-badge.std {
  background: rgba(1, 208, 208, 0.15);
  color: var(--accent);
  border: 1px solid rgba(1, 208, 208, 0.25);
}

/* ==========================================================================
   Instagram Grid Layout
   ========================================================================== */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

.instagram-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.instagram-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
  color: #fff;
}

.instagram-card:hover {
  transform: scale(0.99);
  border-color: var(--primary);
}

.instagram-card:hover img {
  transform: scale(1.05);
}

.instagram-card:hover .instagram-card-overlay {
  opacity: 1;
}

.ig-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.ig-stat i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Instagram Frame Styles (Live Overlay & Carousel Icon)
   ========================================================================== */

.frame-overlay-view.instagram {
  border-top: 52px solid #000000;
  border-bottom: 92px solid #000000;
}

.frame-overlay-view.instagram::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.frame-overlay-view.instagram::after {
  content: "gvents_booth \A LIKED BY GVENTS AND OTHERS";
  white-space: pre-wrap;
  position: absolute;
  bottom: -78px;
  left: 12px;
  right: 12px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.frame-preview.instagram {
  border-top: 8px solid #000;
  border-bottom: 14px solid #000;
  background: #222;
}



