/* ==========================================================================
   Savory Restaurant - Admin Dashboard Styles
   ========================================================================== */

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

:root {
  --gold: #f2ad22;
  --gold2: #ffc33c;
  --bg: #090a0a;
  --panel: #141615;
  --card-bg: #181a19;
  --text: #f5f3ef;
  --muted: #a7a6a0;
  --border: #2d3030;
  --border-light: #3a3d3d;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #22c55e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   Passcode Login Screen
   ========================================================================== */

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #1f2321 0%, #0c0d0d 60%, #050606 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #141615;
  border: 1px solid #333636;
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(242, 173, 34, 0.08);
  text-align: center;
}

.login-brand {
  margin-bottom: 20px;
}

.login-chef-logo {
  font-size: 44px;
  color: var(--gold);
  transform: rotate(180deg);
  display: inline-block;
  margin-bottom: 5px;
}

.login-chef-logo:empty {
  display: none;
  margin-bottom: 0;
}

.login-chef-logo.has-custom-logo,
.login-chef-logo:has(img) {
  transform: none !important;
}

.login-chef-logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(242,173,34,0.35);
  display: inline-block;
  transform: none !important;
}

.login-chef-logo.no-ring img {
  width: auto;
  max-width: 160px;
  height: auto;
  max-height: 80px;
  border-radius: 6px;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

.login-brand h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-style: italic;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.toggle-pwd-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: 0;
  color: #888;
  font-size: 16px;
  padding: 4px;
}

.toggle-pwd-btn:hover {
  color: var(--gold);
}

.login-hint {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

.login-hint code {
  background: #1f2222;
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
}

.login-error {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff7878;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}

.back-link {
  display: inline-block;
  text-align: center;
  color: #888;
  font-size: 13px;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--gold);
}

/* ==========================================================================
   Admin Dashboard Header
   ========================================================================== */

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(18, 20, 19, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.chef-icon {
  font-size: 28px;
  color: var(--gold);
  transform: rotate(180deg);
}

.brand-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1.1;
}

.brand-info h2 span {
  color: var(--gold);
  font-style: italic;
}

.env-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 2px;
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.secondary-btn {
  background: #1e2120;
  border: 1px solid #363939;
  color: #e0e0dc;
}

.secondary-btn:hover {
  background: #282c2b;
  border-color: #555;
  color: #fff;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ff9494;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   Admin Main & Content
   ========================================================================== */

.admin-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Quick Navigation Bar */
.admin-quick-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0;
}

.quick-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #171918;
  border: 1px solid #363938;
  color: #d8d8d4;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-nav-pill:hover {
  background: #232725;
  border-color: #555;
  color: #fff;
  transform: translateY(-1px);
}

.quick-nav-pill.highlight-gold {
  border-color: #ffbc0070;
  color: #ffbc00;
  background: #232014;
  font-weight: 600;
}

.quick-nav-pill.highlight-gold:hover {
  background: #332d19;
  border-color: #ffbc00;
  box-shadow: 0 0 12px rgba(255, 188, 0, 0.25);
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #313533;
  transition: 0.3s ease;
  border-radius: 28px;
  border: 1px solid #4a4f4d;
}

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

.switch-toggle input:checked + .switch-slider {
  background-color: #10b981;
  border-color: #10b981;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: #fff;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #444747;
}

.stat-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #111312;
  border: 1px solid #2d3030;
  display: grid;
  place-items: center;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.stat-small {
  font-size: 17px;
  word-break: break-all;
}

/* General Admin Card */
.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
}

.card-header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* Settings Form Grid */
.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #ddd;
}

.form-group label .req {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #101211;
  border: 1px solid #333636;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(242, 173, 34, 0.2);
}

.form-group small {
  font-size: 12px;
  color: #888;
}

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

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

/* Buttons */
.gold-btn {
  background: linear-gradient(135deg, #f4ad20, #ffc13b);
  border: 0;
  border-radius: 24px;
  color: #121212;
  font-weight: 600;
  padding: 10px 22px;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 173, 32, 0.35);
}

.btn-sm {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 0;
  transition: 0.2s;
}

.reset-btn {
  background: #232726;
  border: 1px solid #3c4040;
  color: #bbb;
}

.reset-btn:hover {
  background: #2f3433;
  color: #fff;
}

.cancel-btn {
  background: #242726;
  color: #ccc;
  border: 1px solid #3c4040;
}

.cancel-btn:hover {
  background: #313635;
  color: #fff;
}

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

.danger-btn:hover {
  background: var(--danger-hover);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toolbar (Search & Filter) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #111312;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #191c1b;
  border: 1px solid #333636;
  border-radius: 24px;
  padding: 8px 16px;
  flex: 1;
  max-width: 450px;
}

.search-icon {
  font-size: 16px;
  opacity: 0.7;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: #fff;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ccc;
}

.category-filter select {
  background: #191c1b;
  border: 1px solid #333636;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
}

/* Table Container */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121413;
}

.dishes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dishes-table th {
  background: #181a19;
  padding: 14px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.dishes-table td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid #232626;
  vertical-align: middle;
}

.dishes-table tbody tr {
  transition: background 0.15s;
}

.dishes-table tbody tr:hover {
  background: #181b1a;
}

.table-dish-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #1e2020;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 173, 34, 0.4);
  font-size: 22px;
}

.dish-name-cell {
  font-weight: 600;
  color: #fff;
}

.cat-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  background: #252827;
  color: #ddd;
  border: 1px solid #3a3d3d;
}

.cat-starters { background: rgba(242, 173, 34, 0.15); color: var(--gold); border-color: rgba(242, 173, 34, 0.3); }
.cat-main { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.cat-pizza { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: rgba(249, 115, 22, 0.3); }
.cat-burgers { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.cat-pasta { background: rgba(234, 179, 8, 0.15); color: #facc15; border-color: rgba(234, 179, 8, 0.3); }
.cat-desserts { background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }
.cat-drinks { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border-color: rgba(6, 182, 212, 0.3); }

.dish-price-cell {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.dish-desc-cell {
  color: #bbb;
  font-size: 13px;
  max-width: 320px;
  line-height: 1.4;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn {
  background: #1d201f;
  border: 1px solid #363938;
  color: #ccc;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: 0.15s;
}

.edit-btn:hover {
  background: rgba(242, 173, 34, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.08);
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: var(--danger);
  transform: scale(1.08);
}

.empty-table {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-table .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-table h4 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: #161817;
  border: 1px solid #3a3d3d;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.modal-overlay.show .modal-card {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.modal-close-btn {
  background: #252827;
  border: 1px solid #3c4040;
  color: #ccc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: 0.15s;
}

.modal-close-btn:hover {
  background: #333636;
  color: #fff;
}

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

.img-preview-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #111312;
  border: 1px dashed #363939;
  border-radius: 10px;
  padding: 12px 16px;
}

.preview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #1c1f1e;
  border: 1px solid #3a3d3d;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #777;
  text-align: center;
  flex-shrink: 0;
}

.preview-tip {
  font-size: 12px;
  color: #aaa;
  line-height: 1.45;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Delete Modal */
.delete-card {
  max-width: 440px;
}

.delete-body {
  text-align: center;
  padding: 30px 24px;
}

.delete-icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.delete-body p {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.delete-body small {
  color: #888;
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 120;
  right: 25px;
  bottom: 25px;
  background: var(--gold);
  color: #111;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 8px;
  transform: translateY(90px);
  opacity: 0;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 950px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .admin-header {
    padding: 14px 18px;
  }
  .admin-main {
    padding: 18px 14px 40px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
  }
  .category-filter {
    justify-content: space-between;
  }
  .form-row {
    flex-direction: column;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .action-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Branding & Visuals Customization
   ========================================================================== */

.brand-preview-banner {
  background: #111312;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-brand-box {
  background: linear-gradient(180deg, #181b1a, #0e100f);
  border: 1px solid #363939;
  border-radius: 12px;
  padding: 14px 28px;
  text-align: center;
  min-width: 170px;
}

.preview-chef-logo {
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.preview-chef-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  transition: all .25s ease;
}

.preview-chef-logo.no-ring img {
  width: auto;
  max-width: 140px;
  height: auto;
  max-height: 70px;
  border-radius: 6px;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

.preview-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.1;
  color: #fff;
}

.preview-brand-subtitle {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}

.branding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.branding-box {
  background: #111312;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branding-box h4 {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.branding-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.branding-preview {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  background: #1a1d1c;
  border: 1px solid var(--border-light);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-preview {
  border-radius: 50%;
  border: 2px solid rgba(242, 173, 34, 0.3);
}

.preview-default-logo {
  font-size: 38px;
  color: var(--gold);
  transform: rotate(180deg);
  display: inline-block;
}

.preview-empty-text {
  font-size: 11px;
  color: #777;
  text-align: center;
  padding: 4px;
}

.branding-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.branding-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   Upload Dropzones
   ========================================================================== */

.upload-dropzone {
  border: 2px dashed #3a3d3d;
  border-radius: 10px;
  background: #141716;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.upload-dropzone:hover {
  border-color: var(--gold);
  background: #191d1c;
}

.upload-dropzone.dragover {
  border-color: var(--gold2);
  background: rgba(242, 173, 34, 0.12);
  transform: scale(1.01);
}

.dropzone-icon {
  font-size: 24px;
  line-height: 1;
}

.dropzone-text {
  font-size: 12px;
  color: #bbb;
  line-height: 1.4;
}

.dropzone-text strong {
  color: var(--gold);
}

.dish-dropzone {
  padding: 12px 14px;
}

.image-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* OR Divider */
.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 3px 0;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #282a2a;
}

.or-divider span {
  padding: 0 8px;
}

/* ==========================================================================
   Categories Management
   ========================================================================== */

.categories-card {
  margin-bottom: 0;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111312;
  border: 1px solid #2e3131;
  padding: 7px 14px;
  border-radius: 24px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.category-chip:hover {
  border-color: #555;
}

.category-chip-icon {
  font-size: 15px;
  line-height: 1;
}

.category-chip-name {
  font-weight: 600;
  color: #fff;
}

.category-chip-count {
  font-size: 11px;
  background: #222524;
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.category-chip-del {
  background: transparent;
  border: 0;
  color: #777;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  margin-left: 2px;
}

.category-chip-del:hover {
  color: var(--danger);
  transform: scale(1.2);
}

.category-card {
  max-width: 460px;
}

/* Emoji Presets */
.emoji-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.emoji-preset {
  background: #131514;
  border: 1px solid #313434;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  color: #ccc;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  user-select: none;
}

.emoji-preset:hover {
  background: #202422;
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* Button variants */
.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: 0.2s;
}

.remove-img-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #ff7878;
  border: 1px solid rgba(239, 68, 68, 0.3);
  margin-top: 6px;
}

.remove-img-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

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

