/*
 * EcoSort AI - Master Stylesheet
 * Premium Environmental Technology Theme
 * Emerald Green & Forest Green Palette with Dark/Light Support
 */

:root {
  /* Emerald & Forest Brand Palette */
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-dark: #047857;
  --color-forest: #064e3b;
  --color-forest-deep: #022c22;
  --color-emerald-light: #d1fae5;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);

  /* Functional Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #0284c7;

  /* Light Mode Defaults */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-focus: #10b981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-card: #111827;
  --bg-card-subtle: #1e293b;
  --bg-input: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-subtle: #1e293b;
  --border-focus: #10b981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Helper Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-info { color: var(--color-info) !important; }

/* Top Navigation Bar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-forest) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-forest) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .brand-text h1 {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline-mini {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 1px;
}

/* Nav Menu Links */
.nav-desktop-wrap {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-desktop-wrap::-webkit-scrollbar {
  display: none;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--bg-card-subtle);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-emerald-light);
  font-weight: 600;
}

[data-theme="dark"] .nav-link.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Nav Actions Right */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-action-btn {
  padding: 0.4rem 0.7rem !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
}

.points-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
}

[data-theme="dark"] .points-pill {
  color: #fbbf24;
}

.icon-btn-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.icon-btn-toggle i {
  pointer-events: none;
}

.icon-btn-toggle:hover {
  background-color: var(--border-subtle);
  color: var(--color-primary);
}

/* Mobile Navbar toggle */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  gap: 2px;
}

.mobile-nav-item i {
  font-size: 1.15rem;
}

.mobile-nav-item.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* App Main Content Area */
.app-container {
  flex: 1;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

/* Views Animation */
.app-view {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Generic Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--color-emerald-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-forest) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--color-emerald-glow);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================================
   HOME / LANDING VIEW
   ======================================================== */
.hero-section {
  padding: 3rem 1rem 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-exhibition {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-emerald-light);
  color: var(--color-forest);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .badge-exhibition {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

[data-theme="dark"] .hero-tagline {
  color: #34d399;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Quick Metrics Row */
.quick-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1050px;
  margin-top: 1rem;
}

.metric-pill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-emerald-light);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

[data-theme="dark"] .metric-icon {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.metric-text h4 {
  font-size: 1.3rem;
  font-weight: 800;
}

.metric-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  text-align: center;
  margin: 4rem 0 2.5rem 0;
}

.section-tag {
  text-transform: uppercase;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How It Works Steps */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border-subtle);
  font-family: 'Outfit', sans-serif;
}

.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Exhibition Creator Banner */
.exhibition-creator-card {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #ffffff;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.creator-info h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.creator-info p {
  color: #a7f3d0;
  max-width: 600px;
  font-size: 0.95rem;
}

.tech-stack-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-pill {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ========================================================
   AI SCANNER VIEW
   ======================================================== */
.scanner-container {
  max-width: 900px;
  margin: 0 auto;
}

.scanner-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.scanner-title-group h2 {
  font-size: 1.9rem;
}

.scanner-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.scanner-controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.badge-success {
  background-color: var(--color-emerald-light);
  color: var(--color-primary-dark);
}

.badge-warning {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-demo {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Demo Notice Banner */
.demo-banner-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .demo-banner-box {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #86efac;
}

.demo-banner-box i {
  font-size: 1.3rem;
  margin-top: 2px;
}

/* Scanner Stage Card */
.scanner-stage-card {
  background-color: var(--bg-card);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.scanner-stage-card.drag-active {
  border-color: var(--color-primary);
  background-color: var(--color-emerald-light);
}

[data-theme="dark"] .scanner-stage-card.drag-active {
  background-color: rgba(16, 185, 129, 0.1);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.drop-icon-large {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.drop-zone-content h3 {
  font-size: 1.3rem;
}

.drop-zone-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 480px;
}

.drop-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Quick Sample Test Bar */
.sample-test-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.sample-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sample-buttons-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sample-btn {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.sample-btn:hover {
  background-color: var(--color-emerald-light);
  border-color: var(--color-primary);
  color: var(--color-forest);
  transform: translateY(-1px);
}

[data-theme="dark"] .sample-btn:hover {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* 100% Precision Selector Bar */
.precision-selector-card {
  margin-top: 1rem;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.precision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.precision-title {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.precision-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background-color: var(--color-emerald-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .precision-badge {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.precision-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.precision-select {
  width: 100%;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--bg-input);
}

/* Camera Live View */
.camera-view-container {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000000;
  box-shadow: var(--shadow-md);
}

.camera-feed-video {
  width: 100%;
  height: auto;
  display: block;
  transform: scaleX(-1); /* Mirror camera for natural feel */
}

.camera-overlay-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

.camera-controls-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Image Preview Box */
.preview-box {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.preview-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.preview-clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.preview-clear-btn:hover {
  background-color: var(--color-danger);
}

/* Analyse Trigger Row */
.analyse-trigger-row {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.btn-analyse-big {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ========================================================
   PREDICTION RESULTS CARD
   ======================================================== */
.result-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease-out;
}

.result-card.uncertain-card {
  border: 2px solid var(--color-warning);
}

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

.result-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.category-tag {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.confidence-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.badge-high {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-med {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-low {
  background-color: #fee2e2;
  color: #b91c1c;
}

.demo-tag {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.model-tag {
  background-color: #e0e7ff;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.result-title {
  font-size: 1.6rem;
}

/* Alert Box */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.alert-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

[data-theme="dark"] .alert-warning {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.alert-warning i {
  font-size: 1.3rem;
  margin-top: 2px;
}

/* Disposal Grid */
.disposal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.disposal-box {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.bin-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bin-blue {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

[data-theme="dark"] .bin-blue {
  background-color: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.3);
  color: #38bdf8;
}

.bin-green {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

[data-theme="dark"] .bin-green {
  background-color: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.3);
  color: #4ade80;
}

.bin-teal {
  background-color: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

[data-theme="dark"] .bin-teal {
  background-color: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
  color: #2dd4bf;
}

.bin-red {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

[data-theme="dark"] .bin-red {
  background-color: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  color: #f87171;
}

.disposal-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.disposal-val {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.disposal-sub {
  font-size: 0.9rem;
}

.clean-instructions {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.clean-instructions li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.impact-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.88rem;
}

.impact-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Probability Drawer */
.probability-breakdown {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.breakdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breakdown-toggle:hover {
  color: var(--color-primary);
}

.prob-drawer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prob-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

.prob-bar-track {
  height: 8px;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.prob-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================================
   DISPOSAL GUIDE VIEW
   ======================================================== */
.guide-header-box {
  margin-bottom: 2rem;
}

.guide-search-row {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.guide-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.guide-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-emerald-glow);
}

/* Filter Pills */
.filter-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.guide-filter-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.guide-filter-pill:hover,
.guide-filter-pill.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Category Cards Row */
.guide-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.guide-cat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.guide-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.guide-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.guide-cat-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.guide-bin-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.guide-cat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Guide Items List */
.guide-items-table {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.guide-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 3fr;
  padding: 1rem 1.5rem;
  background-color: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.guide-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 3fr;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast);
}

.guide-item-row:hover {
  background-color: var(--bg-card-subtle);
}

.guide-item-row.hazardous-row {
  background-color: rgba(239, 68, 68, 0.04);
}

.badge-hazard {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-danger);
  margin-top: 0.2rem;
}

.cat-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.bin-text {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.empty-guide-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-guide-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ========================================================
   DASHBOARD VIEW
   ======================================================== */
.dashboard-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Summary Counters Grid */
.dashboard-counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.counter-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.counter-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.counter-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.counter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.chart-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.chart-header h3 {
  font-size: 1.15rem;
}

.chart-wrapper {
  position: relative;
  height: 260px;
  width: 100%;
}

/* Impact Calculation Card */
.impact-est-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.impact-est-header {
  margin-bottom: 1.5rem;
}

.impact-est-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.impact-est-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.impact-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.impact-stat-item {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.impact-stat-icon {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.impact-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .impact-stat-num {
  color: #34d399;
}

.impact-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.impact-formula-note {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Scan History Table */
.history-section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.data-table-wrapper {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.custom-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.thumb-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scan-thumb-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.scan-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.category-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.conf-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

/* ========================================================
   QUIZ VIEW
   ======================================================== */
.quiz-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-progress-track {
  height: 8px;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #0284c7 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.quiz-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quiz-category-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-points-preview {
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-question-title {
  font-size: 1.45rem;
  margin-bottom: 1.75rem;
  line-height: 1.35;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-card-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background-color: var(--bg-card);
  transform: translateX(4px);
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quiz-option-btn.option-correct {
  background-color: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
  font-weight: 600;
}

[data-theme="dark"] .quiz-option-btn.option-correct {
  background-color: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
}

.quiz-option-btn.option-incorrect {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

[data-theme="dark"] .quiz-option-btn.option-incorrect {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

/* Quiz Feedback Box */
.quiz-feedback-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  animation: fadeIn 0.3s ease;
  margin-top: 1rem;
}

.feedback-correct {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

[data-theme="dark"] .feedback-correct {
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.feedback-incorrect {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

[data-theme="dark"] .feedback-incorrect {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.feedback-header {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.feedback-body {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.btn-next-q {
  margin-top: 0.5rem;
}

/* Quiz Results Card */
.quiz-results-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.results-badge-wrap {
  margin-bottom: 1.25rem;
}

.results-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.results-tier {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.results-score-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.score-chip {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  min-width: 180px;
}

.score-chip.highlight-chip {
  border-color: var(--color-primary);
  background-color: var(--color-emerald-light);
  color: var(--color-forest);
}

[data-theme="dark"] .score-chip.highlight-chip {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.chip-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.chip-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.results-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem auto;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.quiz-review-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: left;
}

.review-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}

.review-drawer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
}

.review-top {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.review-status {
  font-weight: 700;
  font-size: 0.82rem;
}

.review-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.review-ans-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.review-exp {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========================================================
   POINTS & LEADERBOARD VIEW
   ======================================================== */
.gamify-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-forest) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.profile-names h3 {
  font-size: 1.3rem;
}

.profile-school {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.level-card-sub {
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.level-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.level-badge-name {
  font-weight: 700;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .level-badge-name {
  color: #34d399;
}

.level-bar-track {
  height: 10px;
  background-color: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #059669 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.level-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.p-stat {
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.p-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--color-primary);
}

.p-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Badges Section */
.badges-section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.badges-section-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.badges-section-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.badge-item {
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  border: 1.5px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.badge-item.badge-unlocked {
  background-color: #f0fdf4;
  border-color: #86efac;
}

[data-theme="dark"] .badge-item.badge-unlocked {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-item.badge-locked {
  background-color: var(--bg-card-subtle);
  opacity: 0.55;
  filter: grayscale(1);
}

.badge-icon-wrap {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.badge-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Leaderboard Table */
.leaderboard-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.leader-disclaimer-banner {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .leader-disclaimer-banner {
  background-color: var(--bg-card-subtle);
}

.rank-badge {
  font-weight: 800;
  font-size: 1rem;
}

.leader-user {
  display: flex;
  flex-direction: column;
}

.leader-school {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.leader-badge-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--bg-card-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.leader-points {
  color: #d97706;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.current-user-row {
  background-color: rgba(16, 185, 129, 0.08) !important;
  border-left: 4px solid var(--color-primary);
}

/* ========================================================
   DAILY CHALLENGES & FAQ VIEW
   ======================================================== */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.challenge-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.challenge-card.challenge-done {
  border-color: #86efac;
  background-color: #f0fdf4;
}

[data-theme="dark"] .challenge-card.challenge-done {
  background-color: rgba(16, 185, 129, 0.08);
}

.challenge-day {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.challenge-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.challenge-task {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.challenge-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.challenge-reward {
  font-weight: 700;
  font-size: 0.88rem;
}

.btn-done {
  background-color: #86efac;
  color: #166534;
  cursor: default;
}

/* FAQ Accordion */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--color-primary);
}

.faq-question-btn i {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-accordion-item.open .faq-question-btn i {
  transform: rotate(180deg);
}

.faq-answer-panel {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-accordion-item.open .faq-answer-panel {
  display: block;
}

/* ========================================================
   MODALS
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-size: 1.4rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-emerald-glow);
}

.guide-steps-list {
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ========================================================
   TOAST NOTIFICATIONS
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-exit {
  animation: toastSlideOut 0.3s forwards ease-in;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

.toast-success {
  border-left: 4px solid var(--color-success);
}
.toast-success i { color: var(--color-success); }

.toast-error {
  border-left: 4px solid var(--color-danger);
}
.toast-error i { color: var(--color-danger); }

.toast-warning {
  border-left: 4px solid var(--color-warning);
}
.toast-warning i { color: var(--color-warning); }

.toast-info {
  border-left: 4px solid var(--color-info);
}
.toast-info i { color: var(--color-info); }

.toast-message {
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Spinner */
.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: var(--radius-full);
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   GEMINI VISION & MODAL TABS STYLES
   ======================================================== */
.badge-gemini {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .badge-gemini {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
}

.gemini-tag {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.gemini-promo-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.gemini-promo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-gemini-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  background-color: #dbeafe;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .badge-gemini-pill {
  background-color: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.gemini-free-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background-color: var(--color-emerald-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .gemini-free-tag {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Modal Tabbed Header */
.modal-tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.modal-tab-btn {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.modal-tab-btn:hover {
  background-color: var(--border-subtle);
  color: var(--text-main);
}

.modal-tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.modal-tab-pane {
  animation: fadeIn 0.25s ease-out;
}

/* ========================================================
   AT-HOME REUSE & UPCYCLING SECTION (SCAN RESULT)
   ======================================================== */
.reuse-analysis-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(2, 132, 199, 0.05) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.75rem 0;
}

[data-theme="dark"] .reuse-analysis-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.reuse-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.reuse-title-wrap h4 {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.reuse-badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  letter-spacing: 0.05em;
  background-color: var(--color-emerald-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .reuse-badge-pill {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.reuse-points-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d97706;
  background-color: #fef3c7;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .reuse-points-tag {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.reuse-analysis-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.reuse-ideas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.reuse-project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.reuse-project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.reuse-project-card.project-completed {
  border-color: #86efac;
  background-color: #f0fdf4;
}

[data-theme="dark"] .reuse-project-card.project-completed {
  background-color: rgba(16, 185, 129, 0.1);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.project-difficulty {
  color: var(--text-muted);
  font-weight: 600;
}

.project-num {
  font-weight: 800;
  color: var(--color-primary);
}

.project-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.project-purpose {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.project-materials {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.mat-label {
  font-weight: 700;
  color: var(--text-muted);
}

.mat-chip {
  background-color: var(--bg-card-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-steps-box {
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.steps-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.project-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.project-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.project-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ========================================================
   UPCYCLING LAB DEDICATED CATALOG VIEW
   ======================================================== */
.upcycle-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.upcycle-catalog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.upcycle-catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.upcycle-catalog-card.project-completed {
  border-color: #86efac;
  background-color: #f0fdf4;
}

[data-theme="dark"] .upcycle-catalog-card.project-completed {
  background-color: rgba(16, 185, 129, 0.08);
}

.upcycle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.upcycle-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.upcycle-diff-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.upcycle-points-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: #d97706;
  background-color: #fef3c7;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .upcycle-points-pill {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.upcycle-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.upcycle-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.section-micro-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.materials-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.upcycle-steps-accordion {
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.upcycle-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.upcycle-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.step-num-badge {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.upcycle-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Footer */
.app-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Quick Switch Bar on Result Card */
.quick-switch-bar {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-switch-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sample-btn.active-switch {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Visual Reuse Examples Gallery inside Scan Results */
.reuse-visual-gallery {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.reuse-gallery-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.reuse-gallery-heading {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.reuse-ext-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ext-insp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.ext-insp-link.pinterest-link:hover {
  background-color: #e60023;
  border-color: #e60023;
  color: #ffffff;
}

.ext-insp-link.google-link:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.reuse-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.reuse-example-img-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.reuse-example-img-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reuse-img-frame {
  width: 100%;
  height: 155px;
  overflow: hidden;
  background-color: #f8fafc;
}

.reuse-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reuse-img-meta {
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reuse-img-meta strong {
  font-size: 0.86rem;
  color: var(--text-main);
}

.reuse-img-meta span {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .nav-desktop-wrap {
    display: none;
  }

  .mobile-nav-bar {
    display: flex;
  }

  .app-container {
    padding-bottom: 6rem;
  }
}

@media (max-width: 992px) {
  .disposal-grid,
  .charts-grid,
  .gamify-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 0 0.85rem;
  }

  .points-pill {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .guide-table-head {
    display: none;
  }

  .guide-item-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }
}
