/* ==========================================================
   TIỆM TRÀ NHỎ - COZY TEA SHOP MANAGEMENT SIMULATION
   Giao diện tinh tế chuẩn phong cách Anime Cafe Nhật Bản / Hàn Quốc
   Tông màu: Kem giấy ấm, Gỗ caramel, Bảng đen Vintage, Đỏ mận Berry
   ========================================================== */

:root, [data-theme="cozy"] {
  --bg-app: #FAF5ED;
  --bg-desktop: #E5DAC8;
  --bg-tray: #EEE3D0;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FAF7F0;
  --bg-header: rgba(250, 245, 237, 0.96);
  --border-subtle: #DECDBB;
  --border-card: #C7B099;
  --border-btn: #B59B82;
  
  --text-title: #2A1508;
  --text-main: #3B2110;
  --text-muted: #664C3B;
  --text-hint: #533928;
  
  --accent-berry: #C4385E;
  --accent-berry-hover: #AB2A4E;
  --accent-money: #B8384E;
  --accent-gold: #D48816;
  --accent-caramel: #8C5919;
  --accent-green: #1B7A5D;
  --accent-red: #D9383A;
  --accent-chalk: #1A2821;
  --wood-frame: #6E3F1C;
  --wood-dark: #3F1F0A;
  --chalk-teal: #143026;
  --chalk-teal-border: #244F3F;
  --chalk-teal-text: #E5F3EC;

  --font-main: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow-soft: 0 4px 14px rgba(70, 45, 20, 0.08);
  --shadow-card: 0 2px 8px rgba(60, 35, 15, 0.07);
}

/* 🌙 THEME 2: PHỐ ĐÊM TOKYO (DARK CYBER ANIME) */
[data-theme="tokyo-night"] {
  --bg-app: #12131D;
  --bg-desktop: #0A0B12;
  --bg-tray: #1A1C29;
  --bg-card: #202336;
  --bg-card-subtle: #272B42;
  --bg-header: rgba(18, 19, 29, 0.96);
  --border-subtle: #2E3350;
  --border-card: #454D7A;
  --border-btn: #5A649E;

  --text-title: #FFFFFF;
  --text-main: #E2E8F8;
  --text-muted: #A6B4DE;
  --text-hint: #B8C5EC;

  --accent-berry: #FF5A8C;
  --accent-berry-hover: #FF3D77;
  --accent-money: #FF6B95;
  --accent-gold: #FFC048;
  --accent-caramel: #F5A623;
  --accent-green: #38E4B7;
  --accent-red: #FF4D6D;
  --accent-chalk: #0D0E16;
  --wood-frame: #3E3B54;
  --wood-dark: #1E1D2B;
  --chalk-teal: #102621;
  --chalk-teal-border: #225247;
  --chalk-teal-text: #C3E88D;
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* 🌸 THEME 3: HOA ANH ĐÀO (SAKURA BLOSSOM PASTEL) */
[data-theme="sakura"] {
  --bg-app: #FFF2F5;
  --bg-desktop: #F8DBE2;
  --bg-tray: #F3CAD4;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FFF7F9;
  --bg-header: rgba(255, 242, 245, 0.96);
  --border-subtle: #E8B4C2;
  --border-card: #D995A7;
  --border-btn: #C7778E;

  --text-title: #380B15;
  --text-main: #481320;
  --text-muted: #733444;
  --text-hint: #5E2231;

  --accent-berry: #D62772;
  --accent-berry-hover: #B8195E;
  --accent-money: #C2185B;
  --accent-gold: #D67A00;
  --accent-caramel: #A34825;
  --accent-green: #1B8A55;
  --accent-red: #E02E4C;
  --accent-chalk: #24141A;
  --wood-frame: #783F4C;
  --wood-dark: #461C26;
  --chalk-teal: #172B20;
  --chalk-teal-border: #2D503D;
  --chalk-teal-text: #E8F8F0;
  --shadow-soft: 0 6px 18px rgba(180, 70, 100, 0.1);
  --shadow-card: 0 3px 10px rgba(180, 70, 100, 0.08);
}

/* 🌶️ THEME 4: LỬA CAY 7 CẤP (SPICY INFERNO) */
[data-theme="spicy-fire"] {
  --bg-app: #180F0E;
  --bg-desktop: #0F0808;
  --bg-tray: #241614;
  --bg-card: #2B1B18;
  --bg-card-subtle: #36221F;
  --bg-header: rgba(24, 15, 14, 0.96);
  --border-subtle: #4D2824;
  --border-card: #78362E;
  --border-btn: #9E453A;

  --text-title: #FFF5F0;
  --text-main: #FDE0D4;
  --text-muted: #D1A598;
  --text-hint: #E2B9AD;

  --accent-berry: #FF473A;
  --accent-berry-hover: #E82E20;
  --accent-money: #FF6647;
  --accent-gold: #FFA800;
  --accent-caramel: #F27814;
  --accent-green: #2ECC71;
  --accent-red: #FF3838;
  --accent-chalk: #140807;
  --wood-frame: #4A1E17;
  --wood-dark: #2B0F0B;
  --chalk-teal: #101F17;
  --chalk-teal-border: #1E3B2C;
  --chalk-teal-text: #D5F2E3;
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* 🍵 THEME 5: TRÀ XANH MATCHA (ZEN BAMBOO) */
[data-theme="matcha"] {
  --bg-app: #F2F7EF;
  --bg-desktop: #DFEAD8;
  --bg-tray: #D2E2CA;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FBF6;
  --bg-header: rgba(242, 247, 239, 0.96);
  --border-subtle: #B8CDB0;
  --border-card: #9DBA93;
  --border-btn: #80A474;

  --text-title: #0E2916;
  --text-main: #1B3824;
  --text-muted: #3D5E46;
  --text-hint: #2B4A34;

  --accent-berry: #2E7D32;
  --accent-berry-hover: #1B5E20;
  --accent-money: #2E7D32;
  --accent-gold: #C67A00;
  --accent-caramel: #735300;
  --accent-green: #2E7D32;
  --accent-red: #C62828;
  --accent-chalk: #0E1C13;
  --wood-frame: #43543A;
  --wood-dark: #253320;
  --chalk-teal: #14281B;
  --chalk-teal-border: #23432C;
  --chalk-teal-text: #E8F5E9;
  --shadow-soft: 0 6px 18px rgba(40, 70, 45, 0.09);
  --shadow-card: 0 3px 10px rgba(40, 70, 45, 0.07);
}

/* 🧋 THEME 6: TIỆM TRÀ SỮA BOBA PASTEL (SWEET BOBA DESSERT) */
[data-theme="boba-pastel"] {
  --bg-app: #FFF5F8;
  --bg-desktop: #FDE2EC;
  --bg-tray: #FCD5E3;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FFF8FA;
  --bg-header: rgba(255, 245, 248, 0.96);
  --border-subtle: #F3BACD;
  --border-card: #ECA3BD;
  --border-btn: #E085A7;

  --text-title: #3F1527;
  --text-main: #502137;
  --text-muted: #804A66;
  --text-hint: #6E3953;

  --accent-berry: #E91E63;
  --accent-berry-hover: #C2185B;
  --accent-money: #D81B60;
  --accent-gold: #F59E0B;
  --accent-caramel: #8D5B4C;
  --accent-green: #10B981;
  --accent-red: #F43F5E;
  --accent-chalk: #2D1420;
  --wood-frame: #7A3E54;
  --wood-dark: #4A1E2F;
  --chalk-teal: #1F2D27;
  --chalk-teal-border: #3A5B4F;
  --chalk-teal-text: #FDF2F8;
  --shadow-soft: 0 8px 24px rgba(220, 80, 130, 0.12);
  --shadow-card: 0 4px 12px rgba(220, 80, 130, 0.08);
}

/* 🥤 THEME 7: TRÀ SỮA ĐÊM MIDNIGHT BOBA (CYBER NEON TEA BAR) */
[data-theme="midnight-boba"] {
  --bg-app: #120A24;
  --bg-desktop: #0A0517;
  --bg-tray: #1A1033;
  --bg-card: #1F153D;
  --bg-card-subtle: #291D4E;
  --bg-header: rgba(18, 10, 36, 0.96);
  --border-subtle: #3E2973;
  --border-card: #56399C;
  --border-btn: #794DDB;

  --text-title: #FFFFFF;
  --text-main: #F3E8FF;
  --text-muted: #BCA3E6;
  --text-hint: #D4C2F5;

  --accent-berry: #D946EF;
  --accent-berry-hover: #C026D3;
  --accent-money: #F472B6;
  --accent-gold: #FBBF24;
  --accent-caramel: #F59E0B;
  --accent-green: #34D399;
  --accent-red: #FB7185;
  --accent-chalk: #0D071A;
  --wood-frame: #4C2E85;
  --wood-dark: #2A174E;
  --chalk-teal: #0E2929;
  --chalk-teal-border: #1F5252;
  --chalk-teal-text: #E0E7FF;
  --shadow-soft: 0 8px 26px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 16px rgba(168, 85, 247, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-main);
  background-color: var(--bg-desktop);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.4;
}

/* ==========================================================
   1. MÀN HÌNH LOADING COZY
   ========================================================== */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.loading-anime-pot {
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
  animation: cuteBob 2.4s infinite alternate ease-in-out;
}

.loading-teapot-emoji {
  font-size: 54px;
}

@keyframes cuteBob {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-6px) rotate(3deg); }
}

.loading-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-title);
  margin-bottom: 6px;
}

.loading-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.loading-progress-track {
  width: 100%;
  height: 14px;
  background: var(--bg-tray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.loading-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #E5A83B, #C44569);
  border-radius: var(--radius-pill);
  transition: width 0.2s ease;
}

.loading-status-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--text-muted);
}

.loading-tip-box {
  margin-top: 20px;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-hint);
  border: 1.5px solid var(--border-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-start-play {
  margin-top: 24px;
  background: var(--accent-berry);
  color: #FFF;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 69, 105, 0.35);
  display: none;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-start-play:hover {
  background: var(--accent-berry-hover);
  transform: translateY(-2px);
}

/* ==========================================================
   2. KHUNG VIEWPORT CHÍNH (MOBILE APP CONTAINER)
   ========================================================== */
.game-viewport-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.game-phone-frame {
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-app);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 10px 35px rgba(60, 40, 20, 0.12);
  display: flex;
  flex-direction: column;
  transition: max-width 0.3s ease;
}

@media (min-width: 600px) and (max-width: 899px) {
  .game-phone-frame {
    margin: 16px auto 50px auto;
    min-height: calc(100vh - 66px);
    max-width: 720px;
    border-radius: 20px;
    border: 1px solid rgba(210, 190, 170, 0.5);
    overflow: hidden;
  }
}

@media (min-width: 900px) {
  .game-phone-frame {
    margin: 20px auto 50px auto;
    min-height: calc(100vh - 70px);
    max-width: 980px;
    border-radius: 24px;
    border: 1.5px solid rgba(210, 190, 170, 0.6);
    box-shadow: 0 16px 45px rgba(60, 40, 20, 0.25);
    overflow: hidden;
  }
}

/* ==========================================================
   3. HEADER TOP 3 CỘT (CHUẨN SCREENSHOT 1 & 2)
   ========================================================== */
.game-top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header, rgba(250, 246, 240, 0.94));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px 12px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-card);
  box-shadow: 0 4px 16px rgba(60, 35, 15, 0.08);
}

.header-left-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-owner-avatar-box {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  background: var(--bg-tray);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.shop-owner-avatar-box:hover {
  transform: scale(1.08);
}

.owner-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.owner-crown-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.header-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.header-time-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-title);
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.header-time-title.in-shift {
  background: linear-gradient(135deg, rgba(255, 243, 224, 0.95) 0%, rgba(255, 224, 178, 0.9) 100%);
  border: 1.5px solid #FF9800;
  color: #E65100;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.header-time-title.in-shift.time-warning {
  background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  border-color: #EF4444;
  color: #DC2626;
  animation: timerUrgentPulse 0.9s infinite alternate ease-in-out;
}

@keyframes timerUrgentPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  100% { transform: scale(1.08); box-shadow: 0 0 14px rgba(239, 68, 68, 0.6); }
}

.header-money-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-money);
  margin-top: 2px;
}

.header-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
  position: relative;
}

.header-stars-row {
  font-size: 13px;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.header-reviews-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.btn-header-action,
.btn-settings-gear {
  width: 32px;
  height: 32px;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-btn);
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-title);
  padding: 0;
  user-select: none;
}

.btn-header-action:hover {
  background: var(--bg-card);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-settings-gear:hover {
  background: var(--bg-card);
  transform: translateY(-2px) rotate(30deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ==========================================================
   4. SCROLL BODY & CONTAINERS
   ========================================================== */
.game-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 20px 16px;
  scrollbar-width: thin;
  scrollbar-color: #D6C7B7 transparent;
}

.game-scroll-body::-webkit-scrollbar {
  width: 5px;
}
.game-scroll-body::-webkit-scrollbar-thumb {
  background: #D6C7B7;
  border-radius: 10px;
}

/* ==========================================================
   5. BẢNG ĐEN MENU HÔM NAY (CHALKBOARD GREEN BANNER)
   ========================================================== */
.chalkboard-card {
  position: relative;
  background-color: var(--accent-chalk);
  border: 3.5px solid var(--wood-frame);
  border-radius: var(--radius-card);
  padding: 16px 18px 14px 18px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(70, 45, 20, 0.1);
  margin-bottom: 12px;
  text-align: center;
  color: #FFF;
}

.chalkboard-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #ECC6B8;
  color: #68262C;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
  margin-bottom: 8px;
}

.chalkboard-pill-badge:hover {
  transform: scale(1.04);
}

.chalkboard-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFDF5;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.chalkboard-menu-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
}

.chalk-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.chalk-item-name {
  color: #F7EAD7;
}

.chalk-item-price {
  color: #FFE699;
  font-weight: 800;
}

.chalkboard-topping-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.chalkboard-topping-label {
  font-size: 12px;
  font-weight: 800;
  color: #E2EFE9;
}

.chalkboard-pills-wrap {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chalk-topping-pill {
  background-color: var(--chalk-teal);
  border: 1px solid var(--chalk-teal-border);
  color: var(--chalk-teal-text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.chalkboard-footer-note {
  font-size: 11px;
  color: #8CAFA1;
  font-weight: 600;
}

/* ==========================================================
   6. THẺ MÓN ĐẶC BIỆT HÔM NAY (HOT SPECIAL DISH COMBO)
   ========================================================== */
.special-dish-card {
  position: relative;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.06) 100%), var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 18px rgba(229, 168, 59, 0.28), 0 0 10px rgba(245, 197, 66, 0.2);
  animation: specialGoldGlow 3s infinite ease-in-out;
}

@keyframes specialGoldGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(229, 168, 59, 0.25), 0 0 6px rgba(245, 197, 66, 0.15);
  }
  50% {
    box-shadow: 0 6px 22px rgba(229, 168, 59, 0.45), 0 0 16px rgba(245, 197, 66, 0.35);
  }
}

.special-dish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.special-dish-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-gold);
}

.special-dish-tag .star-icon {
  color: #E5A83B;
  font-size: 15px;
}

.special-dish-hot-badge {
  background: linear-gradient(90deg, #D9383A, #F39C12);
  color: #FFF;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(217, 56, 58, 0.35);
  letter-spacing: 0.5px;
}

.special-dish-content {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-title);
  margin-top: 1px;
}

.special-dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.special-dish-streak {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.special-dish-buff {
  font-size: 11px;
  font-weight: 800;
  color: #258A6D;
}

/* ==========================================================
   7. THANH 8 TAB ĐIỀU HƯỚNG GRID (2 HÀNG x 4 CỘT)
   CẢI TIẾN TRẠNG THÁI ACTIVE RÕ RÀNG & HIỆU ỨNG NHẬN DIỆN
   ========================================================== */
.game-nav-grid {
  background-color: var(--bg-tray);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(60, 35, 15, 0.05);
}

.nav-grid-btn {
  position: relative;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 4px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-grid-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-card);
  transform: translateY(-1px);
}

.nav-grid-btn .tab-btn-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-grid-btn .tab-btn-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: inherit;
  transition: color 0.18s ease;
}

/* Trạng thái Tab đang chọn (Active Tab) cực kỳ nổi bật */
.nav-grid-btn.active {
  background-color: var(--bg-card);
  border-color: var(--accent-berry);
  box-shadow: 0 4px 14px rgba(196, 69, 105, 0.22);
  transform: translateY(-2px);
}

.nav-grid-btn.active .tab-btn-icon {
  transform: scale(1.18);
}

.nav-grid-btn.active .tab-btn-label {
  color: var(--accent-berry);
  font-weight: 900;
}

/* Vạch gạch chân highlight dưới đáy tab active */
.nav-grid-btn.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 24px;
  height: 3px;
  background-color: var(--accent-berry);
  border-radius: var(--radius-pill);
}

/* ==========================================================
   8. NỘI DUNG TỪNG TAB (TAB PANES)
   ========================================================== */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-description-hint {
  font-size: 13px;
  color: var(--text-hint);
  line-height: 1.45;
  margin-bottom: 14px;
}

.category-block {
  margin-bottom: 14px;
}

.category-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================
   9. DANH SÁCH MÓN ROW (CHUẨN SCREENSHOT 1 & 2)
   ========================================================== */
.item-rows-list {
  display: flex;
  flex-direction: column;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.item-row:last-child {
  border-bottom: none;
}

.item-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.item-icon {
  font-size: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-title);
}

.item-status {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.item-status.status-selling {
  color: var(--accent-green);
}

.item-status.status-out-of-stock {
  color: var(--accent-red);
}

.item-status.status-locked {
  color: var(--text-muted);
}

.item-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Nút trong tab Menu */
.btn-menu-action {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-btn);
  border-radius: 10px;
  color: var(--text-title);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-menu-action:hover {
  background-color: var(--bg-card-subtle);
}

.btn-menu-action.btn-buy-lock {
  background-color: var(--accent-berry);
  border: none;
  color: #FFFFFF;
  padding: 6px 18px;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  border-radius: 10px;
  flex-direction: column;
}

.btn-menu-action.btn-buy-lock:hover {
  background-color: var(--accent-berry-hover);
  transform: translateY(-1px);
}

.btn-buy-lock .btn-price-top {
  font-size: 13px;
  font-weight: 800;
}

.btn-buy-lock .btn-action-sub {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
}

/* ==========================================================
   CỤM NÚT HÀNH ĐỘNG CHÍNH (PREP CTA ACTION DECK) & TẠM TÍNH
   ========================================================== */
.kho-cta-action-deck {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kho-cta-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .kho-cta-buttons-row {
    grid-template-columns: 1fr;
  }
}

.btn-brew-action {
  background: linear-gradient(135deg, #FF6F43 0%, #D83B1E 100%);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(216, 59, 30, 0.28);
  transition: all 0.18s ease;
  min-height: 44px;
}

.btn-brew-action:hover:not(:disabled) {
  background: linear-gradient(135deg, #FF7F55 0%, #E24528 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(216, 59, 30, 0.38);
}

.btn-brew-action:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-brew-action.btn-brewed-done,
.btn-brew-action:disabled {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  cursor: default;
  opacity: 0.85;
}

.btn-open-day-prominent {
  background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35);
  transition: all 0.18s ease;
  min-height: 44px;
}

.btn-open-day-prominent:hover {
  background: linear-gradient(135deg, #2ECC71 0%, #229954 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.45);
}

.btn-open-day-prominent.btn-ready-state {
  animation: pulseOpenReady 2.2s infinite ease-in-out;
}

@keyframes pulseOpenReady {
  0%, 100% { box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35); }
  50% { box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6); }
}

.btn-open-day-prominent.btn-warning-state {
  background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Thanh Tạm Tính Mua Hàng & Ngân Quỹ Ví */
.kho-subtotal-bar {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-card);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.subtotal-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.subtotal-item .subtotal-icon {
  font-size: 14px;
}

.subtotal-item .subtotal-amount {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-title);
}

.subtotal-item.subtotal-spent .subtotal-amount {
  color: #B8384E;
}

.subtotal-item.subtotal-wallet .subtotal-amount {
  color: #258A6D;
}

/* Category header wrap */
.category-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.category-count-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================
   LƯỚI THẺ BÀI NGUYÊN LIỆU KHO HÀNG (KHO CARDS GRID)
   ========================================================== */
.kho-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .kho-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .kho-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* Thẻ bài nguyên liệu */
.kho-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  padding: 10px 8px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(60, 35, 15, 0.05);
}

.kho-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(60, 35, 15, 0.1);
}

/* Trạng thái HẾT HÀNG: Grayscale + Viền cảnh báo đỏ nổi bật */
.kho-card.card-out-of-stock {
  border: 2px dashed #E74C3C;
  background-color: var(--bg-card-subtle);
}

.kho-card.card-out-of-stock .kho-card-icon {
  filter: grayscale(0.85);
  opacity: 0.65;
}

.kho-card-badge-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.kho-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  line-height: 1.3;
}

.kho-badge.in-stock {
  background-color: #EBF7EE;
  color: #1E8449;
  border: 1px solid #C3E6CB;
}

.kho-badge.out-of-stock {
  background-color: #E74C3C;
  color: #FFFFFF;
  border: 1px solid #C0392B;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
  animation: pulseOutStock 1.8s infinite ease-in-out;
}

.kho-badge.locked-badge {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-weight: 800;
}

@keyframes pulseOutStock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ================= BANNER BẢO QUẢN NGUYÊN LIỆU VÔ HẠN ================= */
.kho-storage-banner {
  background: linear-gradient(135deg, #EBF5FB 0%, #E8F8F5 100%);
  border: 1.5px solid #AED6F1;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(41, 128, 185, 0.08);
}

.storage-banner-icon-box {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #FFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(41, 128, 185, 0.15);
}

.storage-banner-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.storage-banner-title {
  font-size: 12px;
  font-weight: 800;
  color: #1B4F72;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.storage-banner-pill {
  font-size: 10px;
  font-weight: 800;
  color: #15803D;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  padding: 1px 7px;
  border-radius: 10px;
}

.storage-banner-desc {
  font-size: 11px;
  color: #2C3E50;
  line-height: 1.35;
}

/* Thẻ bài nguyên liệu chưa mở khóa trong Menu */
.kho-card.card-locked {
  border: 1.5px dashed #CBD5E1;
  background-color: #F8FAFC;
}

.kho-card.card-locked .kho-card-icon {
  filter: grayscale(0.5);
  opacity: 0.7;
}

.card-lock-overlay-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 14px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.kho-card-shelf-life {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
  border-radius: 6px;
  padding: 1px 6px;
  margin-top: 3px;
}

.kho-locked-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: auto;
}

.kho-locked-refund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 6px;
}

.locked-stock-note {
  font-weight: 700;
}

.btn-goto-menu-unlock {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-goto-menu-unlock:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-goto-menu-unlock:active {
  transform: scale(0.96);
}

/* Icon nguyên liệu */
.kho-card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-tray);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kho-card-icon {
  font-size: 28px;
  line-height: 1;
}

/* Thông tin tên & đơn giá */
.kho-card-info {
  margin-bottom: 8px;
  width: 100%;
}

.kho-card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.kho-card-price {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-money);
  margin-top: 2px;
}

.kho-card-price .unit-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================
   CỤM STEPPER GỌN GÀNG: [-] SỐ LƯỢNG [+] (TOUCH TARGET >= 40PX)
   ========================================================== */
.kho-stepper-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

.btn-stepper-action {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-btn);
  background: var(--bg-tray);
  color: var(--text-title);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-stepper-action:hover:not(:disabled) {
  background: var(--bg-card-subtle);
  border-color: var(--border-card);
  transform: translateY(-1px);
}

.btn-stepper-action:active:not(:disabled) {
  transform: scale(0.92);
}

/* Trạng thái vô hiệu hóa trực quan (Disabled State) khi tồn kho = 0 */
.btn-stepper-action.disabled,
.btn-stepper-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg-tray);
  border-color: var(--border-subtle);
  color: var(--text-muted);
  box-shadow: none;
}

.btn-stepper-action.highlight-glow {
  border-color: #F472B6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.45);
  animation: pulseGlow 1.4s infinite ease-in-out;
}

.kho-stepper-stock-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-title);
  min-width: 32px;
  text-align: center;
}

/* Nút chọn nhanh +5, +10 */
.kho-quick-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.btn-chip-qty {
  flex: 1;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  background: #F3EBE0;
  border: 1px solid #D8C6B0;
  color: #6E3F1D;
  cursor: pointer;
  transition: all 0.12s ease;
  min-height: 28px;
}

.btn-chip-qty:hover {
  background: #E8D8C3;
  transform: translateY(-1px);
}

.btn-chip-qty:active {
  transform: scale(0.95);
}

/* ==========================================================
   TỐI ƯU HÓA GIAO DIỆN KHO HÀNG TRÊN MOBILE (ISSUE #2 FIX)
   Thẻ bài gọn gàng, vừa mắt, không bị quá to chiếm hết màn hình
   ========================================================== */
@media (max-width: 600px) {
  .kho-cta-action-deck {
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    gap: 8px;
  }

  .btn-brew-action,
  .btn-open-day-prominent {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  .kho-subtotal-bar {
    padding: 6px 10px;
    border-radius: 8px;
    gap: 4px 10px;
  }

  .subtotal-item {
    font-size: 11px;
    gap: 4px;
  }

  .subtotal-item .subtotal-amount {
    font-size: 11.5px;
  }

  .kho-cards-grid {
    gap: 8px;
  }

  .kho-card {
    padding: 8px 6px 8px 6px;
    border-radius: 12px;
  }

  .kho-card-badge-wrap {
    margin-bottom: 2px;
  }

  .kho-badge {
    font-size: 9px;
    padding: 1.5px 6px;
    font-weight: 800;
  }

  .kho-card-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin: 2px 0 3px 0;
  }

  .kho-card-icon {
    font-size: 20px;
  }

  .kho-card-info {
    margin-bottom: 4px;
  }

  .kho-card-name {
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.25;
  }

  .kho-card-price {
    font-size: 10px;
    margin-top: 1px;
  }

  .kho-card-price .unit-text {
    font-size: 9px;
  }

  .kho-stepper-control {
    gap: 4px;
    margin-top: auto;
  }

  .btn-stepper-action {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 7px;
    font-size: 16px;
  }

  .kho-stepper-stock-val {
    font-size: 13.5px;
    min-width: 22px;
  }

  .kho-quick-chips {
    margin-top: 4px;
    gap: 4px;
  }

  .btn-chip-qty {
    min-height: 22px;
    padding: 2px 0;
    font-size: 9.5px;
    font-weight: 800;
    border-radius: 6px;
  }
}

/* Nút stepper cổ điển dùng trong các tab khác (Giá bán, v.v.) */
.btn-stepper {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-btn);
  border-radius: 8px;
  color: var(--text-title);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 34px;
  height: 32px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-stepper:hover {
  background-color: var(--bg-tray);
}

/* Tutorial Tooltip Box (chuẩn screenshot 1) */
.tutorial-popover-box {
  background-color: #3A271D;
  color: #FFF;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.tutorial-popover-box .tooltip-text {
  font-size: 13px;
  font-weight: 600;
}

.tutorial-popover-box .tooltip-dismiss-btn {
  background: transparent;
  border: none;
  color: #DDD;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.tutorial-popover-box .tooltip-dismiss-btn:hover {
  color: #FFF;
}

/* ==========================================================
   10. TAB GIÁ BÁN, NÂNG CẤP, NHÂN VIÊN, ONLINE
   ========================================================== */
.price-items-list, .upgrades-items-list, .staff-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card, .upgrade-card, .staff-card {
  background-color: var(--bg-card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.price-card-info, .upgrade-card-info, .staff-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-card-title, .upgrade-card-title, .staff-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-title);
}

.price-card-desc, .upgrade-card-desc, .staff-card-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.price-card-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-indicator-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.badge-cheap { background: rgba(46, 125, 50, 0.14); color: var(--accent-green); border: 1px solid var(--accent-green); }
.badge-fair { background: rgba(217, 119, 6, 0.14); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.badge-expensive { background: rgba(234, 88, 12, 0.14); color: #EA580C; border: 1px solid #EA580C; }
.badge-overpriced { background: rgba(220, 38, 38, 0.14); color: var(--accent-red); border: 1px solid var(--accent-red); }

/* Tab Online */
.online-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border-card);
}

.online-indicator {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-green);
}

.online-stat-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-title);
  background: var(--bg-tray);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.online-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.online-order-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.online-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
}

.online-order-items {
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-card-subtle);
  padding: 8px 10px;
  border-radius: 8px;
}

.btn-pack-order {
  background-color: var(--accent-berry);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Tab Bộ sưu tập & Tổng kết */
.customers-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.collection-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px;
  border: 1.5px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.collection-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tray);
}

.collection-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.collection-bio {
  font-size: 11px;
  color: var(--text-muted);
}

.summary-stats-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-title);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-customer-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.review-stars {
  font-size: 12px;
  color: var(--accent-gold);
}

.review-comment {
  font-size: 13px;
  color: var(--text-main);
}

/* ==========================================================
   11. THANH NÚT HÀNH ĐỘNG CỐ ĐỊNH CHÂN MÀN HÌNH (CHUẨN ẢNH)
   ========================================================== */
.bottom-action-spacer {
  height: 24px;
}

.game-bottom-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-app) 40%, var(--bg-app) 100%);
  padding: 10px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  z-index: 90;
}

.btn-primary-action {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary-action.btn-open-day {
  background-color: var(--accent-berry);
  color: #FFFFFF;
}

.btn-primary-action.btn-open-day:hover {
  background-color: var(--accent-berry-hover);
  transform: translateY(-1px);
}

.btn-primary-action.btn-warning-state {
  background-color: #8C7D73;
  color: #FFFFFF;
}

.open-day-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: var(--shadow-card);
}

.open-day-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.open-day-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sub-action {
  background: var(--bg-tray);
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-title);
}

.btn-sub-action:hover {
  background: #E0D3C1;
}

.btn-sub-action.btn-speedup {
  background: var(--accent-berry);
  color: #FFF;
}

/* ==========================================================
   12. FOOTER DESKTOP DƯỚI ĐÁY TRÌNH DUYỆT (SCREENSHOT 2)
   ========================================================== */
.desktop-app-footer {
  width: 100%;
  background-color: #19191B;
  color: #929298;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 899px) {
  .desktop-app-footer {
    display: none !important;
  }
}

.desktop-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.4px;
}

.desktop-footer-left .dot {
  opacity: 0.5;
}

.desktop-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CỤM THỐNG KÊ REALTIME CHÂN TRANG */
.footer-realtime-stats-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.footer-stat-badge.stat-online {
  border-color: rgba(16, 185, 129, 0.3);
}

.footer-stat-badge.stat-views {
  border-color: rgba(245, 158, 11, 0.3);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.5);
  animation: live-beacon 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes live-beacon {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 2px rgba(16, 185, 129, 0.3); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 2px rgba(16, 185, 129, 0.3); }
}

.stat-badge-label {
  color: #A1A1AA;
}

.stat-badge-value {
  font-weight: 800;
  color: #FFF;
  transition: transform 0.2s, color 0.2s;
}

.footer-stat-badge.stat-online .stat-badge-value {
  color: #34D399;
}

.footer-stat-badge.stat-views .stat-badge-value {
  color: #FBBF24;
}

.stat-num-pulse {
  animation: stat-pop 0.5s ease-out;
}

@keyframes stat-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #FFF; }
  100% { transform: scale(1); }
}

/* KHUNG THỐNG KÊ REAL-TIME DÀNH CHO MOBILE & TABLET (THIẾT KẾ COZY TINH TẾ, KHÔNG BỊ NỔI CỘM) */
.mobile-footer-stats-card {
  margin: 8px 10px 14px 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 9px 12px;
  box-shadow: 0 1px 3px rgba(60, 35, 15, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-stats-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.mobile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mobile-stat-pill.stat-online-pill {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(16, 185, 129, 0.06) 100%);
}

.mobile-stat-pill.stat-views-pill {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(245, 158, 11, 0.06) 100%);
}

.mobile-stat-pill .stat-icon {
  font-size: 17px;
  line-height: 1;
}

.mobile-stat-pill .stat-info-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-stat-pill .stat-num-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.15;
}

.mobile-stat-pill.stat-online-pill .stat-num-val {
  color: #10B981;
}

.mobile-stat-pill.stat-views-pill .stat-num-val {
  color: #D97706;
}

.mobile-stat-pill .stat-sub-text {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.1;
}

.btn-footer-changelog {
  background: transparent;
  border: none;
  color: #FFD60A;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.btn-footer-changelog:hover {
  background: rgba(255, 214, 10, 0.15);
}

/* ==========================================================
   13. MODAL SÂN KHẤU TIỆM TRÀ SỐNG ĐỘNG
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(40, 25, 15, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #4A3B32);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 480px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  border: 1.5px solid var(--border-card);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-title);
}

.btn-modal-close {
  background: var(--bg-tray);
  color: var(--text-title);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background-color 0.15s;
}

.btn-modal-close:hover {
  transform: scale(1.1);
  background: var(--border-card);
}

.dining-tables-floor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--bg-tray);
  border: 1.5px solid var(--border-subtle);
  padding: 14px;
  border-radius: 14px;
  max-height: 380px;
  overflow-y: auto;
}

.dining-table-box {
  background: linear-gradient(150deg, #FFFBF5 0%, #F5ECE0 100%);
  border-radius: 14px;
  padding: 10px 12px;
  border: 2px solid #D8A47F;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(84, 42, 14, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 140px;
}

[data-theme="tokyo"] .dining-table-box,
[data-theme="cyber"] .dining-table-box,
[data-theme="night"] .dining-table-box {
  background: linear-gradient(150deg, #24222D 0%, #1A1822 100%);
  border-color: #8C5432;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dining-table-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dining-table-num-badge {
  background: #E8D4BE;
  color: #5D3116;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(93, 49, 22, 0.2);
}

[data-theme="tokyo"] .dining-table-num-badge,
[data-theme="cyber"] .dining-table-num-badge,
[data-theme="night"] .dining-table-num-badge {
  background: #4A3525;
  color: #F8D8B8;
  border-color: #6D4C33;
}

.dining-table-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}

.dining-table-status-pill.status-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dining-table-status-pill.status-dirty {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: pulseDirty 1.5s infinite alternate;
}

@keyframes pulseDirty {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.03); opacity: 1; }
}

.dining-table-timer-pill {
  background: #FEF3C7;
  color: #92400E;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #FCD34D;
}

.dining-table-scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.table-oak-surface {
  width: 100%;
  background: linear-gradient(180deg, #F9F1E6 0%, #EFE1CE 100%);
  border: 1.5px solid #D5B493;
  border-radius: 10px;
  padding: 10px 6px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(100, 60, 20, 0.08);
}

[data-theme="tokyo"] .table-oak-surface,
[data-theme="cyber"] .table-oak-surface,
[data-theme="night"] .table-oak-surface {
  background: linear-gradient(180deg, #2D2722 0%, #1F1B17 100%);
  border-color: #554133;
}

.table-chairs-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.chair-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
}

.dining-table-box.is-empty:hover .chair-icon.chair-left {
  transform: translateX(-2px);
}
.dining-table-box.is-empty:hover .chair-icon.chair-right {
  transform: translateX(2px);
}

.table-mat-center {
  background: #E8D7C2;
  border: 1px solid #CDB59B;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}

[data-theme="tokyo"] .table-mat-center,
[data-theme="cyber"] .table-mat-center,
[data-theme="night"] .table-mat-center {
  background: #3B332B;
  border-color: #504439;
}

.table-cutlery-set,
.table-cup-item {
  font-size: 14px;
}

.dining-table-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.table-status-hint {
  font-size: 10.5px;
  color: #8C532B;
  font-weight: 700;
  opacity: 0.85;
}

[data-theme="tokyo"] .table-status-hint,
[data-theme="cyber"] .table-status-hint,
[data-theme="night"] .table-status-hint {
  color: #D4A373;
}

/* ==========================================================
   14. MODAL NHẬP TÊN, CÀI ĐẶT & BẢN CẬP NHẬT
   ========================================================== */
.name-prompt-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.name-prompt-icon {
  font-size: 44px;
}

.name-prompt-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-title);
}

.name-prompt-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.name-input-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shop-name-input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  border: 2px solid var(--border-card);
  border-radius: 14px;
  text-align: center;
  outline: none;
  color: var(--text-title);
  background: var(--bg-card-subtle, #FFF);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease, background-color 0.25s ease;
}

.shop-name-input:focus {
  border-color: var(--accent-berry);
}

.shop-name-input.is-invalid {
  border-color: #EF4444 !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.2) !important;
}

.shop-name-input.is-valid {
  border-color: #10B981 !important;
  background-color: #F0FDF4 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.2) !important;
}

/* Hiệu ứng rung Anime khi nhập sai hoặc nhấn xác nhận không hợp lệ */
.anime-shake {
  animation: nameShakeVibe 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes nameShakeVibe {
  0%, 100% {
    transform: translateX(0);
  }
  15%, 45%, 75% {
    transform: translateX(-7px) rotate(-1deg);
  }
  30%, 60%, 90% {
    transform: translateX(7px) rotate(1deg);
  }
}

/* Hộp thông báo trạng thái tên tiệm */
.name-warning-box {
  width: 100%;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.name-warning-box.visible {
  max-height: 80px;
  padding: 9px 14px;
  opacity: 1;
  margin-top: 4px;
}

.name-warning-box.warning-red {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid #F87171;
  color: #B91C1C;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

.name-warning-box.warning-green {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #34D399;
  color: #065F46;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

[data-theme="tokyo-night"] .name-warning-box.warning-red,
[data-theme="midnight-boba"] .name-warning-box.warning-red {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FCA5A5;
}

[data-theme="tokyo-night"] .name-warning-box.warning-green,
[data-theme="midnight-boba"] .name-warning-box.warning-green {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #6EE7B7;
}

[data-theme="tokyo-night"] .shop-name-input.is-invalid,
[data-theme="midnight-boba"] .shop-name-input.is-invalid {
  background-color: rgba(239, 68, 68, 0.15) !important;
}

[data-theme="tokyo-night"] .shop-name-input.is-valid,
[data-theme="midnight-boba"] .shop-name-input.is-valid {
  background-color: rgba(16, 185, 129, 0.15) !important;
}

.btn-modal-primary {
  width: 100%;
  background-color: var(--accent-berry);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-primary:hover:not(:disabled) {
  background-color: var(--accent-berry-hover);
  transform: translateY(-1px);
}

.btn-modal-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.45);
  transform: none !important;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-link {
  background: var(--bg-tray);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
}

.btn-danger-link {
  background: #FFEBEE;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #C62828;
  cursor: pointer;
}



/* Hiệu ứng cánh hoa anh đào */
#sakura-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 192, 203, 0.75), rgba(255, 182, 193, 0.35));
  border-radius: 60% 0 60% 60%;
  opacity: 0.28;
  filter: blur(0.3px);
  animation: fallSakura linear infinite;
  pointer-events: none;
}

@keyframes fallSakura {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(105vh) rotate(360deg); }
}

/* ==========================================================
   16. CHẾ ĐỘ MỞ CỬA BÁN MÌ CAY (OPEN COOKING MODE)
   CHUẨN 100% SCREENSHOT THỰC TẾ
   ========================================================== */
.header-left-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-pause-btn {
  width: 34px;
  height: 34px;
  background-color: var(--bg-card-subtle);
  border: 1.5px solid var(--border-btn);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background-color 0.15s;
}

.header-pause-btn:hover {
  background-color: var(--bg-card-subtle);
  transform: scale(1.05);
}

.shop-owner-avatar-box {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shop-owner-avatar-box:hover {
  transform: scale(1.08);
}

.owner-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.owner-crown-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 13px;
  background: var(--bg-card);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid #FFE082;
}

/* ==========================================================
   CHẾ ĐỘ MỞ CỬA BÁN MÌ CAY (OPEN COOKING WORKSTATION)
   Giao diện Cozy Anime chuẩn: Niêu đất nung, lửa sôi, 3 khay khách
   ========================================================== */

/* 0. Dải Bếp & Nhân Viên Làm Việc Thực Tế */
.active-staff-kitchen-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 8px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.kitchen-worker-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 3px 8px 3px 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  animation: workerBounce 2.5s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes workerBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

.worker-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tray);
  border: 1px solid var(--border-btn);
  flex-shrink: 0;
}

.worker-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
}

.worker-role {
  font-size: 9.5px;
  font-weight: 700;
  background: #EAF5EE;
  color: #227554;
  padding: 1px 5px;
  border-radius: 5px;
  line-height: 1.2;
}

/* Đơn Hàng Shipper Trực Tiếp Trong Ca Bán */
.open-mode-shipper-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%), var(--bg-card);
  border: 1.5px solid var(--accent-gold);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: shipperSlideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes shipperSlideDown {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.shipper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipper-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
}

.shipper-price {
  font-size: 14px;
  font-weight: 900;
  color: #258A6D;
}

.shipper-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.btn-shipper-handover {
  width: 100%;
  background: linear-gradient(135deg, #00A86B 0%, #00875A 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 168, 107, 0.3);
  transition: transform 0.15s;
}

.btn-shipper-handover:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* 1. Hàng 3 Khay Đơn Hàng Của Khách (3 Order Queue Slots) */
.order-queue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.order-slot-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  padding: 8px 6px;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-slot-card.is-matching-dish {
  border: 2px solid var(--accent-gold);
  background-color: var(--bg-card-subtle);
  box-shadow: 0 4px 16px rgba(229, 168, 59, 0.25);
  transform: translateY(-2px);
}

/* Đơn Đặc Biệt Trùng Với Bảng Món Đặc Biệt Chuẩn Bị Ngày */
.order-slot-card.is-special-combo-slot {
  border: 2px solid #F39C12;
  background: linear-gradient(180deg, rgba(243, 156, 18, 0.12) 0%, var(--bg-card) 100%);
  box-shadow: 0 4px 18px rgba(243, 156, 18, 0.35);
  animation: specialComboCardPulse 2.2s ease-in-out infinite;
}

.order-slot-card.is-special-combo-slot.is-matching-dish {
  border: 2.5px solid #E67E22;
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.5);
  transform: translateY(-3px);
}

@keyframes specialComboCardPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
    border-color: #F39C12;
  }
  50% {
    box-shadow: 0 6px 22px rgba(231, 76, 60, 0.45);
    border-color: #E74C3C;
  }
}

.special-combo-order-badge {
  display: inline-block;
  background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
  color: #FFF;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(211, 84, 0, 0.35);
  margin-bottom: 2px;
}

.btn-serve-slot.is-special-combo-btn {
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%) !important;
  color: #FFF !important;
  font-weight: 800 !important;
  border: 1px solid #D35400 !important;
  box-shadow: 0 3px 10px rgba(230, 126, 34, 0.45) !important;
}

.btn-serve-slot.is-special-combo-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.order-slot-card.slot-empty {
  border: 1.5px dashed var(--border-card);
  background-color: var(--bg-tray);
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.empty-slot-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.order-customer-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.order-cust-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.order-cust-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tray);
  border: 2px solid var(--border-card);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
}

.order-cust-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.order-cust-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-cust-mood {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.order-speech-bubble {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 6px 7px;
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.35;
  margin: 5px 0;
  flex: 1;
}

.order-speech-bubble strong {
  color: var(--text-title);
  font-weight: 800;
}

.dish-highlight-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-berry);
}

.order-patience-track {
  width: 100%;
  height: 5px;
  background-color: var(--bg-tray);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.order-patience-fill {
  height: 100%;
  background-color: #258A6D;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.order-patience-fill.patience-warning {
  background-color: #E5A83B;
}

.order-patience-fill.patience-danger {
  background-color: #D32F2F;
}

.order-actions-row {
  display: flex;
  gap: 4px;
}

.btn-serve-slot {
  flex: 1.2;
  background-color: var(--accent-berry);
  color: #FFF;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(196, 69, 105, 0.25);
}

.btn-serve-slot:hover {
  background-color: var(--accent-berry-hover);
  transform: scale(1.02);
}

.btn-serve-slot.is-matching {
  background: linear-gradient(135deg, #258A6D 0%, #1A6B53 100%);
  box-shadow: 0 3px 10px rgba(37, 138, 109, 0.5);
  animation: servePulse 1.2s infinite alternate ease-in-out;
}

@keyframes servePulse {
  0% { transform: scale(1); box-shadow: 0 3px 10px rgba(37, 138, 109, 0.5); }
  100% { transform: scale(1.05); box-shadow: 0 5px 16px rgba(37, 138, 109, 0.7); }
}

.btn-reject-slot {
  flex: 0.9;
  background-color: var(--bg-card-subtle);
  color: var(--text-title);
  border: 1px solid var(--border-btn);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-reject-slot:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* 2. Khu Vực Niêu Đất Nấu Mì Cay (Authentic Clay Pot Workstation) */
.pot-workstation-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.pot-visual-wrap {
  width: 105px;
  height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* Hơi nước bốc lên xì xèo */
.pot-steam-particles {
  position: absolute;
  top: 0px;
  display: flex;
  gap: 12px;
  font-size: 16px;
  z-index: 5;
  opacity: 0.8;
  animation: steamDrift 1.6s infinite alternate ease-in-out;
}

@keyframes steamDrift {
  0% { transform: translateY(0) scale(0.9); opacity: 0.5; }
  100% { transform: translateY(-6px) scale(1.1); opacity: 0.95; }
}

/* Niêu đất nung phong cách Hàn Quốc / Tokyo */
.korean-clay-pot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.korean-clay-pot.size-m {
  width: 82px;
  height: 66px;
}

.korean-clay-pot.size-l {
  width: 94px;
  height: 74px;
}

.pot-handle {
  position: absolute;
  top: 10px;
  width: 10px;
  height: 15px;
  background: #3E2723;
  border: 2px solid #5D4037;
  border-radius: 5px;
  z-index: 1;
}

.pot-handle.handle-left {
  left: -6px;
}

.pot-handle.handle-right {
  right: -6px;
}

.pot-rim {
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, #5D4037 0%, #4E342E 100%);
  border: 2px solid #6D4C41;
  border-radius: 50%;
  position: relative;
  z-index: 4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.pot-cauldron {
  width: 100%;
  flex: 1;
  margin-top: -6px;
  background: linear-gradient(180deg, #3E2723 0%, #24130A 100%);
  border: 2px solid #5D4037;
  border-top: none;
  border-radius: 0 0 22px 22px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pot-soup-lake {
  width: 100%;
  height: 15%;
  background: linear-gradient(180deg, #FAD390 0%, #E58E26 100%);
  transition: height 0.35s ease, background 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}

.pot-noodles-layer {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  animation: noodleBob 2s infinite alternate ease-in-out;
}

@keyframes noodleBob {
  0% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-2px) scale(1.02); }
}

.pot-toppings-layer {
  display: flex;
  gap: 1px;
  font-size: 14px;
  margin-top: -2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.soup-bubbles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.soup-bubbles-layer .bubble {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  animation: bubbleRise 1.4s infinite ease-in;
}

.soup-bubbles-layer .b1 { left: 20%; bottom: 2px; animation-delay: 0.1s; }
.soup-bubbles-layer .b2 { left: 50%; bottom: 4px; animation-delay: 0.6s; }
.soup-bubbles-layer .b3 { left: 75%; bottom: 2px; animation-delay: 1.1s; }

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0.8; }
  100% { transform: translateY(-16px) scale(1.1); opacity: 0; }
}

.pot-guide-level-line {
  position: absolute;
  top: 14px;
  left: 8%;
  width: 84%;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.45);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.pot-guide-level-line .level-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: -12px;
  font-weight: 700;
}

.pot-wooden-trivet {
  width: 90%;
  height: 8px;
  background: linear-gradient(180deg, #8D5B4C 0%, #6E4032 100%);
  border: 1.5px solid #552B1E;
  border-radius: var(--radius-pill);
  margin-top: 2px;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pot-gas-burner {
  display: flex;
  gap: 4px;
  font-size: 13px;
  margin-top: -3px;
  opacity: 0.85;
  animation: flameFlicker 0.6s infinite alternate ease-in-out;
}

@keyframes flameFlicker {
  0% { transform: scale(0.9) translateY(0); opacity: 0.7; }
  100% { transform: scale(1.08) translateY(-1px); opacity: 1; }
}

/* Thông tin trạng thái niêu đất bên phải */
.pot-status-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pot-badge-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pot-cooking-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #EAF5EE;
  color: #227554;
  border: 1px solid #C8E6C9;
}

.pot-spicy-indicator {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #FFF0F2;
  color: #D32F2F;
  border: 1px solid #FFCDD2;
}

.pot-title-status {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.25;
  margin-top: 2px;
}

.pot-sub-status {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.pot-summary-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 2px 0;
}

.pot-pill-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-btn);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-title);
}

.pot-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-clear-pot {
  background: transparent;
  border: 1.5px solid var(--border-btn);
  color: var(--text-hint);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear-pot:hover {
  background: #FFEBEE;
  color: #C62828;
  border-color: #EF9A9A;
}

.pot-drink-preview {
  font-size: 12px;
  font-weight: 800;
  color: #7B1FA2;
}

/* Các Bước Lựa Chọn Nấu Mì Cay */
.cooking-steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-guide-pill {
  background-color: #EAF5EE;
  color: #227554;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid #C8E6C9;
}

.cooking-step-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.step-options-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-step-pill {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-btn);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-step-pill.active {
  background-color: var(--text-title);
  color: #FFFFFF;
  border-color: var(--text-title);
}

.spicy-levels-row {
  display: flex;
  gap: 5px;
}

.btn-spicy-level {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-btn);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-spicy-level:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: #D32F2F;
}

.btn-spicy-level.active {
  background: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
  color: #FFFFFF;
  border-color: #B71C1C;
  box-shadow: 0 3px 8px rgba(211, 47, 47, 0.45);
  transform: scale(1.12);
}

.btn-spicy-level.level-0.active {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  border-color: #1B5E20;
  box-shadow: 0 3px 8px rgba(46, 125, 50, 0.4);
}

.btn-spicy-level.level-1.active, .btn-spicy-level.level-2.active {
  background: linear-gradient(135deg, #FFA726 0%, #F57C00 100%);
  border-color: #E65100;
  box-shadow: 0 3px 8px rgba(245, 124, 0, 0.4);
}

.btn-spicy-level.level-5.active, .btn-spicy-level.level-6.active {
  background: linear-gradient(135deg, #E91E63 0%, #880E4F 100%);
  border-color: #4A148C;
  box-shadow: 0 3px 8px rgba(136, 14, 79, 0.5);
}

.btn-spicy-level.level-7.active {
  background: linear-gradient(135deg, #B71C1C 0%, #3E0000 100%);
  border-color: #260000;
  box-shadow: 0 0 12px rgba(183, 28, 28, 0.7);
  animation: fieryPulse 0.9s infinite alternate;
}

@keyframes fieryPulse {
  0% { transform: scale(1.12); box-shadow: 0 0 10px rgba(183, 28, 28, 0.5); }
  100% { transform: scale(1.22); box-shadow: 0 0 18px rgba(255, 0, 0, 0.85); }
}

.step-ingredients-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ingredient-badge-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 66px;
  box-shadow: var(--shadow-card);
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ingredient-badge-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-berry);
  box-shadow: 0 6px 14px rgba(70, 45, 20, 0.12);
}

.ingredient-badge-card.selected {
  border-color: var(--accent-berry);
  background: linear-gradient(180deg, #FFF9FA 0%, #FFF0F3 100%);
  box-shadow: 0 0 0 2px var(--accent-berry), 0 4px 10px rgba(196, 69, 105, 0.25);
  transform: translateY(-2px);
}

.ingredient-stock-bubble {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--text-title);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ingredient-icon {
  font-size: 26px;
  line-height: 1;
}

.ingredient-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-title);
  margin-top: 3px;
  white-space: nowrap;
}

/* ==========================================================
   14. HỆ THỐNG CUSTOM DIALOG & MODAL COZY ANIME (GAMEUIMODAL)
   Khắc phục triệt để lỗi nút HTML mặc định, đồng bộ 100% phong cách
   ========================================================== */
.custom-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 15, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.custom-dialog-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.custom-dialog-box {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 24px;
  padding: 26px 22px 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--text-title);
}

.anime-bounce-in {
  animation: dialogBounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dialogBounceIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.custom-dialog-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.custom-dialog-icon {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  animation: cuteBob 2s infinite alternate ease-in-out;
}

.custom-dialog-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.2px;
}

.custom-dialog-body {
  margin: 12px 0 22px;
  width: 100%;
}

.custom-dialog-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 600;
}

.custom-dialog-footer {
  width: 100%;
  display: flex;
}

.dual-btn-footer {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-dialog-confirm {
  flex: 1;
  background: linear-gradient(135deg, #D44D72 0%, #B83B5E 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 59, 94, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-dialog-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 59, 94, 0.45);
  filter: brightness(1.05);
}

.btn-dialog-confirm:active {
  transform: translateY(1px);
}

.btn-dialog-cancel {
  flex: 1;
  background: var(--bg-card-subtle);
  color: var(--text-title);
  border: 1.5px solid var(--border-btn);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-dialog-cancel:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-card);
  transform: translateY(-2px);
}

.btn-dialog-cancel:active {
  transform: translateY(1px);
}

/* ==========================================================
   15. HỆ THỐNG TOAST & FLOATING FX COZY
   ========================================================== */
.game-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  top: auto;
  transform: none;
  z-index: 9999999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none !important;
  max-width: 90vw;
  width: 360px;
}

@media (max-width: 768px) {
  .game-toast-container {
    /* Đưa thông báo lên sát đỉnh trên mobile (kiểu Dynamic Island / Top Banner) để không che niêu nấu & nút bấm bên dưới */
    top: max(10px, env(safe-area-inset-top, 10px));
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 92%;
    max-width: 380px;
    flex-direction: column;
    gap: 6px;
    pointer-events: none !important;
  }
}

.game-toast {
  pointer-events: none !important; /* Tuyệt đối không chặn click/chạm vào các nút game bên dưới */
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-title);
  min-height: 52px;
}

@media (max-width: 768px) {
  .game-toast {
    padding: 8px 14px;
    border-radius: 999px; /* Dạng capsule pill bo tròn gọn gàng như Dynamic Island */
    min-height: 40px;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
    border-width: 1.5px;
    background: rgba(255, 255, 255, 0.96);
  }

  [data-theme="tokyo"] .game-toast,
  [data-theme="cyber"] .game-toast,
  [data-theme="night"] .game-toast {
    background: rgba(28, 28, 38, 0.96);
  }

  .game-toast .toast-icon-wrap {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .game-toast .toast-msg-text {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

  .anime-toast-slide-in {
    animation: toastSlideDownIn 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  .anime-toast-slide-out {
    animation: toastSlideUpOut 0.24s forwards ease !important;
  }
}

.toast-icon-wrap {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
}

.toast-msg-text {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.4;
  flex: 1;
  word-break: break-word;
}

.toast-success {
  border-left: 5px solid #10B981;
}
.toast-success .toast-icon-wrap {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

.toast-warning {
  border-left: 5px solid #F59E0B;
}
.toast-warning .toast-icon-wrap {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}

.toast-error {
  border-left: 5px solid #EF4444;
}
.toast-error .toast-icon-wrap {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

.toast-info {
  border-left: 5px solid #0EA5E9;
}
.toast-info .toast-icon-wrap {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.35);
}

.toast-coin {
  border-left: 5px solid #F59E0B;
}
.toast-coin .toast-icon-wrap {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.anime-toast-slide-in {
  animation: toastSlideUpIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anime-toast-slide-out {
  animation: toastSlideOutDown 0.3s forwards ease;
}

@keyframes toastSlideUpIn {
  0% { transform: translateY(24px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOutDown {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(20px) scale(0.95); opacity: 0; }
}

@keyframes toastSlideDownIn {
  0% { transform: translateY(-24px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastSlideUpOut {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-20px) scale(0.92); opacity: 0; }
}

.floating-score-fx {
  position: fixed;
  font-size: 15px;
  font-weight: 900;
  pointer-events: none;
  z-index: 999999;
  animation: floatUpFx 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.fx-green {
  color: #258A6D;
}

.fx-red {
  color: #C44569;
}

@keyframes floatUpFx {
  0% { transform: translateY(0) scale(0.9); opacity: 1; }
  100% { transform: translateY(-38px) scale(1.15); opacity: 0; }
}

/* ==========================================================
   16. MENU ACTION BUTTONS (MUA, BỎ KHỎI MENU)
   ========================================================== */
.btn-menu-action {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-btn);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-menu-action:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-card);
}

.btn-menu-action.btn-buy-lock {
  background: linear-gradient(135deg, rgba(196, 56, 94, 0.12) 0%, rgba(196, 56, 94, 0.18) 100%);
  border-color: var(--accent-berry);
  color: var(--accent-berry);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  min-width: 65px;
}

.btn-menu-action.btn-buy-lock:hover {
  background: var(--accent-berry);
  color: #FFF;
}

.btn-price-top {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.btn-action-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================
   17. CARDS NÂNG CẤP & NHÂN VIÊN
   ========================================================== */
.upgrade-card, .staff-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  transition: transform 0.15s;
}

.upgrade-card:hover, .staff-card:hover {
  transform: translateY(-1px);
}

.upgrade-card-info, .staff-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.upgrade-card-title, .staff-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.upgrade-card-desc, .staff-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================
   18. ĐƠN HÀNG ONLINE (SHIPPER)
   ========================================================== */
.online-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #EBF7F2;
  border: 1px solid #C4EBDD;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1A6B53;
}

.online-order-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.online-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.online-order-items {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 6px 10px;
  border-radius: 8px;
}

.btn-pack-order {
  background-color: var(--accent-berry);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  align-self: flex-end;
  margin-top: 4px;
}

.btn-pack-order:hover {
  background-color: var(--accent-berry-hover);
  transform: translateY(-1px);
}

/* ==========================================================
   19. BỘ SƯU TẬP (COLLECTION TAB)
   ========================================================== */
.customers-collection-grid, .badges-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .customers-collection-grid, .badges-collection-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.collection-progress-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.collection-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-title);
}

.collection-progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-tray);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.collection-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.collection-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Card trạng thái ĐÃ MỞ KHÓA */
.collection-card.is-unlocked-card {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(254, 243, 199, 0.15) 100%);
}

.collection-card.is-vip-card {
  border: 2px solid #F59E0B;
  background: linear-gradient(180deg, #FFFDF8 0%, #FEF3C7 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

/* Card trạng thái KHÓA (CHƯA GẶP) */
.collection-card.is-locked-card {
  background-color: var(--bg-tray);
  border: 1.5px dashed var(--border-card);
  opacity: 0.85;
}

.collection-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-tray);
  border: 2px solid var(--border-card);
  margin-bottom: 6px;
  transition: filter 0.2s ease;
}

.collection-avatar.is-locked-avatar {
  filter: grayscale(1) opacity(0.35);
  background-color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #64748B;
  border-style: dashed;
}

.collection-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.collection-bio {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}

.collection-sub-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
}

.collection-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 6px;
}

.collection-status-pill.pill-vip {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #F59E0B;
}

.collection-status-pill.pill-met {
  background: #EAF5EE;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.collection-status-pill.pill-locked {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

/* ==========================================================
   HUY HIỆU (BADGES)
   ========================================================== */
.badge-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s;
  position: relative;
}

.badge-card:hover {
  transform: translateY(-2px);
}

.badge-card.is-badge-unlocked {
  border: 2px solid #F59E0B;
  background: linear-gradient(145deg, #FFFDF8 0%, #FEF3C7 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.badge-card.is-badge-locked {
  background-color: var(--bg-tray);
  border: 1.5px dashed var(--border-card);
  opacity: 0.82;
}

.badge-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 6px;
  background: var(--bg-tray);
  border: 1.5px solid var(--border-card);
}

.badge-card.is-badge-unlocked .badge-icon-wrap {
  background: #FFF;
  border-color: #F59E0B;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  animation: anime-subtle-bounce 2s infinite ease-in-out;
}

.badge-card.is-badge-locked .badge-icon-wrap {
  filter: grayscale(1);
  opacity: 0.55;
}

.badge-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 2px;
}

.badge-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}

.badge-progress-wrap {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.badge-progress-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.badge-progress-fill {
  height: 100%;
  background: #F59E0B;
  border-radius: 4px;
}

.badge-progress-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.badge-tag-achieved {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.badge-tag-locked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

/* ==========================================================
   20. TỔNG KẾT & ĐÁNH GIÁ (SUMMARY TAB)
   ========================================================== */
.summary-stats-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-num {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-title);
}

.reviews-section-block {
  margin-top: 16px;
}

.review-item-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==========================================================
   8. REVIEW CARDS & INTERACTIVE CUSTOMER CONVERSATION
   ========================================================== */
.reviews-rating-header {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.rating-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rating-big-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
}

.rating-stars-large {
  font-size: 16px;
  color: #E5A83B;
  letter-spacing: 2px;
  margin-top: 3px;
}

.rating-total-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.rating-impact-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.rating-impact-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.rating-impact-desc {
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.35;
}

.review-item-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease;
}

.review-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-customer-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-cust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #E5C3A6;
}

.review-customer-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.review-date-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.review-stars-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-stars {
  font-size: 14px;
  color: #E5A83B;
  letter-spacing: 1px;
}

.review-star-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.review-star-tag.star-5 { background: #DEF7EC; color: #03543F; }
.review-star-tag.star-4 { background: #EDF8F4; color: #258A6D; }
.review-star-tag.star-3 { background: #FEF08A; color: #854D0E; }
.review-star-tag.star-2 { background: #FDE8E8; color: #9B1C1C; }
.review-star-tag.star-1 { background: #FDE8E8; color: #9B1C1C; font-weight: 900; }

.review-comment {
  font-size: 12.5px;
  color: var(--text-title);
  font-style: italic;
  line-height: 1.45;
  margin: 2px 0;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
}

/* KHỐI PHẢN HỒI CỦA CHỦ TIỆM */
.owner-reply-bubble {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-left: 3px solid #E67E22;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 4px;
}

.owner-reply-title {
  font-weight: 800;
  color: #E67E22;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* KHỐI KHÁCH HỒI ĐÁP LẠI */
.customer-comeback-bubble {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-left: 3px solid #2ECC71;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 4px;
  animation: fadeInComeback 0.3s ease;
}

@keyframes fadeInComeback {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.customer-comeback-title {
  font-weight: 800;
  color: #2ECC71;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FORM NHẬP PHẢN HỒI */
.review-reply-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.reply-input-row {
  display: flex;
  gap: 6px;
}

.review-reply-input {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  background: var(--bg-card-subtle);
  color: var(--text-title);
  transition: all 0.2s;
}

.review-reply-input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-card);
  color: var(--text-title);
  box-shadow: 0 0 0 2px rgba(229, 168, 59, 0.2);
}

.btn-send-reply {
  background: #258A6D;
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-send-reply:hover {
  background: #1D6F57;
  transform: scale(1.03);
}

.reply-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.reply-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.reply-chip:hover {
  background: var(--bg-card);
  border-color: #E67E22;
  color: #E67E22;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(230, 126, 34, 0.25);
}

.reply-chip:active {
  transform: scale(0.96);
}

.reply-input-pulse {
  animation: replyInputFlash 0.35s ease-out;
}

@keyframes replyInputFlash {
  0% {
    background-color: #FFF8E7;
    border-color: #E67E22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
  }
  100% {
    background-color: #FFF;
    border-color: var(--border-btn);
    box-shadow: none;
  }
}

/* ==========================================================
   DINING LIVE PREVIEW BAR (PREP MODE)
   ========================================================== */
.dining-live-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 8px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dining-live-preview-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.15);
}

.dining-live-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.dining-live-pulse-dot {
  font-size: 11px;
  animation: livePulse 1.4s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.dining-live-title {
  font-weight: 800;
  color: var(--text-title);
}

.dining-live-text {
  color: var(--accent-berry);
  font-weight: 700;
  font-size: 12px;
}

.btn-dining-peek-action {
  background: var(--bg-card);
  border: 1.5px solid var(--border-btn);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-title);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ==========================================================
   OPEN MODE LIVE QUICKBAR & BUFFS INDICATOR
   ========================================================== */
.open-mode-stage-quickbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-open-view-dining {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.btn-open-view-dining:hover {
  background: var(--bg-card-subtle);
  border-color: var(--accent-berry);
  transform: scale(1.02);
}

.dining-badge-count {
  background: var(--accent-berry);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
}

.active-buffs-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.buff-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  background: #F4ECE1;
  color: #5C3D2E;
  border: 1px solid #DFCEBA;
}

.buff-tag.buff-chili {
  background: #FDE8E8;
  color: #9B1C1C;
  border-color: #F8B4B4;
}

.buff-tag.buff-ac {
  background: #E1EFFE;
  color: #1E429F;
  border-color: #A4CAFE;
}

.buff-tag.buff-decor {
  background: #FEF08A;
  color: #854D0E;
  border-color: #FDE047;
}

/* ==========================================================
   OWNER PROFILE MODAL
   ========================================================== */
.modal-owner-dialog {
  max-width: 440px;
  width: 92%;
}

.owner-profile-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0;
}

.owner-current-badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(229, 168, 59, 0.2);
}

.owner-current-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  flex-shrink: 0;
  background: var(--bg-card);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.owner-dialog-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.owner-crown-float {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.owner-dialog-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-dialog-meta h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0;
}

.owner-rank-tag {
  font-size: 11px;
  font-weight: 800;
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.owner-dialog-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.owner-avatar-selector-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owner-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
}

.owner-avatar-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 215px;
  overflow-y: auto;
  padding: 4px;
}

.owner-avatar-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-tray);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.owner-avatar-opt img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-card);
}

.owner-avatar-opt span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.owner-avatar-opt:hover {
  background: var(--bg-card-subtle);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.owner-avatar-opt.active {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(229, 168, 59, 0.3);
}

.owner-avatar-opt.active span {
  color: var(--accent-gold);
  font-weight: 800;
}

.owner-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-card-subtle);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--border-card);
}

.owner-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.owner-stat-box .stat-number {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-title);
}

.owner-stat-box .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================
   LIVING DINING ROOM ENHANCEMENTS
   ========================================================== */
/* BÀN ĂN TRỐNG (IS-EMPTY) */
.dining-table-box.is-empty {
  border-style: solid;
}
.dining-table-box.is-empty:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(140, 67, 26, 0.16);
  border-color: #B27340;
}

/* BÀN ĂN BẨN CẦN DỌN (IS-DIRTY) */
.dining-table-box.is-dirty {
  background: linear-gradient(150deg, #FFF6EC 0%, #FAECE0 100%);
  border: 2px dashed #D97706;
}

[data-theme="tokyo"] .dining-table-box.is-dirty,
[data-theme="cyber"] .dining-table-box.is-dirty,
[data-theme="night"] .dining-table-box.is-dirty {
  background: linear-gradient(150deg, #2A2018 0%, #1C1612 100%);
  border-color: #B45309;
}

.dirty-surface {
  background: linear-gradient(180deg, #F3E5D4 0%, #E7D4BF 100%) !important;
  border-color: #CCA57E !important;
}

.table-dirty-pot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding: 4px 0;
}

.dirty-empty-pot {
  font-size: 26px;
  filter: grayscale(20%);
}

.table-coin-pile {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
  animation: coinFloatAnim 1.4s infinite alternate ease-in-out;
}

@keyframes coinFloatAnim {
  0% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-3px) scale(1.08); }
}

.btn-clean-table.pulse-clean {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: 1.5px solid #34D399;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  animation: cleanBtnGlow 1.8s infinite alternate ease-in-out;
  transition: transform 0.15s ease;
  width: 100%;
}

.btn-clean-table.pulse-clean:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

@keyframes cleanBtnGlow {
  0% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
  100% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6); }
}

/* BÀN ĐANG ĂN (IS-EATING) */
.dining-table-box.is-eating {
  border: 2px solid #F59E0B;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.22);
  cursor: pointer;
}

.dining-table-box.is-eating:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32);
}

.dining-eating-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.dining-customer-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.dining-customer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #D97706;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: #FFF;
}

.dining-customer-name {
  font-size: 10.5px;
  font-weight: 800;
  color: #3B180E;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="tokyo"] .dining-customer-name,
[data-theme="cyber"] .dining-customer-name,
[data-theme="night"] .dining-customer-name {
  color: #F6D6BA;
}

.dining-pot-bubble-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.dining-clay-pot-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pot-dish-icon {
  font-size: 24px;
  animation: potSteamBob 1.2s infinite ease-in-out;
}

.pot-steam-icon {
  position: absolute;
  top: -12px;
  font-size: 13px;
  animation: steamRiseSoft 1.5s infinite ease-out;
  opacity: 0.85;
}

@keyframes steamRiseSoft {
  0% { transform: translateY(2px) scale(0.85); opacity: 0; }
  50% { opacity: 0.9; }
  100% { transform: translateY(-7px) scale(1.15); opacity: 0; }
}

@keyframes potSteamBob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.customer-thought-bubble {
  background: #FFFFFF;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: #92400E;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  word-break: break-word;
}

[data-theme="tokyo"] .customer-thought-bubble,
[data-theme="cyber"] .customer-thought-bubble,
[data-theme="night"] .customer-thought-bubble {
  background: #2D2722;
  color: #FCD34D;
  border-color: #D97706;
}

.dining-dish-title {
  font-size: 10px;
  font-weight: 800;
  color: #C2410C;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 4px;
  text-align: center;
}

.table-patience-bar {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.table-patience-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  transition: width 0.3s ease;
  border-radius: 6px;
}

/* EMPTY ORDER QUEUE SLOT ENHANCEMENTS */
.order-slot-card.slot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #D1D5DB;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(249, 250, 251, 0.7) 100%);
  border-radius: 14px;
  min-height: 140px;
  padding: 10px;
}

[data-theme="tokyo"] .order-slot-card.slot-empty,
[data-theme="cyber"] .order-slot-card.slot-empty,
[data-theme="night"] .order-slot-card.slot-empty {
  background: rgba(30, 30, 42, 0.5);
  border-color: #4A4A60;
}

.empty-slot-coaster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.empty-slot-chair-icon {
  font-size: 26px;
  opacity: 0.75;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: chairGentleBob 2.5s infinite ease-in-out;
}

@keyframes chairGentleBob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.empty-slot-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-title);
  opacity: 0.85;
}

.empty-slot-sub {
  font-size: 10px;
  color: var(--text-sub);
  opacity: 0.75;
}

/* ==========================================================
   SÂN KHẤU MẶT TIỀN & KHÔNG KHÍ QUÁN MÌ CAY SỐNG ĐỘNG (PREP & OPEN)
   ========================================================== */
.bustling-prep-stage {
  background: linear-gradient(180deg, #6E3B20 0%, #4D2612 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(77, 38, 18, 0.18);
  margin-bottom: 14px;
  border: 2px solid var(--border-card);
  position: relative;
}

.prep-stage-roof {
  background: linear-gradient(180deg, #C0432E 0%, #9B2E1C 100%);
  padding: 8px 12px;
  border-bottom: 2.5px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.roof-lantern-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.animated-lantern {
  font-size: 24px;
  display: inline-block;
  transform-origin: top center;
  animation: swingLantern 2.6s infinite ease-in-out alternate;
}

.animated-lantern.swing-right {
  animation-delay: -1.3s;
}

@keyframes swingLantern {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

.roof-shop-badge {
  background: #2A1009;
  color: #FFDF79;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #F5C542;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.prep-crowd-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 197, 66, 0.4);
}

.crowd-fire-dot {
  font-size: 13px;
  animation: fireFlicker 1s infinite alternate;
}

@keyframes fireFlicker {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.2); filter: brightness(1.3); }
}

.crowd-status-label {
  font-size: 11px;
  font-weight: 700;
  color: #FFF2D6;
}

/* Vỉa hè đường phố & Dòng khách vãng lai */
.prep-street-sidewalk {
  height: 115px;
  background: linear-gradient(180deg, #D4C5B3 0%, #B8A590 70%, #9C8974 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #735D48;
}

.street-environment-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #3B180E;
  border-bottom: 3px solid #8C431A;
}

.street-lantern-post {
  font-size: 20px;
  filter: drop-shadow(0 0 6px #F5C542);
}

.shop-sliding-door {
  background: #240E08;
  border: 2px solid #B87333;
  border-radius: 6px 6px 0 0;
  padding: 4px 14px;
}

.door-sign {
  font-size: 11px;
  font-weight: 800;
  color: #FFDF79;
}

.pedestrians-walking-track {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  height: 67px;
  pointer-events: none;
}

.pedestrian-walker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s linear;
}

.pedestrian-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  animation: walkCycle 0.5s infinite alternate ease-in-out;
  background: var(--bg-card);
}

@keyframes walkCycle {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-4px) rotate(3deg); }
}

.pedestrian-bubble {
  position: absolute;
  bottom: 40px;
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--text-title);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--border-card);
  animation: bubblePop 0.3s ease-out;
}

.pedestrian-bubble::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #FFF transparent;
}

@keyframes bubblePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Phòng ăn gỗ sồi thu nhỏ trong Prep Mode - Tối ưu không gian & Bố cục gọn gàng */
.prep-dining-preview-strip {
  background: var(--bg-card);
  border-top: 1.5px solid var(--border-card);
  padding: 8px 12px;
}

.strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.strip-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-title);
}

.strip-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
}

.mini-dining-tables-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  transition: all 0.15s ease;
  min-height: 36px;
}

.mini-table-head {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-table-icon {
  font-size: 16px;
  line-height: 1;
}

.mini-table-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-title);
}

.mini-table-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.mini-table-badge.badge-ready {
  background: #EBF7EE;
  color: #1E8449;
}

.mini-table-badge.badge-dirty {
  background: #FDF2E9;
  color: #D35400;
}

.mini-table-badge.badge-eating {
  background: #FEF9E7;
  color: #B7950B;
}

/* ==========================================================
   SÂN KHẤU PHÒNG ĂN TRỰC TIẾP TRONG CHẾ ĐỘ MỞ BÁN (OPEN MODE)
   ========================================================== */
.open-live-dining-stage {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.open-stage-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.stage-crowd-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #99281C 0%, #D35400 50%, #99281C 100%);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(153, 40, 28, 0.25);
}

.stage-crowd-headline.is-crowded {
  background: linear-gradient(90deg, #99281C 0%, #C0392B 50%, #99281C 100%);
}

.stage-crowd-headline.is-deserted {
  background: linear-gradient(90deg, #7F8C8D 0%, #5D6D7E 100%);
}

.crowd-headline-text {
  font-size: 12px;
  font-weight: 800;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.lantern-live {
  font-size: 16px;
}

.open-dining-tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 540px) {
  .open-dining-tables-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

/* ==========================================================
   HỆ THỐNG ĐIỀU HÒA DAIKIN TREO TƯỜNG (LIVING DAIKIN AC SYSTEM)
   ========================================================== */
.daikin-ac-stage-container {
  margin-bottom: 12px;
  position: relative;
  z-index: 5;
}

.daikin-wall-unit {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 80%, #E4E7EB 100%);
  border: 1.5px solid #D1D8E0;
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.12), inset 0 1px 0 #FFF;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: all 0.25s ease;
  user-select: none;
}

.daikin-wall-unit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 160, 233, 0.25), inset 0 1px 0 #FFF;
  border-color: #00A0E9;
}

.daikin-wall-unit:active {
  transform: translateY(1px);
}

.daikin-front-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daikin-brand-badge {
  display: flex;
  flex-direction: column;
}

.daikin-brand-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #0097E6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 1px 1px rgba(0, 151, 230, 0.2);
}

.daikin-brand-tech {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #718093;
  margin-top: -1px;
}

.daikin-center-grille {
  flex: 1;
  height: 6px;
  background: repeating-linear-gradient(90deg, #E2E8F0, #E2E8F0 4px, transparent 4px, transparent 8px);
  border-radius: 3px;
  opacity: 0.7;
}

.daikin-screen-led {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1E272E;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  border: 1px solid #2F3640;
}

.daikin-led-num {
  font-size: 13px;
  font-weight: 900;
  font-family: "Courier New", Courier, monospace;
  color: #00FFCC;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.7);
  letter-spacing: 0.5px;
}

.daikin-led-snowflake {
  font-size: 11px;
  animation: daikinSpin 4s linear infinite;
  display: inline-block;
}

@keyframes daikinSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.daikin-led-pills {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ac-led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}

.ac-led-dot.led-green {
  background: #2ECC71;
  box-shadow: 0 0 6px #2ECC71;
  animation: ledBlink 1.8s ease-in-out infinite;
}

.ac-led-dot.led-blue {
  background: #00A0E9;
  box-shadow: 0 0 6px #00A0E9;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Cánh louver vẫy gió */
.daikin-louver-flap {
  height: 5px;
  background: linear-gradient(180deg, #BDC3C7 0%, #7F8C8D 100%);
  border-radius: 3px;
  margin-top: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform-origin: top center;
  animation: daikinSwing 2.4s ease-in-out infinite alternate;
}

@keyframes daikinSwing {
  0% {
    transform: rotateX(0deg) scaleY(1);
    background: linear-gradient(180deg, #BDC3C7 0%, #7F8C8D 100%);
  }
  100% {
    transform: rotateX(45deg) scaleY(0.7);
    background: linear-gradient(180deg, #A4B0BE 0%, #576574 100%);
  }
}

/* Rèm gió lạnh thổi xuống */
.daikin-air-curtain {
  position: relative;
  height: 28px;
  overflow: hidden;
  margin-top: 2px;
  pointer-events: none;
}

.air-breeze-stream {
  position: absolute;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.35) 0%, rgba(0, 229, 255, 0.08) 70%, transparent 100%);
  border-radius: 0 0 8px 8px;
  animation: breezeFlow 1.6s ease-in-out infinite;
  filter: blur(1px);
}

.air-breeze-stream.stream-left { left: 10%; animation-delay: 0s; }
.air-breeze-stream.stream-center { left: 36%; animation-delay: 0.4s; }
.air-breeze-stream.stream-right { left: 62%; animation-delay: 0.8s; }

@keyframes breezeFlow {
  0% {
    opacity: 0.2;
    transform: scaleY(0.4) translateY(-4px);
  }
  50% {
    opacity: 0.85;
    transform: scaleY(1) translateY(0);
  }
  100% {
    opacity: 0.2;
    transform: scaleY(0.6) translateY(3px);
  }
}

.air-frost-particles {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 10px;
}

.frost-snowflake {
  animation: frostFall 2s ease-in-out infinite;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
}

.frost-snowflake.f1 { animation-delay: 0s; }
.frost-snowflake.f2 { animation-delay: 0.5s; font-size: 11px; }
.frost-snowflake.f3 { animation-delay: 1.1s; }
.frost-snowflake.f4 { animation-delay: 1.6s; font-size: 9px; }

@keyframes frostFall {
  0% {
    transform: translateY(-8px) scale(0.6);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(2px) scale(1);
  }
  100% {
    transform: translateY(14px) scale(0.8);
    opacity: 0;
  }
}

.daikin-cooling-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #0077B6;
  background: rgba(0, 180, 216, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(0, 180, 216, 0.3);
}

.btn-tap-turbo-hint {
  background: linear-gradient(135deg, #00A0E9 0%, #0077B6 100%);
  color: #FFF;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 119, 182, 0.35);
  animation: pulseHint 1.8s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Turbo boost animation */
.daikin-wall-unit.is-turbo-blasting {
  border-color: #00E5FF !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.7), inset 0 0 10px rgba(0, 229, 255, 0.3) !important;
  animation: turboShake 0.4s ease-in-out infinite;
}

@keyframes turboShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

.daikin-wall-unit.is-turbo-blasting .daikin-air-curtain {
  height: 42px;
}

.daikin-wall-unit.is-turbo-blasting .air-breeze-stream {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.7) 0%, rgba(0, 229, 255, 0.25) 80%, transparent 100%);
}

/* THANH ĐIỀU HÒA DAIKIN Ở BẾP NẤU SIÊU TỐC */
.kitchen-daikin-bar {
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.k-daikin-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, #E0F7FA 0%, #E8F8F5 100%);
  border: 1.5px solid #80DEEA;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0, 150, 136, 0.1);
  transition: all 0.2s ease;
}

.k-daikin-inner:hover {
  border-color: #00ACC1;
  box-shadow: 0 3px 10px rgba(0, 172, 193, 0.25);
}

.k-daikin-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #1A365D;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.k-daikin-brand {
  font-size: 10px;
  font-weight: 800;
  color: #E2E8F0;
  letter-spacing: 0.5px;
}

.k-daikin-led {
  font-size: 11px;
  font-weight: 900;
  font-family: monospace;
  color: #00E5FF;
  text-shadow: 0 0 6px #00E5FF;
}

.k-daikin-flow-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.k-daikin-status {
  font-size: 10px;
  font-weight: 700;
  color: #00796B;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btn-k-turbo {
  background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
  color: #FFF;
  border: none;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 151, 167, 0.35);
  transition: transform 0.1s ease;
  white-space: nowrap;
}

.btn-k-turbo:active {
  transform: scale(0.95);
}

.btn-k-turbo.active-blasting {
  background: linear-gradient(135deg, #0288D1 0%, #0097A7 100%) !important;
  color: #E0F7FA !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7) !important;
  animation: turboPulseBtn 0.8s infinite alternate ease-in-out;
}

@keyframes turboPulseBtn {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.04); }
}

.k-daikin-temp-ctrls {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 2px;
}

.btn-ac-temp-step {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #00E5FF;
  border-radius: 3px;
  width: 14px;
  height: 9px;
  font-size: 7px;
  line-height: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-ac-temp-step:hover {
  background: #00E5FF;
  color: #0F172A;
}

.daikin-screen-led.is-turbo-led .daikin-led-num,
.k-daikin-led.is-turbo-led {
  color: #00E5FF !important;
  text-shadow: 0 0 10px #00E5FF, 0 0 20px #00B0FF !important;
  animation: ledIceGlow 0.8s infinite alternate ease-in-out;
}

@keyframes ledIceGlow {
  0% { opacity: 0.85; }
  100% { opacity: 1; text-shadow: 0 0 14px #00E5FF, 0 0 25px #00B0FF; }
}

.daikin-led-snowflake.fast-spin {
  animation: daikinSpin 0.8s linear infinite !important;
}

/* MINI DAIKIN Ở PHÒNG CHUẨN BỊ */
.prep-daikin-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #E8F8F5;
  border: 1px solid #A2D9CE;
  border-radius: 8px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 10px;
  cursor: pointer;
}

.prep-daikin-case {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prep-daikin-brand {
  font-weight: 800;
  color: #0097E6;
  font-size: 9.5px;
  letter-spacing: 0.8px;
}

.prep-daikin-temp {
  background: #2C3E50;
  color: #00FFCC;
  font-family: monospace;
  font-weight: 800;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
}

.prep-daikin-indicator {
  font-size: 10px;
  font-weight: 700;
  color: #0097E6;
  background: #E1F5FE;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #B3E5FC;
}

/* Huy hiệu mát rượi trên đầu khách ăn ở bàn */
.dining-cool-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 180, 216, 0.85);
  color: #FFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: coolFloat 2s ease-in-out infinite;
}

@keyframes coolFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ==========================================================
   POPUP CÓ GÌ MỚI / BẢN CẬP NHẬT (TXAVERSION CARDS)
   ========================================================== */
#modal-version-update .modal-dialog {
  max-width: 520px;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

#modal-version-update .modal-header {
  padding: 14px 18px;
  background: var(--bg-card-subtle);
  border-bottom: 1.5px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modal-version-update .modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#version-modal-content {
  padding: 16px 18px;
  max-height: 65vh;
  overflow-y: auto;
}

/* Scrollbar mượt mà cho danh sách cards */
#version-modal-content::-webkit-scrollbar {
  width: 6px;
}
#version-modal-content::-webkit-scrollbar-track {
  background: #FAF2E8;
  border-radius: 10px;
}
#version-modal-content::-webkit-scrollbar-thumb {
  background: #D8B79B;
  border-radius: 10px;
}

/* Banner đỉnh của modal */
.version-banner {
  background: linear-gradient(135deg, #7E1F11 0%, #A8321D 50%, #C0392B 100%);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(126, 31, 17, 0.3);
  margin-bottom: 14px;
  border: 1.5px solid #F5C542;
}

.version-banner-icon {
  font-size: 34px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  animation: bannerIconBob 2.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes bannerIconBob {
  0% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
  100% { transform: translateY(0) rotate(-4deg); }
}

.version-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.version-pill-tag {
  align-self: flex-start;
  background: var(--accent-gold);
  color: #1A0D02;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.version-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.version-date {
  font-size: 11px;
  color: #FFE6BD;
  font-weight: 600;
}

/* Danh sách thẻ Card tính năng mới */
.version-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.version-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.version-card:hover {
  transform: translateY(-2px);
  border-color: #F5C542;
  box-shadow: 0 6px 16px rgba(245, 197, 66, 0.2);
}

.card-icon-wrap {
  flex-shrink: 0;
}

.card-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF6E5 0%, #FFE8CC 100%);
  border: 1.5px solid #FFD180;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(255, 179, 0, 0.2);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-title);
}

.card-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-hot {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.badge-visual {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.badge-star {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-chat {
  background: #FCE7F3;
  color: #DB2777;
  border: 1px solid #FBCFE8;
}

.badge-manage {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.card-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #6B4E3D;
  font-weight: 500;
}

/* Nút đóng modal dưới chân */
#modal-version-update .btn-modal-primary {
  margin: 10px 18px 16px;
  width: calc(100% - 36px);
  background: linear-gradient(180deg, #E65100 0%, #C0392B 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

#modal-version-update .btn-modal-primary:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

/* ==========================================================
   BỐ CỤC ĐÁP ỨNG MỞ BÁN: DESKTOP 2 CỘT & MOBILE ZERO-SCROLL COCKPIT
   ========================================================== */
.open-mode-responsive-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.open-col-left,
.open-col-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Thanh chuyển tab chế độ mở bán trên mobile (Bếp nấu vs Sảnh ăn) */
.mobile-open-view-tabs {
  display: none;
}

@media (max-width: 899px) {
  .mobile-open-view-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    background: var(--bg-tray);
    padding: 3px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-card);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
  }

  .btn-open-view-tab {
    flex: 1;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .btn-open-view-tab.active {
    background: var(--bg-card);
    color: var(--text-title);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
  }

  .tab-badge-dirty {
    background: #DC2626;
    color: #FFF;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    animation: pulseBadge 1s infinite alternate;
  }

  @keyframes pulseBadge {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.15); }
  }

  /* Ẩn hiện theo Tab đã chọn trên Mobile */
  .open-mode-responsive-layout[data-mobile-tab="cockpit"] #open-col-dining-side {
    display: none !important;
  }

  .open-mode-responsive-layout[data-mobile-tab="dining"] #open-col-kitchen-side {
    display: none !important;
  }

  /* Nút quay lại bếp từ sảnh ăn */
  .mobile-dining-back-bar {
    margin-top: 14px;
    display: flex;
    justify-content: center;
  }

  .btn-jump-to-kitchen {
    width: 100%;
    background: linear-gradient(135deg, #C44569 0%, #A72D3D 100%);
    color: #FFF;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(167, 45, 61, 0.35);
  }
}

/* Desktop Widescreen Layout (2 Cột song song rộng rãi) */
@media (min-width: 900px) {
  .open-mode-responsive-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .open-col-left {
    position: sticky;
    top: 75px;
  }

  .cooking-steps-container {
    margin-bottom: 20px;
  }

  .mobile-dining-back-bar {
    display: none;
  }
}

/* Nút chọn Size mini trực tiếp trên bảng điều khiển niêu đất */
.pot-quick-size-toggle {
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
  background: var(--bg-tray);
  padding: 2px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
}

.btn-mini-size {
  border: none;
  background: transparent;
  width: 24px;
  height: 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-mini-size.active {
  background: var(--accent-berry);
  color: #FFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn-direct-serve {
  background: linear-gradient(135deg, #258A6D 0%, #166534 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 138, 109, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

.btn-direct-serve:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.btn-direct-serve:active {
  transform: scale(0.96);
}

/* THANH DOCK CHỌN NGUYÊN LIỆU THEO TABS (ZERO-SCROLL DOCK) */
.cooking-dock-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cooking-dock-tabs::-webkit-scrollbar {
  display: none;
}

.btn-dock-tab {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}

.btn-dock-tab:hover {
  background: var(--bg-card);
  border-color: var(--border-card);
  color: var(--text-title);
}

.btn-dock-tab.active {
  background: var(--accent-berry);
  color: #FFFFFF;
  border-color: var(--accent-berry);
  box-shadow: 0 2px 8px rgba(196, 69, 105, 0.35);
}

.cooking-dock-content {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 8px 10px;
  min-height: 125px;
}

/* Khung công thức mẫu 1-chạm (Quick Presets Grid) */
.quick-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}

.preset-recipe-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.preset-recipe-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-berry);
  box-shadow: 0 4px 10px rgba(196, 69, 105, 0.2);
}

.preset-recipe-card:active {
  transform: scale(0.97);
}

.preset-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.preset-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preset-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: #C2410C;
}

.dock-spicy-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spicy-row-size-block,
.spicy-row-levels-block {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.spicy-block-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #5C3D2E;
  min-width: 50px;
}

/* Shipper Timer Countdown */
.shipper-timer-badge {
  background: #FFEDD5;
  color: #C2410C;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #FDBA74;
}

.shipper-timer-track {
  width: 100%;
  height: 5px;
  background: #FED7AA;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 6px 0;
}

.shipper-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #F97316, #DC2626);
  transition: width 0.3s ease;
}

/* Nút Nấu Nhanh Khớp Đơn (Quick-Cook) */
.btn-quick-cook {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.3);
  transition: transform 0.15s, filter 0.15s;
}

.btn-quick-cook:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.btn-quick-cook:active {
  transform: scale(0.97);
}

/* ==========================================================
   TỐI ƯU HÓA TOÀN DIỆN DÀNH CHO MOBILE MÀN HÌNH NHỎ (COZY & ZERO-SCROLL)
   ========================================================== */
@media (max-width: 600px) {
  /* Khung ứng dụng chuẩn Native App */
  .game-phone-frame {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: var(--bg-app);
  }

  .game-scroll-body {
    padding: 8px 10px calc(76px + env(safe-area-inset-bottom, 8px)) 10px;
  }

  .bottom-action-spacer {
    height: calc(72px + env(safe-area-inset-bottom, 8px));
  }

  /* Header Top Tinh Gọn, Sang Trọng */
  .game-top-header {
    padding: 8px 12px 6px 12px;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1.5px solid var(--border-subtle);
  }

  .shop-owner-avatar-box {
    width: 36px;
    height: 36px;
    border-width: 1.5px;
  }

  .shop-name-row h1 {
    font-size: 14.5px;
    font-weight: 800;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shop-day-sub {
    font-size: 10.5px;
    color: var(--text-muted);
  }

  .header-time-title {
    font-size: 13px;
    font-weight: 700;
  }

  .header-money-val {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--accent-money);
    margin-top: 1px;
  }

  .header-stars-row {
    font-size: 11.5px;
    letter-spacing: 0.5px;
  }

  .header-reviews-sub {
    font-size: 9.5px;
  }

  .btn-settings-gear {
    width: 26px;
    height: 26px;
    font-size: 12px;
    margin-top: 2px;
  }

  /* Bảng Đen Chalkboard Menu Gọn Gàng */
  .chalkboard-card {
    padding: 10px 12px 8px 12px;
    border: 2.5px solid #5A3518;
    border-radius: 14px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #1A382D 0%, #122B22 100%);
    box-shadow: 0 4px 12px rgba(26, 56, 45, 0.2);
  }

  .chalkboard-pill-badge {
    padding: 2px 10px;
    font-size: 11px;
    margin-bottom: 4px;
    background: #E8B496;
    color: #4A1B22;
  }

  .chalkboard-title {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  .chalkboard-menu-list {
    padding-bottom: 5px;
    margin-bottom: 5px;
    gap: 8px;
  }

  .chalk-menu-item {
    font-size: 11.5px;
    gap: 4px;
  }

  .chalkboard-topping-row {
    gap: 5px;
    margin-bottom: 5px;
  }

  .chalkboard-topping-label {
    font-size: 10.5px;
  }

  .chalk-topping-pill {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .chalkboard-footer-note {
    font-size: 9.5px;
    color: #799D8F;
  }

  /* Thẻ Món Đặc Biệt Gọn Gàng */
  .special-dish-card {
    padding: 7px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
  }

  .special-dish-header {
    font-size: 11px;
    gap: 4px;
  }

  .special-dish-content {
    font-size: 12.5px;
    font-weight: 800;
  }

  .special-dish-streak {
    font-size: 10px;
  }

  /* Sân Khấu Mặt Tiền Tiệm Mì (Bustling Prep Stage) */
  .bustling-prep-stage {
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1.5px solid #783516;
  }

  .prep-stage-roof {
    padding: 6px 10px;
    gap: 4px;
  }

  .roof-lantern-wrap {
    gap: 8px;
  }

  .animated-lantern {
    font-size: 18px;
  }

  .roof-shop-badge {
    font-size: 11.5px;
    padding: 3px 10px;
    letter-spacing: 0.2px;
  }

  .prep-crowd-meter {
    padding: 2px 8px;
  }

  .crowd-status-label {
    font-size: 9.5px;
  }

  .prep-street-sidewalk {
    height: 72px;
  }

  .street-environment-bg {
    height: 34px;
  }

  .street-lantern-post {
    font-size: 15px;
  }

  .door-sign {
    font-size: 9px;
    padding: 2px 6px;
  }

  .pedestrian-walker {
    bottom: 6px !important;
  }

  .pedestrian-avatar-img {
    width: 28px !important;
    height: 28px !important;
  }

  .pedestrian-bubble {
    font-size: 9px !important;
    padding: 2px 6px !important;
    bottom: 32px !important;
  }

  .prep-dining-preview-strip {
    padding: 6px 10px;
  }

  .strip-title {
    font-size: 10.5px;
  }

  .strip-status {
    font-size: 10px;
  }

  .mini-dining-tables-row {
    gap: 6px;
    margin-top: 4px;
  }

  /* 8 Tab Grid Điều Hướng Hiện Đại */
  .game-nav-grid {
    padding: 4px;
    gap: 3px;
    border-radius: 14px;
    background: #EFE4D2;
    border: 1.5px solid #DFCBA7;
    margin-bottom: 10px;
  }

  .nav-grid-btn {
    padding: 5px 2px;
    border-radius: 9px;
    gap: 2px;
  }

  .nav-grid-btn .tab-btn-icon {
    font-size: 17px;
  }

  .nav-grid-btn .tab-btn-label {
    font-size: 10px;
    font-weight: 700;
  }

  .nav-grid-btn.active {
    box-shadow: 0 2px 6px rgba(60, 35, 15, 0.15);
  }

  /* Thẻ Danh Sách Kho, Menu, Nâng Cấp */
  .stock-item-row, .menu-item-card, .upgrade-card, .staff-card, .price-set-row {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .item-name-title {
    font-size: 12.5px;
  }

  .item-meta-sub {
    font-size: 10.5px;
  }

  .btn-buy-stock, .btn-menu-action {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 9px;
  }

  /* Nút Hành Động Nổi Cố Định Đáy */
  .game-bottom-action-bar {
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 8px)) 12px;
    background: linear-gradient(180deg, rgba(250, 246, 239, 0.65) 0%, rgba(250, 246, 239, 0.98) 45%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(223, 203, 167, 0.4);
  }

  .btn-primary-action {
    height: 44px;
    font-size: 14.5px;
    border-radius: 12px;
  }

  /* Khay đơn hàng gọn gàng */
  .order-queue-grid {
    gap: 5px;
    margin-bottom: 6px;
  }

  .order-slot-card {
    min-height: 125px;
    padding: 6px 5px;
  }

  .order-cust-avatar-wrap {
    width: 26px;
    height: 26px;
  }

  .order-cust-avatar {
    width: 26px;
    height: 26px;
  }

  /* Ảnh đại diện thực khách ngồi ăn trên mobile: nhỏ gọn, vừa mắt */
  .dining-customer-avatar {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }

  .dining-customer-name {
    font-size: 9.5px;
    max-width: 50px;
  }

  /* Avatar thực khách trong bảng đánh giá review */
  .review-cust-avatar {
    width: 26px;
    height: 26px;
  }

  /* Lưới chọn avatar chủ quán trên mobile */
  .owner-avatar-options-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-height: 180px;
  }

  .owner-avatar-opt {
    padding: 6px 3px;
  }

  .owner-avatar-opt img {
    width: 36px;
    height: 36px;
  }

  .owner-avatar-opt span {
    font-size: 10px;
  }

  .order-cust-title {
    font-size: 10px;
  }

  .order-speech-bubble {
    font-size: 9.5px;
    padding: 4px 5px;
    margin: 3px 0;
  }

  .dish-highlight-badge {
    font-size: 9.5px;
  }

  .order-actions-row {
    gap: 3px;
  }

  .btn-quick-cook {
    font-size: 9.5px;
    padding: 4px 6px;
  }

  .btn-serve-slot {
    font-size: 9.5px;
    padding: 4px 0;
  }

  /* Niêu đất nhỏ gọn vừa tầm mắt */
  .pot-workstation-card {
    padding: 8px 10px;
    margin-bottom: 6px;
    gap: 10px;
  }

  .pot-visual-wrap {
    width: 80px;
    height: 80px;
  }

  .korean-clay-pot.size-m {
    width: 64px;
    height: 52px;
  }

  .korean-clay-pot.size-l {
    width: 72px;
    height: 58px;
  }

  .pot-title-status {
    font-size: 13.5px;
  }

  .pot-sub-status {
    font-size: 10.5px;
  }

  .btn-clear-pot {
    padding: 3px 7px;
    font-size: 10px;
  }

  .btn-direct-serve {
    padding: 5px 10px;
    font-size: 10.5px;
  }

  /* Dock nguyên liệu cố định chiều cao */
  .cooking-steps-container {
    gap: 6px;
  }

  .step-guide-pill {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .cooking-dock-tabs {
    gap: 3px;
  }

  .btn-dock-tab {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .cooking-dock-content {
    min-height: 105px;
    max-height: 130px;
    overflow-y: auto;
    padding: 6px;
  }

  .ingredient-badge-card {
    padding: 6px 8px;
    min-width: 52px;
  }

  .ingredient-icon {
    font-size: 18px;
  }

  .ingredient-name {
    font-size: 9.5px;
  }

  .ingredient-stock-bubble {
    font-size: 9px;
    width: 16px;
    height: 16px;
  }

  .btn-spicy-level {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

/* Thanh Trạng Thái Niêu Đất Nổi Dành Riêng Cho Mobile */
.mobile-sticky-pot-bar {
  display: none;
}

/* ==========================================================
   16. BỘ CHỌN THEME ĐA SẮC (TXATHEME PREVIEWS)
   ========================================================== */
.settings-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  margin: 12px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================
   16B. GIAO DIỆN MODAL CÀI ĐẶT THỜI THƯỢNG (ANIME COZY SETTINGS MODAL)
   ========================================================== */
#modal-settings {
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.settings-modal-dialog {
  max-width: 520px;
  width: 95%;
  max-height: 88vh;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: modalPopIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.settings-modal-header {
  padding: 16px 20px 14px 20px;
  background: var(--bg-tray);
  border-bottom: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  flex-shrink: 0;
}

.settings-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-header-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.settings-header-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.2px;
}

.settings-header-sub {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.settings-modal-scrollable {
  padding: 16px 18px 22px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(88vh - 76px);
}

.settings-modal-scrollable::-webkit-scrollbar {
  width: 6px;
}
.settings-modal-scrollable::-webkit-scrollbar-thumb {
  background: var(--border-btn);
  border-radius: 10px;
}

.settings-card-section {
  background: var(--bg-tray);
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease;
}

.settings-card-section:hover {
  border-color: var(--border-card);
}

.settings-section-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-berry);
  margin-bottom: 2px;
}

.setting-row-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.18s ease;
}

.setting-row-modern:hover {
  border-color: var(--border-card);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.setting-label-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.setting-icon-pill {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tray);
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.setting-name {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-title);
}

.setting-subdesc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}

.setting-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Custom Switch Toggle iOS anime style */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background-color: var(--border-btn);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.switch-toggle input:checked + .toggle-slider {
  background-color: var(--accent-berry);
  box-shadow: 0 0 10px rgba(196, 69, 105, 0.4);
}

.switch-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Range Slider */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 75px;
  height: 6px;
  background: var(--border-card);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  background: var(--accent-berry);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Select Control */
.custom-select-control {
  background: var(--bg-card);
  color: var(--text-title);
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.custom-select-control:focus {
  border-color: var(--accent-berry);
  box-shadow: 0 0 0 2px rgba(196, 69, 105, 0.2);
}

/* 5 THEME SELECTION GRID */
.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.theme-card-option {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.theme-card-option:hover {
  border-color: var(--border-card);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.theme-card-option.active {
  border-color: var(--accent-berry);
  background: var(--bg-card-subtle);
  box-shadow: 0 4px 16px rgba(196, 69, 105, 0.25);
}

.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.theme-card-icon {
  font-size: 18px;
}

.theme-card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  flex: 1;
}

.theme-card-check {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent-berry);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.theme-card-option.active .theme-card-check {
  opacity: 1;
  transform: scale(1);
}

.theme-card-desc {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: 2px;
}

.theme-color-palette {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.theme-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  display: inline-block;
}

/* Banner Mở Mã QR */
.settings-action-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-subtle) 100%);
  border: 2px solid var(--accent-berry);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 14px rgba(196, 69, 105, 0.15);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-action-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 69, 105, 0.28);
}

.action-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-banner-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 69, 105, 0.14);
  border-radius: 12px;
  flex-shrink: 0;
}

.action-banner-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-title);
}

.action-banner-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.action-banner-btn {
  background: var(--accent-berry);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(196, 69, 105, 0.3);
  flex-shrink: 0;
}

/* Quick Actions Grid */
.settings-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.settings-tile-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
  transition: all 0.18s ease;
}

.settings-tile-btn:hover {
  border-color: var(--border-card);
  background: var(--bg-card-subtle);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.settings-tile-btn .tile-icon {
  font-size: 16px;
}

.settings-tile-btn.danger {
  color: var(--accent-red);
  border-color: rgba(217, 56, 58, 0.3);
}

.settings-tile-btn.danger:hover {
  background: rgba(217, 56, 58, 0.09);
  border-color: var(--accent-red);
}

/* ==========================================================
   17. HƯỚNG DẪN SPOTLIGHT TÂN THỦ (TXACOACHMARK)
   ========================================================== */
.txa-coachmark-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: transparent;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.txa-coachmark-spotlight {
  position: fixed;
  z-index: 99999;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(12, 10, 9, 0.76), 0 0 24px rgba(255, 193, 7, 0.85);
  border: 3px solid #FFC107;
  pointer-events: none;
  transition: top 0.22s ease-out, left 0.22s ease-out, width 0.22s ease-out, height 0.22s ease-out;
  animation: txaSpotlightPulse 2s infinite ease-in-out;
}

@keyframes txaSpotlightPulse {
  0%, 100% {
    border-color: #FFC107;
    box-shadow: 0 0 0 9999px rgba(12, 10, 9, 0.72), 0 0 18px rgba(255, 193, 7, 0.7);
  }
  50% {
    border-color: #FFA000;
    box-shadow: 0 0 0 9999px rgba(12, 10, 9, 0.72), 0 0 30px rgba(255, 160, 0, 0.95);
  }
}

.txa-coachmark-card {
  position: fixed;
  z-index: 100000;
  width: calc(100% - 32px);
  max-width: 380px;
  background: var(--bg-card, #FFFFFF);
  border: 2px solid var(--border-card);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  transition: top 0.38s cubic-bezier(0.25, 1, 0.5, 1), left 0.38s cubic-bezier(0.25, 1, 0.5, 1), transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  color: var(--text-title);
}

.txa-coachmark-mascot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.txa-coachmark-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-berry);
  background: var(--bg-tray);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.txa-coachmark-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.txa-coachmark-mascot-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 13px;
  line-height: 1;
}

.txa-coachmark-speech-bubble {
  position: relative;
  flex: 1;
  background: var(--bg-tray);
  color: var(--text-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.txa-coachmark-speech-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid var(--bg-tray);
}

.txa-coachmark-content {
  margin-bottom: 14px;
}

.txa-coachmark-step-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.txa-coachmark-step-text {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-berry);
}

.txa-coachmark-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.txa-coachmark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-card);
  transition: all 0.2s ease;
}

.txa-coachmark-dot.active {
  width: 16px;
  border-radius: 8px;
  background: var(--accent-berry);
}

.txa-coachmark-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0 0 4px 0;
}

.txa-coachmark-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-main);
  margin: 0;
}

.txa-coachmark-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.txa-coachmark-btn-skip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.15s;
}

.txa-coachmark-btn-skip:hover {
  color: var(--text-title);
}

.txa-coachmark-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.txa-coachmark-btn-prev {
  background: var(--bg-tray);
  border: 1px solid var(--border-btn);
  color: var(--text-title);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.txa-coachmark-btn-prev:hover {
  background: var(--border-card);
}

.txa-coachmark-btn-next {
  background: var(--accent-berry);
  border: none;
  color: #FFF;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(232, 67, 147, 0.3);
}

.txa-coachmark-btn-next:hover {
  transform: translateY(-1px) scale(1.03);
  background: var(--accent-berry-hover);
}

.txa-coachmark-btn-next.btn-final {
  background: linear-gradient(135deg, #FF4757, #FFA502);
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.45);
}

.anime-fade-in {
  animation: animeFadeIn 0.25s ease-out forwards;
}

.anime-pop-in {
  animation: animePopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes animeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes animePopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================
   18. THANH CHỌN ĐỘ CAY TRỰC TIẾP TRONG TAB CHỌN MÌ
   ========================================================== */
.noodle-dock-spicy-bar {
  background: var(--bg-tray, #F9F2E7);
  border: 1.5px solid var(--border-card, #E2CEB9);
  border-radius: 14px;
  padding: 8px 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.inline-noodle-spicy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 480px) {
  .inline-noodle-spicy {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.inline-noodle-spicy .spicy-row-size-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-noodle-spicy .spicy-row-levels-block {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================
   19. MODAL MÃ QR CHƠI GAME VỚI BẠN BÈ (TXAQR)
   ========================================================== */
.qr-code-frame {
  background: #FFFFFF;
  padding: 14px;
  border-radius: 18px;
  border: 2px solid var(--border-card, #E2CEB9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

#qr-code-canvas {
  width: 220px;
  height: 220px;
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

.qr-url-box {
  display: flex;
  width: 100%;
  max-width: 320px;
  gap: 6px;
  background: var(--bg-tray, #F9F2E7);
  border: 1px solid var(--border-subtle, #E8DCCB);
  border-radius: var(--radius-pill, 999px);
  padding: 4px 6px;
}

#qr-share-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 11px;
  color: var(--text-muted);
  font-family: inherit;
  padding-left: 8px;
  text-overflow: ellipsis;
}

.btn-copy-link {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-btn, #D4C3AF);
  color: var(--text-title);
  border-radius: var(--radius-pill, 999px);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-copy-link:hover {
  background: var(--accent-berry);
  color: #FFFFFF;
  border-color: var(--accent-berry);
}

.qr-actions-row {
  width: 100%;
  max-width: 320px;
}

.btn-primary-action-lg {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-berry, #C44569) 0%, #E84118 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill, 999px);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 69, 105, 0.4);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-action-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 69, 105, 0.5);
}

.btn-primary-action-lg:active {
  transform: translateY(0);
}

.qr-status-feedback {
  font-size: 12.5px;
  font-weight: 700;
  min-height: 20px;
  transition: all 0.25s;
}

.qr-status-feedback.success {
  color: #27AE60;
}

.qr-status-feedback.error {
  color: #E74C3C;
}

.staff-lock-badge {
  font-size: 11px;
  font-weight: 800;
  color: #8C7B75;
  background: #EFEBE9;
  border: 1px solid #D7CCC8;
  padding: 4px 8px;
  border-radius: var(--radius-pill, 999px);
  white-space: nowrap;
}

/* ==========================================================
   20. HIỆU ỨNG TIỆM TRÀ SỮA, SHAKER WORKSTATION & PARTICLES
   ========================================================== */
.boba-bubble-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(216, 27, 96, 0.35));
  animation: floatBoba 7s infinite ease-in-out;
  z-index: 1;
}

@keyframes floatBoba {
  0% { transform: translateY(0) scale(0.9); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.7; }
  100% { transform: translateY(-380px) scale(1.15); opacity: 0; }
}

/* Hiệu ứng bình lắc shaker */
@keyframes shakeBobaCup {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.04); }
  50% { transform: rotate(0deg) scale(0.98); }
  75% { transform: rotate(8deg) scale(1.04); }
}

.shaker-animated {
  animation: shakeBobaCup 0.45s infinite ease-in-out;
}

/* Glassmorphism cho card và modals */
.glass-panel {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 8px 32px 0 rgba(196, 69, 105, 0.12) !important;
}

[data-theme="tokyo-night"] .glass-panel,
[data-theme="midnight-boba"] .glass-panel {
  background: rgba(31, 21, 61, 0.78) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6) !important;
}

/* Worker Pill cho nhân viên mới */
.kitchen-worker-pill.role-barista {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-color: #FFB74D;
  color: #E65100;
}
.kitchen-worker-pill.role-marketing {
  background: linear-gradient(135deg, #EDE7F6, #D1C4E9);
  border-color: #B39DDB;
  color: #4A148C;
}
.kitchen-worker-pill.role-logistics {
  background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
  border-color: #80CBC4;
  color: #004D40;
}

/* ==========================================================
   21. HỆ THỐNG SHIPPER SỐNG ĐỘNG & ĐÓNG GÓI CHUYÊN NGHIỆP
   ========================================================== */
.shipper-driver-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.shipper-driver-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.shipper-driver-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shipper-driver-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shipper-app-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  color: #FFF;
  text-transform: uppercase;
}
.app-grab { background: #00B14F; }
.app-shopee { background: #EE4D2D; }
.app-befood { background: #FDB813; color: #1F1F1F !important; }
.app-baemin { background: #2AC1C1; }

.shipper-driver-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.shipper-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.btn-pack-seal {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 8px rgba(245, 124, 0, 0.3);
  transition: all 0.2s;
}

.btn-pack-seal:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-pack-seal.is-packed {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  box-shadow: 0 3px 8px rgba(56, 142, 60, 0.3);
  cursor: default;
}

/* ==========================================================
   22. BỘ LỌC ĐÁNH GIÁ, BIỂU ĐỒ SAO & FOODIE BADGES (REVIEW 2.0)
   ========================================================== */
.review-filters-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 10px 0;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.review-filters-bar::-webkit-scrollbar { display: none; }

.review-filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.review-filter-pill:hover,
.review-filter-pill.active {
  background: var(--accent-berry);
  color: #FFFFFF;
  border-color: var(--accent-berry);
  box-shadow: 0 2px 6px rgba(196, 56, 94, 0.25);
}

/* Biểu đồ phân bổ sao */
.rating-dist-panel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: var(--bg-card-subtle);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.rating-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.rating-dist-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.rating-dist-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #E11D48);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Huy hiệu khách hàng & tag món ăn kèm */
.foodie-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

.food-attached-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-caramel);
  background: rgba(212, 136, 22, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* Nút Tặng Voucher đền bù giải hòa */
.btn-voucher-apology {
  background: linear-gradient(135deg, #8E24AA, #6A1B9A);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(106, 27, 154, 0.3);
  transition: all 0.2s;
}

.btn-voucher-apology:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ==========================================================
   23. HIỆU ỨNG THỊ GIÁC ĐẶC BIỆT & PHẢN HỒI XÚC GIÁC (VISUAL FX)
   ========================================================== */

/* Lửa bốc khói niêu đất khi nấu cấp độ cay 6 - 7 */
.korean-clay-pot.is-spicy-blaze {
  filter: drop-shadow(0 0 14px rgba(235, 47, 6, 0.8)) drop-shadow(0 0 4px rgba(255, 165, 2, 0.9));
  animation: potBlazeShake 0.4s infinite alternate ease-in-out;
}
@keyframes potBlazeShake {
  0% { transform: translateY(0) rotate(-0.8deg); }
  100% { transform: translateY(-1.5px) rotate(0.8deg); }
}

/* Nảy niêu đất khi thả nguyên liệu vào */
.pot-pop-bounce {
  animation: potPopBounce 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
@keyframes potPopBounce {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Hiệu ứng nổi bật slot đơn khách đang trùng khớp hoàn hảo với niêu */
.order-slot-card.is-matching-dish {
  border: 2px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
  animation: matchingSlotPulse 1.2s infinite alternate ease-in-out;
}
@keyframes matchingSlotPulse {
  0% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); }
  100% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.65); transform: translateY(-3px); }
}

/* Làn gió mát tuyết rơi từ điều hòa Daikin */
.daikin-wind-breeze {
  position: fixed;
  pointer-events: none;
  font-size: 16px;
  animation: breezeFloat 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  z-index: 999999;
}
@keyframes breezeFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.6) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(50px) translateX(-25px) scale(1.25) rotate(45deg); }
}

/* Nháy sáng tiền vàng khi thu tiền */
.money-counter-pulse {
  animation: moneyPulse 0.4s ease-out;
}
@keyframes moneyPulse {
  0% { transform: scale(1); color: var(--accent-gold); }
  50% { transform: scale(1.22); color: #10B981; }
  100% { transform: scale(1); }
}

/* ==========================================================
   24. PWA OFFLINE STYLES & CÀI ĐẶT ỨNG DỤNG (OFFLINE SUPPORT)
   ========================================================== */
.pwa-install-badge-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45) !important;
  animation: pwaBounce 2s infinite ease-in-out;
}
@keyframes pwaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.05); }
}

.header-offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  animation: pulseOffline 1.5s infinite alternate ease-in-out;
}
@keyframes pulseOffline {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

.pwa-install-highlight {
  background: linear-gradient(135deg, rgba(37, 138, 109, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
  border: 1.5px solid rgba(37, 138, 109, 0.4) !important;
  margin-bottom: 12px;
}
.pwa-install-highlight:hover {
  background: linear-gradient(135deg, rgba(37, 138, 109, 0.2) 0%, rgba(16, 185, 129, 0.14) 100%) !important;
  border-color: #10B981 !important;
}
.pwa-install-highlight .action-banner-icon {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
}
.pwa-install-highlight .action-banner-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* ==========================================================
   25. HỆ THỐNG TOOLTIP TÙY CHỈNH COZY (COZY CUSTOM TOOLTIP)
   ========================================================== */
.cozy-custom-tooltip {
  position: fixed;
  z-index: 99999999;
  pointer-events: none;
  background: rgba(43, 24, 16, 0.94);
  color: #FFFDF8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 185, 59, 0.42);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-family: "Nunito", "Quicksand", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(30, 15, 10, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  max-width: 250px;
  text-align: center;
  word-wrap: break-word;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.15s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.15s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0.15s;
}

.cozy-custom-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cozy-custom-tooltip .cozy-tooltip-arrow {
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(43, 24, 16, 0.94);
  transform: rotate(45deg);
}

.cozy-custom-tooltip.placement-top .cozy-tooltip-arrow {
  bottom: -4px;
  left: calc(50% - 3.5px);
  border-bottom: 1px solid rgba(246, 185, 59, 0.42);
  border-right: 1px solid rgba(246, 185, 59, 0.42);
}

.cozy-custom-tooltip.placement-bottom .cozy-tooltip-arrow {
  top: -4px;
  left: calc(50% - 3.5px);
  border-top: 1px solid rgba(246, 185, 59, 0.42);
  border-left: 1px solid rgba(246, 185, 59, 0.42);
}

/* ==========================================================
   26. ĐỒNG HỒ ĐẾM NGƯỢC CA BÁN TRONG BẾP (COCKPIT SHIFT CLOCK)
   ========================================================== */
.cockpit-shift-clock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.shift-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border: 1.5px solid #FFA000;
  color: #B78103;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255, 160, 0, 0.25);
  transition: all 0.25s ease;
}

.shift-clock-pill.time-warning {
  background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  border-color: #EF4444;
  color: #DC2626;
  animation: timerUrgentPulse 0.9s infinite alternate ease-in-out;
}

.shift-clock-icon {
  font-size: 16px;
}

.shift-clock-label {
  font-size: 12px;
  font-weight: 700;
  color: #6D4C41;
}

.shift-clock-digits {
  font-size: 17px;
  font-weight: 900;
  color: #D84315;
  letter-spacing: 0.5px;
  font-family: monospace, system-ui;
}

.shift-clock-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================
   27. CHẾ ĐỘ GIỜ VÀNG FEVER RUSH & KHÁCH VIP THẦN TÀI (v1.5.5)
   ========================================================== */
.cockpit-fever-bar {
  background: var(--bg-card);
  border: 1.5px solid #F1C40F;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(241, 196, 15, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cockpit-fever-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.28);
}

.cockpit-fever-bar.is-fever-blazing {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.35) 0%, rgba(249, 115, 22, 0.25) 100%);
  border-color: #F59E0B;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
  animation: feverBlazeGlow 1s infinite alternate ease-in-out;
}

@keyframes feverBlazeGlow {
  0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.35); border-color: #F59E0B; }
  100% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.65); border-color: #EF4444; }
}

.fever-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fever-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fever-fire-icon {
  font-size: 16px;
  animation: fireBounce 1.2s infinite ease-in-out;
}

@keyframes fireBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22) rotate(-6deg); }
}

.fever-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #B45309;
  letter-spacing: 0.3px;
}

.fever-status-text {
  font-size: 12px;
  font-weight: 900;
  color: #D97706;
  margin-left: auto;
  font-family: monospace, system-ui;
}

.fever-mult-badge {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  transition: all 0.25s ease;
}

.fever-mult-badge.badge-fever-active {
  background: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%);
  color: #FFFFFF;
  border-color: #B91C1C;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: badgeFeverPulse 0.8s infinite alternate ease-in-out;
}

@keyframes badgeFeverPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.fever-track {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.fever-fill {
  height: 100%;
  background: linear-gradient(90deg, #FCD34D 0%, #F59E0B 60%, #EF4444 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.fever-fill.blazing-fever {
  background: linear-gradient(90deg, #F59E0B 0%, #EF4444 50%, #EC4899 100%);
  animation: feverStripes 1s linear infinite;
  background-size: 200% 100%;
}

@keyframes feverStripes {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* KHÁCH HÀNG VIP THẦN TÀI TRÊN KHAY ĐƠN HÀNG */
.order-slot-card.is-vip-customer-card {
  background: linear-gradient(145deg, #FFFDF0 0%, #FEF9C3 100%) !important;
  border: 2px solid #EAB308 !important;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35) !important;
  position: relative;
  overflow: hidden;
}

.order-slot-card.is-vip-customer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  animation: vipShimmer 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes vipShimmer {
  0% { left: -75%; }
  30%, 100% { left: 135%; }
}

.cust-vip-crown-icon {
  position: absolute;
  top: -8px;
  right: -5px;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: crownWiggle 2s infinite ease-in-out;
}

@keyframes crownWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.vip-cust-gold-badge {
  font-size: 9.5px;
  font-weight: 900;
  color: #854D0E;
  background: linear-gradient(135deg, #FEF08A 0%, #FDE047 100%);
  border: 1px solid #EAB308;
  border-radius: 6px;
  padding: 2px 6px;
  text-align: center;
  margin-bottom: 3px;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.3);
}

/* HIỆU ỨNG TIA SÁNG VÀNG BÙNG NỔ FEVER */
.fever-gold-sparkle {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  z-index: 99;
  animation: sparkleFlyUp 2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes sparkleFlyUp {
  0% { opacity: 0; transform: translateY(0) scale(0.4) rotate(0deg); }
  25% { opacity: 1; transform: translateY(-20px) scale(1.3) rotate(15deg); }
  100% { opacity: 0; transform: translateY(-70px) scale(0.9) rotate(45deg); }
}

.open-mode-responsive-layout.is-fever-mode {
  position: relative;
}

.open-mode-responsive-layout.is-fever-mode::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: inset 0 0 25px rgba(245, 158, 11, 0.2), 0 0 20px rgba(245, 158, 11, 0.3);
  pointer-events: none;
  z-index: 10;
  animation: feverAuraPulse 1.2s infinite alternate ease-in-out;
}

@keyframes feverAuraPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; border-color: rgba(239, 68, 68, 0.65); box-shadow: inset 0 0 35px rgba(239, 68, 68, 0.25), 0 0 30px rgba(245, 158, 11, 0.5); }
}

/* ==========================================================
   15. HỆ THỐNG PHÒNG HỘ AN NINH & KHÓA 15 PHÚT (SECURITY SHIELD)
   ========================================================== */
.modal-security-lockout {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  user-select: none;
}

.sec-lockout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 5, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sec-lockout-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(170deg, #FFFDF8 0%, #F5ECDD 100%);
  border: 3px solid #6E3F1C;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.35);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: secCardPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes secCardPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sec-lockout-mascot {
  font-size: 54px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  animation: mascotTremble 1.6s infinite ease-in-out;
}

@keyframes mascotTremble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-3deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

.sec-lockout-title {
  font-size: 20px;
  font-weight: 900;
  color: #B91C1C;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.sec-lockout-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #4A3B32;
  margin-bottom: 14px;
  padding: 0 4px;
}

.sec-lockout-desc strong {
  color: #DC2626;
}

/* Thẻ mã phần cứng thiết bị */
.sec-device-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFE4D2;
  border: 1.5px dashed #B89772;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: #5C3D24;
  margin-bottom: 16px;
}

.sec-device-tag strong {
  color: #9A3412;
  font-family: monospace;
  font-size: 12px;
}

/* Khối đồng hồ đếm ngược Anime */
.sec-countdown-box {
  width: 100%;
  background: #24140C;
  border: 2px solid #D97706;
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(217, 119, 6, 0.25);
  margin-bottom: 14px;
  box-sizing: border-box;
}

.sec-countdown-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FBBF24;
  margin-bottom: 4px;
}

.sec-countdown-clock {
  font-size: 42px;
  font-weight: 900;
  color: #EF4444;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
  font-family: 'Nunito', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  animation: clockPulse 1s infinite alternate;
}

@keyframes clockPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.sec-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 8px;
}

.sec-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #EF4444, #F59E0B);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.sec-lockout-note {
  font-size: 11px;
  line-height: 1.45;
  color: #785A44;
  padding: 0 6px;
}

/* Toast cảnh báo nhẹ khi bấm chuột phải hoặc F12 lần đầu */
.sec-warning-toast {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  background: #1C120C;
  color: #FEF3C7;
  border: 1.5px solid #F59E0B;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

.sec-warning-toast.show {
  top: 24px;
  opacity: 1;
}

/* Khi thiết bị bị khóa, khóa hoàn toàn cuộn và hiển thị của game */
body.is-device-locked {
  overflow: hidden !important;
}

body.is-device-locked .game-viewport-wrapper,
body.is-device-locked #loading-screen {
  filter: blur(8px) grayscale(0.5);
  pointer-events: none !important;
}

/* Card phong tỏa vĩnh viễn (Permanent Hardware Ban) */
.sec-perm-card {
  border-color: #991B1B !important;
  background: linear-gradient(175deg, #1A0E0A 0%, #2A100B 100%) !important;
  color: #FEE2E2 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(220, 38, 38, 0.6) !important;
}

.sec-perm-title {
  color: #EF4444 !important;
  font-size: 21px !important;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.sec-perm-box {
  width: 100%;
  background: #3B1210;
  border: 2px solid #EF4444;
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.3);
  margin-bottom: 14px;
  box-sizing: border-box;
}

.sec-perm-badge {
  display: inline-block;
  background: #DC2626;
  color: #FFF;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
  animation: permPulse 1.4s infinite alternate;
}

@keyframes permPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 16px rgba(239, 68, 68, 0.8); }
}

.sec-perm-status-text {
  font-size: 17px;
  font-weight: 900;
  color: #F87171;
  letter-spacing: 0.5px;
}

.sec-perm-card .sec-lockout-desc {
  color: #E2D5CC !important;
}

.sec-perm-card .sec-device-tag {
  background: #24140F;
  border-color: #7F1D1D;
  color: #FCA5A5;
}

.sec-perm-card .sec-device-tag strong {
  color: #F87171;
}

.sec-perm-card .sec-lockout-note {
  color: #A88E7D;
}

/* Huy hiệu Admin Dev Mode hiển thị kín đáo ở góc */
.sec-admin-dev-badge {
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 99999999;
  background: rgba(16, 185, 129, 0.95);
  color: #FFFFFF;
  border: 1.5px solid #059669;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  user-select: none;
}

.sec-admin-dev-badge button {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: #FFF;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
}

.sec-admin-dev-badge button:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   ELEVATED GAME UI STYLING: COZY ANIME CAFE VIBE & NO MORE "LỎ"
   ========================================================== */

/* 1. Order Speech Bubble & Price Pill */
.dish-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.order-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(46, 125, 50, 0.12);
  white-space: nowrap;
}

[data-theme="tokyo-night"] .order-price-pill,
[data-theme="spicy-fire"] .order-price-pill {
  background: rgba(56, 228, 183, 0.15);
  color: #38E4B7;
  border-color: rgba(56, 228, 183, 0.4);
}

.dish-highlight-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFF5EB 0%, #FFE8D6 100%);
  border: 1.5px solid #FFCCA7;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  color: #C0392B;
  box-shadow: 0 1px 4px rgba(192, 57, 43, 0.08);
}

[data-theme="tokyo-night"] .dish-highlight-badge,
[data-theme="spicy-fire"] .dish-highlight-badge {
  background: rgba(255, 77, 109, 0.18);
  border-color: rgba(255, 77, 109, 0.4);
  color: #FF6B95;
}

.order-stock-warning {
  font-size: 9px;
  color: #DC2626;
  font-weight: 800;
  margin-top: 3px;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* 2. Enhanced Card Styles: Price Tab */
.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-stock-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tray);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.price-active-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 75px;
  background: var(--bg-tray);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.price-active-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
}

.price-active-amount {
  font-size: 14px;
  color: var(--accent-money);
  font-weight: 800;
}

.btn-stepper-jump {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  background: var(--bg-card-subtle) !important;
}

/* 3. Enhanced Upgrades Tab */
.upgrade-lv-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-tray);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid var(--border-subtle);
}

.upgrade-lv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F39C12 0%, #27AE60 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.upgrade-badge-max {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(39, 174, 96, 0.15);
  border: 1.5px solid #27AE60;
  color: #27AE60;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
}

/* 4. Enhanced Staff Tab */
.staff-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-card-wage {
  font-size: 11px;
  font-weight: 800;
  color: #C0392B;
  background: rgba(192, 57, 43, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.staff-card-reqs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.req-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.req-pill.req-met {
  background: rgba(39, 174, 96, 0.12);
  color: #27AE60;
  border-color: rgba(39, 174, 96, 0.3);
}

.req-pill.req-unmet {
  background: rgba(231, 76, 60, 0.1);
  color: #E74C3C;
  border-color: rgba(231, 76, 60, 0.25);
}

.staff-badge-working {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(37, 138, 109, 0.15);
  border: 1.5px solid #258A6D;
  color: #258A6D;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(37, 138, 109, 0.15);
}

/* 5. Cozy Izakaya Receipt Modal */
.day-receipt-box {
  background: #FFFDF9;
  border: 2px dashed #C7B099;
  border-radius: 12px;
  padding: 16px 14px;
  color: #3B2110;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

[data-theme="tokyo-night"] .day-receipt-box {
  background: #1A1C29;
  border-color: #454D7A;
  color: #E2E8F8;
}

[data-theme="spicy-fire"] .day-receipt-box {
  background: #241614;
  border-color: #78362E;
  color: #FDE0D4;
}

.receipt-header {
  text-align: center;
  margin-bottom: 10px;
}

.receipt-shop-badge {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-money);
}

.receipt-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.receipt-divider-dash {
  border-top: 1.5px dashed var(--border-subtle);
  margin: 10px 0;
}

.receipt-divider-double {
  border-top: 2.5px double var(--border-card);
  margin: 12px 0 10px;
}

.receipt-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 2.5px 0;
  font-weight: 600;
}

.receipt-val-green {
  color: #27AE60;
  font-weight: 800;
}

.receipt-val-red {
  color: #E74C3C;
  font-weight: 800;
}

.receipt-val-gold {
  color: #D35400;
  font-weight: 800;
}

.receipt-val-free {
  font-size: 11px;
  color: #27AE60;
  font-weight: 700;
}

.receipt-sub-staff {
  font-size: 10px;
  color: var(--text-muted);
  padding-left: 14px;
  margin-bottom: 4px;
  font-style: italic;
}

.receipt-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.receipt-net-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.receipt-net-val {
  font-size: 18px;
  font-weight: 900;
}

.receipt-net-val.profit-pos {
  color: #258A6D;
}

.receipt-net-val.profit-neg {
  color: #E74C3C;
}

.receipt-stamp-badge {
  text-align: center;
  margin-top: 12px;
  padding: 4px 10px;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  position: relative;
  border: 2px solid #E74C3C;
  color: #E74C3C;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* ==========================================================
   MODAL TRỢ LỰC BÍ MẬT (SECRET DEVELOPER BUFF CONSOLE)
   ========================================================== */
.modal-dev-dialog {
  background: var(--bg-card);
  border: 2px solid var(--border-gold, #F6C878);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 0 20px rgba(246, 200, 120, 0.25);
  border-radius: 20px;
  overflow: hidden;
}

.dev-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dev-modal-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.35));
}

.dev-modal-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.dev-buff-body {
  padding: 14px 16px 18px;
  max-height: 72vh;
  overflow-y: auto;
}

.dev-buff-notice {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: #B45309;
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 700;
}

.dev-buff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 420px) {
  .dev-buff-grid {
    grid-template-columns: 1fr;
  }
}

.btn-buff-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-subtle, #FFF8F0);
  border: 1.5px solid var(--border-card, #EBD5BE);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-buff-action:hover {
  transform: translateY(-2px);
  border-color: #D97706;
  background: #FFFBEB;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.15);
}

.btn-buff-action:active {
  transform: scale(0.97);
}

.buff-btn-icon {
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.buff-btn-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.buff-btn-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-title, #2D1E17);
  line-height: 1.3;
}

.buff-btn-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted, #7D6B5D);
  line-height: 1.25;
  margin-top: 2px;
}

/* ==========================================================
   HỆ THỐNG NGÂN HÀNG TIẾT KIỆM (BOBA SAVINGS BANK)
   ========================================================== */
.bank-atm-card {
  position: relative;
  background: linear-gradient(135deg, #1C2833 0%, #2C3E50 50%, #17202A 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 18px;
  color: #FFF;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  margin-bottom: 14px;
  overflow: hidden;
}

.bank-atm-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-brand-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.bank-brand-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #FFD700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin: 0;
  line-height: 1.2;
}

.bank-brand-sub {
  font-size: 10.5px;
  color: #CBD5E1;
  font-weight: 600;
}

.bank-chip-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.bank-balance-display {
  margin: 16px 0 14px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.bank-balance-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #F8D7DA;
  font-weight: 700;
}

.bank-balance-num {
  font-size: 28px;
  font-weight: 900;
  color: #FFF9E6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}

.bank-interest-sub {
  font-size: 11.5px;
  color: #E2E8F0;
  font-weight: 600;
}

.bank-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.bank-owner-name {
  letter-spacing: 0.5px;
}

.bank-interest-total {
  color: #82E0AA;
}

/* KHỐI NỘI DUNG NGÂN HÀNG */
.bank-section-box {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--border-card, #E8D8C8);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(60, 35, 15, 0.04);
}

.bank-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title, #2D1E17);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bank-wallet-pill {
  background: var(--bg-tray, #F9F5F0);
  border: 1px solid var(--border-subtle, #EFE4D2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-orange, #D35400);
}

.bank-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bank-action-col {
  background: var(--bg-tray, #F9F5F0);
  border: 1px solid var(--border-subtle, #EFE4D2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-action-subtitle {
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}

.bank-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-bank-quick {
  background: var(--bg-card, #FFF);
  border: 1.5px solid var(--border-card, #E8D8C8);
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-title, #2D1E17);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-bank-quick:hover {
  background: #FFF9F0;
  border-color: var(--accent-orange, #D35400);
  transform: translateY(-1px);
}

.btn-bank-quick:active {
  transform: scale(0.95);
}

.btn-bank-all {
  grid-column: span 2;
  background: linear-gradient(135deg, #E67E22, #D35400);
  color: #FFF !important;
  border: none;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(211, 84, 0, 0.25);
}

.btn-bank-all:hover {
  filter: brightness(1.08);
}

/* CÁC GÓI TIẾT KIỆM KỲ HẠN */
.bank-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-plan-card {
  background: var(--bg-tray, #F9F5F0);
  border: 1.5px solid var(--border-subtle, #EFE4D2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.bank-plan-card.active-plan {
  border-color: #27AE60;
  background: #F4FBF7;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.bank-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-plan-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-plan-icon {
  font-size: 18px;
}

.bank-plan-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-title, #2D1E17);
}

.bank-plan-rate-badge {
  font-size: 12px;
  font-weight: 900;
  color: #27AE60;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
}

.bank-plan-desc {
  font-size: 11px;
  color: var(--text-muted, #7D6B5D);
  line-height: 1.35;
}

.bank-plan-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle, #EFE4D2);
}

.bank-plan-status-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #7D6B5D);
}

.btn-select-plan {
  background: var(--bg-card, #FFF);
  border: 1.5px solid var(--border-card, #E8D8C8);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-title, #2D1E17);
  transition: all 0.15s ease;
}

.btn-select-plan:hover {
  background: #27AE60;
  color: #FFF;
  border-color: #27AE60;
}

.btn-select-plan.is-current {
  background: #27AE60;
  color: #FFF;
  border-color: #27AE60;
  cursor: default;
}

/* LỊCH SỬ GIAO DỊCH NGÂN HÀNG */
.bank-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 2px;
}

.bank-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: var(--bg-tray, #F9F5F0);
  border-radius: 8px;
  font-size: 11.5px;
}

.bank-history-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-history-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #7D6B5D);
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

.bank-history-title {
  font-weight: 700;
  color: var(--text-title, #2D1E17);
}

.bank-history-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   24. TÍNH NĂNG MỚI (v1.9.0): REPUTATION, OFFLINE EARNINGS & FLAGSHIP
   ========================================================== */

/* HUD REPUTATION PILL */
.hud-row-stats {
  grid-template-columns: 1.15fr 0.95fr 0.9fr 0.8fr !important;
  gap: 5px !important;
  padding-left: 2px !important;
}

.hud-pill.hud-rep {
  cursor: pointer;
  padding: 0 8px 0 24px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hud-pill.hud-rep:hover {
  transform: scale(1.05);
}

.hud-pill.hud-rep::before {
  content: "⭐";
  font-size: 15px;
  left: -6px;
}

.header-rep-val {
  font-size: 11px;
  font-weight: 800;
  color: #FFE680;
}

/* BANNER HƯỚNG DẪN CÀY DANH TIẾNG TRONG TAB NHÂN VIÊN */
.staff-rep-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.08));
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.staff-rep-banner:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.14));
  border-color: #F59E0B;
  transform: translateY(-1px);
}

.staff-rep-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-rep-banner-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

.staff-rep-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: #D97706;
}

.staff-rep-banner-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-rep-guide-action {
  background: #F59E0B;
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

/* MODAL BÁO CÁO DOANH THU OFFLINE (IMG 3) */
.offline-report-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.offline-report-card {
  background: #FFFDF9;
  border-radius: 28px;
  width: 100%;
  max-width: 410px;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2D1E17;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.offline-report-card.dark-theme {
  background: #231B18;
  color: #F8EDE3;
  border-color: #3E312B;
}

.offline-report-header {
  text-align: center;
  margin-bottom: 14px;
}

.offline-manager-avatars {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.offline-report-title {
  font-size: 18px;
  font-weight: 900;
  color: #1F2937;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.offline-report-card.dark-theme .offline-report-title {
  color: #F9FAFB;
}

.offline-report-sub {
  font-size: 11.5px;
  color: #047857;
  font-weight: 700;
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto;
}

.offline-report-table-box {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offline-report-card.dark-theme .offline-report-table-box {
  background: #2D231F;
  border-color: #3E312B;
}

.offline-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.offline-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4B5563;
}

.offline-report-card.dark-theme .offline-row-label {
  color: #D1D5DB;
}

.offline-row-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.offline-row-divider {
  height: 1px;
  border-top: 1px dashed #E5E7EB;
  margin: 2px 0;
}

.offline-report-card.dark-theme .offline-row-divider {
  border-top-color: #4B3A33;
}

.offline-report-notice {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(245, 124, 31, 0.12);
  border-left: 4px solid #F57C1F;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #7A3E0B;
  text-align: left;
}

.offline-green-card {
  width: 100%;
  background: #ECFDF5;
  border: 1.5px solid #10B981;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.offline-report-card.dark-theme .offline-green-card {
  background: rgba(16, 185, 129, 0.12);
  border-color: #059669;
}

.offline-green-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #065F46;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.offline-report-card.dark-theme .offline-green-badge {
  color: #34D399;
}

.offline-green-amount {
  font-size: 26px;
  font-weight: 900;
  color: #059669;
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
}

.offline-report-card.dark-theme .offline-green-amount {
  color: #10B981;
}

.offline-green-sub {
  font-size: 10.5px;
  color: #047857;
  font-weight: 600;
}

.btn-offline-confirm {
  width: 100%;
  background: #E11D48;
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  transition: all 0.2s;
}

.btn-offline-confirm:hover {
  background: #BE123C;
  transform: translateY(-2px);
}

/* BẤT ĐỘNG SẢN FLAGSHIP (IMG 1) */
.flagship-estate-card {
  background: linear-gradient(135deg, #78350F 0%, #451A03 100%);
  border: 2px solid #B45309;
  border-radius: 20px;
  padding: 16px;
  color: #FFF;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(69, 26, 3, 0.4);
}

.flagship-estate-sub {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FDE68A;
  margin-bottom: 4px;
}

.flagship-estate-title {
  font-size: 16px;
  font-weight: 900;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.flagship-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #10B981;
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.flagship-status-pill.pending {
  background: #F59E0B;
}

.flagship-estate-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #FEF3C7;
  margin-bottom: 12px;
}

.btn-buy-flagship {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: all 0.2s;
}

.btn-buy-flagship:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5);
}















/* ==========================================================
   v2.0.0 · BẢN ĐỒ PHỐ PIXEL & ĐOÀN KIỂM TRA LIÊN NGÀNH
   ========================================================== */
.world-map {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #2a201c;
  overflow: hidden;
  touch-action: none;
  font-family: "Courier New", monospace;
  transition: opacity 0.25s ease;
}
.world-map.wm-hidden {
  opacity: 0;
  pointer-events: none;
}
.world-map-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  image-rendering: pixelated;
  cursor: pointer;
  box-shadow: 0 0 0 4px #3a2412, 0 16px 50px rgba(0, 0, 0, 0.7);
}
.world-map-topbar {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.wm-chip {
  background: rgba(42, 32, 28, 0.85);
  color: #f6e3a8;
  border: 2px solid #c9a24a;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.pixel-box {
  background: #f3e2bd;
  color: #3a2412;
  border: 4px solid #8a5a2b;
  box-shadow: 0 0 0 3px #3a2412, inset 0 0 0 2px #e0c58a;
}
.world-map-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  max-width: 520px;
  margin: 0 auto;
  bottom: calc(76px + env(safe-area-inset-bottom));
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}
.world-map-hint:empty {
  display: none;
}
.wm-enter-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  background: #a3281d;
  color: #fff;
  border: 3px solid #3a2412;
  box-shadow: 0 4px 0 #3a2412;
  padding: 10px 26px;
  font: 700 16px "Courier New", monospace;
  cursor: pointer;
}
.wm-enter-btn:active {
  transform: translate(-50%, 3px);
  box-shadow: 0 1px 0 #3a2412;
}
.inspection-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px calc(16px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.inspection-officer {
  width: 192px;
  height: 280px;
  image-rendering: pixelated;
  margin-bottom: 8px;
  animation: officer-enter 0.6s steps(6) both;
}
@keyframes officer-enter {
  from { transform: translateX(120px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.rpg-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  gap: 12px;
  padding: 12px;
}
.rpg-portrait {
  width: 76px;
  height: 76px;
  flex: none;
  image-rendering: pixelated;
  border: 3px solid #8a5a2b;
  background: #f3e6c4;
}
.rpg-body {
  flex: 1;
  min-width: 0;
}
.rpg-name {
  color: #a3281d;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.rpg-text {
  font-size: 16px;
  line-height: 1.5;
  min-height: 72px;
}
.rpg-next {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: #a3281d;
  animation: rpg-blink 0.8s steps(2) infinite;
}
@keyframes rpg-blink {
  50% { opacity: 0; }
}
.rpg-final {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-bottom: 18vh;
  padding: 32px 18px;
  text-align: center;
  border-color: #a3281d;
}
.rpg-final h3 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 1px;
}
.rpg-final p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
.wm-owner-card {
  position: absolute;
  max-width: 560px;
  margin: 0 auto;
  top: calc(max(10px, env(safe-area-inset-top)) + 38px);
  left: 12px;
  right: 12px;
  text-align: center;
  background: rgba(122, 28, 24, 0.9);
  color: #f6e3a8;
  border: 2px solid #c9a24a;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================
   v2.2.0 · GIAO HÀNG ONLINE THEO QUY TRÌNH THẬT
   Đơn mới -> nhận đơn -> nấu -> đóng gói -> tài xế lấy -> giao khách
   ========================================================== */
.dlv-board {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.dlv-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%), var(--bg-card);
  border: 1.5px solid var(--accent-gold);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.dlv-card.is-new { border-style: dashed; }
.dlv-card.is-delivering { opacity: 0.92; border-color: #00A86B; }
.dlv-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.dlv-id { color: var(--text-title); font-weight: 800; }
.dlv-net { margin-left: auto; font-weight: 900; color: #258A6D; }
.dlv-steps {
  display: flex;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
}
.dlv-step {
  flex: 1;
  text-align: center;
  padding: 2px 0;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}
.dlv-step.is-past { background: #D1F2E4; color: #1A6B53; }
.dlv-step.is-now { background: var(--accent-gold); color: #FFF; }
.dlv-items {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-title);
}
.dlv-note {
  font-size: 11.5px;
  font-weight: 700;
  color: #B45309;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 8px;
  padding: 3px 8px;
}
.dlv-money, .dlv-sub, .dlv-wait {
  font-size: 11px;
  color: var(--text-muted);
}
.dlv-wait { color: #DC2626; font-weight: 800; }
.dlv-age {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}
.dlv-age.is-late { color: #DC2626; }
.dlv-bar {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.12);
}
.dlv-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: #F59E0B;
  transition: width 0.9s linear;
}
.dlv-bar.is-warn > i { background: #DC2626; }
.dlv-road { flex: 1; height: 8px; margin: 0 6px; }
.dlv-road > i { background: #00A86B; }
.dlv-road > em {
  position: absolute;
  top: -9px;
  font-style: normal;
  font-size: 16px;
  transition: left 0.9s linear;
}
.dlv-route { display: flex; align-items: center; font-size: 16px; }
.dlv-driver { margin-bottom: 0; }
.dlv-eta { font-size: 11px; font-weight: 800; color: var(--accent-gold); white-space: nowrap; }
.dlv-cook { font-size: 12px; font-weight: 800; color: var(--text-title); display: flex; flex-direction: column; gap: 3px; }
.dlv-cook.is-done { color: #1A6B53; }
.dlv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dlv-chip {
  border: 1.5px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-title);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.dlv-chip:hover:not(:disabled) { border-color: var(--accent-gold); transform: translateY(-1px); }
.dlv-chip.is-done { background: #D1F2E4; border-color: #00A86B; color: #1A6B53; cursor: default; }
.dlv-chip:disabled:not(.is-done) { opacity: 0.45; cursor: not-allowed; }
.dlv-actions { display: flex; gap: 8px; }
.dlv-btn {
  flex: 1;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: var(--bg-card-subtle);
  color: var(--text-title);
}
.dlv-btn-go {
  background: linear-gradient(135deg, #00A86B 0%, #00875A 100%);
  color: #FFF;
  box-shadow: 0 3px 8px rgba(0, 168, 107, 0.3);
}
.dlv-btn-ghost { flex: 0 0 auto; background: transparent; border: 1.5px solid var(--border-card); }
.dlv-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.dlv-btn:hover:not(:disabled) { filter: brightness(1.06); }
.dlv-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dlv-stat {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  color: var(--text-title);
}
.dlv-stat.is-bad { background: #FEE2E2; color: #DC2626; }
.dlv-empty { text-align: center; padding: 24px 0; color: var(--text-muted); }
.dlv-log-title { margin: 14px 0 6px; font-size: 13px; color: var(--text-title); }
.dlv-log {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}
.dlv-log.is-bad { color: #DC2626; }
.dlv-log.is-warn { color: #B45309; }
.dlv-log.is-ok { color: #1A6B53; }
.dlv-card.is-compact { padding: 8px 10px; gap: 5px; }
.dlv-card.is-compact.is-new .dlv-steps { display: none; }
.dlv-card.is-compact .dlv-btn { padding: 5px 10px; }

/* Ép màng thủ công & đơn COD */
.dlv-payrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dlv-pay {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #DBEAFE;
  color: #1D4ED8;
}
.dlv-pay.is-cod { background: #FEF3C7; color: #B45309; }
.seal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, 0.7);
  touch-action: none;
}
.seal-card {
  background: var(--bg-card, #fff7e6);
  border: 3px solid var(--accent-gold, #c9a24a);
  border-radius: 16px;
  padding: 14px 16px 12px;
  width: min(92vw, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.seal-title { font-size: 15px; font-weight: 900; color: var(--text-title); }
.seal-hint { font-size: 12px; color: var(--text-muted); }
.seal-svg { width: min(78vw, 300px); height: auto; touch-action: none; cursor: grab; user-select: none; }
.seal-svg:active { cursor: grabbing; }
.seal-pot { fill: #5a3a22; stroke: #3a2412; stroke-width: 4; }
.seal-film { fill: rgba(255, 255, 255, 0.18); stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.seal-seg { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 26; stroke-linecap: butt; }
.seal-seg.is-sealed { stroke: #f6c453; }
.seal-count { font-size: 26px; font-weight: 900; fill: #fff; pointer-events: none; }

/* ==========================================================
   v2.3.0 · KINH TẾ THẬT: chợ nguyên liệu, nhân sự, vay vốn, thuế
   ========================================================== */
.mk-trend { font-size: 11px; font-weight: 800; margin-left: 4px; }
.mk-trend.up { color: #DC2626; }
.mk-trend.down { color: #16A34A; }
.mk-life { display: block; font-size: 11px; font-weight: 700; }
.mk-life.is-ok { color: var(--text-muted); }
.mk-life.is-warn { color: #B45309; }
.mk-life.is-danger { color: #DC2626; }
.mk-supply { display: block; font-size: 10.5px; color: var(--text-muted); }
.mk-supply.is-empty { color: #DC2626; font-weight: 800; }
.mk-danger { color: #DC2626; }

.hr-summary, .hr-notes {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  background: var(--bg-card-subtle);
  color: var(--text-title);
}
.hr-notes { background: #FEF3C7; color: #92400E; font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.hr-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-top: 6px; }
.hr-stars { color: #F59E0B; letter-spacing: 1px; }
.hr-mood { height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.12); margin-top: 5px; overflow: hidden; }
.hr-mood > i { display: block; height: 100%; background: #16A34A; }
.hr-mood > i.is-low { background: #DC2626; }
.hr-raise { margin-top: 6px; font-size: 12px; font-weight: 800; color: #B45309; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hr-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hr-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  background: #16A34A;
  color: #FFF;
}
.hr-btn-ghost { background: transparent; color: var(--text-title); border: 1.5px solid var(--border-card); }
.hr-btn:hover { filter: brightness(1.08); }
.hr-interview { text-align: left; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hr-note { font-size: 11.5px; color: var(--text-muted); }

.credit-bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.12); margin: 6px 0 10px; overflow: hidden; }
.credit-bar > i { display: block; height: 100%; }
.credit-bar > i.is-good { background: #16A34A; }
.credit-bar > i.is-mid { background: #F59E0B; }
.credit-bar > i.is-bad { background: #DC2626; }
.loan-row, .fin-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 3px 0; }
.loan-offer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--border-card); font-size: 13px; }
.loan-sub, .loan-note { font-size: 11.5px; color: var(--text-muted); }
.loan-note { margin-bottom: 6px; }
.loan-warn { font-size: 12px; font-weight: 800; color: #DC2626; background: #FEE2E2; border-radius: 10px; padding: 6px 10px; margin: 6px 0; }
.bank-term-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fin-grid { display: flex; flex-direction: column; }
