:root {
  --primary: #0a2540;
  --accent: #2563eb;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --bg-light: #f8fafc;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --white: #fff;
  --radius: 1rem;
  --shadow: 0 20px 40px -10px rgba(10,37,64,0.15);
  --font: 'Inter', 'Noto Sans TC', 'Noto Sans SC', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Typography */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); max-width: 42rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(10,37,64,0.4); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--primary); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(201,169,110,0.5); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 5rem;
  background: rgba(10, 37, 64, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(10, 37, 64, 0.95);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.nav-brand { font-weight: 700; font-size: 1.125rem; color: var(--white); line-height: 1.2; }
.nav-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.72); }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-weight: 500; color: rgba(255, 255, 255, 0.92); position: relative; }
.nav-link:hover { color: var(--white); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-dropdown { display: none; position: relative; }
@media (min-width: 768px) { .lang-dropdown { display: block; } }
.lang-dropdown--mobile { display: block; }
.lang-trigger {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border: none; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
  cursor: pointer; font-size: 1.125rem; line-height: 1;
  transition: background 0.2s;
}
.lang-trigger:hover { background: rgba(255, 255, 255, 0.22); }
.lang-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  min-width: 8.5rem; padding: 0.35rem;
  background: var(--white); border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.18);
  z-index: 70;
}
.lang-option {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%; padding: 0.5rem 0.65rem;
  border: none; border-radius: 0.5rem;
  background: transparent; color: var(--primary);
  cursor: pointer; font-size: 0.875rem; font-weight: 500; text-align: left;
}
.lang-option:hover { background: #f3f4f6; }
.lang-option.active { background: rgba(201, 162, 39, 0.15); font-weight: 600; }
.lang-flag { font-size: 1.125rem; line-height: 1; }
.lang-dropdown--mobile .lang-trigger {
  background: #f3f4f6; color: var(--primary);
}
.lang-dropdown--mobile .lang-menu { left: 0; right: auto; }
.cart-btn { position: relative; padding: 0.5rem; background: none; border: none; cursor: pointer; color: rgba(255, 255, 255, 0.92); }
.cart-btn:hover { color: var(--white); }
.cart-badge { position: absolute; top: -4px; right: -4px; width: 1.25rem; height: 1.25rem; background: var(--gold); color: var(--primary); border-radius: 9999px; font-size: 0.625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem; background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.92); line-height: 0; text-decoration: none;
}
.nav-icon-btn:hover { color: var(--white); }
.nav-login-lock .lock-open { display: none; }
.nav-login-lock:hover .lock-closed,
.nav-login-lock:focus-visible .lock-closed { display: none; }
.nav-login-lock:hover .lock-open,
.nav-login-lock:focus-visible .lock-open { display: block; }
.menu-toggle { display: block; padding: 0.5rem; background: none; border: none; cursor: pointer; color: rgba(255, 255, 255, 0.92); }
.menu-toggle:hover { color: var(--white); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 20rem; background: var(--white); z-index: 60; box-shadow: -4px 0 20px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 0.3s; padding: 1.5rem; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-link { display: block; padding: 0.75rem 0; border-bottom: 1px solid #e5e7eb; font-weight: 500; color: var(--primary); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,37,64,0.9) 0%, rgba(30,58,95,0.72) 50%, rgba(45,79,122,0.58) 100%),
    url('/assets/images/hero-building.png') center / cover no-repeat,
    var(--primary); }
.hero-content { position: relative; z-index: 10; padding: 8rem 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 0.95fr 1.15fr; }
}
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 9999px; color: var(--white); font-size: 0.875rem; margin-bottom: 1.5rem; }
.hero-badge-dot { width: 0.5rem; height: 0.5rem; background: var(--gold); border-radius: 9999px; animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.125rem; color: #d1d5db; max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stat-num { font-size: 1.875rem; font-weight: 700; color: var(--white); }
.hero-stat-label { font-size: 0.875rem; color: #d1d5db; }
.glass-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); padding: 1.5rem; }
.hero-dashboard { display: none; }
@media (min-width: 1024px) {
  .hero-dashboard {
    display: block;
    position: relative;
    min-height: min(70vh, 36rem);
    width: 100%;
  }
}
.hero-sol-panel {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  width: 14rem;
  min-height: 5.5rem;
  padding: 0.9rem 0.85rem;
  transition: background 0.2s, border-color 0.2s;
  will-change: left, top;
  box-sizing: border-box;
}
.hero-sol-panel:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(212,175,55,0.55);
  color: var(--white);
}
.hero-sol-lane2,
.hero-sol-lane4 { width: 14rem; }
.hero-sol-has-img {
  justify-content: flex-start;
  text-align: left;
  padding-left: 0.85rem;
}
.hero-sol-img {
  width: 3.5rem;
  height: 4.75rem;
  object-fit: contain;
  flex-shrink: 0;
}
.hero-sol-img-spin {
  animation: heroSolSpin 10s linear infinite;
}
.hero-sol-text { flex: 1; min-width: 0; }
.hero-sol-text span { display: block; font-weight: 600; }
.hero-sol-desc {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}
.hero-page { min-height: 60vh; }
.hero-page .hero-content { padding: 7rem 0 3rem; }
.hero-page .hero-actions { margin-bottom: 0; }

/* Solution pages */
.section { padding: 4rem 0; }
.section-muted { background: var(--bg-light); }
.hero-cleaning {
  background:
    linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(30,58,95,0.78) 55%, rgba(45,79,122,0.65) 100%),
    url('/assets/images/cleaning/hero-curtain-robots.jpg') right center / cover no-repeat,
    var(--primary);
}
.hero-cleaning-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .hero-cleaning-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-cleaning-visual { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.best-tech-logo {
  max-width: 14rem; width: 100%; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.65));
}
.hero-cleaning-photo {
  width: 100%; max-width: 22rem; border-radius: 0.75rem;
  box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 3/4;
}
@media (max-width: 1023px) { .hero-cleaning-photo { display: none; } }
.solution-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .solution-split { grid-template-columns: 1fr 1fr; } }
.solution-photo { width: 100%; border-radius: 0.75rem; object-fit: cover; max-height: 28rem; }
.capability-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .capability-grid { grid-template-columns: repeat(3, 1fr); } }
.capability-block img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.75rem; margin-bottom: 1rem;
}
.capability-block h3 { font-size: 1.125rem; color: var(--primary); margin-bottom: 0.5rem; }
.capability-block p { color: var(--text-muted); font-size: 0.9375rem; }
.equip-list { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .equip-list { grid-template-columns: 1fr 1fr; } }
.equip-list li {
  padding: 0.875rem 1rem; background: var(--white); border-left: 3px solid var(--gold);
  color: var(--primary); font-weight: 500; font-size: 0.9375rem;
}
.solution-cta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
  padding: 2rem; background: var(--bg-light); border-radius: var(--radius);
}

/* ESG Material catalog */
.hero-esg {
  background:
    linear-gradient(135deg, rgba(10,37,64,0.94) 0%, rgba(30,58,95,0.8) 50%, rgba(45,79,122,0.62) 100%),
    url('/assets/images/esg/hero-material.jpg') center / cover no-repeat,
    var(--primary);
}
.hero-esg-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .hero-esg-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-esg-visual { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.best-build-logo {
  max-width: 14rem; width: 100%; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
  background: rgba(255,255,255,0.92); padding: 0.6rem 0.85rem; border-radius: 0.5rem;
}
.hero-esg-photo {
  width: 100%; max-width: 26rem; border-radius: 0.75rem;
  box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 16/10;
}
@media (max-width: 1023px) { .hero-esg-photo { display: none; } }
.esg-challenge-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .esg-challenge-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .esg-challenge-grid { grid-template-columns: repeat(4, 1fr); } }
.esg-challenge {
  position: relative; overflow: hidden; min-height: 16rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.esg-challenge img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.esg-challenge:hover img { transform: scale(1.04); }
.esg-challenge-body {
  position: relative; z-index: 1; padding: 1.25rem;
  background: linear-gradient(transparent, rgba(10,37,64,0.92));
  color: var(--white);
}
.esg-challenge-body h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--white); }
.esg-challenge-body p { font-size: 0.8125rem; color: rgba(255,255,255,0.8); margin: 0; }
.esg-series-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .esg-series-grid { grid-template-columns: 1fr 1fr; } }
.esg-series img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 0.85rem;
}
.esg-series h3 { font-size: 1.125rem; color: var(--primary); margin-bottom: 0.35rem; }
.esg-series p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }
.esg-case-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .esg-case-grid { grid-template-columns: repeat(3, 1fr); } }
.esg-case img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; margin-bottom: 1rem;
}
.esg-case h3 { font-size: 1.0625rem; color: var(--primary); margin-bottom: 0.35rem; }
.esg-case p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.esg-case-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem;
}
.esg-mosaic {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .esg-mosaic { grid-template-columns: repeat(4, 1fr); } }
.esg-mosaic-item { position: relative; overflow: hidden; aspect-ratio: 1; }
.esg-mosaic-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
@media (max-width: 767px) { .esg-mosaic-item.wide { grid-column: span 2; aspect-ratio: 16/10; } }
.esg-mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.esg-mosaic-item:hover img { transform: scale(1.05); }
.esg-mosaic-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 0.85rem;
  background: linear-gradient(transparent, rgba(10,37,64,0.88));
  color: var(--white); font-size: 0.8125rem; font-weight: 600;
}
.esg-faq { display: grid; gap: 1rem; max-width: 48rem; }
.esg-faq details {
  background: var(--white); border-left: 3px solid var(--gold); padding: 1rem 1.15rem;
}
.esg-faq summary {
  cursor: pointer; font-weight: 600; color: var(--primary); list-style: none;
}
.esg-faq summary::-webkit-details-marker { display: none; }
.esg-faq details[open] summary { margin-bottom: 0.5rem; }
.esg-faq p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* Trust bar */
.trust-bar { background: var(--primary); padding: 2rem 0; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; opacity: 0.8; }
.trust-label { color: rgba(255,255,255,0.6); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; }
.trust-flags { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-flag { color: var(--white); font-weight: 700; font-size: 1.125rem; }

/* Sections (public site only — manage page uses .manage-panel) */
body:not(.manage-page) section { padding: 6rem 0; }
section.bg-light { background: var(--bg-light); }
section.bg-dark { background: var(--primary); color: var(--white); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-divider { margin: 0 auto 1rem; }

/* Service cards */
.services-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: var(--white); border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 2rem; transition: all 0.4s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-icon { width: 3.5rem; height: 3.5rem; background: linear-gradient(135deg, var(--primary), #1e3a5f); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.service-icon svg { width: 1.75rem; height: 1.75rem; color: var(--gold); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.link-gold { color: var(--gold); font-size: 0.875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }

/* Products */
.products-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .products-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.filter-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; border: 1px solid #e5e7eb; background: var(--white); color: var(--primary); cursor: pointer; }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.products-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid #f3f4f6; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -6px rgba(0,0,0,0.15); }
.product-img-wrap { height: 14rem; overflow: hidden; background: #f3f4f6; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-body { padding: 1.5rem; }
.product-body h3 { font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.product-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.product-meta { font-size: 0.75rem; color: var(--text-muted); }

/* OEM */
.oem-section { position: relative; overflow: hidden; }
.oem-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: url('/assets/images/factory.png') center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.oem-section > .container { position: relative; z-index: 1; }
.oem-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .oem-grid { grid-template-columns: 1fr 1fr; } }
.oem-feature { display: flex; gap: 1rem; margin-bottom: 1rem; }
.oem-feature-icon { width: 2.5rem; height: 2.5rem; background: rgba(201,169,110,0.2); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oem-feature-icon svg { width: 1.25rem; height: 1.25rem; color: var(--gold); }
.oem-step { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.oem-step-num { width: 2.5rem; height: 2.5rem; background: var(--gold); color: var(--primary); border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* Projects */
.projects-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden; cursor: pointer; display: block; text-decoration: none; color: inherit; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,37,64,0.9) 0%, transparent 60%); transition: all 0.4s; }
.project-card:hover::after { background: linear-gradient(to top, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.3) 100%); }
.project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 10; transform: translateY(20px); opacity: 0; transition: all 0.4s; }
.project-card:hover .project-info { transform: translateY(0); opacity: 1; }
.project-tag { color: var(--gold); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-info h3 { color: var(--white); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-info p { color: #d1d5db; font-size: 0.875rem; }

/* About */
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 400px; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.about-stat-num { font-size: 1.875rem; font-weight: 700; color: var(--primary); }
.about-stat-label { font-size: 0.875rem; color: var(--text-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge { padding: 0.5rem 1rem; background: var(--white); border: 1px solid #e5e7eb; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; color: var(--primary); }

/* Contact */
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 3rem; height: 3rem; background: var(--primary); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.contact-form { background: var(--bg-light); border-radius: var(--radius); padding: 2rem; border: 1px solid #f3f4f6; }
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
input, select, textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; background: var(--white); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.2); }
textarea { resize: vertical; min-height: 6rem; }
.form-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer h4 { color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: #9ca3af; font-size: 0.875rem; transition: color 0.3s; }
.footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #9ca3af; font-size: 0.875rem; }

/* Cart drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 70; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 28rem; background: var(--white); z-index: 80; box-shadow: -4px 0 20px rgba(0,0,0,0.15); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s; }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer-footer { padding: 1.5rem; border-top: 1px solid #e5e7eb; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,37,64,0.7); backdrop-filter: blur(8px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: var(--white); border-radius: var(--radius); max-width: 42rem; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; }
.login-modal { max-width: 28rem; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.modal-close { padding: 0.5rem; background: none; border: none; cursor: pointer; border-radius: 0.5rem; }
.modal-close:hover { background: #f3f4f6; }

/* Toast */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; }
.toast { background: var(--primary); color: var(--white); padding: 1rem 1.5rem; border-radius: 0.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 0.75rem; animation: slideIn 0.4s ease; }

/* Admin & Login */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-light); padding: 2rem; }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 28rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.auth-card p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.auth-error { background: #fef2f2; color: #dc2626; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; }
.auth-success { background: #f0fdf4; color: #16a34a; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; }

.admin-layout { display: grid; min-height: 100vh; }
@media (min-width: 768px) { .admin-layout { grid-template-columns: 16rem 1fr; } }
.admin-sidebar { background: var(--primary); color: var(--white); padding: 1.5rem; }
.admin-sidebar h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.admin-sidebar p { font-size: 0.75rem; color: #9ca3af; margin-bottom: 1.5rem; }
.admin-nav-item { display: block; width: 100%; text-align: left; padding: 0.625rem 0.75rem; border-radius: 0.5rem; border: none; background: transparent; color: #d1d5db; cursor: pointer; font-size: 0.875rem; margin-bottom: 0.25rem; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-main { padding: 1.5rem; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-editor { background: var(--white); border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.admin-editor-key { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; margin-bottom: 0.5rem; }
.admin-editor-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.admin-editor textarea { min-height: 4rem; margin-bottom: 0.75rem; }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
[x-cloak] { display: none !important; }
html.i18n-pending body { visibility: hidden; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes heroSolSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .nav, .cart-drawer, .drawer-overlay, .modal-overlay, .toast-container { display: none !important; }
}

/* Manage Translations (dark) */
.manage-page { background: #0f172a; color: #e2e8f0; height: 100vh; overflow: hidden; margin: 0; }
.manage-layout { display: grid; height: 100vh; overflow: hidden; }
@media (min-width: 768px) { .manage-layout { grid-template-columns: 16rem 1fr; } }
.manage-sidebar { background: #1e293b; border-right: 1px solid #334155; display: flex; flex-direction: column; padding: 1.5rem 1rem; height: 100vh; overflow: hidden; flex-shrink: 0; }
.manage-sidebar-top { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.manage-sidebar-bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid #334155; display: flex; flex-direction: column; gap: 0.25rem; }
.manage-sidebar-brand { font-size: 1.125rem; font-weight: 700; color: #f8fafc; margin-bottom: 0.25rem; }
.manage-email { font-size: 0.75rem; color: #64748b; margin-bottom: 1.5rem; word-break: break-all; }
.manage-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.manage-nav-item { display: flex; align-items: center; gap: 0.625rem; width: 100%; text-align: left; padding: 0.625rem 0.75rem; border-radius: 0.5rem; border: none; background: transparent; color: #94a3b8; cursor: pointer; font-size: 0.875rem; text-decoration: none; }
.manage-nav-item:hover, .manage-nav-item.active { background: rgba(255,255,255,0.08); color: #f8fafc; }
.manage-nav-text { flex: 1; min-width: 0; }
.manage-nav-badge { flex-shrink: 0; font-size: 0.6875rem; font-weight: 600; line-height: 1; padding: 0.2rem 0.45rem; border-radius: 999px; background: rgba(148,163,184,0.2); color: #cbd5e1; font-variant-numeric: tabular-nums; }
.manage-nav-badge.is-alert { background: rgba(234,179,8,0.2); color: #fde047; }
.manage-stack-fill { flex: 1; min-height: 0; overflow: hidden; }
.manage-stack-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-right: 0.15rem; }
.manage-nav-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.manage-main { display: flex; flex-direction: column; padding: 0.75rem 1.5rem 1.5rem; height: 100vh; overflow: hidden; min-height: 0; }
.manage-topbar { margin-bottom: 0.5rem; flex-shrink: 0; }
.manage-topbar h1 { font-size: 1.5rem; font-weight: 700; color: #f8fafc; margin: 0; line-height: 1.2; }
.manage-stack { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-height: 0; }
.manage-card { background: #1e293b; border: 1px solid #334155; border-radius: 0.75rem; overflow: hidden; padding: 0; flex-shrink: 0; }
.manage-card-lang { padding-bottom: 0; }
.manage-card-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; }
.manage-card-filter .manage-input { width: auto; flex: 1 1 12rem; min-width: 0; }
.manage-card-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.manage-grid-scroll { flex: 1; overflow: auto; min-height: 0; }
.manage-toolbar-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.375rem; padding: 0.5rem 0.875rem; }
.manage-toolbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.manage-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.375rem; margin-left: auto; }
.manage-label-inline { font-size: 0.75rem; color: #94a3b8; margin: 0; white-space: nowrap; flex-shrink: 0; }
.manage-label { font-size: 0.75rem; color: #94a3b8; display: block; margin-bottom: 0.2rem; }
.manage-select, .manage-input { background: #0f172a; border: 1px solid #475569; color: #f1f5f9; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.manage-input[type="datetime-local"] { color-scheme: dark; }
.manage-select-inline { width: auto; min-width: 12rem; max-width: 18rem; }
.manage-select { min-width: 0; }
.manage-input { width: 100%; }
.manage-filter-input { max-width: none; }
.manage-hint { font-size: 0.75rem; color: #64748b; margin: 0; padding: 0.5rem 0.875rem; line-height: 1.35; border-top: 1px solid #334155; }
.manage-btn { border-radius: 0.5rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.manage-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.manage-btn-primary { background: #f8fafc; color: #0f172a; border-color: #f8fafc; }
.manage-btn-outline { background: transparent; color: #e2e8f0; border-color: #64748b; }
.manage-btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.manage-btn-save { background: #38bdf8; color: #0f172a; border-color: #38bdf8; }
.manage-btn-ai { background: #2563eb; color: #fff; border-color: #2563eb; }
.manage-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.manage-grid th { text-align: left; font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; padding: 0.5rem 1rem; border-bottom: 1px solid #334155; }
.manage-grid td { padding: 0.75rem 1rem; border-bottom: 1px solid #334155; vertical-align: top; }
.manage-col-key { width: 50%; }
.manage-col-value { width: calc(50% - 2.5rem); }
.manage-col-clear { width: 2.5rem; }
.manage-key { font-size: 0.875rem; color: #f1f5f9; }
.manage-key-id { font-size: 0.6875rem; color: #64748b; font-family: monospace; margin-top: 0.25rem; }
.manage-textarea { width: 100%; min-height: 3.5rem; background: #0f172a; border: 1px solid #475569; color: #f1f5f9; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; resize: vertical; }
.manage-clear-cell { width: 2.5rem; }
.manage-clear-btn { background: transparent; border: none; color: #94a3b8; font-size: 1.25rem; cursor: pointer; line-height: 1; padding: 0.25rem; }
.manage-clear-btn:hover { color: #f87171; }
.manage-empty { padding: 2rem; text-align: center; color: #64748b; }
.manage-detail-list { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem 1rem; margin: 0; }
.manage-detail-list dt { font-weight: 600; color: #94a3b8; margin: 0; }
.manage-detail-list dd { margin: 0; color: #f1f5f9; word-break: break-word; }
.manage-card.manage-quote-detail { padding: 1.25rem 1.5rem; }
.manage-card.manage-quote-detail .manage-pre { background: #0f172a; color: #e2e8f0; border: 1px solid #334155; }
.manage-detail-email { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.manage-detail-email a { color: #93c5fd; text-decoration: none; }
.manage-detail-email a:hover { text-decoration: underline; }
.manage-quote-forward { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #334155; }
.manage-quote-forward-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; }
.manage-quote-forward-row .manage-input { flex: 1 1 14rem; min-width: 12rem; margin: 0; }
.manage-quote-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.manage-enquiry-thread { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #334155; }
.manage-enquiry-msg { margin-top: 0.85rem; padding: 0.75rem 0.9rem; border-radius: 0.5rem; border: 1px solid #334155; background: #0f172a; }
.manage-enquiry-msg.is-outbound { border-color: #1d4ed8; background: #172554; }
.manage-enquiry-msg-meta { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; font-size: 0.75rem; color: #cbd5e1; margin-bottom: 0.5rem; }
.manage-enquiry-msg .manage-pre { margin: 0; }
.manage-btn-outline.active { background: #334155; color: #f8fafc; }
.manage-pre { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 0.8125rem; background: #f8fafc; padding: 0.75rem; border-radius: 0.5rem; margin: 0; }
.manage-cart-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #334155; }
.manage-cart-section .manage-section-title { margin-bottom: 0.75rem; }
.manage-cart-table { margin-top: 0.25rem; }
.manage-cart-table th:last-child,
.manage-cart-table td:last-child { text-align: right; }
.manage-cart-total td { border-top: 1px solid #334155; font-weight: 700; color: #f8fafc; padding-top: 0.85rem; }
.manage-cart-fallback { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #334155; }
.manage-cart-fallback .manage-pre { background: #0f172a; color: #cbd5e1; border: 1px solid #334155; }
.projects-page-wrap { padding-top: 6rem; padding-bottom: 4rem; min-height: 60vh; }
.manage-toast { position: fixed; top: 1rem; right: 1rem; background: #16a34a; color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; z-index: 50; }
.manage-toast-error { background: #dc2626; }
.manage-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.85); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.manage-modal { background: #1e293b; border: 1px solid #334155; border-radius: 0.75rem; padding: 1.5rem; width: 100%; max-width: 28rem; }
.manage-modal h2 { font-size: 1.25rem; color: #f8fafc; margin-bottom: 0.75rem; }
.manage-modal-desc { font-size: 0.8125rem; color: #94a3b8; margin-bottom: 1rem; line-height: 1.5; }
.manage-modal .form-group { margin-bottom: 1rem; }
.manage-modal .form-group label { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.35rem; }
.manage-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.manage-admin-add { flex: 1; }
.manage-admin-email-input { width: auto; flex: 1 1 14rem; min-width: 12rem; max-width: 22rem; }
.manage-admin-grid { table-layout: auto; }
.manage-catalog-grid { table-layout: auto; width: max-content; min-width: 100%; }
.manage-catalog-grid th:last-child,
.manage-catalog-grid td.manage-row-actions {
  min-width: 18rem;
  width: 18rem;
  white-space: nowrap;
  vertical-align: middle;
  text-align: right;
}
.manage-news-grid { table-layout: fixed; width: 100%; }
.manage-news-grid th:nth-child(1),
.manage-news-grid td.manage-reorder { width: 4.5rem; }
.manage-news-grid th:nth-child(2),
.manage-news-grid td.manage-news-title { width: 28%; overflow: hidden; }
.manage-news-grid th:nth-child(3),
.manage-news-grid td.manage-news-slug { width: 18%; overflow: hidden; }
.manage-news-grid th:nth-child(4),
.manage-news-grid td.manage-col-meta:nth-child(4) {
  white-space: nowrap;
  width: 9.75rem;
  text-align: right;
  vertical-align: middle;
}
.manage-news-grid th:nth-child(5),
.manage-news-grid td.manage-col-meta:nth-child(5) {
  white-space: nowrap;
  width: 5.5rem;
  text-align: right;
  vertical-align: middle;
}
.manage-news-grid th:last-child,
.manage-news-grid td.manage-row-actions {
  width: 10.5rem;
  min-width: 10.5rem;
  white-space: nowrap;
  vertical-align: middle;
  text-align: right;
}
.manage-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-width: 0;
  flex: 1;
}
.manage-grid-title-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}
.manage-locale-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.manage-locale-flags .lang-flag {
  font-size: 1rem;
  line-height: 1;
}
.manage-admin-grid th:last-child, .manage-admin-grid td:last-child { width: 8rem; text-align: right; }
.manage-admin-actions { display: flex; justify-content: flex-end; gap: 0.375rem; vertical-align: middle; }
.manage-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.manage-row-actions-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.manage-row-actions .manage-status { flex-shrink: 0; white-space: nowrap; }
.manage-status { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 0.375rem; }
.manage-status.is-active { background: rgba(34,197,94,0.15); color: #4ade80; }
.manage-status.is-inactive { background: rgba(148,163,184,0.15); color: #94a3b8; }
.manage-you { margin-left: 0.5rem; font-size: 0.6875rem; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.04em; }
.manage-muted { color: #64748b; font-size: 0.8125rem; }
@media (max-width: 767px) {
  .manage-page { height: auto; overflow: auto; }
  .manage-layout { height: auto; overflow: visible; grid-template-columns: 1fr; }
  .manage-sidebar { height: auto; overflow: visible; border-right: none; border-bottom: 1px solid #334155; }
  .manage-main { height: auto; overflow: visible; }
  .manage-card-grid { min-height: 20rem; }
  .manage-grid-scroll { overflow: visible; }
  .manage-sidebar-bottom { flex-direction: row; flex-wrap: wrap; border-top: none; padding-top: 0; margin-top: 1rem; }
  .manage-textarea { width: 100%; }
}

/* Mouse-chasing rover (index) */
.ccbs-rover {
  position: fixed;
  top: 0;
  left: 0;
  width: 77px;
  height: auto;
  z-index: 45;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  max-width: none;
}
@media (prefers-reduced-motion: reduce) {
  .ccbs-rover { display: none; }
}

/* Manage catalog / products */
.manage-card.manage-catalog-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 0.875rem;
}
.manage-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.manage-form-span { grid-column: 1 / -1; }
.manage-check { display: flex; align-items: center; gap: 0.6rem; color: #e2e8f0; font-size: 0.875rem; line-height: 1.35; }
.manage-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #38bdf8;
  cursor: pointer;
}
.manage-upload-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.manage-upload-row .manage-input { flex: 1; min-width: 12rem; }
.manage-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.75rem;
  border: 1px dashed #475569;
  border-radius: 0.5rem;
  background: #0b1220;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.manage-dropzone.is-dragover {
  border-color: #38bdf8;
  background: #132033;
}
.manage-dropzone.is-busy { opacity: 0.65; pointer-events: none; }
.manage-dropzone-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.manage-dropzone-hint {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #94a3b8;
  pointer-events: none;
}
.manage-thumb { display: block; max-width: 12rem; max-height: 8rem; margin-top: 0.5rem; border-radius: 0.5rem; object-fit: cover; }
.manage-thumb-sm { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 0.375rem; flex-shrink: 0; }
.manage-list-media {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.manage-thumb-banner {
  width: 4.5rem;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 0.375rem;
  background: #0f172a;
  border: 1px solid #334155;
  display: block;
  flex-shrink: 0;
}
.manage-thumb-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.375rem;
  background: #0f172a;
  border: 1px solid #334155;
  display: block;
  flex-shrink: 0;
}
.manage-thumb-empty { background: #0f172a; }
.manage-btn-xs { padding: 0.2rem 0.45rem; font-size: 0.75rem; }
.manage-order-cell { white-space: nowrap; }
.manage-quotes-cell { background: #0f172a; padding: 0.75rem !important; }
.manage-quote-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid #334155; }
.manage-quote-row:last-child { border-bottom: none; }
.manage-quote-row p { margin: 0.35rem 0 0; color: #cbd5e1; font-size: 0.875rem; white-space: pre-wrap; }
@media (max-width: 767px) {
  .manage-form-grid { grid-template-columns: 1fr; }
}

/* Product editor split layout */
.manage-prod-editor {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .manage-prod-editor { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.manage-prod-main { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.manage-prod-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.625rem;
  padding: 1rem;
}
@media (min-width: 768px) {
  .manage-prod-side { position: sticky; top: 0.75rem; }
}
.manage-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.manage-form-section + .manage-form-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}
.manage-form-section .form-group { margin-bottom: 0.75rem; }
.manage-form-section .form-group:last-child { margin-bottom: 0; }
.manage-hint-inline {
  padding: 0.35rem 0 0;
  border-top: none;
  margin-top: 0.25rem;
}
.manage-check-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 0.35rem;
}
.manage-check-grid .manage-check {
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}
.manage-media-block {
  margin-bottom: 1rem;
}
.manage-media-block:last-child { margin-bottom: 0; }
.manage-media-row {
  display: grid;
  grid-template-columns: 1fr 5.5rem;
  gap: 0.75rem;
  align-items: start;
}
.manage-media-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.manage-media-preview {
  display: block;
  width: 5.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  object-fit: contain;
}
.manage-media-preview-banner { aspect-ratio: 16 / 9; max-height: 4rem; width: 5.5rem; }
.manage-media-preview-icon { aspect-ratio: 1; max-height: 5.5rem; width: 5.5rem; }
.manage-media-preview-empty { background: #0f172a; }
.manage-prod-main .manage-textarea { min-height: 4.5rem; resize: vertical; }

/* Product page */
.product-page-wrap { padding: 6rem 0 4rem; }
.product-page-wrap:has(.product-banner) { padding-top: 5rem; }
.product-page-wrap:has(.product-banner) .container { margin-top: -4.5rem; position: relative; z-index: 2; }
.product-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin: 1rem 0 1.25rem; color: var(--text-muted); text-decoration: none; font-size: 0.875rem;
}
.product-page-wrap:has(.product-banner) .product-back {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.product-page-wrap:has(.product-banner) .product-back:hover { color: var(--white); }
.product-back:hover { color: var(--primary); }
.product-article { max-width: 48rem; }
.product-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: min(52vh, 520px);
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  background: var(--primary);
}
.product-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 72%,
    var(--white) 100%
  );
  pointer-events: none;
}
.product-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-page-wrap:has(.product-banner) .product-article h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}
.product-article h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.product-body { line-height: 1.7; }
.product-body::after { content: ""; display: table; clear: both; }
.product-body img { max-width: 100%; height: auto; }
.product-body img[style*="float: left"],
.product-body img[style*="float:left"],
.product-body figure.align-left {
  float: left;
  max-width: 50%;
  margin: 0 1.25rem 1rem 0;
}
.product-body img[style*="float: right"],
.product-body img[style*="float:right"],
.product-body figure.align-right {
  float: right;
  max-width: 50%;
  margin: 0 0 1rem 1.25rem;
}
.product-body figure.align-left img,
.product-body figure.align-right img { max-width: 100%; }
.product-body figure.align-center {
  float: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
@media (max-width: 639px) {
  .product-body img[style*="float"],
  .product-body figure.align-left,
  .product-body figure.align-right {
    float: none !important;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}
.product-body iframe { max-width: 100%; }
.product-quote-bar { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border, #e5e7eb); }

/* Products catalog listing */
.catalog-header { margin-bottom: 2rem; }
.catalog-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.catalog-intro { color: var(--text-muted); max-width: 36rem; }
.catalog-products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .catalog-products-grid { grid-template-columns: repeat(3, 1fr); }
}
.catalog-product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}
.catalog-product-banner {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}
.catalog-product-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-product-banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.6), rgba(15, 23, 42, 0.8));
}
.catalog-product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}
.catalog-product-body h2 {
  font-size: 1.125rem;
  margin: 0;
}
.catalog-product-body h2 a {
  color: inherit;
  text-decoration: none;
}
.catalog-product-body h2 a:hover { color: var(--gold); }
.catalog-product-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.catalog-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.catalog-empty { color: var(--text-muted); }

.library-filters {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .library-filters {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
    align-items: end;
  }
}
.library-filters .form-group { margin-bottom: 0; }
.library-filter-month select { width: 100%; }

.library-list { display: flex; flex-direction: column; gap: 0; }
.library-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.library-item:last-child { border-bottom: none; }
.library-item-body { flex: 1; min-width: min(100%, 16rem); }
.library-item h2 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}
.library-item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}
.library-item-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.library-item-flags .lang-flag {
  font-size: 1.125rem;
  line-height: 1;
}
.library-item-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 42rem;
  margin-bottom: 0.35rem;
  line-height: 1.55;
}
.library-item-desc-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-item-desc p { margin: 0 0 0.5rem; }
.library-item-desc p:last-child { margin-bottom: 0; }
.library-item-desc ul,
.library-item-desc ol { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.library-item-desc img { max-width: 100%; height: auto; }
.library-item-desc a { color: var(--primary); }
.library-item-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.library-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.library-list .btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}
.library-list .btn-outline:hover {
  background: rgba(10, 37, 64, 0.06);
}
.library-detail-modal {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 40rem);
  padding: 0;
  overflow: hidden;
}
.library-detail-modal .modal-header {
  padding: 1.5rem 1.5rem 0;
  margin-bottom: 0;
}
.library-detail-title {
  margin: 0;
  padding-right: 0.5rem;
  color: var(--primary);
  font-size: 1.25rem;
}
.library-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.library-detail-body p { margin: 0 0 0.75rem; }
.library-detail-body p:last-child { margin-bottom: 0; }
.library-detail-body ul,
.library-detail-body ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.library-detail-body::after { content: ""; display: table; clear: both; }
.library-detail-body img { max-width: 100%; height: auto; }
.library-detail-body img[style*="float: left"],
.library-detail-body img[style*="float:left"],
.library-detail-body figure.align-left {
  float: left;
  max-width: 50%;
  margin: 0 1.25rem 1rem 0;
}
.library-detail-body img[style*="float: right"],
.library-detail-body img[style*="float:right"],
.library-detail-body figure.align-right {
  float: right;
  max-width: 50%;
  margin: 0 0 1rem 1.25rem;
}
.library-detail-body figure.align-left img,
.library-detail-body figure.align-right img { max-width: 100%; }
.library-detail-body figure.align-center {
  float: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
@media (max-width: 639px) {
  .library-detail-body img[style*="float"],
  .library-detail-body figure.align-left,
  .library-detail-body figure.align-right {
    float: none !important;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}
.library-detail-body a { color: var(--gold); }
.library-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.library-detail-actions .btn:disabled,
.library-detail-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* News list */
.news-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.news-header h1 { margin: 0; }
.news-intro {
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 40rem;
}
.news-rss-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--primary);
  text-decoration: none;
  line-height: 0;
  transition: color 0.2s, background 0.2s;
}
.news-rss-icon:hover {
  color: var(--gold);
  background: rgba(10, 37, 64, 0.06);
}
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.news-page-group { display: inline-flex; align-items: center; gap: 0.375rem; }
.news-page-btn {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: var(--white);
  color: var(--primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.news-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  background: rgba(10, 37, 64, 0.04);
}
.news-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  cursor: default;
}
.news-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.news-page-num { min-width: 2.5rem; text-align: center; }
.news-page-ellipsis {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0 0.125rem;
  user-select: none;
}
.news-page-of {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.news-card {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.news-card-thumb {
  flex: 0 0 9rem;
  width: 9rem;
  min-height: 6.5rem;
  background: #f3f4f6;
  overflow: hidden;
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  background: linear-gradient(135deg, #e5e7eb 0%, #f9fafb 100%);
}
.news-card-body {
  flex: 1;
  min-width: 0;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.375rem;
  line-height: 1.3;
}
.news-card-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.news-card-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem 1rem 0;
}
.news-card-action .btn { pointer-events: none; }
.news-card .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 640px) {
  .news-card { flex-direction: column; }
  .news-card-thumb { flex: none; width: 100%; height: 10rem; }
  .news-card-body { padding: 0 1rem; }
  .news-card-action { padding: 0 1rem 1rem; justify-content: flex-start; }
}
.news-article-back {
  display: inline-block;
  margin: 1rem 0;
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: none;
}
.news-article-back:hover { color: var(--gold); }
.news-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary);
  margin: 0 0 0.75rem;
}
.news-meta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.news-meta-link {
  color: var(--primary);
  text-decoration: none;
}
.news-meta-link:hover {
  color: var(--gold);
  text-decoration: underline;
}
.news-meta-sep {
  margin: 0 0.35rem;
}
.news-article .product-body { margin-bottom: 2rem; }
.news-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.5rem;
  margin-bottom: 2rem;
}
.news-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
}
.news-share-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.news-share-link {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.news-share-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.news-share-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Admin manuals page */
.manage-nav-manuals { margin-top: auto; }
.manage-error { color: #fca5a5; font-size: 0.875rem; margin: 0 0 0.5rem; }
.manuals-topbar { display: flex; flex-direction: column; gap: 0.75rem; }
.manuals-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.manuals-tab {
  border: 1px solid #475569;
  background: transparent;
  color: #94a3b8;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.manuals-tab:hover, .manuals-tab.active {
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  border-color: #94a3b8;
}
.manuals-stack { overflow: hidden; }
.manuals-doc {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.65;
  color: #e2e8f0;
}
.manuals-doc h1, .manuals-doc h2, .manuals-doc h3, .manuals-doc h4 {
  color: #f8fafc;
  line-height: 1.3;
  margin: 1.5rem 0 0.65rem;
}
.manuals-doc h1 { font-size: 1.5rem; margin-top: 0; }
.manuals-doc h2 { font-size: 1.25rem; border-bottom: 1px solid #334155; padding-bottom: 0.35rem; }
.manuals-doc h3 { font-size: 1.05rem; }
.manuals-doc p, .manuals-doc ul, .manuals-doc ol, .manuals-doc table { margin: 0.65rem 0; }
.manuals-doc ul, .manuals-doc ol { padding-left: 1.35rem; }
.manuals-doc a { color: #38bdf8; }
.manuals-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.25rem;
  padding: 0.1rem 0.3rem;
}
.manuals-doc pre {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
.manuals-doc pre code { border: 0; background: transparent; padding: 0; }
.manuals-doc table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.manuals-doc th, .manuals-doc td {
  border: 1px solid #334155;
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.manuals-doc th { background: #0f172a; color: #f8fafc; }
.manuals-doc img {
  display: block;
  max-width: min(100%, 48rem);
  height: auto;
  margin: 1rem 0;
  border: 1px solid #334155;
  border-radius: 0.5rem;
}
.manuals-doc hr { border: 0; border-top: 1px solid #334155; margin: 1.5rem 0; }
.manuals-doc blockquote {
  margin: 0.85rem 0;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 3px solid #475569;
  color: #cbd5e1;
}


