
/* ============================================================
   CUSTOMER FLOW — Auth, Cart, Checkout, Account
   ============================================================ */

/* --- Modal Backdrop --- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(42,26,18,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  animation: fadeIn .2s var(--ease-petal);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream-200); border: none; cursor: pointer;
  font-size: 14px; color: var(--ink-soft); transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--petal-200); }

/* --- Auth Modal --- */
.auth-modal {
  position: relative;
  background: var(--cream-50); width: 100%; max-width: 420px;
  border: var(--hairline); padding: var(--sp-8);
  animation: slideUp .3s var(--ease-petal);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.auth-brand {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.auth-brand .brand-name { font-family: var(--display); font-size: var(--ts-5); color: var(--ink); }

.auth-tabs {
  display: flex; border-bottom: var(--hairline); margin-bottom: var(--sp-6);
}
.auth-tabs button {
  flex: 1; padding: var(--sp-3) 0; font-size: var(--ts-1);
  background: none; border: none; cursor: pointer; color: var(--ink-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s;
}
.auth-tabs button.active { color: var(--rose-500); border-bottom-color: var(--rose-500); }

.auth-tagline { font-size: var(--ts-1); color: var(--ink-mute); margin-bottom: var(--sp-5); }

.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-form input {
  padding: var(--sp-4) var(--sp-5); border: var(--hairline);
  background: white; font-size: var(--ts-2); color: var(--ink); outline: none;
  transition: border-color .2s;
}
.auth-form input:focus { border-color: var(--rose-400); }

.auth-error {
  padding: var(--sp-3) var(--sp-4); background: #FEF2F2;
  border: 1px solid #FCA5A5; color: #DC2626;
  font-size: var(--ts-1);
}

.auth-submit { margin-top: var(--sp-2); width: 100%; }

.auth-switch {
  margin-top: var(--sp-5); font-size: var(--ts-1); color: var(--ink-mute);
  display: flex; align-items: center; gap: var(--sp-2);
}
.auth-switch button { background: none; border: none; color: var(--rose-500); cursor: pointer; text-decoration: underline; }

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: var(--sp-5) 0 0; font-size: 12px; color: var(--ink-mute);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border, #e2d9d0);
}
.google-btn-wrap {
  margin-top: var(--sp-4); display: flex; justify-content: center;
}

/* --- Spinner --- */
.btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: white;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Buttons --- */
.btn-primary {
  background: var(--rose-500); color: white; border: none;
  padding: var(--sp-4) var(--sp-7); font-size: var(--ts-2);
  cursor: pointer; transition: background .2s; letter-spacing: .05em;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
}
.btn-primary:hover { background: var(--rose-600); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-outline {
  background: none; border: var(--hairline); color: var(--ink-soft);
  padding: var(--sp-4) var(--sp-7); font-size: var(--ts-2);
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { border-color: var(--rose-400); color: var(--rose-500); }

.btn-outline-sm {
  background: none; border: var(--hairline); color: var(--ink-soft);
  padding: var(--sp-2) var(--sp-4); font-size: var(--ts-1);
  cursor: pointer; transition: all .2s;
}
.btn-outline-sm:hover { border-color: var(--rose-400); color: var(--rose-500); }

/* --- Cart Drawer --- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(42,26,18,.4); backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px;
  background: var(--cream-50); z-index: 901; border-left: var(--hairline);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease-petal);
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }
[dir="rtl"] .cart-drawer { right: auto; left: 0; border-left: none; border-right: var(--hairline); transform: translateX(-100%); }
[dir="rtl"] .cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-6) var(--sp-7); border-bottom: var(--hairline);
}
.drawer-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream-200); border: none; cursor: pointer;
  font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
}

.cart-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--sp-3); color: var(--ink-mute);
}
.cart-empty-icon { font-size: 48px; }

.cart-items {
  flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-5);
}

.cart-item {
  display: flex; gap: var(--sp-4); padding-bottom: var(--sp-5); border-bottom: var(--hairline);
}
.ci-img { width: 64px; height: 64px; flex-shrink: 0; background: var(--cream-200); overflow: hidden; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-size: var(--ts-2); color: var(--ink); }
.ci-meta { font-size: var(--ts-0); color: var(--ink-mute); }
.ci-price { font-size: var(--ts-2); color: var(--rose-600); }
.ci-controls { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.qty-control { display: flex; align-items: center; border: var(--hairline); }
.qty-control button {
  width: 28px; height: 28px; background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--cream-200); }
.qty-control span { width: 28px; text-align: center; font-size: var(--ts-1); }
.ci-remove { background: none; border: none; font-size: var(--ts-0); color: var(--ink-mute); cursor: pointer; text-decoration: underline; }

.cart-coupon { display: flex; gap: var(--sp-3); padding: 0 var(--sp-7) var(--sp-3); }
.cart-coupon input {
  flex: 1; padding: var(--sp-3) var(--sp-4); border: var(--hairline);
  background: white; font-size: var(--ts-1); outline: none;
}
.coupon-error { padding: 0 var(--sp-7); font-size: var(--ts-0); color: #DC2626; }
.coupon-ok { padding: 0 var(--sp-7); font-size: var(--ts-0); color: #059669; }

.cart-totals {
  padding: var(--sp-5) var(--sp-7); border-top: var(--hairline);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.ct-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--ts-1); color: var(--ink-soft);
}
.ct-row.discount .t-num { color: #059669; }
.ct-row.total { font-size: var(--ts-2); color: var(--ink); font-weight: 600; padding-top: var(--sp-3); border-top: var(--hairline); }

.cart-cod-note { text-align: center; font-size: var(--ts-0); color: var(--ink-mute); padding: 0 var(--sp-7) var(--sp-3); }
.cart-checkout-btn { width: calc(100% - 2*var(--sp-7)); margin: 0 var(--sp-7) var(--sp-7); }

/* Nav auth additions */
.nav-user-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  background: none; border: var(--hairline); padding: var(--sp-2) var(--sp-4);
  cursor: pointer; font-size: var(--ts-1); color: var(--ink-soft); transition: all .2s;
}
.nav-user-btn:hover { border-color: var(--rose-400); color: var(--rose-500); }
.nav-user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-login-btn {
  background: none; border: none; cursor: pointer;
  font-size: var(--ts-1); color: var(--ink-mute); padding: var(--sp-2) var(--sp-3); transition: color .2s;
}
.nav-login-btn:hover { color: var(--rose-500); }

/* --- Checkout --- */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(42,26,18,.6); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: var(--sp-5); overflow-y: auto;
}
.checkout-modal {
  position: relative; background: var(--cream-50);
  width: 100%; max-width: 640px; margin: auto;
  border: var(--hairline); animation: slideUp .3s var(--ease-petal);
}
.checkout-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-6) var(--sp-8); border-bottom: var(--hairline);
}
.checkout-steps {
  display: flex; align-items: center;
  padding: var(--sp-5) var(--sp-8); border-bottom: var(--hairline);
}
.cs-step {
  display: flex; align-items: center; gap: var(--sp-3); flex: 1;
  font-size: var(--ts-1); color: var(--ink-mute);
}
.cs-step.active { color: var(--rose-500); }
.cs-step.done { color: #059669; }
.cs-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
.cs-step.active .cs-dot { background: var(--rose-500); color: white; border-color: var(--rose-500); }
.cs-step.done .cs-dot { background: #059669; color: white; border-color: #059669; }

.checkout-body { padding: var(--sp-7) var(--sp-8); }
.co-field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.co-field label { font-size: var(--ts-1); color: var(--ink-soft); letter-spacing: .06em; }
.co-field input, .co-field textarea {
  padding: var(--sp-4) var(--sp-5); border: var(--hairline);
  background: white; font-size: var(--ts-2); color: var(--ink); outline: none;
  transition: border-color .2s; resize: vertical;
}
.co-field input:focus, .co-field textarea:focus { border-color: var(--rose-400); }
.co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.co-next { width: 100%; margin-top: var(--sp-3); }

.co-items-table { width: 100%; border-collapse: collapse; font-size: var(--ts-1); margin-bottom: var(--sp-6); }
.co-items-table th { border-bottom: var(--hairline); padding: var(--sp-3) var(--sp-2); text-align: left; color: var(--ink-mute); font-weight: 400; letter-spacing: .06em; }
.co-items-table td { padding: var(--sp-3) var(--sp-2); border-bottom: var(--hairline); color: var(--ink-soft); }
.t-right { text-align: right !important; }

.co-totals { display: flex; flex-direction: column; gap: var(--sp-3); padding-bottom: var(--sp-5); }
.co-row { display: flex; justify-content: space-between; font-size: var(--ts-1); color: var(--ink-soft); }
.co-row.total { font-size: var(--ts-3); color: var(--ink); padding-top: var(--sp-4); border-top: var(--hairline); }

.co-loyalty { padding: var(--sp-5); background: var(--petal-50); border: var(--hairline); margin: var(--sp-3) 0; }
.co-loyalty-input { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-3); flex-wrap: wrap; }
.co-loyalty-input label { font-size: var(--ts-1); color: var(--ink-soft); }
.co-loyalty-input input { width: 100px; padding: var(--sp-2) var(--sp-3); border: var(--hairline); background: white; font-size: var(--ts-2); outline: none; }

.co-btns { display: flex; gap: var(--sp-4); margin-top: var(--sp-6); }
.co-back { flex: 1; }
.co-confirm { flex: 2; }

.co-step-3 { text-align: center; padding: var(--sp-8) 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.co-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #D1FAE5; color: #059669;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
}
.co-ref { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-5); background: var(--cream-200); font-size: var(--ts-2); }

/* --- Account Modal --- */
.account-modal {
  position: relative; background: var(--cream-50);
  width: 100%; max-width: 560px; max-height: 80vh;
  border: var(--hairline); display: flex; flex-direction: column;
  animation: slideUp .3s var(--ease-petal); overflow: hidden;
}
.account-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-6) var(--sp-7); border-bottom: var(--hairline); flex-shrink: 0;
}
.account-hello { font-size: var(--ts-2); color: var(--ink); }
.account-phone { font-size: var(--ts-1); color: var(--ink-mute); margin-top: 2px; }
.account-head-actions { display: flex; gap: var(--sp-3); align-items: center; }
.account-tabs { display: flex; border-bottom: var(--hairline); flex-shrink: 0; }
.account-tabs button {
  flex: 1; padding: var(--sp-4) var(--sp-3); background: none; border: none; cursor: pointer;
  font-size: var(--ts-1); color: var(--ink-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s;
}
.account-tabs button.active { color: var(--rose-500); border-bottom-color: var(--rose-500); }
.account-body { flex: 1; overflow-y: auto; padding: var(--sp-6) var(--sp-7); }
.account-loading { text-align: center; padding: var(--sp-8); color: var(--ink-mute); }

/* Orders list */
.orders-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.order-card { border: var(--hairline); padding: var(--sp-5); background: white; }
.oc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.oc-ref { font-size: var(--ts-1); color: var(--ink); }
.oc-status { font-size: var(--ts-0); padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.oc-meta { display: flex; justify-content: space-between; font-size: var(--ts-1); margin-bottom: var(--sp-3); }
.oc-items { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.oc-item-chip { background: var(--cream-200); font-size: var(--ts-0); padding: 2px var(--sp-3); }

/* Loyalty card */
.loyalty-card-big {
  background: linear-gradient(135deg, var(--tier-color, #C68B6F) 0%, #7A4530 100%);
  color: white; padding: var(--sp-7); margin-bottom: var(--sp-6);
}
.lcb-tier { font-size: var(--ts-1); letter-spacing: .18em; margin-bottom: var(--sp-3); opacity: .85; }
.lcb-points { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.lcb-pts-num { font-size: clamp(40px,8vw,64px); font-family: var(--mono); line-height: 1; }
.lcb-pts-label { font-size: var(--ts-2); opacity: .8; }
.lcb-progress { margin-bottom: var(--sp-4); }
.lcb-track { height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; margin-bottom: var(--sp-2); }
.lcb-fill { height: 100%; background: white; border-radius: 2px; transition: width .5s; }
.lcb-next { font-size: var(--ts-0); opacity: .75; }
.lcb-info { font-size: var(--ts-0); opacity: .7; margin-top: var(--sp-3); }

.loyalty-history { display: flex; flex-direction: column; gap: var(--sp-3); }
.loyalty-history .t-h5 { margin-bottom: var(--sp-3); }
.lh-row { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-3) 0; border-bottom: var(--hairline); font-size: var(--ts-1); }
.lh-desc { color: var(--ink-soft); }
.lh-pts.earn { color: #059669; }
.lh-pts.spend { color: #DC2626; }

/* Wishlist */
.wl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.wl-card { border: var(--hairline); overflow: hidden; }
.wl-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.wl-name { padding: var(--sp-3) var(--sp-4); font-size: var(--ts-1); color: var(--ink); }
.wl-price { padding: 0 var(--sp-4) var(--sp-3); font-size: var(--ts-2); color: var(--rose-600); }

/* --- Order Tracker --- */
.order-tracker { max-width: 560px; margin: 0 auto; padding: var(--sp-8); }
.ot-input { display: flex; gap: var(--sp-4); margin-top: var(--sp-5); margin-bottom: var(--sp-5); }
.ot-input input { flex: 1; padding: var(--sp-4) var(--sp-5); border: var(--hairline); background: white; font-size: var(--ts-2); outline: none; }
.ot-result { margin-top: var(--sp-6); }
.ot-progress { display: flex; align-items: flex-start; flex-wrap: wrap; }
.ot-dot-wrap { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; min-width: 60px; }
.ot-dot {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--cream-300);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  background: white; color: var(--ink-mute); z-index: 1; margin-bottom: var(--sp-2);
}
.ot-dot-wrap.done .ot-dot { background: #059669; border-color: #059669; color: white; }
.ot-dot-wrap.active .ot-dot { background: var(--rose-500); border-color: var(--rose-500); color: white; }
.ot-dot-wrap span { font-size: 10px; text-align: center; color: var(--ink-mute); }
.ot-dot-wrap.active span { color: var(--rose-500); font-weight: 600; }
.ot-line { position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--cream-300); z-index: 0; }
.ot-dot-wrap.done .ot-line { background: #059669; }

/* Mobile responsive */
@media (max-width: 640px) {
  .auth-modal { padding: var(--sp-6); }
  .cart-drawer { max-width: 100%; }
  .checkout-modal { max-width: 100%; }
  .account-modal { max-width: 100%; max-height: 100vh; }
  .co-field-row { grid-template-columns: 1fr; }
  .wl-grid { grid-template-columns: 1fr; }
  .co-btns { flex-direction: column; }
}

/* RTL adjustments */
[dir="rtl"] .cart-drawer { right: auto; left: 0; border-left: none; border-right: var(--hairline); transform: translateX(-100%); }
[dir="rtl"] .cart-drawer.open { transform: translateX(0); }
[dir="rtl"] .modal-close { right: auto; left: var(--sp-5); }

/* --------------------------------------------------------------
   CUSTOMER FLOW � COMPREHENSIVE MOBILE RESPONSIVE
   -------------------------------------------------------------- */

/* -- Modal backdrop -------------------------------------------- */
@media (max-width: 480px) {
  .modal-backdrop { padding: 0; align-items: flex-end; }
}

/* -- Auth modal ------------------------------------------------ */
@media (max-width: 640px) {
  .auth-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 28px 20px;
    max-height: 92svh;
    overflow-y: auto;
  }
}
@media (max-width: 380px) {
  .auth-modal { padding: 22px 16px; }
}

/* -- Cart drawer ----------------------------------------------- */
@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
    width: 100%;
    border-left: none;
    border-top: var(--hairline);
    border-radius: 16px 16px 0 0;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    height: 88svh;
    transform: translateY(100%);
  }
  .cart-drawer.open { transform: translateY(0); }
  [dir="rtl"] .cart-drawer {
    right: 0; left: 0;
    border-right: none;
    transform: translateY(100%);
  }
  [dir="rtl"] .cart-drawer.open { transform: translateY(0); }
  .cart-drawer-head { padding: 16px 20px; }
  .cart-drawer-body { padding: 0 20px; }
  .cart-drawer-foot { padding: 16px 20px; }
}

/* -- Checkout modal -------------------------------------------- */
@media (max-width: 768px) {
  .checkout-modal {
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
  }
  .checkout-body { padding: var(--sp-6) var(--sp-6); }
}
@media (max-width: 640px) {
  .checkout-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 96svh;
    margin: 0;
  }
  .checkout-steps { gap: 8px; }
  .checkout-step-label { display: none; }
  .checkout-body { padding: var(--sp-5) var(--sp-5); }
  .co-field-row { grid-template-columns: 1fr; }
  .co-summary-item { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 380px) {
  .checkout-body { padding: var(--sp-4) var(--sp-4); }
}

/* -- Account modal --------------------------------------------- */
@media (max-width: 640px) {
  .account-modal {
    max-width: 100%;
    width: 100%;
    max-height: 96svh;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
  }
  .account-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .account-tab { white-space: nowrap; padding: 10px 14px; font-size: 11px; }
}

/* -- Order tracker --------------------------------------------- */
@media (max-width: 640px) {
  .order-tracker { padding: var(--sp-6) var(--sp-5); }
  .tracker-timeline { padding-left: 16px; }
}

/* -- Feedback modal -------------------------------------------- */
@media (max-width: 640px) {
  .feedback-modal,
  .support-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 92svh;
    overflow-y: auto;
  }
}

/* -- Loyalty / rewards modal ----------------------------------- */
@media (max-width: 640px) {
  .loyalty-modal { max-width: calc(100vw - 24px); }
  .loyalty-tiers { flex-direction: column; gap: 12px; }
  .loyalty-tier { width: 100%; }
}

/* -- Restock alert form ---------------------------------------- */
@media (max-width: 480px) {
  .restock-form { flex-direction: column; }
  .restock-input,
  .restock-btn { width: 100%; }
}

/* -- Global: prevent horizontal overflow on all modals -------- */
@media (max-width: 640px) {
  .modal-backdrop { overflow-y: auto; }
  [class*="-modal"] { box-sizing: border-box; }
}

/* ============================================================
   RESERVATION MODAL
   ============================================================ */
.resv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.resv-modal {
  background: var(--surface, #1a1410);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.resv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 12px;
}
.resv-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rose, #C68B6F);
  margin-bottom: 4px;
}
.resv-product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1, #f0ebe4);
}
.resv-close {
  background: none;
  border: none;
  color: var(--text-2, #9a8f86);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.resv-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resv-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2, #9a8f86);
  margin-bottom: 6px;
}
.resv-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--text-1, #f0ebe4);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.resv-input:focus {
  border-color: var(--rose, #C68B6F);
}
.resv-duration-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.resv-dur-btn {
  padding: 10px 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--text-2, #9a8f86);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.resv-dur-btn.active {
  background: var(--rose, #C68B6F);
  border-color: var(--rose, #C68B6F);
  color: #fff;
}
.resv-pay-note {
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.5;
}
.resv-pay-note.requires-pay {
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  color: #F59E0B;
}
.resv-pay-note.free {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  color: #10B981;
}
.resv-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ef4444;
  font-size: 13px;
}
.resv-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.resv-btn-ghost {
  padding: 10px 20px;
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: var(--text-2, #9a8f86);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.resv-btn-ghost:hover { border-color: rgba(255,255,255,.3); }
.resv-btn-primary {
  padding: 10px 24px;
  background: var(--rose, #C68B6F);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .15s;
}
.resv-btn-primary:disabled { opacity: .5; cursor: default; }
.resv-btn-primary:hover:not(:disabled) { opacity: .88; }

/* Summary step */
.resv-summary-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.resv-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 12px;
}
.resv-summary-row:last-child { border-bottom: none; }
.resv-summary-row span { color: var(--text-2, #9a8f86); }
.resv-summary-row.highlight { color: var(--rose, #C68B6F); }
.resv-summary-row.highlight span,
.resv-summary-row.highlight strong { color: var(--rose, #C68B6F); }
.resv-whatsapp-note {
  font-size: 13px;
  color: var(--text-2, #9a8f86);
  line-height: 1.55;
}

/* Done step */
.resv-done {
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}
.resv-done-icon { font-size: 48px; margin-bottom: 8px; }
.resv-done-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.resv-done-body { font-size: 14px; color: var(--text-2, #9a8f86); line-height: 1.6; max-width: 360px; }
.resv-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #25D366;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.resv-whatsapp-btn:hover { opacity: .88; }

/* ProductCard reserve button */
.pc-reserve-row {
  padding: 0 12px 10px;
}
.pc-reserve-btn {
  width: 100%;
  padding: 7px 0;
  background: none;
  border: 1px solid rgba(198,139,111,.4);
  border-radius: 6px;
  color: var(--rose, #C68B6F);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .15s;
}
.pc-reserve-btn:hover {
  background: rgba(198,139,111,.1);
  border-color: var(--rose, #C68B6F);
}

/* Quantity display for free (1-day) reservations */
.resv-qty-fixed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.resv-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--cream-200, #F5EDE6);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #2A1A12);
  flex-shrink: 0;
}
.resv-qty-rule {
  font-size: 12px;
  color: var(--ink-mute, #8C7265);
  font-style: italic;
}
.resv-qty-hint {
  font-size: 11px;
  color: var(--ink-mute, #8C7265);
  margin-top: 5px;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 640px) {
  .resv-modal {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 90svh;
  }
  .resv-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .resv-duration-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Feedback & Support login walls ──────────────────────── */
.fb-login-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 12px;
}
.fb-login-icon { font-size: 36px; }
.fb-login-msg  { font-size: 14px; color: var(--ink-soft, #5A4337); margin: 0; }

.sup-login-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  gap: 12px;
}

/* ============================================================
   ACCOUNT — RESERVATIONS TAB
   ============================================================ */

.acc-reservations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resv-card {
  border: 1px solid var(--cream-300, #E8DDD0);
  background: var(--cream-50, #FEFAF6);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resv-card.urgent {
  border-color: #F59E0B;
  background: #FFFBEB;
}

.resv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.resv-card-ref {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-mute, #8A7464);
}
.resv-card-status {
  font-size: 10px;
  font-family: var(--mono, monospace);
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.resv-card-product {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #2A1A12);
}

.resv-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.rcm-label {
  font-size: 10px;
  color: var(--ink-mute, #8A7464);
  font-family: var(--mono, monospace);
  letter-spacing: .05em;
  display: block;
}
.rcm-val {
  font-size: 12px;
  color: var(--ink-soft, #5A4337);
  font-weight: 500;
}

.resv-card-timer {
  font-size: 11px;
  font-family: var(--mono, monospace);
  color: #10B981;
  letter-spacing: .06em;
}
.resv-card-timer.urgent {
  color: #F59E0B;
  font-weight: 700;
}

.resv-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.resv-card-cancel {
  font-size: 11px;
  font-family: var(--mono, monospace);
  letter-spacing: .06em;
  color: #EF4444;
  background: none;
  border: 1px solid #EF444444;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
}
.resv-card-cancel:hover { background: #EF444411; }

.resv-card-wa {
  font-size: 11px;
  font-family: var(--mono, monospace);
  letter-spacing: .06em;
  color: #fff;
  background: #25D366;
  border: 1px solid #25D366;
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
  display: inline-flex; align-items: center;
}
.resv-card-wa:hover { opacity: .85; }
