/**
 * Rural Connect PWA — Complete Design System
 * Mirrors the Flutter Material 3 theme: green palette, Poppins, warm surfaces.
 */

/* ═══════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS (CSS Custom Properties)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand colours ────────────────────────────────────────────────── */
  --primary: #0E8F4F;
  --primary-dark: #06653A;
  --primary-light: #E8F5EC;
  --primary-container: #D0F2DD;

  --gradient-start: #119B59;
  --gradient-end: #0C7A46;

  --accent-orange: #E07A5F;
  --accent-orange-bg: #FDF0ED;

  /* ── Surfaces ─────────────────────────────────────────────────────── */
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-dim: rgba(255, 255, 255, 0.4);

  /* ── Text ─────────────────────────────────────────────────────────── */
  --on-surface: #1A202C;
  --text-secondary: #4A5568;
  --text-hint: #718096;

  /* ── Borders & Dividers ───────────────────────────────────────────── */
  --border: #E0E0E0;
  --divider: #F0F0F0;

  /* ── Functional ───────────────────────────────────────────────────── */
  --error: #E53E3E;
  --success: #2E7D32;
  --success-bg: #E8F5EC;
  --warning: #E07A5F;
  --warning-bg: #FDF0ED;
  --whatsapp: #25D366;
  --maps-red: #EA4335;
  --price-min: #2E7D32;
  --price-max: #E53E3E;

  /* ── Radii ────────────────────────────────────────────────────────── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ──────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-nav: 0 -1px 3px rgba(0, 0, 0, 0.02);

  /* ── Transitions ──────────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* ── Layout ───────────────────────────────────────────────────────── */
  --nav-height: 60px;
  --appbar-height: 56px;
  --filter-height: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ═══════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'Poppins-fallback';
  src: local('Arial');
  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 10%;
  size-adjust: 98%;
}

/* Prevent layout shift for Material Symbols while the icon font is loading */
.material-symbols-outlined {
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
  vertical-align: middle;
}

body {
  font-family: 'Poppins', 'Poppins-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

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

select {
  font-family: inherit;
  font-size: inherit;
}


/* ═══════════════════════════════════════════════════════════════════════
   3. SPLASH SCREEN
   ═══════════════════════════════════════════════════════════════════════ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.splash.hide {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash__logo {
  width: 120px;
  height: 120px;
  animation: splashScale 1.2s var(--ease-spring) forwards;
  opacity: 0;
}

.splash__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  animation: splashFade 0.8s ease-in 0.2s forwards;
  opacity: 0;
}

.splash__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  animation: splashFade 0.8s ease-in 0.4s forwards;
  opacity: 0;
}

@keyframes splashScale {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   4. APP SHELL — App Bar
   ═══════════════════════════════════════════════════════════════════════ */

.app-bar {
  position: relative;
  z-index: 100;
  height: var(--appbar-height);
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-bar__logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.app-bar__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.app-bar__icon-placeholder {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════
   5. BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  box-shadow: var(--shadow-nav);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-hint);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 0;
  transition: color var(--duration-fast) ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item .material-symbols-outlined {
  font-size: 24px;
  transition: font-size var(--duration-fast) var(--ease-spring);
}

.bottom-nav__item.active {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav__item.active .material-symbols-outlined {
  font-size: 28px;
}

/* Ripple dot on active */
.bottom-nav__item.active::after {
  content: '';
  position: absolute;
  bottom: calc(2px + var(--safe-bottom));
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: navDot 0.3s var(--ease-spring);
}

@keyframes navDot {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   6. TAB CONTENT AREAS
   ═══════════════════════════════════════════════════════════════════════ */

.tab-content {
  display: none;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.25s var(--ease-out);
}

@keyframes tabFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   7. FILTER BAR (Services Tab)
   ═══════════════════════════════════════════════════════════════════════ */

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  /* Centering the dropdown chips vertically */
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--divider);
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 8px 30px 8px 16px;
  /* Space on right for the arrow */
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%230E8F4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-chip.selected {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.filter-chip:focus {
  border-color: var(--primary);
}

.filter-chip--skeleton {
  width: 100px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   8. SERVICES LIST
   ═══════════════════════════════════════════════════════════════════════ */

.services-wrapper {
  padding: 10px 10px;
}

.services-container {
  background: var(--surface-dim);
  border-radius: var(--radius-xl);
  padding: 0 0 16px;
}

.services-heading {
  padding: 16px 16px 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}

/* ── Service Card ──────────────────────────────────────────────────── */

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.service-card:active {
  transform: scale(0.98);
}

.service-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-light);
}

.service-card__thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__thumb-placeholder .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
}

.service-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card__header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.service-card__name {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.service-card__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.service-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.service-card__meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.service-card__meta .material-symbols-outlined {
  font-size: 14px;
}

.service-card__meta-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.service-card__meta-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card__chevron {
  color: var(--text-hint);
  flex-shrink: 0;
}

.service-card__chevron .material-symbols-outlined {
  font-size: 22px;
}


/* ═══════════════════════════════════════════════════════════════════════
   9. SKELETON LOADING
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.skeleton-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

.skeleton-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line--short {
  width: 60%;
}

.skeleton-line--xs {
  width: 40%;
  height: 12px;
}


/* ═══════════════════════════════════════════════════════════════════════
   10. EMPTY & ERROR STATES
   ═══════════════════════════════════════════════════════════════════════ */

.empty-state,
.error-state {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-hint);
}

.empty-state .material-symbols-outlined,
.error-state .material-symbols-outlined {
  font-size: 60px;
}

.error-state .btn-retry {
  margin-top: 4px;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--duration-fast) ease;
}

.error-state .btn-retry:hover {
  background: var(--primary-dark);
}


/* ═══════════════════════════════════════════════════════════════════════
   11. DETAIL MODAL (Bottom Sheet)
   ═══════════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0);
  transition: background var(--duration-normal) ease;
  display: none;
}

.modal-backdrop.open {
  display: block;
  background: rgba(0, 0, 0, 0.45);
}

.detail-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 501;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-sheet.open {
  transform: translateY(0);
}

.detail-sheet__header {
  display: flex;
  align-items: center;
  padding: 8px 8px 4px;
  flex-shrink: 0;
}

.detail-sheet__handle-area {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.detail-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-hint);
}

.detail-sheet__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--duration-fast) ease;
}

.detail-sheet__close:hover {
  background: var(--divider);
}

.detail-sheet__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 32px;
}

/* ── Image Gallery ─────────────────────────────────────────────────── */

.gallery {
  margin-bottom: 12px;
}

.gallery__main {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--primary-light);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast) ease;
}

.gallery__thumb.active {
  border-color: var(--primary);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swipe nav arrows for gallery */
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--duration-fast) ease;
  z-index: 2;
}

.gallery__nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.gallery__nav--prev {
  left: 8px;
}

.gallery__nav--next {
  right: 8px;
}

/* ── Detail Info ───────────────────────────────────────────────────── */

.detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-title {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--primary-container);
  font-size: 12px;
  color: var(--primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.detail-info-row .material-symbols-outlined {
  font-size: 16px;
  color: var(--text-hint);
  margin-top: 2px;
}

.detail-info-row span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Action Buttons ────────────────────────────────────────────────── */

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--duration-fast) ease;
}

.action-btn:hover {
  filter: brightness(0.95);
}

.action-btn .material-symbols-outlined {
  font-size: 18px;
}

.action-btn--call {
  border-color: var(--success);
  color: var(--success);
}

.action-btn--call:hover {
  background: rgba(46, 125, 50, 0.06);
}

.action-btn--whatsapp {
  border-color: var(--whatsapp);
  color: var(--whatsapp);
}

.action-btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.06);
}

.action-btn--maps {
  border-color: var(--maps-red);
  color: var(--maps-red);
}

.action-btn--maps:hover {
  background: rgba(234, 67, 53, 0.06);
}

.action-btn--share {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
}

.action-btn--share:hover {
  background: var(--primary-light);
}

.detail-updated {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-hint);
}

.detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   12. MARKET TAB
   ═══════════════════════════════════════════════════════════════════════ */

.market-content {
  padding: 12px;
}

/* ── Saved Favorites ───────────────────────────────────────────────── */

.market-favorites-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}

.market-favorites-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.market-favorites-title::-webkit-details-marker {
  display: none;
}

.market-favorites-title .expand-icon {
  transition: transform var(--duration-fast) ease;
}

details[open] .market-favorites-title .expand-icon {
  transform: rotate(180deg);
}

.market-favorites-list {
  border-top: 1px solid var(--divider);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market-favorite-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-dim);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.market-favorite-item:hover {
  background: var(--divider);
}

.market-favorite-item .favorite-icon {
  color: var(--danger, #ef5350);
  font-variation-settings: 'FILL' 1;
  font-size: 18px;
}

.market-favorite-item .favorite-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-favorite-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-hint);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.delete-favorite-btn:hover {
  color: var(--danger, #ef5350);
  background: rgba(239, 83, 80, 0.08);
}

.delete-favorite-btn .material-symbols-outlined {
  font-size: 18px;
}

.save-favorite-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--danger, #ef5350);
  transition: background var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.save-favorite-btn:hover:not(:disabled) {
  background: rgba(239, 83, 80, 0.08);
}

.save-favorite-btn:disabled {
  color: var(--text-hint);
  opacity: 0.5;
  cursor: not-allowed;
}

.save-favorite-btn .material-symbols-outlined {
  font-size: 24px;
  transition: font-variation-settings var(--duration-fast) ease;
}

.save-combination-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  animation: hintPulse 2s infinite ease-in-out;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.market-favorites-card--empty {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.market-favorites-card--empty .material-symbols-outlined {
  font-size: 36px;
  color: var(--text-hint);
}

.market-favorites-card--empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

/* ── Filter Card ───────────────────────────────────────────────────── */

.market-filter-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
}

.market-filter-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--on-surface);
}

.market-dropdown {
  margin-bottom: 12px;
}

.market-dropdown:last-child {
  margin-bottom: 0;
}

.market-dropdown label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.market-dropdown select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 14px;
  outline: none;
  transition: border-color var(--duration-fast) ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.market-dropdown select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 93, 165, 0.1);
}

.market-dropdown:not(.market-dropdown--skeleton) select:disabled {
  background-color: #F1F3F5;
  color: var(--text-hint);
  cursor: not-allowed;
}

.market-dropdown--skeleton select {
  color: transparent;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  pointer-events: none;
}

/* ── Info Banner ───────────────────────────────────────────────────── */

.market-info-banner {
  margin-top: 16px;
  padding: 24px 20px;
  background: var(--primary-container);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.market-info-banner .material-symbols-outlined {
  font-size: 48px;
  color: var(--primary);
}

.market-info-banner p {
  color: var(--primary-dark);
  font-weight: 500;
}

/* ── Price Table ───────────────────────────────────────────────────── */

.price-section {
  margin-top: 16px;
}

.price-commodity-title {
  padding: 4px 4px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.variety-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
}

.variety-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.variety-header:hover {
  background: var(--divider);
}

.variety-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.variety-price-summary {
  text-align: right;
}

.variety-modal-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.variety-date {
  font-size: 11px;
  color: var(--text-hint);
}

.variety-chevron {
  margin-left: 8px;
  transition: transform var(--duration-fast) ease;
  color: var(--text-hint);
}

.variety-chevron.expanded {
  transform: rotate(180deg);
}

.variety-body {
  display: none;
  border-top: 1px solid var(--divider);
}

.variety-body.expanded {
  display: block;
  animation: accordionOpen 0.25s var(--ease-out);
}

@keyframes accordionOpen {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.price-table-header {
  display: flex;
  padding: 6px 16px;
  background: rgba(200, 230, 201, 0.3);
}

.price-table-header span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.54);
  text-align: right;
}

.price-table-header span:first-child {
  flex: 2;
  text-align: left;
}

.price-table-header span:not(:first-child) {
  flex: 3;
}

.price-row {
  display: flex;
  padding: 8px 16px;
  border-bottom: 1px solid var(--divider);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row span {
  font-size: 12px;
  text-align: right;
}

.price-row span:first-child {
  flex: 2;
  text-align: left;
  color: var(--on-surface);
}

.price-row span:not(:first-child) {
  flex: 3;
}

.price-min {
  color: var(--price-min);
}

.price-max {
  color: var(--price-max);
}

.price-modal {
  font-weight: 600;
  color: var(--on-surface);
}


/* ═══════════════════════════════════════════════════════════════════════
   13. VIDEOS TAB
   ═══════════════════════════════════════════════════════════════════════ */

.videos-wrapper {
  padding: 14px 14px 10px;
}

.videos-container {
  background: var(--surface-dim);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 8px 0;
}

.videos-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Video Card ────────────────────────────────────────────────────── */

.video-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 4px 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.video-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.video-card:active {
  transform: scale(0.98);
}

.video-card__thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--border);
  overflow: hidden;
}

.video-card__thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__play-btn {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring);
}

.video-card:hover .video-card__play-btn {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.video-card__play-btn .material-symbols-outlined {
  font-size: 32px;
  color: #fff;
}

.video-card__title {
  padding: 10px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__channel-row {
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-card__channel-row .material-symbols-outlined {
  font-size: 14px;
  color: var(--primary);
}

.video-card__channel-name {
  flex: 1;
  font-size: 12px;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card__date {
  font-size: 12px;
  color: var(--text-hint);
}

.video-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px 10px;
}

.video-tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-orange-bg);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-orange);
  cursor: pointer;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.video-tag:hover {
  background: var(--accent-orange);
  color: #fff;
}

/* ── Video tags bar at the top (Collapsible) ───────────────────────── */
.video-tags-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--divider);
}

.video-tags-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.video-tags-current {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-tags-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform var(--duration-fast) ease;
}

.video-tags-bar.expanded .video-tags-toggle-btn {
  transform: rotate(180deg);
}

.video-tags-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out), padding var(--duration-normal) ease;
}

.video-tags-bar.expanded .video-tags-collapsible {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px 0 6px;
}

.video-tags-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-tag-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.video-tag-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.video-tag-chip:hover:not(.active) {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}


/* ═══════════════════════════════════════════════════════════════════════
   14. BACK TO TOP FAB
   ═══════════════════════════════════════════════════════════════════════ */

.fab-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  z-index: 300;
  /* Stays above general content and bottom-nav */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-spring);
}

.fab-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.fab-top:hover {
  background: var(--primary-dark);
}

.fab-top .material-symbols-outlined {
  font-size: 24px;
}


/* ═══════════════════════════════════════════════════════════════════════
   15. LOADING SPINNER
   ═══════════════════════════════════════════════════════════════════════ */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--divider);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.page-spinner {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

/* Sentinel for infinite scroll — invisible element at the bottom */
.scroll-sentinel {
  height: 20px;
  width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════════
   16. PULL TO REFRESH
   ═══════════════════════════════════════════════════════════════════════ */

.pull-to-refresh {
  position: relative;
  width: 100%;
  height: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 60;
  /* Above filter-bar (50), but below app-bar (100) */
  pointer-events: none;
}

.pull-to-refresh__indicator {
  position: absolute;
  top: -40px;
  /* Initially hidden under filter-bar */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0;
  transform: scale(0) rotate(0deg);
  /* The inline style or JS handles transition on release. Default style has no transition for responsive tracking. */
}

.pull-to-refresh__indicator .material-symbols-outlined {
  font-size: 22px;
  font-weight: bold;
}

.pull-to-refresh.pulling .pull-to-refresh__indicator {
  opacity: 1;
}

.pull-to-refresh.refreshing .pull-to-refresh__indicator {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: pull-spin 0.8s linear infinite;
}

@keyframes pull-spin {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   17. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablet and wider: center content, limit card widths */
@media (min-width: 640px) {

  .services-wrapper,
  .market-content,
  .videos-wrapper,
  .terms-privacy-container {
    max-width: 640px;
    margin: 0 auto;
  }

  .gallery__main {
    height: 360px;
  }

  .detail-sheet {
    max-width: 540px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .detail-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
}

/* Desktop: wider layout */
@media (min-width: 1024px) {

  .services-wrapper,
  .market-content,
  .videos-wrapper,
  .terms-privacy-container {
    max-width: 720px;
  }

  .detail-sheet {
    max-width: 600px;
  }

  .gallery__main {
    height: 400px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   18. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   19. INSTALL PWA RIBBON
   ═══════════════════════════════════════════════════════════════════════ */

.install-ribbon {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 0;
  right: 0;
  background-color: var(--primary-light);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 16px rgba(11, 93, 165, 0.15);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
  animation: slideUpRibbon 0.3s var(--ease-out);
}

.install-ribbon__content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.install-ribbon__icon {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.install-ribbon__text {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.install-ribbon__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-install {
  background-color: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) ease;
}

.btn-install:hover {
  background-color: var(--primary-dark);
}

.btn-close-install {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background-color var(--duration-fast) ease;
}

.btn-close-install:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-close-install .material-symbols-outlined {
  font-size: 18px;
}

@keyframes slideDownRibbon {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUpRibbon {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   20. USER PROFILE & SIDE DRAWER & LOGIN MODAL
   ═══════════════════════════════════════════════════════════════════════ */

/* Profile button in App Bar */
.app-bar__profile-btn {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  padding: 0;
}

.app-bar__profile-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.app-bar__profile-btn:active {
  transform: scale(0.93);
}

.app-bar__profile-btn .material-symbols-outlined {
  font-size: 26px;
}

.app-bar__profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Drawer Backdrop & Container */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.menu-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.menu-drawer__header {
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-drawer__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-drawer__avatar-container {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.menu-drawer__avatar-container .material-symbols-outlined {
  font-size: 36px;
  color: #ffffff;
}

.menu-drawer__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.menu-drawer__info {
  min-width: 0;
}

.menu-drawer__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-drawer__email {
  font-size: 11px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-drawer__close {
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast) ease;
}

.menu-drawer__close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.menu-drawer__close .material-symbols-outlined {
  font-size: 22px;
}

/* Drawer Navigation List */
.menu-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.menu-drawer__nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-drawer__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
  width: 100%;
  text-align: left;
}

.menu-drawer__item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.menu-drawer__item .material-symbols-outlined {
  font-size: 22px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.menu-drawer__item:hover .material-symbols-outlined {
  color: var(--primary);
}

.menu-drawer__divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 12px 20px;
}

.menu-drawer__footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Login Modal & Backdrop */
.login-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1400;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  overflow: hidden;
}

.login-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.login-modal__card {
  padding: 32px 24px;
  position: relative;
}

.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast) ease;
}

.login-modal__close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.login-modal__header {
  text-align: center;
  margin-bottom: 24px;
}

.login-modal__logo-container {
  width: 64px;
  height: 64px;
  /*border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 10px rgba(11, 93, 165, 0.2);
  */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;

}

.login-modal__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  /*filter: brightness(10);*/
}

.login-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 6px;
}

.login-modal__subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 10px;
  line-height: 1.4;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-modal__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.login-modal__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-modal__input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  font-size: 20px;
  pointer-events: none;
}

.login-modal__input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  background-color: var(--surface-light);
}

.login-modal__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 93, 165, 0.15);
  background-color: #ffffff;
}

.login-modal__submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(11, 93, 165, 0.2);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  margin-top: 8px;
}

.login-modal__submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 93, 165, 0.25);
}

.login-modal__submit-btn:active {
  transform: translateY(1px);
}

.login-modal__submit-btn .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--duration-fast) ease;
}

.login-modal__submit-btn:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.login-modal__google-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: var(--radius-md);
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform var(--duration-fast) ease;
  cursor: pointer;
}

.btn-google-login:hover {
  background-color: #f8f9fa;
  border-color: #d2d4d9;
  box-shadow: 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-google-login:active {
  background-color: #f1f3f4;
  transform: scale(0.98);
}

.google-icon {
  flex-shrink: 0;
}

.login-modal__divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.login-modal__divider::before,
.login-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.login-modal__divider::before {
  margin-right: 12px;
}

.login-modal__divider::after {
  margin-left: 12px;
}

/* Google Account Chooser Modal */
.google-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.google-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.google-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  z-index: 1600;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  overflow: hidden;
}

.google-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.google-modal__card {
  padding: 32px 24px 24px 24px;
}

.google-modal__header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.google-modal__g-logo {
  width: 48px;
  height: 48px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.google-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 4px;
  font-family: inherit;
}

.google-modal__subtitle {
  font-size: 13px;
  color: #5f6368;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  max-height: 240px;
  overflow-y: auto;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  width: 100%;
  background: none;
  border: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.google-account-item:hover {
  background-color: #f8f9fa;
}

.google-account-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.google-account-item__avatar--add {
  background-color: #f1f3f4;
  color: #5f6368;
}

.google-account-item__info {
  min-width: 0;
}

.google-account-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  line-height: 1.2;
}

.google-account-item__email {
  font-size: 11px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-modal__footer {
  display: flex;
  justify-content: flex-end;
}

.btn-google-cancel {
  background: none;
  border: none;
  color: #5f6368;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn-google-cancel:hover {
  background-color: #f8f9fa;
  color: #202124;
}

/* ═══════════════════════════════════════════════════════════════════════
   21. TERMS & PRIVACY POLICY VIEW
   ═══════════════════════════════════════════════════════════════════ */

/* Menu Drawer Footer Link Styling */
.menu-drawer__footer-link {
  display: block;
  margin: 0 auto 10px auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: color var(--duration-fast) ease, text-decoration var(--duration-fast) ease;
  width: fit-content;
}

.menu-drawer__footer-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Container & Layout */
.terms-privacy-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sub Tabs Selector */
.terms-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 8px;
}

.terms-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background-color: transparent;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
}

.terms-tab-btn:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--on-surface);
}

.terms-tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-container);
  box-shadow: var(--shadow-sm);
}

.terms-tab-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Card Content */
.terms-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  min-height: 350px;
}

.terms-section {
  display: none;
}

.terms-section.active {
  display: block;
  animation: tabFadeIn var(--duration-normal) var(--ease-out);
}

/* Content Groups */
.lang-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lang-group.kn-font {
  font-family: 'Poppins', 'Poppins-fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 4px;
}

.policy-block {
  padding: 14px 16px;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.policy-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-container);
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-icon {
  color: var(--primary);
  font-size: 20px;
}

.policy-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}

.policy-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.policy-text strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Divider with Label */
.terms-divider {
  height: 1.5px;
  background-color: var(--border);
  margin: 32px 0 24px 0;
  position: relative;
}

.terms-divider::after {
  content: "ಕನ್ನಡ ಅನುವಾದ / Kannada Translation";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--surface);
  padding: 4px 14px;
  font-size: 11px;
  color: var(--text-hint);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   11. ABOUT SECTION & SLIDESHOW CAROUSEL
   ═══════════════════════════════════════════════════════════════════════ */

.about-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  min-height: 380px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slides-container {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.15s ease-in-out;
}

.slides-container.fading {
  opacity: 0;
}

/* Nav buttons */
.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  z-index: 10;
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.slide-nav-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
  transform: translateY(-50%) scale(1.05);
}

.slide-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-nav-btn.prev-btn {
  left: 12px;
}

.slide-nav-btn.next-btn {
  right: 12px;
}

/* Hide navigation buttons on touch screens / mobile, users swipe instead */
@media (max-width: 600px) {
  .slide-nav-btn {
    display: none;
  }
  .slideshow-wrapper {
    min-height: 400px;
  }
}

/* Progress dots */
.slides-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  z-index: 2;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--border);
  transition: background-color var(--duration-normal) var(--ease-out), width var(--duration-normal) var(--ease-out);
}

.slide-dot.active {
  background-color: var(--primary);
  width: 18px;
}

/* Slide Typography */
.slide-header {
  margin-bottom: 20px;
}

.slide-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.slide-subtitle {
  font-size: 14px;
  color: var(--accent-orange);
  margin-top: 4px;
  font-weight: 500;
}

.slide-main-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

/* Speaker Notes below */
.slide-notes-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.slide-notes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.slide-notes-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.slide-notes-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Intro Layout Style */
.intro-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 20px 0;
}

.intro-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.intro-icon {
  font-size: 72px !important;
  color: var(--primary);
}

.intro-badge {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--primary-container);
}

.pulse-animation {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

/* Question Grid Layout Style */
.question-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.need-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.need-card:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.need-card.active {
  background-color: var(--primary-container);
  border-color: var(--primary);
}

.need-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-secondary);
  margin-bottom: 6px;
  transition: all var(--duration-normal);
}

.need-card.active .need-icon {
  background-color: var(--primary);
  color: var(--surface);
}

.need-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

.need-reveal {
  font-size: 11px;
  color: var(--primary-dark);
  margin-top: 4px;
  font-weight: 500;
}

/* Talent Grid Layout Style */
.talent-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.skill-badge {
  color: var(--primary);
  background-color: var(--primary-light);
  border-radius: var(--radius-full);
  padding: 4px;
  font-size: 16px !important;
}

.skill-info {
  display: flex;
  flex-direction: column;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

.skill-desc {
  font-size: 11px;
  color: var(--text-hint);
}

/* Limited Growth Layout */
.growth-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.growth-card {
  flex: 1;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.growth-card h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

.growth-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.growth-list li {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.growth-list li span {
  font-size: 12px !important;
  color: var(--error);
}

.growth-arrow {
  color: var(--text-hint);
  display: flex;
  align-items: center;
}

.growth-card.highlighted {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.growth-card.highlighted h4 {
  color: var(--primary-dark);
}

.growth-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.growth-highlight span {
  font-size: 28px !important;
  color: var(--primary);
}

.growth-highlight p {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Stepper Flow Layout */
.stepper-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  width: 100%;
}

.stepper-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.stepper-grid .step-circle {
  justify-self: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--duration-normal);
}

.stepper-grid .step-circle.active {
  background-color: var(--primary);
  color: var(--surface);
}

.stepper-grid .step-label {
  justify-self: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-hint);
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
}

.stepper-grid .step-label.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.stepper-grid .step-line {
  height: 2px;
  background-color: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-grid .step-line.active {
  background-color: var(--primary-container);
}

.stepper-grid .line-arrow {
  font-size: 12px !important;
  color: var(--text-hint);
  background-color: var(--surface);
  padding: 0 4px;
}

.stepper-grid .step-line.active .line-arrow {
  color: var(--primary);
}

.stepper-connector-vertical {
  justify-self: center;
  align-self: center;
  color: var(--text-hint);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.stepper-connector-vertical.active {
  color: var(--primary);
}

.stepper-connector-vertical .connector-arrow {
  font-size: 16px !important;
}

/* Benefits Grid Layout */
.benefits-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.benefit-check {
  color: var(--primary);
  font-size: 18px !important;
}

.benefit-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface);
}

/* Free Pulse Layout */
.free-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.free-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.giant-free-badge {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-orange);
  background-color: var(--accent-orange-bg);
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-orange);
  animation: pulse-glow 2s infinite ease-in-out;
}

.free-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.promises-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-container);
}

.promise-item span {
  font-size: 18px !important;
}

/* Onboarding steps layout */
.onboarding-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.onboarding-steps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 1px solid var(--border);
}

.onboarding-number {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.onboarding-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface);
}

/* Case Study layout */
.case-layout {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.case-study-cards {
  display: flex;
  gap: 12px;
}

.case-card {
  flex: 1;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.case-card.after {
  background-color: var(--success-bg);
  border-color: var(--primary);
}

.case-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  background-color: var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  align-self: flex-start;
}

.case-badge.active {
  background-color: var(--primary);
  color: var(--surface);
}

.case-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.3;
}

.chart-mock {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.chart-mock .bar {
  flex: 1;
  background-color: var(--text-hint);
  border-radius: 2px 2px 0 0;
}

.chart-mock.active .bar {
  background-color: var(--primary);
}

.chart-mock.active .bar.highlight {
  background-color: var(--accent-orange);
}

.case-summary-bar {
  font-size: 10px;
  color: var(--text-hint);
  text-align: center;
}

/* Scale timeline layout */
.scale-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.scale-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.scale-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scale-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--border);
  color: var(--text-hint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-node.active .scale-dot {
  background-color: var(--primary);
  color: var(--surface);
}

.scale-node:last-child.active .scale-dot {
  background-color: var(--accent-orange);
}

.scale-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-hint);
  white-space: nowrap;
}

.scale-node.active .scale-label {
  color: var(--on-surface);
}

.scale-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--border);
  margin-bottom: 18px;
}

.scale-node.active + .scale-line {
  background-color: var(--primary-container);
}

/* CTA layout */
.cta-layout {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.cta-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background-color: var(--bg);
  border: 1.5px dashed var(--primary);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.cta-qr-icon {
  font-size: 48px !important;
  color: var(--primary-dark);
}

.cta-qr-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
}

.cta-info-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-container);
}

.cta-info-item span {
  color: var(--primary);
}

.cta-info-item a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}