/* ==========================================================================
   TryBooking-Grade Interactive Visual Seating Plan & Canvas
   100% Mobile Responsive, Touch Pan/Zoom Friendly
   ========================================================================== */

.seating-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  margin: 16px 0;
  overflow-x: auto;
  position: relative;
  user-select: none;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

/* Stage / Screen / Pitch Orientation Indicator */
.seating-stage {
  width: 80%;
  max-width: 440px;
  margin: 0 auto 34px auto;
  padding: 12px 0;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 2px solid #93c5fd;
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #1d4ed8;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

/* Seating Canvas */
.seating-canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  min-width: 340px;
  padding: 10px 0;
}

.seating-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.section-header {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  padding: 4px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.row-label {
  width: 24px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-align: center;
  flex-shrink: 0;
}

/* Realistic Theater Seat Styling (TryBooking style) */
.seat-item {
  width: 30px;
  height: 30px;
  border-radius: 8px 8px 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}

/* Available Seat */
.seat-item.seat-available {
  background-color: var(--seat-color, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seat-item.seat-available:hover {
  transform: scale(1.22);
  z-index: 20;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  border-color: #ffffff;
}

/* Selected Seat */
.seat-item.seat-selected {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4), 0 6px 16px rgba(15, 23, 42, 0.3) !important;
  z-index: 25;
}

.seat-item.seat-selected::after {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 900;
  color: #38bdf8;
}

/* Reserved Seat */
.seat-item.seat-reserved {
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Sold / Booked Seat */
.seat-item.seat-booked {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Seating Legend */
.seating-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 16px 12px 6px 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 500;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}


/* ==========================================================================
   High-Density Spreadsheet Row Table for Organizers
   Compact, Zero-Wrapping, Professional SaaS Data Grid
   ========================================================================== */

.seating-editor-card {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.seating-editor-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.seating-editor-header {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.seating-editor-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.seating-editor-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.stand-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.section-name-input {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 10px;
  flex: 1;
  min-width: 120px;
  height: 32px;
  box-sizing: border-box;
}

.section-name-input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

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

.seating-editor-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.stand-mode-pills {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.stand-mode-pill {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stand-mode-pill.active {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-badge-info {
  font-size: 0.72rem;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.section-collapsible-body {
  transition: all 0.2s ease;
}

.section-collapsible-body.collapsed {
  display: none;
}

.seating-table-container {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: auto;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.seating-grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  text-align: left;
}

.seating-grid-table thead th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 8px;
  border-bottom: 1.5px solid #cbd5e1;
  white-space: nowrap;
  z-index: 5;
}

.seating-grid-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.seating-grid-table tr:hover td {
  background: #f8fafc;
}

.grid-cell-input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  transition: all 0.15s ease;
  height: 28px;
  box-sizing: border-box;
}

.grid-cell-input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.grid-cell-select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  height: 28px;
  box-sizing: border-box;
}

.grid-cell-select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-cell-delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-cell-delete:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Area / General Admission Zone Settings Panel */
.area-settings-panel {
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.area-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.area-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.area-field-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.seating-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

/* Walking Aisle Spacer */
.seat-aisle-spacer {
  width: 24px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-left: 1px dashed #cbd5e1;
  border-right: 1px dashed #cbd5e1;
  margin: 0 4px;
  user-select: none;
  flex-shrink: 0;
}

/* Venue Style Selector Buttons in Builder */
.venue-style-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.venue-style-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.venue-style-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
}

.venue-style-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.venue-style-card .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
}

.venue-style-card.active .card-icon {
  background: #2563eb;
  color: #ffffff;
}

.venue-style-card .card-title-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.venue-style-card .card-desc-text {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Full 360-Degree Stadium Oval Arena Layout (SVG Radial Seating)
   Renders North, South, East, West around the central playing ground
   ========================================================================== */

.stadium-svg-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.stadium-svg-canvas {
  width: 100%;
  max-width: 960px;
  height: auto;
  min-width: 580px;
  display: block;
  user-select: none;
}

.svg-seat-item {
  cursor: pointer;
}

.svg-seat-item rect:first-child {
  transition: filter 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.svg-seat-item:hover rect:first-child {
  stroke: #ffffff !important;
  stroke-width: 2.2px !important;
  filter: brightness(1.28) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.svg-seat-item:hover text {
  fill: #ffffff !important;
  font-weight: 900 !important;
}

.svg-seat-item.seat-selected rect:first-child {
  fill: #0f172a !important;
  stroke: #38bdf8 !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9)) !important;
}

.svg-seat-item.seat-selected text {
  fill: #38bdf8 !important;
  font-weight: 900 !important;
}

.svg-seat-item.seat-reserved rect:first-child {
  fill: #fef3c7 !important;
  stroke: #f59e0b !important;
  cursor: not-allowed !important;
}

.svg-seat-item.seat-booked rect:first-child {
  fill: #f1f5f9 !important;
  stroke: #cbd5e1 !important;
  cursor: not-allowed !important;
}

/* Stadium / Arena 360-degree SVG Ground Oval Layout */
.stadium-svg-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, #ffffff 45%, #f8fafc 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stadium-svg-canvas {
  width: 100%;
  max-width: 920px;
  height: auto;
  aspect-ratio: 960 / 720;
  display: block;
  user-select: none;
  touch-action: pan-y;
}

.stadium-stand-sector {
  transition: opacity 0.2s ease;
}

.stadium-stand-sector text {
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Ticketek-Grade Two-Tier Interactive Stadium Architecture
   Level 1: Macro Stadium Overview (Section Blocks / Bays)
   Level 2: Micro Section View (High-Density Seat Dots & Row Labels)
   ========================================================================== */

/* Section Block / Bay Wedges */
.stadium-section-block {
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
  user-select: none;
}

.stadium-section-block:hover {
  filter: brightness(1.15) drop-shadow(0 6px 18px rgba(0, 102, 255, 0.45));
  stroke: #ffffff !important;
  stroke-width: 2.5px !important;
}

.stadium-section-block.block-active {
  stroke: #f59e0b !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.85));
}

.stadium-section-block.block-unavailable {
  fill: #f1f5f9 !important;
  stroke: #cbd5e1 !important;
  cursor: pointer;
  opacity: 0.85;
}

.stadium-section-block.block-unavailable:hover {
  fill: #e2e8f0 !important;
  stroke: #94a3b8 !important;
}

/* Block Labels (e.g. 12, 11U, North East Stand, etc.) */
.stadium-block-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  fill: #ffffff;
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.stadium-block-label.label-dark {
  fill: #475569;
  text-shadow: none;
}

/* Draggable Edge Handles on Canvas (for Organizer Section Resizing) */
.stadium-edge-handle {
  cursor: ew-resize;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.stadium-edge-handle:hover, .stadium-edge-handle.dragging {
  transform: scale(1.3);
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.9));
}

/* Floating Breadcrumb Bar (Back to Stadium Overview) */
.stadium-breadcrumb-bar {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stadium-back-btn {
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #1e40af;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.stadium-back-btn:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.stadium-active-badge {
  background: #0f172a;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  letter-spacing: 0.5px;
  border: 1px solid #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Large Translucent Section Watermark in Micro View (e.g. "12") */
.stadium-section-watermark {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 110px;
  font-weight: 900;
  fill: rgba(15, 23, 42, 0.05);
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
  pointer-events: none;
  letter-spacing: -2px;
}

/* Ticketek-Style Circular Seat Dots (Micro View) */
.seat-dot {
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.seat-dot.seat-available:hover {
  transform: scale(1.35);
  filter: brightness(1.25) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.seat-dot.seat-booked {
  cursor: not-allowed;
  opacity: 0.85;
}

.seat-dot.seat-selected {
  transform: scale(1.25);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9));
}

/* Angle Slider & Tier Ring Controls in Sidebar Card */
.section-angle-controls {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-ring-pills {
  display: flex;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.tier-ring-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.tier-ring-pill.active {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.angle-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.angle-slider-row input[type="range"] {
  flex: 1;
  accent-color: #2563eb;
  cursor: pointer;
}

.angle-slider-val {
  min-width: 38px;
  font-variant-numeric: tabular-nums;
  color: #2563eb;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 768px) {
  .stadium-svg-wrapper {
    padding: 8px 4px;
    border-radius: var(--radius-md);
  }
  .stadium-svg-canvas {
    min-width: 600px;
  }
}

/* Banquet Round Table Layout */
.banquet-tables-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  width: 100%;
}

.table-pod {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.table-pod:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.table-center-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.table-seats-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 160px;
}

/* Cinema Curved Screen */
.cinema-screen {
  width: 85%;
  max-width: 500px;
  height: 38px;
  margin: 0 auto 30px auto;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #38bdf8;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

@media (max-width: 600px) {
  .seat-item {
    width: 27px;
    height: 27px;
    font-size: 0.68rem;
  }
  .row-label {
    width: 18px;
    font-size: 0.72rem;
  }
  .seat-aisle-spacer {
    width: 16px;
    font-size: 0.5rem;
  }
}

/* ==========================================================================
   Full-Width Seating Studio Software Workspace (Split-Screen Designer)
   Left: High-Density Controls & Spreadsheet Grid
   Right: Expansive Interactive Canvas (Stadium Oval, Theater, Cinema, etc.)
   ========================================================================== */

.seating-studio-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: #090d16;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  animation: studioFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes studioFadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* Studio Header Navigation */
.studio-topbar {
  height: 60px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 20;
}

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

.studio-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.studio-brand-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.studio-brand-subtitle {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.studio-kpi-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-kpi-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: #e2e8f0;
  font-weight: 600;
}

.studio-kpi-pill svg {
  width: 14px;
  height: 14px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  flex-shrink: 0;
}

.studio-kpi-pill circle {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.studio-kpi-pill strong {
  color: #38bdf8;
  font-weight: 800;
}

.studio-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Studio Split Workspace */
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(460px, 490px) 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: #f8fafc;
}

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

/* Left Sidebar Controls */
.studio-controls-sidebar {
  background: #ffffff;
  border-right: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.studio-sidebar-header {
  padding: 14px 18px 10px 18px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.studio-sidebar-scroll {
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-sidebar-scroll::-webkit-scrollbar {
  width: 7px;
}

.studio-sidebar-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.studio-sidebar-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.studio-sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.studio-venue-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 2px;
}

.venue-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.venue-pill-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.venue-pill-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Right Interactive Canvas Area (Clean, Expansive Architectural Canvas) */
.studio-canvas-area {
  background: #f8fafc;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.studio-canvas-topbar {
  height: 46px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  flex-shrink: 0;
}

.canvas-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
}

.canvas-title-badge span {
  color: #2563eb;
}

.canvas-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.zoom-btn {
  background: transparent;
  border: none;
  color: #334155;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.zoom-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.zoom-level-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2563eb;
  min-width: 42px;
  text-align: center;
}

/* Infinite Architectural Design Surface */
.studio-canvas-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  position: relative;
  cursor: grab;
  user-select: none;
  background-color: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.studio-canvas-viewport.is-panning {
  cursor: grabbing !important;
}

.studio-canvas-stage {
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  will-change: transform;
}

/* Remove card constraints from stadium canvas inside the studio */
.studio-canvas-stage .seating-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.studio-canvas-stage .stadium-svg-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.studio-canvas-stage .stadium-svg-canvas {
  width: 92%;
  max-width: 1280px;
  min-width: 860px;
  height: auto;
  aspect-ratio: 1100 / 820;
  display: block;
  user-select: none;
  filter: drop-shadow(0 14px 36px rgba(15, 23, 42, 0.08));
}

.studio-canvas-footer {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  z-index: 10;
}

.test-selection-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #334155;
}

.test-selection-badge strong {
  color: #2563eb;
}

/* Allocated Area / General Admission Wedge Polygon Styling */
.stadium-area-wedge {
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.stadium-area-wedge:hover {
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.5)) brightness(1.15);
  opacity: 0.95;
}

.stadium-area-wedge.area-selected {
  stroke: #38bdf8 !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.7)) brightness(1.2) !important;
}

.stadium-area-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}

.stadium-area-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 7px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}

.studio-canvas-footer {
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  z-index: 10;
}

.test-selection-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.test-selection-badge strong {
  color: #38bdf8;
}

/* ==========================================================================
   AI 2D Floorplan & Blueprint Scanner Modal
   ========================================================================== */

.ai-scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: studioFadeIn 0.2s ease;
}

.ai-scanner-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-scanner-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ai-scanner-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-dropzone {
  border: 2px dashed #93c5fd;
  background: #eff6ff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-dropzone:hover {
  background: #dbeafe;
  border-color: #2563eb;
}

.ai-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.ai-preset-chip {
  padding: 10px 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-preset-chip:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
}

.ai-preset-chip.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.ai-scanning-hud {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.ai-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 10px #38bdf8;
  animation: laserScan 1.6s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.ai-hud-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.ai-hud-step.active {
  color: #38bdf8;
  font-weight: 700;
}

.ai-hud-step.done {
  color: #22c55e;
}

/* Event Builder Seating Summary Banner */
.seating-summary-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.seating-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seating-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .studio-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }
  .studio-controls-sidebar {
    height: auto;
    max-height: 450px;
  }
  .studio-canvas-area {
    min-height: 480px;
  }
  .studio-topbar {
    padding: 0 12px;
  }
  .studio-kpi-bar {
    display: none;
  }
}

/* ==========================================================================
   Ticketek-Grade Two-Tier Interactive Stadium Visual System
   Macro Overview: Bold clickable section wedge blocks (blue available / gray sold out)
   Micro View: Zoomed section seat picker with large watermark and circular seat dots
   Free-Form Layout Designer: Draggable edge handles to rotate & reshape bays
   ========================================================================== */

/* Macro View: Curved Section Wedge Blocks */
.stadium-section-block {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: #ffffff;
  stroke-width: 2.2px;
  stroke-linejoin: round;
}

.stadium-section-block.available {
  fill: #0066ff;
  opacity: 0.96;
  filter: drop-shadow(0 2px 5px rgba(0, 102, 255, 0.28));
}

.stadium-section-block.available:hover {
  fill: #1d4ed8;
  opacity: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 102, 255, 0.45)) brightness(1.08);
  transform: scale(1.015);
  transform-origin: 550px 410px;
}

.stadium-section-block.sold-out {
  fill: #e2e8f0;
  opacity: 0.88;
}

.stadium-section-block.sold-out:hover {
  fill: #cbd5e1;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.stadium-section-block.active-editing {
  stroke: #f59e0b !important;
  stroke-width: 3.5px !important;
  stroke-dasharray: 6 3;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.65)) !important;
}

/* Centered High-Contrast Section Label */
.stadium-block-label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.6px;
}

.stadium-block-label.label-available {
  fill: #ffffff;
}

.stadium-block-label.label-sold {
  fill: #64748b;
}

/* Draggable SVG Edge Handles for Organizers */
.stadium-edge-handle {
  cursor: crosshair;
  fill: #ffffff;
  stroke: #f59e0b;
  stroke-width: 2.5px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.1s ease, fill 0.1s ease, stroke 0.1s ease;
}

.stadium-edge-handle:hover {
  fill: #fef08a;
  stroke: #d97706;
  transform: scale(1.3);
}

.stadium-edge-handle.dragging {
  fill: #f59e0b;
  stroke: #ffffff;
  stroke-width: 3px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.9));
}

/* Ticketek Micro View: Large Background Watermark */
.stadium-section-watermark {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 88px;
  font-weight: 900;
  fill: rgba(148, 163, 184, 0.16);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
}

/* Ticketek Micro View: Floating Breadcrumb / Back Button */
.stadium-breadcrumb-bar {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  animation: breadcrumbSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes breadcrumbSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stadium-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.stadium-back-btn:hover {
  background: #1d4ed8;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}

.stadium-breadcrumb-title {
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.stadium-breadcrumb-sub {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Ticketek Micro View: Circular Seat Dots */
.seat-dot {
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), filter 0.12s ease;
}

.seat-dot.available {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

.seat-dot.available:hover {
  transform: scale(1.6);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)) brightness(1.2);
}

.seat-dot.booked {
  fill: #cbd5e1 !important;
  stroke: #94a3b8 !important;
  stroke-width: 0.6px !important;
  cursor: not-allowed;
  opacity: 0.82;
}

.seat-dot.selected {
  fill: #0f172a !important;
  stroke: #38bdf8 !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85)) !important;
  transform: scale(1.45);
}

/* Micro View Row Label */
.seat-dot-row-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  fill: #64748b;
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
}

/* Section Card Angle & Tier Sliders (Left Sidebar) */
.section-angle-controls {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-ring-pills {
  display: flex;
  gap: 6px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 6px;
}

.tier-ring-pill {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.tier-ring-pill.active {
  background: #ffffff;
  color: #1e40af;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.angle-slider-row {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
}

.angle-slider-input {
  width: 100%;
  accent-color: #2563eb;
  cursor: pointer;
}

.angle-val-badge {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.78rem;
  color: #1e293b;
  text-align: right;
}

