:root {
  --bg-body: #0d1017;
  --bg-surface: #151922;
  --bg-surface-raised: #1c2230;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 106, 0, 0.4);
  --primary-orange: #ff6a00;
  --primary-amber: #ffaa00;
  --color-green: #2ec4b6;
  --color-red: #e63946;
  --color-blue: #3a86ff;
  --text-main: #f0f3f8;
  --text-muted: #8b949e;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-bebas: 'Bebas Neue', cursive;
}

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

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

/* ===================================================
   TOP NAVBAR
   =================================================== */
.admin-navbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-flame-icon {
  font-size: 2rem;
  background: rgba(255, 106, 0, 0.15);
  border: 1px solid rgba(255, 106, 0, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.brand-title {
  font-family: var(--font-bebas);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffffff, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-orange);
  text-transform: uppercase;
}

.nav-center-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
}

.stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stat-dot.green {
  background: var(--color-green);
  box-shadow: 0 0 10px var(--color-green);
}

.stat-dot.red {
  background: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
}

.offline-pill.has-offline {
  background: rgba(230, 57, 70, 0.15);
  border-color: rgba(230, 57, 70, 0.4);
  animation: dangerPulse 1.5s infinite;
}

@keyframes dangerPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 0 15px rgba(230, 57, 70, 0.4); }
  100% { transform: scale(1); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===================================================
   TABS NAVIGATION
   =================================================== */
.admin-tabs-nav {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 28px;
  gap: 8px;
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: var(--primary-amber);
  border-bottom-color: var(--primary-amber);
}

.tab-badge {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.tab-btn.active .tab-badge {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
}

/* ===================================================
   MAIN LAYOUT & SECTIONS
   =================================================== */
.admin-main {
  flex: 1;
  padding: 30px 28px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 700px;
}

/* ===================================================
   PENDING PAIRING BANNER
   =================================================== */
.pending-banner {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.15), rgba(255, 106, 0, 0.08));
  border: 1.5px solid var(--primary-amber);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(255, 170, 0, 0.15);
}

.pending-icon {
  font-size: 2.5rem;
}

.pending-icon.pulse {
  animation: pingPulse 1.5s infinite;
}

.pending-info h4 {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 800;
}

.pending-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===================================================
   TAB 1: SCREENS GRID
   =================================================== */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  grid-gap: 24px;
}

.screen-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.screen-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.screen-card.is-offline {
  border-color: rgba(230, 57, 70, 0.6);
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.06), var(--bg-surface));
}

.screen-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.screen-title-area h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.screen-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.screen-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.screen-status-badge.online {
  background: rgba(46, 196, 182, 0.15);
  color: var(--color-green);
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.screen-status-badge.offline {
  background: rgba(230, 57, 70, 0.18);
  color: var(--color-red);
  border: 1px solid rgba(230, 57, 70, 0.5);
  animation: dangerPulse 1.2s infinite;
}

.screen-preview-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080a0e;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  color: #4b5263;
  font-size: 0.85rem;
  text-align: center;
}

.screen-meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-sm);
}

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

.meta-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.meta-val {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.screen-actions-row .btn {
  flex: 1;
}

/* ===================================================
   TAB 2: STOP-LIST GRID
   =================================================== */
.stoplist-search-wrap {
  width: 320px;
}

.stoplist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 16px;
}

.stoplist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.stoplist-card.is-stopped {
  background: rgba(230, 57, 70, 0.08);
  border-color: rgba(230, 57, 70, 0.35);
}

.stoplist-item-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stoplist-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.stoplist-texts {
  min-width: 0;
}

.stoplist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stoplist-card.is-stopped .stoplist-title {
  text-decoration: line-through;
  color: #e63946;
}

.stoplist-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #3b4252;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-green);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ===================================================
   TAB 3: MENU TABLE
   =================================================== */
.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill.active {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
}

.table-responsive {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

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

.menu-table th {
  background: var(--bg-surface-raised);
  padding: 14px 18px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.menu-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.menu-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.table-item-title {
  font-weight: 700;
  color: #ffffff;
}

.table-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-price-input {
  width: 90px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--primary-amber);
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.inline-price-input:focus {
  border-color: var(--primary-amber);
  outline: none;
}

/* ===================================================
   TAB 4: SETTINGS GRID
   =================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  grid-gap: 24px;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px;
  flex-shrink: 0;
}

.telegram-icon {
  background: rgba(58, 134, 255, 0.15);
  border: 1px solid rgba(58, 134, 255, 0.3);
}

.card-title-row h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.card-title-row p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.toggle-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-orange);
}

/* ===================================================
   BUTTONS & FORMS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), #ff8800);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-raised);
  color: #ffffff;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #252e40;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-warning {
  background: var(--primary-amber);
  color: #000000;
}

.btn-danger {
  background: var(--color-red);
  color: #ffffff;
}

.btn-danger-outline {
  background: transparent;
  color: var(--color-red);
  border-color: rgba(230, 57, 70, 0.4);
}

.btn-danger-outline:hover {
  background: rgba(230, 57, 70, 0.15);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.input-text, .input-select, .input-textarea {
  background: #0d1017;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.input-text:focus, .input-select:focus, .input-textarea:focus {
  border-color: var(--primary-orange);
  outline: none;
}

.input-pin-large {
  font-family: var(--font-bebas);
  font-size: 2.4rem;
  letter-spacing: 12px;
  text-align: center;
  color: var(--primary-amber);
}

.field-hint {
  font-size: 0.75rem;
  color: #636c7e;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.status-msg {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}

.status-msg.success { color: var(--color-green); }
.status-msg.error { color: var(--color-red); }

/* ===================================================
   MODALS
   =================================================== */
.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-layer.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

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

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-instruction {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.highlight-code {
  display: inline-block;
  background: #000;
  color: var(--primary-amber);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  margin: 4px 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-surface-raised);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-navbar { flex-wrap: wrap; padding: 12px 16px; }
  .admin-main { padding: 20px 16px; }
  .admin-tabs-nav { padding: 0 16px; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .stoplist-search-wrap { width: 100%; }
}

/* ===================================================
   PHOTO UPLOADER & PRESET GALLERY
   =================================================== */
.photo-upload-container {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #0d1017;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color 0.2s ease;
}

.photo-upload-container:hover, .photo-upload-container.dragover {
  border-color: var(--primary-orange);
}

.photo-preview-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-preview-img.visible {
  display: block;
}

.photo-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding: 6px;
}

.empty-icon {
  font-size: 1.6rem;
}

.photo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

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

/* Preset Gallery Chips */
.preset-gallery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px;
  max-width: 100%;
}

.preset-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-raised);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 86px;
  text-align: center;
}

.preset-chip:hover {
  border-color: var(--primary-amber);
  transform: translateY(-2px);
}

.preset-chip.active {
  border-color: var(--primary-orange);
  background: rgba(255, 106, 0, 0.12);
}

.preset-chip img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.preset-chip span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ==========================================================
   BRANCH FLEET CARDS & 3-SCREEN MATRIX STYLES
   ========================================================== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 22px;
}

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

.branch-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.branch-card:hover {
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 14px 40px rgba(255, 87, 34, 0.12);
  transform: translateY(-2px);
}

.branch-card.is-active-target {
  border-color: var(--primary-orange);
  box-shadow: 0 0 25px rgba(255, 87, 34, 0.25);
}

.branch-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 14px;
}

.branch-title-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-title-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.branch-badge-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.branch-badge-pill.online {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.branch-badge-pill.partial {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.branch-badge-pill.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Burger Quick Switch Banner */
.branch-burger-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.branch-burger-box.no-burgers {
  background: rgba(247, 127, 0, 0.08);
  border-color: rgba(247, 127, 0, 0.3);
}

.branch-burger-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-burger-icon {
  font-size: 1.5rem;
}

.branch-burger-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}

.branch-burger-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* 3 TV Screen Slots Matrix */
.branch-screens-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-slot-row {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.screen-slot-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}

.slot-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.slot-tag {
  background: rgba(255, 87, 34, 0.15);
  color: #ff5722;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.slot-select-wrap {
  flex: 1;
}

.slot-select-wrap select {
  width: 100%;
  font-size: 0.85rem;
  padding: 7px 10px;
}

.branch-card-footer {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.btn-branch-apply {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-branch-apply:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

