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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.menu-category:first-child {
  margin-top: 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.menu-item:active {
  transform: scale(0.98);
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.item-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.item-price {
  font-size: 0.85rem;
  color: #777;
  font-weight: 400;
}

.item-add {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f5f5f5;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.item-add:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Cart bar */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
}

.cart-toggle {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
  padding: 0.9rem;
  background: #f5f5f5;
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cart-toggle:hover {
  opacity: 0.9;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #111;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 0.75rem;
}

.cart-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-item-price {
  font-size: 0.8rem;
  color: #777;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f5f5f5;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-num {
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 1.5rem;
  text-align: center;
}

.cart-footer {
  padding: 1rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-footer-total {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* Inputs & buttons */
.input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.input::placeholder {
  color: #555;
}

select.input {
  appearance: none;
  cursor: pointer;
}

.btn {
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-primary {
  background: #f5f5f5;
  color: #0a0a0a;
}

.btn-ghost {
  background: transparent;
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn-danger {
  background: transparent;
  color: #e55;
  border: 1px solid rgba(238, 85, 85, 0.3);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
}

/* Admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.2rem;
}

.tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #666;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}

.tab:hover:not(.active) {
  color: #aaa;
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -0.25rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.admin-item.unavailable {
  opacity: 0.4;
}

.admin-item-info {
  flex: 1;
}

.admin-item-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.admin-item-meta {
  font-size: 0.8rem;
  color: #666;
}

.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-transactions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.txn-card {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.txn-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.txn-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.txn-total {
  font-weight: 600;
  font-size: 0.9rem;
}

.txn-detail {
  font-size: 0.8rem;
  color: #666;
}

.txn-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

.txn-status.paid {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.txn-status.pending {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}

.hidden {
  display: none !important;
}
