/**
 * SINH KHÍ v2.0 — STYLESHEET
 * Luxury Dark Emerald & Gold Design System
 * Mobile-First 3-Tab Architecture
 */

:root {
  --bg-primary: #0A1A14;
  --bg-card: #12251C;
  --bg-elevated: #1A3328;
  --bg-input: #07150F;
  --accent: #10B981;
  --accent-light: #34D399;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --gold: #D4AF37;
  --gold-light: #F3D87D;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-subtle: rgba(212, 175, 55, 0.12);
  --text-primary: #F0F5F2;
  --text-secondary: #8FA99B;
  --text-muted: #6B8577;
  --danger: #EF4444;
  --warning: #F59E0B;
  --border-subtle: rgba(212, 175, 55, 0.2);
  --border-card: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 10% 8%, rgba(16, 185, 129, 0.1), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(212, 175, 55, 0.08), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06), transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 96px; /* space for bottom nav */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 26, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #134e35, #082115);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent);
  color: #6EE7B7;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.points-pill:hover {
  background: rgba(16, 185, 129, 0.28);
  transform: translateY(-1px);
}

.btn-qr-studio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-subtle);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-qr-studio:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* APP MAIN CONTAINER */
.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 14px 20px;
}

/* TAB NAVIGATION (BOTTOM FIXED BAR) */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(18, 37, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(16, 185, 129, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-decoration: none;
}

.nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(16, 185, 129, 0.22));
  color: var(--gold-light);
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.15);
}

.nav-item.active .nav-icon {
  transform: scale(1.12);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--bg-card);
  animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* TAB CONTENT SWITCHING */
.tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease forwards;
}
.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WEATHER STRIP */
.weather-strip {
  background: rgba(18, 37, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.weather-strip:hover {
  background: var(--bg-elevated);
  border-color: var(--gold);
}

.weather-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-city-badge {
  color: var(--gold-light);
  font-weight: 700;
}

.weather-formula-hint {
  font-size: 0.72rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

/* SECTION HEADINGS */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* HORIZONTAL PLANT CAROUSEL */
.plant-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 0 -4px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.plant-carousel::-webkit-scrollbar {
  display: none;
}

.plant-thumb-card {
  width: 96px;
  min-width: 96px;
  height: 122px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 18px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.plant-thumb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.4);
}

.plant-thumb-card.active {
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-3px);
}

.thumb-status-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}
.thumb-status-dot.red {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulseDot 1.4s infinite;
}
.thumb-status-dot.yellow {
  background: var(--warning);
}
.thumb-status-dot.green {
  background: var(--accent);
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.thumb-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.thumb-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 84px;
}

.thumb-countdown {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-secondary);
}
.plant-thumb-card.active .thumb-countdown {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
}

.plant-thumb-add {
  border: 1.5px dashed var(--gold);
  background: rgba(212, 175, 55, 0.05);
  justify-content: center;
  gap: 8px;
  color: var(--gold-light);
}
.plant-thumb-add:hover {
  background: rgba(212, 175, 55, 0.12);
}
.plant-thumb-add .add-icon {
  font-size: 26px;
}

/* HERO ACTIVE PLANT CARD */
.plant-hero-card {
  background: linear-gradient(155deg, #132a20 0%, #0c1c14 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-soft), inset 0 0 25px rgba(212, 175, 55, 0.04);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-titles {
  flex: 1;
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-species {
  font-size: 0.84rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 2px;
}

.uid-chip-btn {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.uid-chip-btn:hover {
  background: rgba(212, 175, 55, 0.28);
}

/* COUNTDOWN HERO DISPLAY */
.hero-countdown-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.countdown-status-text {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.countdown-status-text.urgent {
  color: var(--danger);
  animation: pulseUrgent 1.5s infinite;
}
.countdown-status-text.warning {
  color: var(--warning);
}
.countdown-status-text.good {
  color: #34D399;
}

@keyframes pulseUrgent {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease, background 0.3s ease;
}

.countdown-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-emerald {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #04140D;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-emerald:hover {
  filter: brightness(1.1);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37, #B5891C);
  color: #081C13;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-subtle);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* QUICK METRICS GRID (4 BOXES) */
.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 10px 6px;
  text-align: center;
  transition: all 0.2s ease;
}
.metric-box:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.metric-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 3px;
}

/* TAB 2: QR SCANNER */
.scan-view-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-gold);
}

.scan-frame-outer {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 12px auto;
  border-radius: 18px;
  overflow: hidden;
  background: #020805;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab-scan-camera {
  width: 100% !important;
  height: 100% !important;
}

.scan-laser-box {
  position: absolute;
  inset: 15px;
  border: 2px dashed rgba(212, 175, 55, 0.7);
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), #10B981, transparent);
  box-shadow: 0 0 10px var(--gold-light);
  animation: laserScan 2.4s ease-in-out infinite;
}

@keyframes laserScan {
  0% { top: 5%; opacity: 0.2; }
  50% { top: 92%; opacity: 1; }
  100% { top: 5%; opacity: 0.2; }
}

.scan-hint-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.scan-controls-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 16px 0;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.or-divider span {
  padding: 0 10px;
}

.manual-uid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 18px;
}

.input-group-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.input-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s;
}
.input-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* TAB 3: EXPLORE */
.search-bar-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  padding: 12px 18px 12px 42px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-icon-pos {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--gold);
  pointer-events: none;
}

/* 2 EXPLORE LARGE CARDS (MENH & LIGHT) */
.explore-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.explore-feature-card {
  background: linear-gradient(145deg, #12251C, #183325);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-xl);
  padding: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}
.explore-feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.feature-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.feature-card-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.feature-expand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-top: 8px;
}

/* EXPANDABLE DRAWER PANELS FOR MENH & LIGHT */
.expandable-panel {
  display: none;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 18px;
  animation: panelSlideDown 0.28s ease;
}
.expandable-panel.open {
  display: block;
}

@keyframes panelSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LUX METER DISPLAY */
.lux-meter-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.lux-number-big {
  font-size: 2.8rem;
  font-weight: 800;
  color: #34D399;
  line-height: 1.1;
  margin: 6px 0;
}

.lux-zone-tag {
  font-size: 0.84rem;
  font-weight: 800;
  color: #34D399;
}

/* FILTER PILLS CAROUSEL */
.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(212, 175, 55, 0.4);
}
.filter-pill.active {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* BOTANICAL PLANTS GRID */
.explore-plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.explore-plant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.explore-plant-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.explore-plant-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.explore-plant-info {
  flex: 1;
  min-width: 0;
}

.explore-plant-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
}

.explore-plant-sci {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-plant-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* GAMIFICATION SECTION */
.gamification-card {
  background: linear-gradient(145deg, #12251C, #183325);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 24px;
}

.points-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 14px;
}

.points-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #D4AF37);
  border-radius: 99px;
  transition: width 0.3s;
}

.mission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
}
.mission-item.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.mission-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.mission-badge {
  background: var(--gold-subtle);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

/* MODAL SYSTEM (BOTTOM SHEET & FULL MODAL) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open {
  display: flex;
}

.sheet-box {
  background: var(--bg-card);
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 16px 20px 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  animation: sheetSlideUp 0.28s ease;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: rgba(212, 175, 55, 0.4);
  border-radius: 99px;
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
}

.btn-close-sheet {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close-sheet:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

/* TOAST NOTIFICATION */
#app-toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 37, 28, 0.95);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--gold-light);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
#app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* PRINT MEDIA */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-qr-tag, #printable-qr-tag * {
    visibility: visible;
  }
  #printable-qr-tag {
    position: absolute;
    left: 20px;
    top: 20px;
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
}
