:root {
  --bg: #0e0c09;
  --surface: #16130e;
  --border: #2e2619;
  --gold: #c9a24b;
  --gold-hover: #ddb65d;
  --text: #ede6d6;
  --muted: #9c917d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Password & Modal Screens */
.lock-screen,
.modal-backdrop {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--bg);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 5, 0.85);
  z-index: 100;
}

.lock-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.75rem 2rem;
  border-radius: 6px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2.1rem;
  font-weight: normal;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.modal-box h2 {
  font-size: 1.65rem;
  font-weight: normal;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.prompt {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

input::placeholder {
  color: #6b6252;
}

input:focus {
  outline: none;
  border-color: var(--gold);
}

button {
  width: 100%;
  padding: 0.85rem;
  background: var(--gold);
  color: #110e09;
  border: none;
  border-radius: 4px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.15s;
}

button:hover {
  background: var(--gold-hover);
}

.error-msg {
  font-family: system-ui, -apple-system, sans-serif;
  color: #d96b6b;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  min-height: 1.1rem;
}

/* Main Bar Menu */
.bar-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
}

/* Host Live Orders Panel */
.orders-panel {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.orders-header h2 {
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gold);
  color: #110e09;
  padding: 0.12rem 0.55rem;
  border-radius: 3px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
}

.order-info h4 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.order-note {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.order-time {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  color: #6b6252;
  margin-top: 0.2rem;
}

.complete-order-btn {
  width: auto;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.no-orders-msg {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 0.75rem 0;
}

/* Host Toolbar */
.host-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.host-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--gold);
  font-size: 0.9rem;
}

.bulk-actions {
  display: flex;
  gap: 0.5rem;
}

.mini-btn {
  width: auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.mini-btn:hover {
  background: #211c14;
  border-color: var(--gold);
}

.host-toolbar input {
  margin-bottom: 0;
}

/* Drink Cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1.25rem;
}

.drink-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s;
}

.drink-card:hover {
  border-color: #4a3d28;
}

.drink-card.unavailable {
  opacity: 0.5;
  border-style: dashed;
}

.drink-tag {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 0.45rem;
}

.drink-card h3 {
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.drink-card p {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.order-drink-btn {
  margin-top: 1.35rem;
  padding: 0.65rem;
  font-size: 0.85rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.order-drink-btn:hover {
  background: var(--gold);
  color: #110e09;
}

.card-controls {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
}

.avail-btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.avail-btn.is-available {
  background: var(--gold);
  color: #110e09;
}

.avail-btn.is-hidden {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.avail-btn.is-hidden:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.delete-btn {
  width: auto;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: #c96464;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.delete-btn:hover {
  background: #241414;
  border-color: #c96464;
}

.empty-msg {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 3rem 1rem;
}

/* Host Add Drink Panel */
.host-panel {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.host-panel h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

footer {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

.ghost-btn {
  width: auto;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.ghost-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}

.cancel-btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* Post-Order Monzo Tip QR Styling */
.qr-wrapper {
  display: inline-block;
  padding: 0.5rem;
  margin-bottom: 1.25rem;
  background: #0b141c;
  border: 1px solid var(--gold);
  border-radius: 6px;
}

.qr-img {
  display: block;
  width: 195px;
  height: 195px;
  border-radius: 4px;
  object-fit: contain;
}