@import url('https://fonts.googleapis.com/css2?family=Boogaloo&family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

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

/* FOUC guard: hide everything until translations are loaded */
body { visibility: hidden; }
body.i18n-ready { visibility: visible; }

:root {
  --primary: #D4820A;
  --primary-dark: #B06E08;
  --primary-light: #FDF3E0;
  --accent: #00838F;
  --accent-light: #E0F4F5;
  --rust: #C4440A;
  --green: #2E7D32;
  --brown: #5D2E0C;
  --brown-light: #8B5E3C;
  --cream: #F5F0E8;
  --surface: #F5F0E8;
  --text: #5D2E0C;
  --text-secondary: #8B5E3C;
  --border: #C4440A;
  --border-light: #E8D0B8;
  --success: #2E7D32;
  --error: #C4440A;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 3px 12px rgba(93,46,12,0.12);
  --shadow-lg: 0 8px 28px rgba(93,46,12,0.18);
  --text-shadow: 2px 2px 0px #5D2E0C;
  /* Language switcher accent — alias to brand rust so the switcher inherits the app theme */
  --lang-accent: var(--rust);
}

@media (prefers-color-scheme: dark) {
  :root {
    --lang-accent: var(--rust);
  }
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle mandala-inspired radial pattern */
  background-image:
    radial-gradient(circle at 15% 25%, rgba(0,131,143,0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(196,68,10,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212,130,10,0.02) 0%, transparent 70%);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === SVG Icon System === */
.icon {
  width: 36px;
  height: 36px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: inherit;
}

/* === Header === */
.header {
  background: var(--cream);
  border-bottom: 3px solid var(--rust);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(93,46,12,0.08);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  color: var(--brown);
  line-height: 1;
  flex-shrink: 0;
}

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

.logo {
  font-family: 'Boogaloo', sans-serif;
  font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0;
  line-height: 1.1;
  text-shadow: 1px 1px 0px rgba(93,46,12,0.3);
}
.logo-link { text-decoration: none; }
.logo-link:hover { text-decoration: none; }

.logo-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-top: -2px;
  text-shadow: none;
}

/* === Header Icon Buttons (Install, Share) === */
.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--rust);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 1.25rem;
  opacity: 0.7;
}
.header-icon-btn .icon { width: 24px; height: 24px; }

.header-icon-btn:hover {
  background: rgba(196,68,10,0.1);
  color: var(--rust);
  opacity: 1;
}

.volunteer-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
}
.volunteer-link .icon { width: 24px; height: 24px; fill: currentColor; }

.volunteer-link:hover {
  background: rgba(196,68,10,0.1);
  color: var(--rust);
  text-decoration: none;
  opacity: 1;
}

/* === Language Selector Bubble === */
.lang-selector {
  position: relative;
}

.lang-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--lang-accent);
  background: var(--cream);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
  padding: 0;
}

.lang-bubble:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}

.lang-bubble:active {
  transform: scale(0.96);
}

.lang-bubble:focus-visible {
  outline: 2px solid var(--lang-accent);
  outline-offset: 3px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--cream);
  border: 2.5px solid var(--lang-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  transition: background 0.12s ease;
}

.lang-dropdown-item:hover {
  background: color-mix(in srgb, var(--lang-accent) 8%, transparent);
}

.lang-dropdown-item.active {
  background: color-mix(in srgb, var(--lang-accent) 14%, transparent);
  color: var(--lang-accent);
  font-weight: 800;
}

.lang-dropdown-item:focus-visible {
  outline: 2px solid var(--lang-accent);
  outline-offset: -2px;
}

.lang-dropdown-item-flag {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.lang-dropdown-item-name {
  flex: 1;
}

.lang-dropdown-item-check {
  flex-shrink: 0;
  color: var(--lang-accent);
  font-size: 1rem;
  opacity: 0;
}

.lang-dropdown-item.active .lang-dropdown-item-check {
  opacity: 1;
}

/* Backdrop to close dropdown */
.lang-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.18s ease;
}

.lang-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Dark-mode adaptive (only kicks in if app surface is dark) */
@media (prefers-color-scheme: dark) {
  .lang-dropdown {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  }
  .lang-dropdown-item:hover {
    background: color-mix(in srgb, var(--lang-accent) 14%, transparent);
  }
  .lang-dropdown-item.active {
    background: color-mix(in srgb, var(--lang-accent) 22%, transparent);
  }
  .lang-dropdown-item-flag {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  }
}

/* === Landing Page === */
.landing { padding-top: 16px; padding-bottom: 32px; }

.hero {
  text-align: center;
  padding: 28px 16px 20px;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,131,143,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(196,68,10,0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(46,125,50,0.04) 0%, transparent 35%);
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 3px solid var(--rust);
  position: relative;
  overflow: hidden;
}

/* Psychedelic corner ornaments via pseudo-elements */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(0,131,143,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { top: -20px; left: -20px; }
.hero::after { bottom: -20px; right: -20px; border-color: rgba(196,68,10,0.15); }

.hero-logo {
  font-family: 'Boogaloo', sans-serif;
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 2px 2px 0px rgba(93,46,12,0.25);
}

.hero-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.hero-divider {
  width: 80px;
  height: 0;
  border: none;
  border-bottom: 3px solid var(--accent);
  margin: 0 auto 12px;
  border-radius: 0;
  background: none;
}

.hero p {
  font-family: 'Nunito', sans-serif;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto;
}

/* === SVG Logo Badge === */
.hero-badge {
  display: block;
  margin: 0 auto 16px;
  max-width: 280px;
  width: 100%;
  filter: drop-shadow(3px 4px 6px rgba(93,46,12,0.25));
}

.hero-logo {
  display: block;
  margin: 0 auto 16px;
  max-width: 280px;
  width: 100%;
  filter: drop-shadow(3px 4px 6px rgba(93,46,12,0.25));
}

/* === Decorative SVG Dividers === */
.decorative-divider {
  display: block;
  margin: 16px auto;
  max-width: 240px;
  width: 100%;
  height: auto;
}

.shop-browse-btn {
  display: block;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 18px 24px;
  border-radius: 40px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 20px 0;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  border: 3px solid var(--rust);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.3);
}

.shop-browse-btn:hover {
  background: var(--rust);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.shop-browse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.shop-browse-btn span {
  font-size: 1.3rem;
  vertical-align: middle;
}
.shop-browse-btn .icon { width: 36px; height: 36px; vertical-align: middle; }
.shop-browse-btn-icon { color: white; flex-shrink: 0; }

/* === Landing: About Us section === */
.about-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  border: 3px solid var(--primary);
}

.about-section h3 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.15);
}

.about-hero {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--brown);
}

.about-expand {
  display: none;
  margin-top: 14px;
}
.about-expand.open { display: block; }

.about-text {
  white-space: pre-line;
  line-height: 1.55;
  color: var(--brown);
  margin-bottom: 14px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.about-gallery:empty { display: none; margin: 0; }

.about-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  display: block;
}

.about-videos { display: flex; flex-direction: column; gap: 12px; }
.about-videos:empty { display: none; }

.about-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
  padding: 8px 18px;
  background: none;
  border: 2px solid var(--primary);
  border-radius: 24px;
  color: var(--primary);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.about-toggle:hover { background: var(--primary); color: white; }

.about-toggle-chevron { display: inline-flex; transition: transform 0.2s; }
.about-toggle-chevron .icon { width: 20px; height: 20px; transform: rotate(90deg); }
.about-toggle.open .about-toggle-chevron { transform: rotate(180deg); }

/* === Section Tabs === */
.section-tabs {
  display: flex;
  gap: 0;
  margin-top: 14px;
  border-bottom: 3px solid var(--rust);
}

.section-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 14px 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 4px solid transparent;
  margin-bottom: -3px;
  transition: all 0.2s;
  text-shadow: 1px 1px 0px rgba(93,46,12,0.08);
}

.section-tab:hover { color: var(--text); }

.section-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.section-tab-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-tab-dot-available { background: var(--success); }
.section-tab-dot-sold { background: var(--error); }
.section-tab-dot-upcoming { background: var(--success); }
.section-tab-dot-past { background: var(--text-secondary); }

/* === Shop Info === */
.shop-info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  border: 3px solid var(--rust);
}

.shop-info h3 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.15);
}

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

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 2px dashed var(--border-light);
}

.info-item:last-child { border-bottom: none; }

.info-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-label .icon { width: 30px; height: 30px; flex-shrink: 0; }
.info-label-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--rust); }

.info-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: right;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--rust);
  border-radius: 30px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.2s;
  text-shadow: 1px 1px 0px rgba(93,46,12,0.15);
}

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

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

.btn-secondary {
  background: var(--cream);
  color: var(--rust);
  border-color: var(--rust);
}
.btn-secondary:hover { background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  text-shadow: none;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); }

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: 40px;
}

.btn-danger {
  background: var(--error);
  color: white;
  border-color: var(--brown);
}

/* === Filters === */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  background: var(--surface);
  border: 2px solid var(--border-light);
  border-radius: 24px;
  padding: 7px 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--rust);
}

/* === Items Grid === */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  padding-bottom: 12px;
}

.item-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: 2.5px solid var(--rust);
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.item-card-img-wrap {
  position: relative;
}

.item-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--border-light);
}

.item-card-body {
  padding: 10px 12px;
}

.item-card-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
}

.item-card-price {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.12);
}

/* === Sold Price Display === */
.item-card-prices {
  min-width: 0;
}

.item-card-listed-price {
  font-size: 0.75rem;
  color: #aaa;
  text-decoration: line-through;
}

.modal-listed-price {
  font-size: 1rem;
  font-weight: 400;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 6px;
}

/* Sold price modal must appear above item detail modal */
#soldPriceModal,
#volunteerSoldPriceModal {
  z-index: 300;
}

/* === Item Card Footer Right (badge + share) === */
.item-card-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.share-btn .icon { width: 24px; height: 24px; }

.share-btn:hover {
  color: var(--primary);
  background: var(--primary-light, rgba(0,0,0,0.05));
}

.share-btn-copied {
  color: var(--success, #22c55e) !important;
}

/* === Price Badges (colored hearts) === */
.price-badge {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

/* === Public Shop: Hide Prices === */
/* Public visitors only see colored heart badges, not euro amounts. */
body.public-view .item-card-price,
body.public-view .item-card-listed-price,
body.public-view .item-card-prices,
body.public-view .modal-price,
body.public-view .modal-listed-price {
  display: none !important;
}

/* === Recommended Donations Legend === */
.donation-legend {
  background: var(--cream);
  border-top: 3px solid var(--rust);
  border-bottom: 3px solid var(--rust);
  padding: 8px 0 10px;
  box-shadow: 0 2px 6px rgba(93,46,12,0.06);
}

.donation-legend-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 6px;
}

.donation-legend-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.donation-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.donation-legend-item-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.donation-legend-item-range {
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.1);
}

@media (max-width: 420px) {
  .donation-legend-items {
    gap: 4px 10px;
    font-size: 0.9rem;
  }
  .donation-legend-item-emoji {
    font-size: 1.05rem;
  }
  .donation-legend-title {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }
}

.today-item-footer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.today-item-footer .price-badge {
  font-size: 0.85rem;
}

/* === Badge Management === */
.badge-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-row-emoji {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-color-input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--rust, #c87941);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.badge-color-input::-webkit-color-swatch-wrapper { padding: 2px; }
.badge-color-input::-webkit-color-swatch { border: none; border-radius: 3px; }
.badge-color-input::-moz-color-swatch { border: none; border-radius: 3px; }

.badge-row-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.badge-input {
  width: 60px !important;
  padding: 5px 6px !important;
  font-size: 0.85rem !important;
  text-align: center;
}

.badge-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 8px;
}

.badge-saved-msg {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* === Vintage Price Tag === */
.item-card-price-tag {
  display: inline-block;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: 8px 8px 8px 0;
  padding: 2px 10px;
  position: relative;
}

/* === Section Titles === */
.section-title {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 0px rgba(93,46,12,0.12);
}

.section-title-sold {
  border-bottom-color: var(--text-secondary);
  color: var(--text-secondary);
}

/* === Sold / Reserved Items === */
.item-card-sold,
.item-card-reserved { opacity: 0.7; }

.status-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(93,46,12,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-badge {
  font-family: 'Quicksand', sans-serif;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.status-badge-sold { background: var(--error); border: 2px solid var(--brown); }
.status-badge-reserved { background: var(--primary); border: 2px solid var(--rust); }

/* === Free Badge === */
.free-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  border: 2px solid #1B5E20;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

/* === Modal Actions (volunteer) === */
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.modal-actions .btn { flex: 1; min-width: 0; }

.btn-reserve {
  background: var(--primary);
  color: white;
}

.btn-sold {
  background: var(--accent);
  color: white;
  border-color: #006064;
}

/* === Delete Button on Card === */
.item-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  background: rgba(93,46,12,0.7);
  color: white;
  border: 2px solid var(--rust);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.item-card:hover .item-delete-btn { opacity: 1; }
@media (hover: none) { .item-delete-btn { opacity: 0.85; } }

.modal-sm { max-width: 340px; }

/* === Loading === */
.loading {
  text-align: center;
  padding: 48px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

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

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
}

.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-icon .icon { width: 36px; height: 36px; opacity: 0.7; }

/* === Load More === */
.load-more-container {
  text-align: center;
  padding: 16px 0 24px;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(93,46,12,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  border: 3px solid var(--rust);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px; right: 12px;
  background: var(--rust);
  color: white;
  border: 2px solid var(--brown);
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.modal-body { padding: 16px; }
.modal-body h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.1);
}

.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-price {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.15);
}

.modal-price-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-price-badge {
  font-size: 1.5rem;
}

.modal-price-row .share-btn {
  color: #999;
  padding: 6px;
}

.modal-price-row .share-btn .icon {
  width: 36px;
  height: 36px;
}

.modal-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.modal-reasoning { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* === Badges === */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.badge.confidence { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* === PIN Screen === */
.pin-container {
  text-align: center;
  padding: 48px 16px;
  max-width: 320px;
  margin: 0 auto;
}

.pin-icon { font-size: 2.5rem; margin-bottom: 16px; }
.pin-icon .icon { width: 36px; height: 36px; }

.pin-container h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.12);
}

.pin-input {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  letter-spacing: 8px;
  padding: 12px;
  border: 3px solid var(--rust);
  border-radius: var(--radius);
  margin: 16px 0;
  outline: none;
  background: white;
  transition: border-color 0.2s;
  color: var(--brown);
}

.pin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,130,10,0.15); }

.error-msg {
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 8px;
}

/* === Volunteer Camera Section === */
.camera-section {
  padding: 16px 0;
}

.camera-section h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.15);
}

.camera-preview {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border-light);
  border: 3px solid var(--rust);
}

.camera-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

.camera-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.camera-btn { flex: 1; min-width: 140px; }

.skip-ai-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: wavy;
}

.skip-ai-btn:hover { color: var(--primary); }

/* === Photo Hint === */
.photo-hint {
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-hint-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 150px;
}

.retake-btn { flex-shrink: 0; }

/* === Manual Pricing Form === */
.manual-form { display: flex; flex-direction: column; gap: 14px; }

.manual-field label {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--brown);
}

.manual-input {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  border: 2.5px solid var(--rust);
  border-radius: var(--radius-sm);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
}

.manual-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,130,10,0.12); }

select.manual-input {
  appearance: auto;
  cursor: pointer;
}

/* === Analysis Loading === */
.analysis-loading {
  text-align: center;
  padding: 32px 0;
}

/* === Multi-select === */
.multi-select { padding: 16px 0; }
.multi-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.multi-item {
  background: var(--surface);
  border: 2.5px solid var(--rust);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s;
}

.multi-item:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.multi-item-other {
  border-style: dashed;
  color: var(--text-secondary);
}
.multi-item-other:hover { color: var(--accent); border-color: var(--accent); }

/* Checkbox-style multi-select rows */
.multi-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 2.5px solid var(--rust);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s;
  user-select: none;
}
.multi-checkbox-row:hover { border-color: var(--primary); }
.multi-checkbox-row.checked {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.multi-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--primary);
  margin: 0;
}
.multi-checkbox-row-other { border-style: dashed; color: var(--text-secondary); }
.multi-checkbox-row-other.checked { color: var(--accent); border-color: var(--accent); }

.multi-all-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--primary-light);
  border: 2.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--primary);
  user-select: none;
}
.multi-all-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--primary);
  margin: 0;
}

.multi-keywords-field { margin-top: 14px; }

/* Edit summary form on price card */
.price-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.price-card-header .price-card-name { margin-bottom: 0; flex: 1; }
.edit-summary-btn { flex-shrink: 0; padding: 4px 10px; font-size: 0.85rem; }

.summary-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: white;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--accent);
}

/* === Price Card === */
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  margin: 16px 0;
  border: 3px solid var(--rust);
  border-top: 5px solid var(--primary);
}

.price-card-name {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.1);
}

.price-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.price-display {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.price-col {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: white;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
}

.price-col-main {
  background: var(--primary-light);
  border-color: var(--primary);
  border-width: 2.5px;
}

.price-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.price-value {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.price-recommended { color: var(--primary); text-shadow: 1px 1px 0px rgba(93,46,12,0.1); }

.reasoning {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 12px;
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  line-height: 1.5;
  border-left: 4px solid var(--accent);
  border: 2px dashed var(--accent);
  border-left: 4px solid var(--accent);
}

.price-adjust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-adjust label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  color: var(--brown);
}

.price-input {
  flex: 1;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px;
  border: 3px solid var(--rust);
  border-radius: var(--radius-sm);
  text-align: center;
  max-width: 140px;
  outline: none;
  background: white;
  color: var(--primary);
}

.price-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,130,10,0.12); }

.price-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.price-actions .btn { flex: 1; }

/* === Save Success === */
.save-success {
  text-align: center;
  padding: 32px 0;
}

.success-icon { font-size: 3rem; margin-bottom: 12px; }
.success-icon .icon { width: 36px; height: 36px; }

/* === Today Section === */
.today-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 3px dashed var(--rust);
}

.today-section h3 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.1);
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.today-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow);
  border: 2px solid var(--rust);
}

.today-item-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--border-light);
  border: 2px solid var(--rust);
}

.today-item-info { flex: 1; min-width: 0; }

.today-item-name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brown);
}

.today-item-price {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.today-item-actions {
  display: flex;
  gap: 6px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
}

/* === Category Management (collapsible subsection) === */
.category-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: left;
  color: var(--text-secondary);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

.category-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
}
.category-toggle-icon .icon { width: 36px; height: 36px; }

.category-toggle-icon.open { transform: rotate(90deg); }

.category-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-collapsible.open {
  max-height: 600px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.category-row-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown);
  flex: 1;
  min-width: 0;
}

.category-row-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.category-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.category-add-form {
  margin-top: 8px;
}

.category-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-add-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.88rem;
}

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

/* === Shop Details Form === */
.shop-details-form {
  margin-top: 8px;
}

.discount-pct-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-pct-input {
  width: 80px;
  flex: 0 0 auto;
}

.discount-pct-suffix {
  font-weight: 700;
  color: var(--brown);
}

.discount-pct-hint {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* === Footer === */
.footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 3px solid var(--rust);
  background: var(--cream);
}

.footer-brand {
  font-family: 'Boogaloo', sans-serif;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.1);
}

.footer-credit-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-credit-link:hover {
  text-decoration: underline;
}

/* === Photo Hint (duplicate override) === */
.photo-hint {
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.photo-hint-text {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.retake-btn { margin-top: 4px; }

/* === Materials Selection === */
.materials-section .price-card { border-top-color: var(--accent); }

.materials-form h4 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  margin: 16px 0 10px;
  color: var(--brown);
}

.materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-btn {
  background: var(--surface);
  border: 2.5px solid var(--border-light);
  border-radius: 24px;
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.material-btn:hover { border-color: var(--accent); color: var(--accent); }
.material-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.condition-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* === Screen helper === */
.screen { min-height: 50vh; }

/* === Volunteer Panel Darker Background === */
#mainScreen {
  background: #EDE7DB;
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}

/* === Upload area dashed styling === */
.camera-section .btn-secondary {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent);
}

.camera-section .btn-secondary:hover {
  background: var(--accent-light);
  border-style: solid;
}

/* === Translation Overlay === */
.translation-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeInOverlay 0.2s ease-out;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.translation-overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.translation-overlay-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.translation-overlay-text {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* === §11 Translation status badge (dynamic-content queue) === */
.translation-status-badge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--lang-accent);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.translation-status-badge.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.translation-status-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--lang-accent) 25%, transparent);
  border-top-color: var(--lang-accent);
  animation: translation-status-spin 0.9s linear infinite;
  flex-shrink: 0;
}

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

[dir="rtl"] .translation-status-badge {
  left: auto;
  right: 16px;
}

/* Subtle fade for swapped-in translated text */
.translation-just-arrived {
  animation: translation-fade-in 0.35s ease-out;
}

@keyframes translation-fade-in {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}

/* === Service Overload Modal === */
.service-overload-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
  font-size: 0.9rem;
  animation: toastSlideUp 0.3s ease;
}
@keyframes toastSlideUp {
  from { transform: translateX(-50%) translateY(100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.service-overload-toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}
.service-overload-toast-close:hover { opacity: 1; }

/* === RTL Support === */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-dropdown-item {
  text-align: right;
}

[dir="rtl"] .header-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .item-card-body {
  text-align: right;
}

/* === Landing: Agenda buttons row === */
.agenda-buttons-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.agenda-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--rust);
  text-align: center;
  padding: 14px 12px;
  border-radius: 32px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid var(--rust);
  transition: all 0.2s;
  box-shadow: var(--shadow);
  text-shadow: 1px 1px 0px rgba(93,46,12,0.1);
}

.agenda-btn:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.agenda-btn-workshops { border-color: var(--accent); color: var(--accent); }
.agenda-btn-workshops:hover { background: var(--accent); color: white; border-color: var(--accent); }

.agenda-btn-events { border-color: var(--primary); color: var(--primary); }
.agenda-btn-events:hover { background: var(--primary); color: white; border-color: var(--rust); }

.agenda-btn-emoji { font-size: 1.25rem; display: inline-flex; align-items: center; }
.agenda-btn-emoji .icon { width: 36px; height: 36px; }

/* Shout Outs: full-width megaphone button between the agenda row and the shop button */
.agenda-btn-shoutout {
  flex: none;
  width: 100%;
  margin: 12px 0 0;
  border-color: var(--rust);
  color: var(--rust);
}
.agenda-btn-shoutout:hover { background: var(--rust); color: white; border-color: var(--rust); }

/* Megaphone soundwaves: outer wave hidden at rest, both pulse while a shout-out is live */
.megaphone-wave-2 { opacity: 0; }
.shoutout-live .megaphone-wave-1,
.shoutout-live .megaphone-wave-2 {
  animation: megaphone-wave 1.8s ease-out infinite;
  transform-origin: 13px 11.5px;
}
.shoutout-live .megaphone-wave-2 { animation-delay: 0.45s; }

@keyframes megaphone-wave {
  0%   { opacity: 0; transform: scale(0.5); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .shoutout-live .megaphone-wave { animation: none; }
  .shoutout-live .megaphone-wave-2 { opacity: 1; }
}

/* === Agenda public pages === */
.agenda-title {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 16px 0 4px;
  color: var(--primary);
  text-shadow: 1px 1px 0 rgba(93,46,12,0.12);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 12px 0;
}

.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 2.5px solid var(--rust);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.event-card-past { opacity: 0.75; }

.event-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--border-light);
}

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

.event-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.event-card-img-placeholder .icon { width: 36px; height: 36px; opacity: 0.6; }

.event-card-photo-count,
.event-card-video-badge {
  position: absolute;
  background: rgba(93,46,12,0.7);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.event-card-photo-count .icon,
.event-card-video-badge .icon { width: 36px; height: 36px; }
.event-card-photo-count { bottom: 8px; right: 8px; }
.event-card-video-badge { top: 8px; right: 8px; padding: 3px 8px; }

/* Megaphone chip marking shout-out events in the regular Events lists */
.event-card-shoutout-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--rust);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}
.event-card-shoutout-badge .icon { width: 36px; height: 36px; }

.event-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-card-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.25;
}

.event-card-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.event-card-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.event-card-location .icon { color: var(--rust); flex-shrink: 0; vertical-align: -2px; }

.event-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.event-card-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.event-card-price {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.event-card-capacity {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.event-modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.event-modal-title-row h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.event-modal-title-row .share-btn {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Event modal */
.event-modal-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  background: var(--brown-light);
}

.event-gallery-item {
  scroll-snap-align: start;
  display: block;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.event-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.event-modal-date {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.event-modal-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-modal-location .icon { color: var(--rust); flex-shrink: 0; }

.event-modal-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.event-modal-video {
  margin: 10px 0 14px;
}

.event-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 2px solid var(--rust);
}

.event-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-video-link {
  display: inline-block;
  padding: 8px 14px;
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
}

.event-modal-description {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 12px;
}

.event-modal-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.event-detail-row {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
}

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

.event-detail-label {
  font-weight: 700;
  color: var(--brown);
  flex-shrink: 0;
  min-width: 110px;
}

.event-detail-value {
  color: var(--text-secondary);
  word-break: break-word;
}

/* === Volunteer Agenda Form === */
.agenda-kind-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.agenda-form { margin-top: 8px; }

.agenda-textarea {
  resize: vertical;
  min-height: 70px;
  font-family: 'Nunito', sans-serif;
}

.agenda-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.agenda-coming-soon-field {
  margin-top: -4px;
}

.agenda-coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}

.agenda-coming-soon-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rust, #a0522d);
  cursor: pointer;
}

.agenda-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.agenda-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agenda-photo-tile {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--rust);
  background: var(--border-light);
}

.agenda-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Multi-photo strip (volunteer) === */
.photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.photo-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border-light);
  border: 2.5px solid var(--rust);
  flex-shrink: 0;
}

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

.agenda-photo-tile-new { border-style: dashed; }

.agenda-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(93,46,12,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agenda-existing-title {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.1rem;
  margin: 16px 0 8px;
  color: var(--brown);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 2px solid var(--rust);
}

.agenda-row-past { opacity: 0.65; }

.agenda-row-thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border-light);
  border: 1.5px solid var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.agenda-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agenda-row-thumb-placeholder { font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.agenda-row-thumb-placeholder .icon { width: 36px; height: 36px; opacity: 0.6; }

.agenda-row-info { flex: 1; min-width: 0; }

.agenda-row-title {
  font-weight: 700;
  color: var(--brown);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-row-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.agenda-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Expanded collapsible needs more height for the big form */
#agendaCollapsible.open {
  max-height: 3000px;
}

#shopDetailsCollapsible.open {
  max-height: 1000px;
}

#aboutCollapsible.open {
  max-height: 3000px;
}

.photo-thumb-primary {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(212,130,10,0.25);
}

.photo-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--brown);
  background: var(--rust);
  color: white;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.photo-thumb-remove:hover { background: var(--brown); }

.photo-thumb-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1;
}

.photo-thumb-add {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.2s;
}

.photo-thumb-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.photo-thumb-plus {
  font-size: 2rem;
  font-weight: 300;
  color: var(--rust);
  line-height: 1;
}

.photo-thumb-add:hover .photo-thumb-plus { color: var(--primary); }

.photo-hint-small {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-style: italic;
}

.analyze-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* === Modal Gallery === */
.modal-gallery {
  position: relative;
  background: var(--border-light);
}

.modal-gallery .modal-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #000;
  display: block;
  cursor: zoom-in;
}

.modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  z-index: 2;
}

.modal-gallery-nav:hover { background: rgba(0,0,0,0.75); }
.modal-gallery-prev { left: 10px; }
.modal-gallery-next { right: 10px; }

.modal-gallery-counter {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.modal-gallery-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 0 4px;
  background: var(--surface);
}

.modal-gallery-dots:empty { padding: 0; }

.modal-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rust);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.modal-gallery-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* === Photo-count badge on item cards === */
.photo-count-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.photo-count-badge .icon { width: 24px; height: 24px; }

/* Today item photo count indicator (volunteer) */
.today-item-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.today-item-photo-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1.5px solid white;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.today-item-photo-count .icon { width: 8px; height: 8px; }

/* === Responsive === */
@media (max-width: 480px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .price-display { flex-direction: column; }
  .camera-actions { flex-direction: column; }
  .volunteer-link-text { display: none; }
  #mainScreen { padding: 10px; margin: 8px 0; }
  .events-grid { grid-template-columns: 1fr; }
  .agenda-row-3 { grid-template-columns: 1fr; }
  .agenda-row-2 { grid-template-columns: 1fr; }
  .agenda-buttons-row { gap: 8px; margin-top: 12px; }
  .agenda-btn { font-size: 0.9rem; padding: 9px 8px; border-width: 2px; border-radius: 28px; }
  .agenda-btn-emoji { font-size: 1.05rem; }
  .landing { padding-top: 10px; padding-bottom: 24px; }
  .hero { padding: 16px 14px 12px; margin-bottom: 14px; }
  .hero-logo { max-width: 220px; margin-bottom: 10px; }
  .hero p { font-size: 0.88rem; }
  .hero .decorative-divider { margin: 8px auto 0; max-width: 180px; }
  .shop-browse-btn { padding: 12px 20px; margin: 12px 0; font-size: 1.05rem; border-width: 2px; }
  .shop-browse-btn span { font-size: 1.15rem; }
  .event-detail-label { min-width: 90px; }
  .photo-thumb { width: 72px; height: 72px; }
  .modal-gallery-nav { width: 34px; height: 34px; font-size: 1.3rem; }
}

/* === Analytics section === */
.analytics-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.analytics-tab {
  background: none;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
}

.analytics-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.analytics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.analytics-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.analytics-card-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.analytics-free-note {
  margin: 4px 0 16px;
  font-size: 0.78rem;
}

.analytics-breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.analytics-breakdown th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.analytics-breakdown td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.analytics-breakdown tr:last-child td { border-bottom: none; }

.analytics-type-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.analytics-chart-section { margin-top: 4px; }

.analytics-chart-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  font-weight: 600;
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  margin-bottom: 4px;
}

.analytics-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}

.analytics-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.75;
  min-height: 2px;
  transition: height 0.3s ease;
}

.analytics-bar-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .analytics-summary { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .analytics-card { padding: 10px 4px; }
  .analytics-card-value { font-size: 1.1rem; }
  .analytics-card-label { font-size: 0.65rem; }
}

/* === Visitor Analytics === */
.va-summary-4 {
  grid-template-columns: repeat(4, 1fr);
}

.va-section {
  margin: 16px 0 12px;
}

.va-section-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  font-weight: 600;
}

.va-horiz-bar {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  background: var(--border-light);
}

.va-bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  transition: width 0.3s ease;
}

.va-bar-seg span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.va-bar-mobile  { background: var(--primary); }
.va-bar-tablet  { background: var(--accent); }
.va-bar-desktop { background: var(--brown-light); }

.va-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.va-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.va-list-label {
  font-size: 0.82rem;
  min-width: 70px;
  color: var(--text);
  font-weight: 500;
}

.va-list-bar-wrap {
  flex: 1;
  height: 10px;
  background: var(--border-light);
  border-radius: 5px;
  overflow: hidden;
}

.va-list-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  transition: width 0.3s ease;
  opacity: 0.7;
}

.va-list-bar-lang {
  background: var(--accent);
}

.va-list-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 30px;
  text-align: right;
  font-weight: 600;
}

.va-chart-tall {
  height: 80px;
}

.va-loading {
  text-align: center;
  padding: 8px 0;
}

@media (max-width: 480px) {
  .va-summary-4 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .va-bar-seg span { font-size: 0.6rem; }
}
