/* Official BCHEF Brand Fonts */
@font-face {
  font-family: 'Heavitas Neue';
  src: url('/assets/fonts/HeavitasNeue-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Artely Inks';
  src: url('/assets/fonts/ArtelyInks.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'R41 Etoile';
  src: url('/assets/fonts/R41Etoile-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #080a0f;
  --bg-surface: #10131c;
  --bg-surface-elevated: #161b26;
  --bg-surface-hover: #1e2433;
  --bg-glass: rgba(16, 19, 28, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-subtle-hover: rgba(255, 255, 255, 0.15);
  --border-active: #d54a15;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Official BCHEF Orange (#d54a15) */
  --brand-orange: #d54a15;
  --brand-orange-hover: #ea5318;
  --brand-orange-light: #f76328;
  --brand-orange-dim: rgba(213, 74, 21, 0.12);
  --brand-orange-glow: rgba(213, 74, 21, 0.28);

  --status-emerald: #10b981;
  --status-emerald-dim: rgba(16, 185, 129, 0.12);
  --status-rose: #f43f5e;
  --status-rose-dim: rgba(244, 63, 94, 0.12);
  --status-blue: #3b82f6;
  --status-blue-dim: rgba(59, 130, 246, 0.12);

  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-headline: 'Heavitas Neue', var(--font-sans);
  --font-artisan: 'Artely Inks', cursive;
  --font-retro: 'R41 Etoile', serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 24px var(--brand-orange-glow);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(213, 74, 21, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(59, 130, 246, 0.03), transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(80px + var(--safe-bottom));
}

@media (min-width: 769px) {
  body {
    padding-bottom: 40px;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

/* Header */
.header {
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px var(--brand-orange-glow));
}

.brand-badge {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px var(--brand-orange-glow);
  flex-shrink: 0;
  user-select: none;
}

.brand-info {
  min-width: 0;
}

.brand-info h1 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.brand-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--status-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--status-emerald);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  user-select: none;
}

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

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  user-select: none;
}

.user-icon {
  display: flex;
  align-items: center;
  color: var(--brand-orange);
}

.user-name {
  color: var(--text-secondary);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-logout:hover {
  background-color: var(--status-rose-dim);
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--status-rose);
  transform: scale(1.05);
}


/* Top Scrollable Pill Navigation Bar */
.tabs-nav {
  display: flex;
  gap: 8px;
  background-color: rgba(16, 19, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 57px;
  z-index: 45;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-subtle-hover);
  transform: translateY(-1px);
}

.tab-btn:active {
  transform: scale(0.97);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--brand-orange), #ff6a1a);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 12px var(--brand-orange-glow);
  font-weight: 700;
}

.tab-btn.active .icon {
  stroke: #ffffff;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

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

/* Summary Bar */
.summary-bar {
  background: linear-gradient(135deg, rgba(213, 74, 21, 0.09), rgba(16, 19, 28, 0.95));
  border: 1px solid rgba(213, 74, 21, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.summary-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--brand-orange), #ff8533);
}

.summary-details {
  flex: 1;
  min-width: 0;
}

.summary-details h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  color: #ffffff;
}

.summary-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
  transition: border-color var(--transition-fast);
}

.meta-chip:hover {
  border-color: var(--border-subtle-hover);
}

.chip-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chip-val {
  color: var(--text-primary);
  font-weight: 700;
}

.summary-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Modern iOS Style Toggle Switch */
.toggle-switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.toggle-switch-container:hover {
  color: var(--text-primary);
}

.toggle-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-track {
  width: 42px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  display: inline-block;
  position: relative;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.toggle-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.toggle-switch-input:checked + .toggle-switch-track {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.toggle-switch-input:checked + .toggle-switch-track .toggle-switch-thumb {
  transform: translateX(18px);
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  user-select: none;
  touch-action: manipulation;
  min-height: 42px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-orange-glow);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(213, 74, 21, 0.4);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-subtle-hover);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--status-rose-dim);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--status-rose);
}

.btn-danger:hover {
  background-color: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.5);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  min-height: 34px;
  border-radius: var(--radius-xs);
}

/* Grid Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
}

/* Card */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--border-subtle-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* Dropzone */
.dropzone-box {
  border: 2px dashed rgba(213, 74, 21, 0.3);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background-color: rgba(213, 74, 21, 0.03);
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--brand-orange);
  background-color: var(--brand-orange-dim);
  box-shadow: inset 0 0 20px var(--brand-orange-glow);
  transform: translateY(-2px);
}

.dropzone-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 12px;
}

.dropzone-box span {
  color: var(--brand-orange-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tables (Desktop & Tablet) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 10px;
}

.data-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background-color: var(--bg-surface-elevated);
}

.table-actions-cell {
  text-align: right;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-emerald {
  background-color: var(--status-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-emerald);
}

.badge-blue {
  background-color: var(--status-blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.badge-rose {
  background-color: var(--status-rose-dim);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--status-rose);
}

.badge-orange {
  background-color: var(--brand-orange-dim);
  border: 1px solid rgba(213, 74, 21, 0.3);
  color: #ff8533;
}

.badge-subtle {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Live Preview Split */
.preview-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

.preview-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.preview-card-header {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-tag {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Smartphone Device Mockup Frame */
.preview-device-mockup {
  position: relative;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  max-width: 260px;
  margin: 0 auto;
  width: 100%;
}

.preview-frame {
  width: 100%;
  aspect-ratio: 9/16;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-frame img, .preview-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preview-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 20px;
}

/* Metadata Panel */
.meta-panel {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.meta-group {
  margin-bottom: 18px;
}

.meta-group:last-child {
  margin-bottom: 0;
}

.meta-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.meta-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-orange-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.meta-box-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color var(--transition-fast);
}

.meta-box-content:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px var(--brand-orange-dim);
}

.meta-box-content input, .meta-box-content textarea {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  outline: none;
  line-height: 1.5;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-item {
  background-color: var(--brand-orange-dim);
  border: 1px solid rgba(213, 74, 21, 0.25);
  color: #ff9955;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  user-select: all;
  transition: background-color var(--transition-fast);
}

.tag-item:hover {
  background-color: rgba(213, 74, 21, 0.2);
}

/* Stories Gallery Grid */
.stories-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-item {
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  background-color: #000;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  border-color: var(--brand-orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  transition: opacity var(--transition-fast);
}

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

/* Touch Friendly Mobile Gallery Action Buttons */
.gallery-actions-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 60%, transparent);
  padding: 8px 6px 6px;
  justify-content: space-around;
  gap: 6px;
  z-index: 5;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: transform var(--transition-fast);
}

.btn-icon:active {
  transform: scale(0.9);
}

.btn-icon-primary {
  background: var(--brand-orange);
}

.btn-icon-danger {
  background: var(--status-rose);
}

/* Restaurant Hours Grid */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.hours-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  transition: border-color var(--transition-fast);
}

.hours-row:hover {
  border-color: var(--border-subtle-hover);
}

.hours-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hours-input {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.form-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px var(--brand-orange-dim);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  right: 24px;
  background-color: rgba(22, 27, 38, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-orange);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  display: none;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 48px);
  animation: slideUp 0.25s ease-out;
}

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

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 500;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Floating Bottom Action Bar for Mobile */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(16, 19, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px calc(12px + var(--safe-bottom));
  z-index: 90;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================ */
/* RESPONSIVE BREAKPOINTS (Mobile & Tablet)                     */
/* ============================================================ */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices (Smartphones < 768px) */
@media (max-width: 768px) {
  .header {
    padding: 10px 16px;
  }

  .brand-badge {
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  .brand-info h1 {
    font-size: 0.92rem;
  }

  .brand-info p {
    display: none; /* Hide street address on mobile header to keep it compact */
  }

  .status-indicator span:last-child {
    display: none; /* Keep dot visible with pulse */
  }

  .status-indicator {
    padding: 6px 8px;
  }

  .tabs-nav {
    padding: 8px 14px;
    gap: 6px;
    top: 51px;
  }

  .tab-btn {
    font-size: 0.78rem;
    padding: 7px 13px;
    gap: 6px;
  }

  .container {
    padding: 0 14px;
    margin: 16px auto;
  }

  .card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
  }

  /* Summary Bar becomes a stacked mobile card */
  .summary-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    gap: 16px;
  }

  .summary-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .summary-actions .btn {
    width: 100%;
    min-height: 48px; /* Big thumb friendly */
    font-size: 0.92rem;
  }

  .summary-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .meta-chip {
    padding: 8px 10px;
  }

  /* Split preview stacks vertically on mobile */
  .preview-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .preview-device-mockup {
    max-width: 240px;
  }

  /* RESPONSIVE MOBILE CARDS FOR TABLES */
  .data-table thead {
    display: none; /* Hide traditional headers */
  }

  .data-table, 
  .data-table tbody, 
  .data-table tr, 
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
  }

  .data-table tr:hover td {
    background-color: transparent;
  }

  .data-table td {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
  }

  .data-table td:last-child {
    border-bottom: none;
    padding-top: 12px;
    margin-top: 4px;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .table-actions-cell {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-content: stretch;
  }

  .table-actions-cell .btn {
    width: 100%;
    padding: 8px 6px;
    font-size: 0.74rem;
    min-height: 38px;
  }

  /* Stories Gallery */
  .stories-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .gallery-actions-bar {
    display: flex; /* Show touch action bar on mobile */
  }

  .gallery-overlay {
    display: none; /* Disable hover overlay on mobile */
  }

  /* Hours row */
  .hours-row {
    grid-template-columns: 110px 1fr;
    padding: 8px 12px;
  }

  /* Modals on mobile */
  .modal-content {
    padding: 18px 16px;
    max-height: 88vh;
    border-radius: var(--radius-lg);
  }

  /* Mobile floating action bar */
  .mobile-action-bar {
    display: flex;
  }

  .toast-notice {
    right: 14px;
    left: 14px;
    bottom: calc(76px + var(--safe-bottom));
  }
}

/* Extra small mobile (< 400px) */
@media (max-width: 400px) {
  .stories-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-actions-cell {
    grid-template-columns: 1fr;
  }

  .hours-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
