/* ==========================================================================
   WaitLink — Modern Design System (CSS)
   ========================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #1c2742;
  --bg-input: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(6, 182, 212, 0.4);
  
  --primary: #06b6d4; /* Teal / Cyan */
  --primary-glow: rgba(6, 182, 212, 0.25);
  --primary-hover: #0891b2;
  
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-heading: 'Outfit', 'Inter', sans-serif;

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

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-family-heading);
  letter-spacing: -0.02em;
}

/* Header */
.app-header {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.logo-icon {
  font-size: 1.6rem;
  background: rgba(6, 182, 212, 0.15);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-family-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-pill {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

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

/* Tabs */
.mode-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

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

/* Main Container */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hidden {
  display: none !important;
}

.view-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

/* Shop Banner & Mode Switcher */
.shop-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
}

.owner-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.shop-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.shop-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mode-badge-toggle {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mode-badge-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.mode-badge-toggle strong {
  color: var(--primary);
}

.mode-badge-toggle.owner-active strong {
  color: var(--accent-indigo);
}

.owner-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cloud-status-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-pill-lg {
  font-size: 0.9rem;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cloud-status-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* Checkin Form */
.checkin-card {
  border: 1px solid var(--border-color-glow);
  box-shadow: var(--shadow-glow);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
}

.input-icon {
  font-size: 1.2rem;
  padding-left: 0.5rem;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-family: var(--font-family-body);
}

.input-group input::placeholder {
  color: var(--text-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

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

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-call {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-call:hover {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-call.btn-hero {
  background: var(--accent-emerald) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-cancel {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-cancel:hover {
  background: var(--accent-rose);
  color: #fff;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-text:hover {
  color: var(--accent-rose);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-text-sm {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-text-sm:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.metric-card.highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(19, 27, 46, 0.8) 100%);
  border-color: rgba(6, 182, 212, 0.3);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.metric-value {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.25rem 0;
  color: var(--text-main);
}

.metric-card.highlight .metric-value {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.metric-caption {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.count-pill {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Queue Grid */
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.queue-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.queue-item-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Position Badges & Hero Highlight */
.customer-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.position-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
}

.position-badge.next-up {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.queue-item-card.next-up {
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}

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

.customer-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.checkin-time {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.1rem;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.queue-item-actions {
  display: flex;
  gap: 0.5rem;
}

.queue-item-actions .btn {
  flex: 1;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* History Toolbar & Filters */
.history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.history-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-select,
.filter-date-input,
.filter-search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.filter-select:focus,
.filter-date-input:focus,
.filter-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.filter-select option {
  background: #1e1b4b;
  color: #fff;
}

.filter-search-input {
  min-width: 180px;
}

.btn-export {
  color: var(--primary-light);
  font-weight: 500;
}

.btn-export:hover {
  text-decoration: underline;
}

/* History Table */
.history-card {
  padding: 0;
  overflow: hidden;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.history-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.history-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.empty-row td {
  text-align: center;
  color: var(--text-subtle);
  padding: 2rem;
}

.status-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-tag.called {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.status-tag.cancelled {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

/* Public View Simulator */
.public-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 500px;
  margin: 1rem auto;
}

.public-card {
  width: 100%;
  background: linear-gradient(180deg, #131b2e 0%, #0c1220 100%);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.public-logo-img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  margin: 0 auto 0.75rem auto;
  border-radius: var(--radius-sm);
}

.poster-logo-img {
  max-width: 140px;
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto 0.75rem auto;
}

/* Logout Button Pill Style */
.btn-logout-pill {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.6rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.btn-logout-pill:hover {
  background: rgba(244, 63, 94, 0.4);
  color: #ffffff;
  border-color: #f43f5e;
}

.public-header .shop-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.public-shop-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
}

.public-location {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.public-timer-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
}

.timer-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timer-display {
  font-family: var(--font-family-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.queue-status-text {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.public-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

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

.public-share-hint {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.public-share-hint h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.public-share-hint p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.share-url-box {
  display: flex;
  gap: 0.5rem;
}

.share-url-box input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.85rem;
}

/* Printable Poster */
.poster-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hint-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.printable-poster {
  width: 100%;
  max-width: 650px;
  margin: 1rem auto;
  background: #ffffff;
  color: #000000;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.poster-header {
  border-bottom: 3px solid #000;
  padding-bottom: 1.5rem;
  width: 100%;
}

.poster-icon {
  font-size: 3rem;
}

.poster-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.03em;
  margin: 0.25rem 0;
}

.poster-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #06b6d4;
}

.poster-body {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.poster-callout {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1e293b;
}

.poster-instruction {
  font-size: 1.05rem;
  color: #475569;
  max-width: 450px;
}

.qr-container {
  padding: 1.5rem;
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-url-display {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  color: #334155;
}

.poster-url-display strong {
  font-size: 1.4rem;
  color: #000;
}

.poster-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  width: 100%;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

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

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

.form-group input, .form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.slug-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding-left: 0.85rem;
}

.slug-prefix {
  color: var(--text-subtle);
  font-size: 0.85rem;
  font-family: monospace;
}

.slug-input-wrapper input {
  border: none;
  background: transparent;
  flex: 1;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.form-divider {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.3s ease;
}

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

/* Media Query Print */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .main-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  .printable-poster {
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .mode-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    gap: 4px;
  }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.825rem;
  }
  .header-actions {
    justify-content: space-between;
    width: 100%;
  }
  .header-actions .btn-secondary {
    flex: 1;
  }
  .shop-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .history-card {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1.25rem 1rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .input-group .btn {
    width: 100%;
  }
  .customer-title-row {
    width: 100%;
  }
  .queue-item-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .timer-pill {
    align-self: flex-start;
  }
}

/* ==========================================================================
   Demo Banner & Product Landing Hero Styles
   ========================================================================== */

/* Live Demo Banner */
.demo-mode-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
  border-bottom: 1px solid rgba(6, 182, 212, 0.4);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

.demo-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  flex-wrap: wrap;
}

.demo-badge {
  background: var(--primary);
  color: #090d16;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-demo-tab {
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  color: #06b6d4 !important;
}

.btn-create-tab {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  font-weight: 600 !important;
}

/* Landing Page Hero */
.landing-hero {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: radial-gradient(circle at top center, rgba(6, 182, 212, 0.15), transparent 70%);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-hero-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 260px;
}

.btn-hero-lg .btn-subtext {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.2rem;
}

/* Landing Launcher Grid Cards */
.landing-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.landing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.landing-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px -10px rgba(6, 182, 212, 0.25);
}

.card-interactive-demo:hover {
  border-color: #06b6d4;
}

.card-interactive-create:hover {
  border-color: #10b981;
}

.landing-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.landing-card h3 {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.landing-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.card-action-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Features Section */
.landing-features-section {
  margin-bottom: 3rem;
}

.section-title-center {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title-center h2 {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-title-center p {
  color: var(--text-muted);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* How it works */
.how-it-works-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
}

.how-it-works-card h3 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step-item h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .landing-grid-2,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
