:root {
  --bg: #f8f4ec;
  --surface: #fffdf8;
  --surface-soft: #f3eee3;
  --text: #193428;
  --muted: #617266;
  --line: #ded4c1;
  --brand: #123b2a;
  --brand-strong: #0d2f22;
  --gold: #b28a3f;
  --ok: #1f8f4f;
  --error: #b53434;
  --shadow: 0 12px 30px rgba(18, 59, 42, 0.1);
  --shadow-soft: 0 8px 16px rgba(18, 59, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -20%, rgba(178, 138, 63, 0.2), transparent 50%),
    radial-gradient(circle at 92% -25%, rgba(18, 59, 42, 0.12), transparent 45%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(248, 244, 236, 0.86);
  border-bottom: 1px solid rgba(18, 59, 42, 0.08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(18, 59, 42, 0.16);
}

.brand .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand .subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav a,
.nav-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  transition: 0.25s ease;
}

.main-nav a:hover,
.nav-btn:hover {
  color: var(--brand);
  border-color: rgba(18, 59, 42, 0.18);
  transform: translateY(-1px);
}

.main-nav a.active {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  box-shadow: 0 6px 14px rgba(18, 59, 42, 0.22);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #bf2f2f;
}

.page {
  padding: 1.6rem 0 2.6rem;
}

.hero {
  background: linear-gradient(135deg, rgba(18, 59, 42, 0.96), rgba(18, 59, 42, 0.82));
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.1rem);
  display: grid;
  gap: 0.6rem;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.6vw, 2.45rem);
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.card h3,
.card h4 {
  margin: 0 0 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card + .card {
  margin-top: 1rem;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.stat .number {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--brand);
}

.stat .meta {
  color: var(--muted);
}

.progress {
  margin-top: 0.8rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7decc;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #d3b16a);
  transition: width 1.4s ease;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  background: var(--surface-soft);
  border: 1px solid #e9dfcf;
  border-radius: 12px;
}

.list .left {
  min-width: 0;
}

.list .title {
  font-weight: 600;
  color: var(--text);
}

.list .sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.list .right {
  text-align: right;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--brand);
  font-weight: 600;
}

.btn,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  border: 0;
  padding: 0.62rem 0.9rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  box-shadow: 0 8px 16px rgba(13, 47, 34, 0.2);
}

.btn-ghost {
  color: var(--brand);
  background: transparent;
  border: 1px solid rgba(18, 59, 42, 0.24);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(120deg, #bb3a3a, #a52d2d);
  box-shadow: 0 8px 16px rgba(141, 36, 36, 0.22);
}

.btn:hover,
.btn-ghost:hover,
.btn-danger:hover,
.lift:hover {
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(18, 59, 42, 0.12);
  color: var(--brand);
}

.tag.plus {
  background: rgba(31, 143, 79, 0.14);
  color: var(--ok);
}

.tag.min {
  background: rgba(181, 52, 52, 0.14);
  color: var(--error);
}

.muted {
  color: var(--muted);
}

.empty {
  border: 1px dashed #d8cab0;
  background: #f7f1e6;
  border-radius: 12px;
  padding: 0.9rem;
  color: #5f6c62;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid #d9ccb4;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 0.62rem 0.72rem;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(18, 59, 42, 0.2);
  outline-offset: 1px;
}

.notice {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.notice.ok {
  background: rgba(31, 143, 79, 0.1);
  border-color: rgba(31, 143, 79, 0.2);
  color: #1f6d42;
}

.notice.warn {
  background: rgba(178, 138, 63, 0.1);
  border-color: rgba(178, 138, 63, 0.25);
  color: #7e5d20;
}

.notice.err {
  background: rgba(181, 52, 52, 0.1);
  border-color: rgba(181, 52, 52, 0.25);
  color: #932f2f;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 22, 17, 0.56);
  z-index: 200;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.26);
}

.modal-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d5c9b5;
  background: #fff;
  cursor: pointer;
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.qr-wrap img {
  width: 205px;
  height: 205px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #e7dfcf;
  padding: 0.5rem;
  background: #fff;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(18, 59, 42, 0.12);
  color: #5e6e62;
  padding: 1.25rem 0 2rem;
  font-size: 0.88rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
}

.site-footer .line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.footer-meta {
  color: #5f6f65;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  text-decoration: none;
  color: #385747;
}

.footer-links a:hover {
  color: #123b2a;
}

.wa-link {
  font-weight: 600;
}

.pwa-tools {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pwa-tip {
  font-size: 0.8rem;
  color: #6a786f;
}

.mobile-dock {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy pagina-harmonisatie (publiek + account) */
.button,
button[type='submit'] {
  border: 1px solid rgba(18, 59, 42, 0.2);
  border-radius: 11px;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
button[type='submit']:hover {
  filter: brightness(0.97);
}

.dashboard-container,
.contact-container,
.content-box,
.card-voorwaarden,
.card-werken,
.meldingen-wrapper,
.promo,
.weekdeal,
.card-bon {
  width: min(1160px, calc(100% - 1.6rem));
  margin: 1rem auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.5vw, 1.45rem);
}

.dashboard-container.wide {
  width: min(1240px, calc(100% - 1.6rem));
}

.form-container {
  width: min(620px, calc(100% - 1.2rem));
  margin: 1.2rem auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.5vw, 1.45rem);
}

.dashboard-container h1,
.form-container h1,
.form-container h2,
.contact-container h1,
.contact-container h2,
.promo h1,
.weekdeal h1,
.card-voorwaarden h1,
.card-werken h1,
.card-bon h1 {
  margin-top: 0;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}

.dashboard-container h2,
.dashboard-container h3,
.contact-container h3,
.promo h2,
.weekdeal h2,
.card-voorwaarden h2,
.card-werken h2,
.card-bon h2 {
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}

.dashboard-container p,
.form-container p,
.contact-container p,
.promo p,
.weekdeal p,
.meldingen-wrapper p {
  color: var(--muted);
}

.form-container input,
.form-container textarea,
.form-container select,
.contact-container input,
.contact-container textarea,
.contact-container select,
.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  border: 1px solid #d9ccb4;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 0.65rem 0.72rem;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus,
.contact-container input:focus,
.contact-container textarea:focus,
.contact-container select:focus,
.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(18, 59, 42, 0.2);
  outline-offset: 1px;
}

.promo-banner,
.weekdeal,
.melding-card,
.info-card,
.openingstijden-card,
.tijdelijkesluiting,
.review-card,
.bedankt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.openingsuren-lijst {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.openingsuren-lijst li {
  padding: 0.42rem 0;
}

.openingsuren-kop,
.openingsuren-item,
.openingsuren-voet {
  text-align: center;
}

.openingsuren-kop {
  margin-bottom: 0.75rem;
}

.openingsuren-voet {
  font-weight: 600;
}

.lijn-kort {
  display: flex;
  justify-content: center;
  margin: 0.45rem 0;
}

.lijn-kort span {
  display: inline-block;
  width: 52%;
  max-width: 30ch;
  border-top: 1px solid #d9ccb6;
}

.promo-card {
  margin: 1.1rem auto 0;
  max-width: 620px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
  text-align: center;
}

.promo-card--green {
  background: #f3fbf1;
  border-left-color: #2f7a4e;
}

.promo-card--blue {
  background: #f2f7ff;
  border-left-color: #2b6cb0;
}

.promo-card-title {
  margin: 0 0 0.65rem;
}

.promo-card-text {
  margin: 0 0 1rem;
  color: #244639;
}

.promo-card img {
  max-width: 100%;
  border-radius: 10px;
  margin: 0 auto;
}

.promo-btn {
  min-width: 170px;
}

.promo-index-card {
  margin-top: 1rem;
  background: #fff5eb;
  border: 2px dashed #ffb347;
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.2);
}

.promo-index-list {
  list-style: none;
  margin: 0.65rem 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.promo-index-list li {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem;
  border: 1px dashed #ffcd83;
  border-radius: 10px;
  background: #fffdf9;
}

.promo-index-list li strong {
  color: #2d6a4f;
  font-size: 1rem;
}

.promo-index-list li span {
  color: #7b341e;
  font-size: 0.95rem;
}

.promo-index-list li small {
  color: #555;
  font-size: 0.8rem;
}

.promo-index-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
}

.sticky {
  position: sticky;
  top: 88px;
  align-self: start;
}

.winkel-status-card {
  border-left: 5px solid #c7bda9;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.winkel-status-card.open {
  border-color: #2f8b56;
  background: #eaf8ef;
}

.winkel-status-card.bijna-gesloten {
  border-color: #d09a2f;
  background: #fff6e4;
}

.winkel-status-card.gesloten {
  border-color: #b53434;
  background: #fdeeee;
}

.status-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: #e2e8e1;
  color: #173b2e;
  font-weight: 700;
  font-size: 0.84rem;
}

.footergrid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
}

.photo-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7dcc9;
  background: #f6efe2;
  cursor: pointer;
}

.photo-wrapper img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
}

.photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(to top, rgba(16, 36, 28, 0.8), rgba(16, 36, 28, 0.08));
  pointer-events: none;
}

.photo-rotate-45 {
  transform: rotate(45deg);
}

.review-mt {
  margin-top: 10px;
}

.review-cta {
  text-align: center;
  margin-top: 20px;
}

.review-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.review-divider {
  font-weight: 700;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(9, 18, 14, 0.58);
}

.popup-box {
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 52px rgba(7, 18, 13, 0.32);
  padding: 1rem;
}

.popup-box h3 {
  margin-top: 0;
}

.popup-actions {
  display: grid;
  gap: 0.55rem;
}

.popup-box .button {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.82);
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.lightbox-inner {
  width: min(980px, 100%);
  max-height: calc(100vh - 2rem);
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  border-radius: 10px;
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  max-width: 100%;
  word-break: break-word;
}

.contact-container .info-card,
.meldingen-wrapper .melding-card,
.promo .promo-banner,
.weekdeal .promo-banner {
  padding: 1rem;
}

.melding-header,
.melding-footer {
  background: #f6f0e5;
}

.promo-item {
  border: 1px solid #eadfcd;
  border-radius: 11px;
  background: #fff;
}

.contact-container a,
.auth-links a {
  color: #1c5a41;
}

.contact-container a:hover,
.auth-links a:hover {
  color: #0f3a2a;
}

.auth-links {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.loyalty-table,
table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.loyalty-table th,
table th {
  background: var(--brand);
  color: #fff;
}

.loyalty-table td,
table td {
  background: #fff;
}

main {
  width: 100%;
}

main > .form-container:only-child,
main > .dashboard-container:only-child,
main > .contact-container:only-child {
  margin-top: 1.2rem;
}

.install-banner {
  border-radius: 14px;
  border: 1px solid rgba(18, 59, 42, 0.2);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
  body {
    color: var(--text);
    background:
      radial-gradient(circle at 8% -20%, rgba(178, 138, 63, 0.2), transparent 50%),
      radial-gradient(circle at 92% -25%, rgba(18, 59, 42, 0.12), transparent 45%),
      var(--bg);
  }
}

@media (max-width: 960px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(1160px, calc(100% - 1.2rem));
  }

  .site-header .bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.6rem;
  }

  .brand {
    min-width: 0;
  }

  .brand .title {
    font-size: 1.15rem;
  }

  .brand .subtitle {
    font-size: 0.68rem;
  }

  .account-nav-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .public-nav-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .public-main-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.55rem;
    border: 1px solid rgba(18, 59, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: 0 8px 20px rgba(18, 59, 42, 0.08);
    gap: 0.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-main-nav.open {
    display: grid;
  }

  .public-main-nav a {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(18, 59, 42, 0.14);
    background: #fff;
  }

  .dashboard-container,
  .contact-container,
  .content-box,
  .card-voorwaarden,
  .card-werken,
  .meldingen-wrapper,
  .promo,
  .weekdeal,
  .card-bon {
    width: min(1160px, calc(100% - 0.8rem));
    padding: 0.9rem;
  }

  .form-container {
    width: min(620px, calc(100% - 0.8rem));
    padding: 0.95rem;
  }

  .account-main-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.55rem;
    border: 1px solid rgba(18, 59, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: 0 8px 20px rgba(18, 59, 42, 0.08);
    overflow: visible;
    white-space: normal;
    gap: 0.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-main-nav.open {
    display: grid;
  }

  .account-main-nav a {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(18, 59, 42, 0.14);
    background: #fff;
  }

  .grid.cols-2,
  .grid.cols-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footergrid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popup-box {
    padding: 0.85rem;
  }

  .popup-box h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .lightbox {
    padding: 0.6rem;
  }

  .lightbox-inner img {
    max-height: calc(100vh - 7.2rem);
  }

  .sticky {
    position: static;
    top: auto;
  }

  .status-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-badge {
    max-width: 100%;
  }

  .list li {
    flex-direction: column;
  }

  .list .right {
    text-align: left;
    white-space: normal;
  }

  .site-footer {
    padding-bottom: calc(2.2rem + env(safe-area-inset-bottom, 0));
  }

  .footer-links {
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  .mobile-dock {
    display: none;
  }
}

@media (max-width: 460px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

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