/* =====================================
   Nutri X Go — Admin Styles
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --wine:       #1A1A2E;
  --wine-dark:  #0F0F1A;
  --wine-light: #2A2A4A;
  --gold:       #C9A96E;
  --cream:      #FAFAFA;
  --espresso:   #1B1B1B;
  --brown-mid:  #6B6B6B;
  --olive:      #2D6A4F;
  --border:     #E5E5E5;
  --bg:         #F5F5F5;
  --sidebar-w:  248px;
  --font-serif: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body:  'Inter', 'Helvetica Neue', sans-serif;
  --radius:     10px;
  --shadow:     0 2px 10px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--espresso); min-height: 100vh; }

/* ─────────────────────────────────────────
   LOGIN SCREEN
───────────────────────────────────────── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--espresso);
  padding: 20px;
}

.login-card {
  background: var(--cream);
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.login-head {
  background: var(--wine-dark);
  padding: 28px 24px;
  text-align: center;
}

.login-head h1 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.login-head h1 span { color: var(--gold); }
.login-head p { color: rgba(250,243,224,.6); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }

.login-body { padding: 28px 24px; }

.admin-badge {
  display: inline-block;
  background: var(--wine);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.login-body .form-group { margin-bottom: 16px; }

.login-body label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown-mid);
  margin-bottom: 6px;
}

.login-body input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.login-body input:focus { border-color: var(--wine); }

#login-error {
  color: #c0392b;
  font-size: .82rem;
  margin-bottom: 10px;
  min-height: 18px;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-login:hover { background: var(--wine-light); }

/* ─────────────────────────────────────────
   ADMIN LAYOUT
───────────────────────────────────────── */
#admin-app { display: none; height: 100vh; overflow: hidden; }
#admin-app.visible { display: flex; }

/* Sidebar */
#sidebar {
  width: var(--sidebar-w);
  background: var(--espresso);
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  transition: transform .3s;
}

.sidebar-head {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-head h2 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.sidebar-head h2 span { color: var(--gold); }
.sidebar-head p {
  font-size: .7rem;
  color: rgba(250,243,224,.4);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: .04em;
}

nav#sidebar-nav { flex: 1; padding: 12px 0; }

.nav-section {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(250,243,224,.3);
  padding: 12px 18px 4px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: rgba(250,243,224,.7);
  cursor: pointer;
  font-size: .85rem;
  font-family: var(--font-body);
  border-left: 3px solid transparent;
  transition: all .18s;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--cream); }
.nav-item.active {
  background: rgba(201,168,76,.1);
  color: var(--gold);
  border-left-color: var(--gold);
}
.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.nav-badge {
  margin-left: auto;
  background: var(--wine);
  color: #fff;
  border-radius: 100px;
  padding: 1px 7px;
  font-size: .7rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.btn-logout {
  width: 100%;
  padding: 9px;
  background: rgba(255,255,255,.07);
  color: rgba(250,243,224,.7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-logout:hover { background: rgba(176,48,48,.3); color: var(--cream); }

/* Main content */
#admin-main {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
}

/* Top bar */
#admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(43,27,0,.07);
}

#page-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--espresso);
}

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

/* Content area */
.admin-section {
  display: none;
  padding: 28px;
  animation: fadeIn .2s ease;
}
.admin-section.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }

/* ─────────────────────────────────────────
   STAT CARDS
───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wine);
}

.stat-label {
  font-size: .75rem;
  color: var(--brown-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─────────────────────────────────────────
   TABLES
───────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--espresso);
}

.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}

th {
  padding: 10px 16px;
  text-align: left;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown-mid);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  background: #f8f8f8;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8f8f8; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

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

.btn-secondary { background: var(--cream); color: var(--espresso); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--cream-dark, #F0E4C8); }

.btn-danger  { background: #c0392b; color: #fff; }
.btn-danger:hover  { background: #a93226; }

.btn-success { background: var(--olive); color: #fff; }
.btn-success:hover { background: #2f5540; }

.btn-wa {
  background: #25D366;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-wa:hover { background: #1ebe5a; }

.btn-sm { padding: 5px 11px; font-size: .75rem; }
.btn-icon { padding: 6px 8px; font-size: .9rem; }

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─────────────────────────────────────────
   EMOJI PICKER
───────────────────────────────────────── */
.emoji-picker-wrap {
  position: relative;
}
.emoji-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.3rem;
  transition: border-color .15s;
  min-width: 80px;
}
.emoji-picker-btn:hover { border-color: var(--wine); }
.emoji-picker-arrow { font-size: .65rem; color: #999; }
.emoji-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 900;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  min-width: 280px;
}
.emoji-dropdown.open { display: grid; }
.emoji-option {
  font-size: 1.3rem;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  transition: background .1s;
  border: 2px solid transparent;
}
.emoji-option:hover { background: var(--bg); }
.emoji-option.selected { border-color: var(--wine); background: var(--cream); }

/* ─────────────────────────────────────────
   INLINE EDITABLE TABLE CELLS
───────────────────────────────────────── */
td.inline-cell {
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, transparent 0%, rgba(201,169,110,0.05) 100%);
  transition: all 0.2s ease;
}
td.inline-cell:hover {
  background: linear-gradient(135deg, rgba(250,250,250,0.6) 0%, rgba(201,169,110,0.1) 100%);
  border-radius: 3px;
}
.inline-input {
  width: 100%;
  border: 2px solid var(--wine);
  border-radius: 4px;
  padding: 3px 6px;
  font-family: var(--font-body);
  font-size: .85rem;
  background: #fff;
  outline: none;
}
.inline-select {
  width: 100%;
  border: 2px solid var(--wine);
  border-radius: 4px;
  padding: 3px 4px;
  font-family: var(--font-body);
  font-size: .82rem;
  background: #fff;
  outline: none;
}

/* ─────────────────────────────────────────
   FORMS (admin)
───────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.form-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; }

.field label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown-mid);
}

.field input,
.field select,
.field textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  color: var(--espresso);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--wine); }

.field textarea { resize: vertical; min-height: 80px; }

/* ─────────────────────────────────────────
   BADGES / STATUS
───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.badge-pending   { background: #fff3cd; color: #856404; }
.badge-payment_pending { background: #fce4ec; color: #880e4f; }
.badge-preparing { background: #cce5ff; color: #004085; }
.badge-ready     { background: #d4edda; color: #155724; }
.badge-out_for_delivery { background: #ffe0b2; color: #e65100; }
.badge-delivered { background: #d1ecf1; color: #0c5460; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-schedule  { background: #e8eaf6; color: #283593; font-size: .75rem; }

/* Sortable headers */
.sortable, .sortable-fin {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background .15s;
}
.sortable:hover, .sortable-fin:hover {
  background: rgba(0,0,0,.06);
}

/* Stock badge */
.stock-ok  { color: var(--olive); font-weight: 700; }
.stock-low { color: #e67e22; font-weight: 700; }
.stock-out { color: #c0392b; font-weight: 700; }

/* Toggle active */
.toggle-active {
  width: 36px;
  height: 20px;
  border-radius: 100px;
  background: #ccc;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-active::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-active.on { background: var(--olive); }
.toggle-active.on::after { transform: translateX(16px); }

/* ─────────────────────────────────────────
   MODAL (admin)
───────────────────────────────────────── */
.amodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.amodal-overlay.open { opacity: 1; pointer-events: all; }

.amodal {
  background: var(--cream);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  transform: scale(.95);
  transition: transform .25s;
}
.amodal-overlay.open .amodal { transform: scale(1); }

.amodal-header {
  background: var(--wine-dark);
  color: var(--cream);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
}

.amodal-header h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
}

.amodal-body { padding: 22px; }

.amodal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fff;
}

/* ─────────────────────────────────────────
   UPLOAD WIDGET
───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--cream);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--wine);
  background: #f5f5f5;
}
.upload-zone input[type="file"] { display: none; }
.upload-zone p { font-size: .82rem; color: var(--brown-mid); margin-top: 6px; }

.upload-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-top: 10px;
  display: none;
}
.upload-preview.show { display: block; }

/* ─────────────────────────────────────────
   COUPON LINK
───────────────────────────────────────── */
.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.link-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .82rem;
  font-family: var(--font-body);
  color: var(--espresso);
  outline: none;
}

/* ─────────────────────────────────────────
   ORDER DETAIL
───────────────────────────────────────── */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  padding: 6px 10px;
  background: #f8f8f8;
  border-radius: var(--radius);
  border: 1px solid var(--cream);
}

/* ─────────────────────────────────────────
   SEARCH / FILTER
───────────────────────────────────────── */
.search-input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .82rem;
  outline: none;
  background: #fff;
  width: 200px;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--wine); }

.filter-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .82rem;
  outline: none;
  background: #fff;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   RESPONSIVE (admin)
───────────────────────────────────────── */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--espresso);
}

@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 900;
    width: var(--sidebar-w);
    transform: translateX(-100%);
  }
  #sidebar.open { transform: translateX(0); }

  #menu-toggle { display: block; }

  .admin-section { padding: 10px; }

  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .search-input { width: 100%; }

  /* ── Card-header stacks on mobile ── */
  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .card-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .card-actions .search-input,
  .card-actions .filter-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* ── Table → Card layout ── */
  .table-wrap { overflow-x: visible; }

  table thead { display: none; }

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

  table tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 10px 14px;
    position: relative;
  }
  table tbody tr:hover { background: #f8f8f8; }

  table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    text-align: right;
    word-break: break-word;
    white-space: normal !important;
    max-width: none !important;
    overflow: visible !important;
  }
  table td:last-child { border-bottom: none; }

  table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brown-mid);
    text-align: left;
    flex-shrink: 0;
    margin-right: 12px;
  }

  /* Actions row: full width, centered */
  table td.td-actions {
    justify-content: flex-end;
    gap: 6px;
    padding-top: 8px;
    flex-wrap: wrap;
  }
  table td.td-actions::before { display: none; }

  /* Product image in card */
  table td[data-label="Foto"] img {
    width: 36px;
    height: 36px;
  }

  /* Inline editable cells */
  td.inline-cell { cursor: pointer; }

  /* Toggle button alignment */
  table td .toggle-active {
    margin-left: auto;
  }

  /* Badges wrap */
  table td .badge { white-space: nowrap; }

  /* Buttons smaller on mobile */
  .btn.btn-sm {
    padding: 5px 10px;
    font-size: .76rem;
  }
}

/* ─────────────────────────────────────────
   TOAST (admin)
───────────────────────────────────────── */
#admin-toast {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.a-toast {
  background: var(--espresso);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: .83rem;
  box-shadow: var(--shadow);
  animation: aToastIn .2s ease, aToastOut .3s ease 3s forwards;
}
.a-toast.success { background: var(--olive); }
.a-toast.error   { background: #b03030; }

@keyframes aToastIn  { from { opacity: 0; transform: translateX(16px); } }
@keyframes aToastOut { to   { opacity: 0; transform: translateX(16px); } }

/* Misc cream dark variable */
.cream-dark { background: var(--bg); }
/* ─────────────────────────────────────────
   PRICING CALCULATOR
───────────────────────────────────────── */
.pricing-platform-header {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brown-mid);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .85rem;
}

.pricing-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--espresso);
}

.pricing-rate {
  font-size: .78rem;
  color: var(--brown-mid);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

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

.pricing-fee {
  font-size: .78rem;
  color: #b03030;
  background: #fff0f0;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #f5c0c0;
}

.pricing-net {
  font-size: .88rem;
  font-weight: 700;
  color: var(--olive);
}

.pricing-profit {
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.pricing-profit.profit-pos {
  color: var(--olive);
  background: #eaf4ee;
  border: 1px solid #b6d9c2;
}

.pricing-profit.profit-neg {
  color: #b03030;
  background: #fff0f0;
  border: 1px solid #f5c0c0;
}

/* ─────────────────────────────────────────
   ORDER ALARM
───────────────────────────────────────── */
.order-alarm {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.order-alarm.active {
  display: flex;
  animation: alarmPulse 1s ease-in-out infinite;
}

.order-alarm-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4), 0 0 0 4px var(--gold);
  max-width: 420px;
  width: 90vw;
  animation: alarmBounce 0.5s ease;
}

.order-alarm-icon {
  font-size: 4rem;
  animation: alarmShake 0.5s ease-in-out infinite;
  margin-bottom: 12px;
}

.order-alarm-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--wine);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.order-alarm-msg {
  font-size: 0.9rem;
  color: var(--brown-mid);
  margin-bottom: 24px;
  line-height: 1.5;
}

.order-alarm-btn {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.03em;
}

.order-alarm-btn:hover {
  background: #1b5e20;
  transform: scale(1.03);
}

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

@keyframes alarmPulse {
  0%, 100% { background: rgba(0, 0, 0, 0.7); }
  50%      { background: rgba(123, 29, 29, 0.6); }
}

@keyframes alarmBounce {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes alarmShake {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(15deg); }
  75%      { transform: rotate(-15deg); }
}