/* ==========================================================================
   🌱 KHU VƯỜN ORGANIC (FARM.JPG ISOMETRIC 16 Ô ĐẤT)
   ☀️ HỆ THỐNG THỜI TIẾT & REVIEWER TIKTOKER
   Tiệm Trà Mơ Ước - Version 12.47.291+
   ========================================================================== */

/* --- NÚT THỜI TIẾT TRÊN HEADER --- */
.weather-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border: 1.5px solid #f59e0b;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.weather-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}
.weather-pill-btn.rain {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border-color: #38bdf8;
}
.weather-pill-btn.cold {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border-color: #4ade80;
}
.weather-pill-btn.autumn {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  color: #9a3412;
  border-color: #fb923c;
}

/* --- HIỆU ỨNG THỜI TIẾT TRONG CA BÁN HÀNG --- */
.weather-fx-rain-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 12;
  opacity: 0.45;
}
.weather-raindrop {
  position: absolute;
  width: 1.5px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #38bdf8);
  border-radius: 1px;
  animation: raindrop-fall linear infinite;
}
@keyframes raindrop-fall {
  0% { transform: translateY(-30px); }
  100% { transform: translateY(600px); }
}

.weather-fx-sun-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.32) 0%, rgba(251, 191, 36, 0) 70%);
  z-index: 12;
  animation: sun-pulse 4s ease-in-out infinite alternate;
}
@keyframes sun-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0.95; transform: scale(1.1); }
}

/* --- TIKTOKER REVIEWER HUY HIỆU & AVATAR PHÁT SÁNG --- */
.tiktoker-glow-vip {
  position: relative;
  box-shadow: 0 0 12px rgba(254, 44, 85, 0.75), inset 0 0 8px rgba(37, 244, 238, 0.5) !important;
  border: 2px solid #fe2c55 !important;
  animation: tiktoker-neon 1.6s ease-in-out infinite alternate;
}
@keyframes tiktoker-neon {
  0% { box-shadow: 0 0 8px rgba(254, 44, 85, 0.6), inset 0 0 4px rgba(37, 244, 238, 0.4); }
  100% { box-shadow: 0 0 16px rgba(254, 44, 85, 0.9), inset 0 0 10px rgba(37, 244, 238, 0.8); }
}
.tiktoker-badge-tag {
  background: linear-gradient(135deg, #fe2c55 0%, #ff0050 50%, #25f4ee 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* --- KHU VƯỜN FARM.JPG TRỰC QUAN 16 Ô ĐẤT --- */
.garden-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 20px;
}
.garden-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border: 2px solid #10b981;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
}
.garden-hero-bg {
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 80px;
  opacity: 0.18;
  pointer-events: none;
}
.garden-hero-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.garden-hero-desc {
  font-size: 0.83rem;
  color: #047857;
  line-height: 1.45;
}
.garden-buff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: #059669;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* KHUNG ẢNH VƯỜN FARM.JPG VỚI 16 Ô ĐẤT TOẠ ĐỘ CHUẨN XÁC */
.farm-interactive-canvas {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(78, 52, 28, 0.18);
  border: 3px solid #854d0e;
  background: #c5dfa1;
  user-select: none;
}
.farm-bg-map {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.farm-plots-overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

/* TỪNG Ô ĐẤT TRÊN ẢNH FARM - HOÀN TOÀN TRONG SUỐT, KHÔNG CHE ĐẤT */
.farm-plot-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 13.5%;
  height: 13%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
  overflow: visible;
  z-index: 5;
}
.farm-plot-node:hover {
  transform: translate(-50%, -55%) scale(1.12);
  z-index: 9999 !important;
}
.farm-plot-node:hover::after {
  content: '';
  position: absolute;
  inset: 0px;
  border-radius: 12px;
  border: 1.5px dashed rgba(254, 240, 138, 0.9);
  box-shadow: 0 0 10px rgba(254, 240, 138, 0.8), inset 0 0 6px rgba(255,255,255,0.4);
  pointer-events: none;
}

/* CỤM CÂY TRỒNG VÀ GIỌT NƯỚC (GIỌT NƯỚC ÔM SÁT NGAY VỊ TRÍ CÂY) */
.plot-plant-cluster {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.plot-plant-img {
  width: 92px;
  height: 92px;
  max-width: 250%;
  max-height: 260%;
  object-fit: contain;
  pointer-events: none;
  display: block;
  transform-origin: center bottom;
  margin-bottom: -4px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.38));
}
.plot-plant-img.sprout-stage {
  width: 58px;
  height: 58px;
  margin-bottom: 2px;
}
.plot-plant-img.young-stage {
  width: 76px;
  height: 76px;
  margin-bottom: -1px;
}
.plot-plant-img.ready-bounce {
  animation: plot-bounce 1.1s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.95)) drop-shadow(0 5px 9px rgba(0, 0, 0, 0.45));
}
.plot-iso-sprite {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
  pointer-events: none;
  display: inline-block;
}
.plot-iso-sprite.ready-bounce {
  animation: plot-bounce 1s infinite alternate ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(234, 179, 8, 0.9));
}
@keyframes plot-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px) scale(1.12); }
}

/* THUMBNAIL HẠT GIỐNG & CÂY TRỒNG TRONG SHOP & MODAL */
.seed-thumb-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
  display: block;
}
.seed-chip-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}

/* HUY HIỆU GIỌT NƯỚC GẮN TRỰC TIẾP TRÊN CÂY TRỒNG (KHÔNG TRÔI RA GÓC Ô) */
.plot-iso-water {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
  animation: drop-wiggle 1.8s infinite ease-in-out;
  pointer-events: none;
  z-index: 5;
}
@keyframes drop-wiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(14deg) scale(1.18); }
}

/* BIỂU TƯỢNG Ô KHÓA VÀ Ô TRỐNG SIÊU NHẸ NHÀNG */
.plot-mini-lock {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
  opacity: 0.82;
  transition: transform 0.15s, opacity 0.15s;
  pointer-events: none;
}
.farm-plot-node:hover .plot-mini-lock {
  transform: scale(1.25);
  opacity: 1;
}

.plot-mini-empty {
  font-size: 13px;
  font-weight: 900;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.35);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  border: 1px dashed rgba(254, 240, 138, 0.7);
  transition: transform 0.15s, background 0.15s;
  pointer-events: none;
}
.farm-plot-node:hover .plot-mini-empty {
  transform: scale(1.2);
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  border-style: solid;
}

/* NHÃN THỜI GIAN CÂY LỚN TRỰC TIẾP TRÊN MẢNH ĐẤT */
.plot-time-tag {
  position: absolute;
  bottom: -16px;
  background: rgba(15, 23, 42, 0.88);
  color: #fef08a;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  line-height: 1.15;
  letter-spacing: 0.2px;
  z-index: 10;
}
.plot-time-tag.ready {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border-color: #86efac;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.65);
  animation: ready-tag-bounce 1s infinite alternate ease-in-out;
}
@keyframes ready-tag-bounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* TOOLTIP CHỈ HIỆN KHI RÊ CHUỘT / CHẠM VÀO */
.plot-hover-tip {
  display: none;
  position: absolute;
  bottom: -34px;
  background: rgba(15, 23, 42, 0.92);
  color: #fef08a;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
  z-index: 30;
}
.farm-plot-node:hover .plot-hover-tip {
  display: block;
}

/* THANH THAO TÁC VƯỜN - THIẾT KẾ 3D JUICY & BẮT MẮT */
.garden-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 2px;
}
.garden-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.garden-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}
.garden-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.garden-btn:active {
  transform: translateY(2px);
}

.gbtn-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  flex-shrink: 0;
}
.gbtn-action-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s ease;
}
.garden-btn:hover .gbtn-action-img {
  transform: scale(1.12) rotate(4deg);
}
.gbtn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}
.gbtn-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.gbtn-sub {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 2px;
}

/* Nút Tưới Nước */
.garden-btn.water {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  border-bottom: 3.5px solid #0369a1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  text-shadow: 0 1px 2px rgba(3, 105, 161, 0.5);
}
.garden-btn.water:active {
  border-bottom-width: 1px;
}

/* Nút Thu Hoạch */
.garden-btn.harvest {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-bottom: 3.5px solid #b45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  text-shadow: 0 1px 2px rgba(180, 83, 9, 0.5);
}
.garden-btn.harvest:active {
  border-bottom-width: 1px;
}
.garden-btn.harvest.glow-harvest {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-bottom-color: #15803d;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.55);
  animation: harvest-pulse 1.4s infinite alternate;
}
@keyframes harvest-pulse {
  0% { transform: translateY(0); box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4); }
  100% { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.85); }
}

/* Nút Cửa Hàng Hạt Giống */
.garden-btn.shop {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  border-bottom: 3.5px solid #6b21a8;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.35);
  text-shadow: 0 1px 2px rgba(107, 33, 168, 0.5);
}
.garden-btn.shop:active {
  border-bottom-width: 1px;
}

/* KHO HẠT GIỐNG TÓM TẮT - XUỐNG DÒNG LƯỚI GỌN GÀNG */
.seeds-inventory-strip {
  background: #ffffff;
  border: 2px solid #e7dfd3;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 3px 10px rgba(69, 26, 3, 0.05);
}
.seeds-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #451a03;
}
.seeds-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.seed-chip-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fdfaf6;
  border: 1.5px solid #e5dacf;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.seed-chip-btn:hover {
  transform: translateY(-1.5px);
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}
.seed-chip-btn b {
  color: #059669;
  font-weight: 800;
}

/* SHOP HẠT GIỐNG MODAL */
.seed-shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.seed-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.seed-icon {
  font-size: 32px;
  line-height: 1;
}
.seed-details b {
  font-size: 0.9rem;
  color: #0f172a;
}
.seed-details p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

/* ===== THÚ CƯNG ĐI DẠO TRONG VƯỜN CÂY ===== */
.garden-pet-actor {
  position: absolute;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 22;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  transition: transform 0.2s ease;
}
.garden-pet-actor:hover {
  transform: translate(-50%, -55%) scale(1.14);
}
.garden-pet-shadow {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.38);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.garden-pet-body {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: center bottom;
  transition: transform 0.18s ease;
}
.garden-pet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.garden-pet-actor.walking .garden-pet-img {
  animation: gardenPetWalk 0.32s ease-in-out infinite alternate;
}
.garden-pet-actor.cheering .garden-pet-img {
  animation: gardenPetCheer 0.42s ease-in-out 3 alternate;
}
@keyframes gardenPetWalk {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
@keyframes gardenPetCheer {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}
.garden-pet-bubble {
  position: absolute;
  bottom: 108%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 30;
}
.garden-pet-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.garden-pet-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.92);
}

