* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
}

.placeholder-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.06);
  text-align: center;
  border: 1px solid rgba(30, 41, 59, 0.06);
}

.placeholder-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.placeholder-card p {
  margin: 0;
  color: #666;
}

.dashboard-nav {
  background: #fff;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-nav a {
  color: #1e293b;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 500;
}

.dashboard-nav a:hover {
  background: #f1f5f9;
}

.dashboard-nav a.active {
  background: #0d9488;
  color: #fff;
}

.grid-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.grid-placeholder span {
  background: #eee;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Customer: menu + cart */
.hidden {
  display: none !important;
}

.menu-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #64748b;
  font-size: 1rem;
}

/* Menu view: call waiter & bill strip */
.menu-call-strip {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.menu-call-strip .btn {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.btn-call-service {
  background: #0ea5e9;
  color: #fff;
}

.btn-call-service:hover {
  background: #0284c7;
}

.btn-call-bill {
  background: #0d9488;
  color: #fff;
}

.btn-call-bill:hover {
  background: #0f766e;
}

.menu-review-link-wrap {
  margin: 0 0 1rem;
}

.menu-review-link-wrap .btn-link {
  font-size: 1rem;
}

/* Top bar: always visible on customer page (call waiter, bill, review link) */
.customer-top-bar {
  margin-bottom: 1.25rem;
}

.menu-root {
  padding-bottom: 5rem;
}

.menu-category {
  margin-bottom: 2.25rem;
}

.menu-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid #0d9488;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.menu-category[data-category-id="zestoi-kafedes"] .menu-category-title { border-left-color: #ea580c; }
.menu-category[data-category-id="kryoi-kafedes"] .menu-category-title { border-left-color: #0ea5e9; }
.menu-category[data-category-id="pota"] .menu-category-title { border-left-color: #059669; }
.menu-category[data-category-id="snak"] .menu-category-title { border-left-color: #d97706; }

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.06);
  border: 1px solid rgba(30, 41, 59, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.menu-item-main {
  flex: 1;
  min-width: 0;
}

.menu-item:hover {
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
}

.menu-item-info {
  flex: 1;
  min-width: 0;
}

.menu-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  display: block;
}

.menu-item-desc {
  font-size: 0.875rem;
  color: #64748b;
  display: block;
  margin-top: 0.2rem;
}

.menu-item-price {
  font-weight: 600;
  font-size: 1rem;
  color: #0d9488;
  margin-top: 0.25rem;
  display: block;
}

/* Coffee options underneath each coffee item */
.menu-item-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(30, 41, 59, 0.08);
}

.menu-opt-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  margin: 0;
}

.menu-opt {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(30, 41, 59, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-family: inherit;
  min-width: 6rem;
}

.menu-item .btn-add {
  margin-top: 0.75rem;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.05s ease;
}

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

.btn-add {
  background: #0d9488;
  color: #fff;
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
}

.btn-add:hover {
  background: #0f766e;
}

.btn-primary {
  background: #0d9488;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #0f766e;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  color: #666;
}

.btn-icon:hover {
  color: #1a1a1a;
}

/* Cart panel (drawer) */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #f8fafc;
  box-shadow: -4px 0 24px rgba(30, 41, 59, 0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-left: 1px solid rgba(30, 41, 59, 0.08);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.1);
  background: #fff;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-success {
  display: none;
  padding: 2rem 1.25rem;
  text-align: center;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cart-success-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-success-text {
  margin: 0;
  font-size: 1rem;
  color: #64748b;
}

.cart-panel.cart-panel--success .cart-list,
.cart-panel.cart-panel--success .cart-footer {
  display: none;
}

.cart-panel.cart-panel--success .cart-success {
  display: flex;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  flex: 1;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  font-size: 0.95rem;
  color: #1e293b;
}

.cart-line-name {
  grid-column: 1;
}

.cart-line-qty {
  color: #666;
  font-size: 0.85rem;
}

.cart-line-subtotal {
  font-weight: 600;
}

.cart-line-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-line-num {
  min-width: 1.5rem;
  text-align: center;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cart-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(30, 41, 59, 0.1);
  background: #fff;
}

.cart-total {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.cart-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cart-toggle:hover {
  background: #0f766e;
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.4);
}

.cart-badge {
  background: #ccfbf1;
  color: #0d9488;
  border-radius: 10px;
  min-width: 1.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* Checkout page */
.checkout-view {
  padding-bottom: 2rem;
}

.checkout-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.06);
  border: 1px solid rgba(30, 41, 59, 0.06);
}

.checkout-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
}

.checkout-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checkout-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  font-size: 1rem;
}

.checkout-list li:last-child {
  border-bottom: none;
}

.checkout-total-line {
  margin: 1rem 0;
  font-size: 1.15rem;
  color: #1e293b;
}

.checkout-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.checkout-success .cart-success-title {
  margin: 0 0 0.5rem;
}

.checkout-view.checkout-view--success .checkout-card {
  display: none;
}

.checkout-view.checkout-view--success .checkout-success {
  display: block;
}

.checkout-success.hidden {
  display: none !important;
}

/* Landing (6 buttons) */
.landing-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.landing-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.06);
  border: 1px solid rgba(30, 41, 59, 0.06);
  text-decoration: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.landing-btn:hover {
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.08);
}

.landing-btn-link {
  appearance: none;
  font-family: inherit;
}

.landing-btn-bill {
  border: 2px solid #0d9488;
  color: #0d9488;
  font-weight: 600;
}

.landing-btn-bill:hover {
  background: #ccfbf1;
}

/* Back link */
.view-back {
  margin: 0 0 1rem;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: #0d9488;
}

/* Order form */
.order-form {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.06);
  border: 1px solid rgba(30, 41, 59, 0.06);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.form-control[readonly] {
  background: #f5f5f5;
  color: #666;
}

.order-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.order-line .form-group {
  margin-bottom: 0;
}

.order-form-message {
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.order-form-message.success {
  background: #e8f5e9;
  color: #1b5e20;
}

.btn-secondary {
  background: #eee;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.form-group-inline {
  margin-bottom: 1rem;
}

.form-group-inline label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #333;
}

/* Taverna / simple-mode: gradient background + card-style buttons (match Social page) */
body.taverna-view {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 25%, #134e4a 55%, #5b21b6 85%, #7c3aed 100%);
  background-attachment: fixed;
  color: #f1f5f9;
}
body.taverna-view .app-header {
  background: rgba(15, 23, 42, 0.95);
}
body.taverna-view .container {
  position: relative;
}
body.taverna-view .customer-top-bar .menu-call-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
body.taverna-view .customer-top-bar .btn {
  flex: 1;
  min-width: 140px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
body.taverna-view #simple-only-view .landing-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
body.taverna-view #simple-only-view .landing-btn {
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.taverna-view #simple-only-view .landing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Simple-mode: full-screen menu photo */
.simple-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.simple-menu-modal.hidden {
  display: none;
}
.simple-menu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}
.simple-menu-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  margin: 0 auto 0;
  background: #0f172a;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.simple-menu-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
}
.simple-menu-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
}
.simple-menu-modal-close-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.simple-menu-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.simple-menu-modal-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 1rem;
  text-align: center;
}
.simple-menu-single .simple-menu-modal-img {
  display: block;
  width: 100%;
  height: auto;
}
.simple-menu-modal-img {
  display: block;
  width: 100%;
  height: auto;
}
.simple-menu-carousel-hint {
  margin: 0.35rem 1rem 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.35;
}
.simple-menu-carousel-viewport {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(68vh, 520px);
  touch-action: pan-y pinch-zoom;
}
.simple-menu-carousel-track {
  display: flex;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.28s ease-out;
}
.simple-menu-carousel-img {
  flex: 0 0 50%;
  width: 50%;
  max-width: none;
  display: block;
  height: auto;
}
.simple-menu-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0 0.15rem;
}
.simple-menu-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.simple-menu-carousel-dot.active {
  background: #38bdf8;
  transform: scale(1.2);
}
.simple-menu-modal-fallback {
  margin: 1.5rem 1rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Branded popup (replaces native browser alert) */
.brand-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
}

.brand-notice-box {
  width: 100%;
  max-width: 430px;
  background: #fff;
  color: #1e293b;
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1rem;
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.24);
}

.brand-notice-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.brand-notice-text {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #334155;
}

.brand-notice-actions {
  display: flex;
  justify-content: flex-end;
}

.brand-notice-ok {
  border: none;
  background: transparent;
  color: #0d9488;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.brand-notice-ok:hover {
  background: rgba(13, 148, 136, 0.12);
}
