/*
Theme Name: 真味轩 Zhen Wei Xuan
Theme URI: https://example.com/zhenwei
Author: Zhen Wei Xuan
Author URI: https://example.com
Description: A mobile-first WordPress theme for 真味轩 Chinese restaurant food delivery app. Includes page templates for menu, cart, payment, reviews, account, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhenwei
Tags: food, restaurant, delivery, mobile, chinese-food
*/

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
  --accent-primary: #FF6B35;
  --accent-primary-light: #FF8F5E;
  --accent-green: #22C55E;
  --accent-blue: #3B82F6;
  --accent-red: #EF4444;
  --accent-yellow: #F59E0B;
  --bg-page: #FFFFFF;
  --bg-card: #F5F5F5;
  --bg-elevated: #E4E4E7;
  --bg-warm: #FFF7ED;
  --bg-warm-border: #FFEDD5;
  --border: #E5E5E5;
  --divider: #F0F0F0;
  --text-primary: #18181B;
  --text-secondary: #71717A;
  --text-tertiary: #A1A1AA;
  --text-body: #52525B;
  --text-white: #FFFFFF;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #F0F0F0;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

input, textarea, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ============================================
   Mobile App Shell (390px)
   ============================================ */
.app-shell {
  width: 390px;
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Fixed height shell for pages with internal scroll (e.g. menu) */
.app-shell--fixed {
  height: 100vh;
  min-height: auto;
  overflow: hidden;
}

/* ============================================
   Status Bar
   ============================================ */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 12px 24px 0;
  flex-shrink: 0;
}

.status-bar__time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-bar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-bar__icons .material-symbols-rounded {
  font-size: 16px;
  color: var(--text-primary);
}

.status-bar--light .status-bar__time,
.status-bar--light .status-bar__icons .material-symbols-rounded {
  color: var(--text-white);
}

/* ============================================
   Page Header (with back button)
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  flex-shrink: 0;
}

.page-header__back {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.page-header__back i {
  font-size: 24px;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-header__right {
  width: 24px;
  height: 24px;
}

.page-header__action {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-primary);
}

/* ============================================
   1. Loading / Splash Screen
   ============================================ */
.loading-screen {
  width: 390px;
  min-height: 100vh;
  background: linear-gradient(180deg, #FF6B35 0%, #FF8F5E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loading-screen__logo {
  width: 120px;
  height: 120px;
  background: var(--text-white);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-screen__logo .material-symbols-rounded {
  font-size: 56px;
  color: var(--accent-primary);
}

.loading-screen__brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
}

.loading-screen__sub {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.loading-screen__dots {
  display: flex;
  gap: 8px;
  padding-top: 40px;
}

.loading-screen__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-white);
}

.loading-screen__dot:nth-child(2) {
  opacity: 0.5;
}

.loading-screen__dot:nth-child(3) {
  opacity: 0.25;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.loading-screen__dot:nth-child(1) { animation: dotPulse 1.4s ease-in-out infinite; }
.loading-screen__dot:nth-child(2) { animation: dotPulse 1.4s ease-in-out 0.2s infinite; }
.loading-screen__dot:nth-child(3) { animation: dotPulse 1.4s ease-in-out 0.4s infinite; }

/* ============================================
   2. Menu Page
   ============================================ */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  height: 44px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.menu-tabs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
}

.menu-tabs__item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.menu-tabs__item.active::after {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.menu-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.menu-sidebar {
  width: 88px;
  background: #F7F7F7;
  flex-shrink: 0;
  overflow-y: auto;
}

.menu-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 4px;
}

.menu-sidebar__item.active {
  background: var(--text-white);
  color: var(--accent-primary);
  font-weight: 600;
  border-left: 3px solid var(--accent-primary);
}

.menu-food-list {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}

.menu-food-list__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.food-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.food-item__img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.food-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.food-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.food-item__desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.food-item__sales {
  font-size: 11px;
  color: var(--text-tertiary);
}

.food-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.food-item__price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.food-item__currency {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
}

.food-item__amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-display);
}

.food-item__add {
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.food-item__add i {
  font-size: 16px;
}

/* Food List Scrollbar */
.menu-food-list::-webkit-scrollbar {
  width: 3px;
}
.menu-food-list::-webkit-scrollbar-track {
  background: transparent;
}
.menu-food-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.menu-food-list {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Sidebar Scrollbar */
.menu-sidebar::-webkit-scrollbar {
  width: 0;
}
.menu-sidebar {
  scrollbar-width: none;
}

/* Food Item Entrance Animation */
@keyframes foodItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.food-item {
  animation: foodItemFadeIn 0.4s ease-out both;
}
.food-item:nth-child(1) { animation-delay: 0.05s; }
.food-item:nth-child(2) { animation-delay: 0.1s; }
.food-item:nth-child(3) { animation-delay: 0.15s; }
.food-item:nth-child(4) { animation-delay: 0.2s; }
.food-item:nth-child(5) { animation-delay: 0.25s; }
.food-item:nth-child(6) { animation-delay: 0.3s; }
.food-item:nth-child(7) { animation-delay: 0.35s; }
.food-item:nth-child(8) { animation-delay: 0.4s; }
.food-item:nth-child(9) { animation-delay: 0.45s; }
.food-item:nth-child(10) { animation-delay: 0.5s; }

/* Add to Cart Button Animation */
.food-item__add {
  transition: transform 0.2s ease;
}
.food-item__add:active {
  transform: scale(1.3);
}
.food-item__add.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Menu Tabs Entrance */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-tabs {
  animation: slideDown 0.3s ease-out;
}

/* Sidebar Item Entrance */
@keyframes sidebarFadeIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.menu-sidebar__item {
  animation: sidebarFadeIn 0.3s ease-out both;
}
.menu-sidebar__item:nth-child(1) { animation-delay: 0.05s; }
.menu-sidebar__item:nth-child(2) { animation-delay: 0.08s; }
.menu-sidebar__item:nth-child(3) { animation-delay: 0.11s; }
.menu-sidebar__item:nth-child(4) { animation-delay: 0.14s; }
.menu-sidebar__item:nth-child(5) { animation-delay: 0.17s; }
.menu-sidebar__item:nth-child(6) { animation-delay: 0.2s; }
.menu-sidebar__item:nth-child(7) { animation-delay: 0.23s; }
.menu-sidebar__item:nth-child(8) { animation-delay: 0.26s; }
.menu-sidebar__item:nth-child(9) { animation-delay: 0.29s; }
.menu-sidebar__item:nth-child(10) { animation-delay: 0.32s; }

/* Cart Bar Entrance */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cart-bar {
  animation: slideUp 0.4s ease-out 0.2s both;
}

/* Cart Bar */
.cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
  border-top: 1px solid var(--border);
  background: var(--text-white);
  flex-shrink: 0;
}

.cart-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-bar__icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cart-bar__icon-wrap i {
  font-size: 20px;
  color: var(--text-white);
}

.cart-bar__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-bar__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-bar__hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.cart-bar__checkout {
  background: var(--accent-green);
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

/* ============================================
   3. Cart Page
   ============================================ */
.cart-content {
  flex: 1;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.cart-restaurant {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

.cart-restaurant i {
  font-size: 18px;
  color: var(--accent-primary);
}

.cart-restaurant__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}

.cart-item__img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item__desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.cart-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item__qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__qty-btn--minus {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-item__qty-btn--plus {
  background: var(--accent-primary);
  color: var(--text-white);
}

.cart-item__qty-btn i {
  font-size: 14px;
}

.cart-item__qty-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 16px;
  text-align: center;
}

.cart-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.cart-note__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cart-note__input {
  font-size: 13px;
  color: var(--text-tertiary);
  flex: 1;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
}

.cart-summary__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-summary__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-summary__divider {
  height: 1px;
  background: var(--divider);
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary__total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-summary__total-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-display);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.btn-primary i {
  font-size: 18px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: var(--bg-card);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   4. Payment Page
   ============================================ */
.pay-content {
  flex: 1;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.pay-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pay-card__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-card__header-left i {
  font-size: 18px;
  color: var(--accent-primary);
}

.pay-card__header-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-card__edit {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
}

.pay-card__edit i {
  font-size: 12px;
}

.pay-card__address {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pay-card__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.pay-card__note i {
  font-size: 14px;
  color: var(--accent-blue);
}

.pay-card__note span {
  color: var(--accent-blue);
}

.pay-card__time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.pay-card__time i {
  font-size: 14px;
  color: var(--text-tertiary);
}

.pay-card__time span {
  color: var(--text-secondary);
}

/* Order detail card */
.order-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.order-card__row {
  display: flex;
  justify-content: space-between;
}

.order-card__row-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-card__row-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.order-card__divider {
  height: 1px;
  background: var(--border);
}

.order-card__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card__total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-card__total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-display);
}

/* Payment methods */
.pay-methods__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.pay-method.active {
  border: 2px solid var(--accent-primary);
}

.pay-method__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-method__icon--card {
  background: var(--accent-blue);
}

.pay-method__icon--store {
  background: var(--accent-primary);
}

.pay-method__icon i {
  font-size: 20px;
  color: var(--text-white);
}

.pay-method__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-method__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-method__desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.pay-method__check {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-method__check--active {
  background: var(--accent-primary);
}

.pay-method__check--active i {
  font-size: 14px;
  color: var(--text-white);
}

.pay-method__check--inactive {
  border: 2px solid #D4D4D8;
  border-radius: 11px;
}

/* ============================================
   4b. Payment Guest
   ============================================ */
.guest-form {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guest-form__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-form__header i {
  font-size: 18px;
  color: var(--accent-primary);
}

.guest-form__header-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.guest-form__alert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-red);
}

.guest-form__alert i {
  font-size: 14px;
}

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

.form-field__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field__input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.form-field__input i {
  font-size: 16px;
  color: var(--text-tertiary);
}

.form-field__input input {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.form-field__input input::placeholder {
  color: var(--text-tertiary);
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-field {
  flex: 1;
}

.guest-form__time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.guest-form__time i {
  font-size: 14px;
  color: var(--text-tertiary);
}

.guest-form__login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.guest-form__login-hint a {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================
   5. Pay Success
   ============================================ */
.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  gap: 24px;
}

.success-check {
  width: 100px;
  height: 100px;
  background: var(--accent-green);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check i {
  font-size: 48px;
  color: var(--text-white);
}

.success-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.success-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 280px;
}

.success-info {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-info__row {
  display: flex;
  justify-content: space-between;
}

.success-info__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.success-info__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.success-info__value--accent {
  color: var(--accent-primary);
}

.success-info__value--green {
  color: var(--accent-green);
}

.success-info__value--blue {
  color: var(--accent-blue);
}

.success-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.success-email i {
  font-size: 16px;
}

.success-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
}

/* ============================================
   6. My Account
   ============================================ */
.profile-section {
  background: linear-gradient(180deg, #FF6B35 0%, #FF8F5E 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  background: var(--text-white);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar i {
  font-size: 28px;
  color: var(--accent-primary);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-info__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

.profile-info__phone {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.profile-settings {
  color: var(--text-white);
}

.profile-settings i {
  font-size: 22px;
}

/* Order tabs */
.order-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 4px;
}

.order-tabs__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.order-tabs__item.active {
  background: var(--accent-primary);
  color: var(--text-white);
  font-weight: 600;
}

.order-content {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.order-card-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-item__id {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.order-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.order-status--processing {
  background: #FEF3C7;
  color: var(--accent-yellow);
}

.order-status--completed {
  background: #DCFCE7;
  color: var(--accent-green);
}

.order-status--cancelled {
  background: #FEE2E2;
  color: var(--accent-red);
}

.order-card-item__items {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-card-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-item__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-card-item__date {
  font-size: 11px;
  color: var(--text-tertiary);
}

.order-card-item__action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-primary);
  color: var(--text-white);
}

/* ============================================
   7. Reviews Page
   ============================================ */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-warm);
  border: 1px solid var(--bg-warm-border);
  padding: 12px 20px;
  flex-shrink: 0;
}

.rating-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rating-left__score {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-primary);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars i {
  font-size: 14px;
  color: var(--accent-primary);
}

.rating-stars i.empty {
  color: var(--text-tertiary);
}

.rating-left__count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-bar__label {
  font-size: 11px;
  color: var(--text-secondary);
  width: 10px;
  text-align: right;
}

.rating-bar__track {
  flex: 1;
  height: 6px;
  background: #FFE4CC;
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 3px;
}

.review-list {
  flex: 1;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.review-item:last-child {
  border-bottom: none;
}

.review-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item__avatar {
  width: 32px;
  height: 32px;
  background: var(--bg-warm);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-item__avatar i {
  font-size: 16px;
  color: var(--accent-primary);
}

.review-item__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-item__stars {
  display: flex;
  gap: 2px;
}

.review-item__stars i {
  font-size: 10px;
  color: var(--accent-primary);
}

.review-item__date {
  font-size: 11px;
  color: var(--text-tertiary);
}

.review-item__text {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

.review-item__order {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ============================================
   8. Restaurant Detail
   ============================================ */
.detail-hero {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.detail-name-row {
  display: flex;
  justify-content: space-between;
}

.detail-name-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-name-en {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-rating-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  align-self: flex-start;
}

.detail-rating-badge i {
  font-size: 14px;
  color: var(--accent-primary);
}

.detail-rating-badge span {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
}

.detail-info-cards {
  display: flex;
  gap: 12px;
}

.detail-info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
}

.detail-info-card__icon {
  font-size: 18px;
  color: var(--accent-primary);
}

.detail-info-card__label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.detail-info-card__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-section__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.detail-section__row-icon {
  font-size: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  padding-top: 1px;
}

.detail-section__row-label {
  font-size: 12px;
  color: var(--text-tertiary);
  min-width: 50px;
}

.detail-section__row-value {
  font-size: 13px;
  color: var(--text-primary);
}

.detail-about {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-about__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-about__text {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-primary);
}

/* ============================================
   9. Settings Page
   ============================================ */
.settings-content {
  flex: 1;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
}

.settings-profile__avatar {
  width: 52px;
  height: 52px;
  background: var(--accent-primary);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-profile__avatar i {
  font-size: 26px;
  color: var(--text-white);
}

.settings-profile__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-profile__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-profile__email {
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-profile__phone {
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.settings-field__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.settings-field__input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.settings-field__input i {
  font-size: 16px;
  color: var(--text-tertiary);
}

.settings-field__input input {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.settings-field__input input::placeholder {
  color: var(--text-tertiary);
}

.settings-row {
  display: flex;
  gap: 12px;
}

.settings-row .settings-field {
  flex: 1;
}

.btn-primary--sm {
  height: 46px;
  border-radius: 23px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-accent { color: var(--accent-primary); }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-blue); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
