*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #2e7d32;
  --green-l: #4caf50;
  --bg:      #f9fafb;
  --card:    #ffffff;
  --text:    #1a1a1a;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --radius:  12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.2rem; font-weight: 700; color: var(--green);
  text-decoration: none; white-space: nowrap;
}
.nav-logo-img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.nav-logo-text span { color: var(--text); font-weight: 400; }

.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 6px 12px; font-size: .9rem; font-weight: 500; color: var(--muted);
  cursor: pointer; border-radius: 6px; transition: all .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--green); background: #f1f8e9; }

.nav-right { display: flex; gap: 10px; align-items: center; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 9px; font-size: .75rem; font-weight: 700; cursor: pointer;
  color: var(--muted); transition: all .15s; letter-spacing: .03em;
}
.lang-btn:hover { border-color: var(--green); color: var(--green); }
.lang-btn-active { border-color: var(--green); color: var(--green); background: #e8f5e9; }

/* ── Views (SPA) ── */
.view { display: none; animation: fadeIn .3s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Account button + panel ── */
.account-wrap { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: #fff; border: none;
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: opacity .15s; white-space: nowrap;
}
.account-btn:hover { opacity: .9; }
.account-btn svg { flex-shrink: 0; }

.account-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.16);
  padding: 18px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.account-panel.open { opacity: 1; visibility: visible; transform: none; }

#account-backdrop {
  display: none; position: fixed; inset: 0; z-index: 40;
}
#account-backdrop.open { display: block; }

.ap-title { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.ap-form { display: flex; flex-direction: column; gap: 10px; }
.ap-form input, #ap-reset-form input {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .9rem; outline: none; transition: border-color .15s;
}
.ap-form input:focus, #ap-reset-form input:focus { border-color: var(--green); }
.btn-link {
  background: none; border: none; color: var(--green); font-size: .82rem;
  cursor: pointer; padding: 4px; text-align: left; font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }
.ap-or {
  text-align: center; font-size: .78rem; color: var(--muted);
  margin: 14px 0; position: relative;
}
.ap-or::before, .ap-or::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.ap-or::before { left: 0; }
.ap-or::after  { right: 0; }

/* Logged-in panel */
.ap-user-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.ap-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.ap-email-display { font-size: .88rem; font-weight: 600; word-break: break-all; }
.ap-menu { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.ap-menu button, .ap-menu a {
  display: flex; align-items: center; gap: 11px;
  background: none; border: none; padding: 10px 12px; border-radius: 8px;
  font-size: .88rem; color: var(--text); cursor: pointer; text-align: left;
  text-decoration: none; transition: background .12s; width: 100%;
}
.ap-menu button:hover, .ap-menu a:hover { background: #f3f4f6; }
.ap-menu svg { color: var(--muted); flex-shrink: 0; }
.ap-menu-footer {
  display: flex; gap: 8px; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--border);
}
.ap-btn-muted, .ap-btn-danger {
  flex: 1; padding: 9px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--card); transition: all .12s;
}
.ap-btn-muted:hover { background: #f3f4f6; }
.ap-btn-danger { color: #ef4444; border-color: #fecaca; }
.ap-btn-danger:hover { background: #fef2f2; }

/* ── Page hero (Downloads view) ── */
.view-page-hero {
  text-align: center; padding: 48px 24px 36px;
  background: linear-gradient(160deg, #e8f5e9 0%, #f9fafb 70%);
}
.dl-hero-logo {
  width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 16px;
  display: block; box-shadow: 0 6px 22px rgba(0,0,0,.14);
}
.view-page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.view-page-hero p  { font-size: 1.05rem; color: var(--muted); }
.view-back-btn {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  color: var(--green); font-size: .9rem; font-weight: 600; cursor: pointer;
  margin-bottom: 20px;
}
.view-back-btn:hover { text-decoration: underline; }

/* ── Platform grid ── */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.platform-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.platform-card-soon { opacity: .85; }
.platform-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.platform-icon-wrap {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.platform-android { background: #3ddc84; }
.platform-ios     { background: #1a1a1a; }
.platform-windows { background: #0078d4; }
.platform-card-header h3 { font-size: 1.2rem; font-weight: 700; }
.platform-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.platform-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; margin-bottom: 18px; flex: 1; }
.coming-soon-badge {
  text-align: center; padding: 12px; background: #f3f4f6; color: var(--muted);
  border-radius: 10px; font-size: .9rem; font-weight: 600;
}
.appstore-badge-link {
  display: inline-flex; align-self: flex-start; transition: transform .15s, opacity .15s;
}
.appstore-badge-link:hover { transform: translateY(-2px); opacity: .9; }
.appstore-badge { height: 48px; width: auto; display: block; }

/* ── List view (App-Ansicht) ── */
.list-app-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; background: var(--green); color: #fff;
  position: sticky; top: 60px; z-index: 5;
}
.list-app-bar h2 { font-size: 1.15rem; font-weight: 700; flex: 1; }
.list-back-btn {
  background: rgba(255,255,255,.18); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.list-back-btn:hover { background: rgba(255,255,255,.3); }
.list-app-bar-right { width: 38px; }

.list-body { max-width: 680px; margin: 0 auto; padding: 24px; min-height: 50vh; }

.list-auth-prompt {
  max-width: 420px; margin: 60px auto; text-align: center; padding: 24px;
}
.list-prompt-logo { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px; }
.list-auth-prompt h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.list-auth-prompt p { font-size: .95rem; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

/* ── Hero CTA buttons ── */
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: 10px; }

.pricing-trust { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 24px; }

/* ── Success Banner ── */
.banner-success {
  background: #dcfce7;
  border-bottom: 2px solid var(--green);
}
.banner-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.banner-inner > div { flex: 1; }
.banner-inner strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--green); }
.banner-inner p { font-size: .88rem; color: #166534; }
.banner-close {
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; color: var(--muted); flex-shrink: 0; padding: 0 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: .95rem;
  font-weight: 600; cursor: pointer; border: none; text-decoration: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn-primary  { background: var(--green); color: #fff; }
.btn-outline  { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-sm       { padding: 6px 12px; font-size: .82rem; }
.btn-danger   { background: #ef4444; color: #fff; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 24px 64px;
  background: linear-gradient(160deg, #e8f5e9 0%, #f9fafb 60%);
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero p  { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: .9rem; font-weight: 500;
}

/* ── Sections ── */
.section { max-width: 680px; margin: 0 auto; padding: 40px 24px; }
.section-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; outline: none;
  transition: border-color .15s;
}
.form-group input:focus { border-color: var(--green); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.error-msg { color: #ef4444; font-size: .88rem; margin-top: 10px; min-height: 20px; }
.success-msg { color: var(--green); font-size: .88rem; margin-top: 10px; }

/* ── Account management ── */
#section-account { display: none; }
.account-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.account-row:last-of-type { border-bottom: none; }
.account-label { font-size: .88rem; color: var(--muted); }
.account-value { font-size: .95rem; font-weight: 600; }
.account-badge-premium {
  background: #dcfce7; color: var(--green);
  padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.account-badge-free {
  background: #f3f4f6; color: var(--muted);
  padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.account-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}

/* ── Shopping list ── */
#section-list { display: none; }
#list-empty { color: var(--muted); font-size: .95rem; padding: 20px 0; }
.item-list { display: flex; flex-direction: column; gap: 8px; }
.item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.item.checked { opacity: .5; }
.item-name { font-weight: 600; flex: 1; }
.item-name.checked-text { text-decoration: line-through; }
.item-amount { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.item-pkg { font-size: .78rem; color: var(--green); background: #e8f5e9; padding: 2px 7px; border-radius: 4px; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center;
}
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p  { font-size: .85rem; color: var(--muted); }

/* ── Plans grid ── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.plan-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
}
.plan-card-pro {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(46,125,50,.12);
}
.plan-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.plan-price-free {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 20px;
}
.plan-price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price span { font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan-yearly {
  font-size: .8rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}
.plan-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
}
.plan-features li {
  font-size: .85rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-off { color: var(--muted); }

/* ── Registration form ── */
.reg-form { display: flex; flex-direction: column; gap: 10px; }
.reg-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.reg-form input:focus { border-color: var(--green); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.btn-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  padding: 4px;
  line-height: 1;
}
.pricing-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
@media (max-width: 540px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ── Gratis Kochbuch / Feinschmecker ── */
.section-wide { max-width: 900px; }

.kochbuch-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feinschmecker-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.feinschmecker-info {
  flex: 1 1 260px;
  min-width: 220px;
}
.feinschmecker-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}
.feinschmecker-sub {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.feinschmecker-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.feinschmecker-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.feinschmecker-dl { white-space: nowrap; }

/* Carousel */
.carousel {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}
.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s ease;
  background: #fff;
}
.carousel-img.active { opacity: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

.carousel-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.carousel-dot.active { background: var(--green); }

@media (max-width: 640px) {
  .feinschmecker-card { flex-direction: column; }
  .feinschmecker-dl   { width: 100%; justify-content: center; }
}

/* ── App Download ── */
.app-dl-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.app-dl-logo { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; object-fit: contain; }
.app-dl-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.app-dl-meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.app-dl-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ── Kochbuch Download Form ── */
.dl-lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dl-lang-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.dl-lang-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-lang-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
}
.dl-lang-btn:hover { border-color: var(--green); color: var(--green); }
.dl-lang-btn.active { border-color: var(--green); color: var(--green); background: #e8f5e9; }

.dl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.dl-form input:focus { border-color: var(--green); }
.dl-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: #dcfce7;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  padding: 18px;
}
.dl-success-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.dl-success-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}
.dl-success-sub {
  font-size: .85rem;
  color: #166534;
  line-height: 1.5;
}
.dl-note {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}
.kb-browse-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.kb-browse-link:hover { text-decoration: underline; }

/* ── Screenshots ── */
.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

.screenshot-item {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.screenshot-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border: 1px solid var(--border);
}
.screenshot-item span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Feature icon image ── */
.feature-icon-img {
  font-size: 0;
}
.feature-icon-img img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Feature card highlight (Hans / Analyse) ── */
.feature-card-highlight {
  border: 1.5px solid var(--green);
  background: linear-gradient(135deg, #f1f8e9 0%, #fff 100%);
}
.feature-card-highlight h3 { color: var(--green); }

/* ── Contact Modal ── */
.contact-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 100;
  backdrop-filter: blur(2px);
}
.contact-backdrop.open { display: block; }

.contact-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.95);
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  overflow-y: auto; background: var(--card); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 28px;
  z-index: 110; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.contact-modal.open {
  opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1);
}

.contact-modal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.contact-modal-header h2 { font-size: 1.2rem; font-weight: 700; }
.contact-close-btn {
  background: none; border: none; font-size: 1.1rem; cursor: pointer;
  color: var(--muted); padding: 4px 8px; border-radius: 6px; transition: background .12s;
}
.contact-close-btn:hover { background: #f3f4f6; }

.contact-form-fields { display: flex; flex-direction: column; gap: 12px; }
.contact-form-fields input,
.contact-form-fields textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .9rem; font-family: inherit; outline: none;
  transition: border-color .15s; resize: vertical;
}
.contact-form-fields input:focus,
.contact-form-fields textarea:focus { border-color: var(--green); }

/* ── Footer ── */
footer {
  text-align: center; padding: 32px 24px;
  color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--muted); }

/* ── Loader ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--green);
  border-radius: 50%; animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; }
  .card { padding: 20px; }
  .account-actions { flex-direction: column; }
  .account-actions .btn { width: 100%; }
  nav { padding: 0 14px; gap: 8px; }
  .account-btn span { display: none; }
  .account-btn { padding: 9px; }
  .lang-switcher .lang-btn { padding: 4px 7px; }
  .account-panel { position: fixed; top: 64px; right: 8px; left: 8px; width: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-lg { width: 100%; }
}
