.signin-page {
  padding: calc(var(--nav-h, 64px) + 1.75rem) clamp(1rem, 3vw, 2rem) 3rem;
  min-height: calc(100dvh - var(--nav-h, 64px));
  display: flex;
  justify-content: center;
  background: transparent;
}

.signin-page__inner {
  width: min(520px, 100%);
}

.signin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.signin-form .form-optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.75;
}

.signin-avatar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.signin-avatar__preview {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.14));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  background-size: cover;
  background-position: center;
}

.signin-avatar__preview.has-image {
  border-color: rgba(201, 188, 86, 0.55);
}

.signin-avatar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.signin-avatar__controls .signin-hint {
  width: 100%;
  margin: 0;
}

@media (max-width: 520px) {
  .signin-form-row {
    grid-template-columns: 1fr;
  }
}

.signin-page h1 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.55rem;
  color: var(--white);
}

.signin-page__lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

.signin-google {
  margin: 0 0 1.1rem;
}

.signin-google__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.signin-google__btn:hover {
  border-color: rgba(201, 188, 86, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.signin-google__icon {
  flex-shrink: 0;
}

.signin-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signin-divider::before,
.signin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .signin-google__btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #1c1812;
}

[data-theme="light"] .signin-divider::before,
[data-theme="light"] .signin-divider::after {
  background: rgba(0, 0, 0, 0.1);
}

.signin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.signin-tabs__btn.is-active {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}

.signin-form {
  display: none;
  flex-direction: column;
}

.signin-form.is-active {
  display: flex;
}

.signin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}

.signin-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: -0.35rem 0 0.75rem;
}

.signin-error {
  font-size: 0.82rem;
  color: #e07070;
  min-height: 1.15em;
  margin: 0 0 0.65rem;
}

.signin-ok {
  font-size: 0.82rem;
  color: #7dca8f;
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.signin-dev-link {
  color: var(--accent);
}

/* Auth modal + account page */

.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-right: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white, #f0f0f2);
  font-family: 'Clash Display', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.nav-account:hover,
.nav-account.is-user {
  border-color: rgba(201, 188, 86, 0.45);
  color: var(--accent, #c9bc56);
}

.nav-account__icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-account__label {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Account (profile hub) —— */
.account-page {
  padding: calc(var(--nav-h, 64px) + 1.1rem) clamp(1rem, 3vw, 2rem) 3rem;
  max-width: min(720px, 100%);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: clip;
}

.account-shell {
  max-width: 100%;
  min-width: 0;
}

.account-shell--guest {
  max-width: 420px;
  margin: 0 auto;
}

.account-shell--guest .account-page__lead {
  margin-bottom: 1.25rem;
}

.account-page h1,
.account-welcome {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.25rem;
  color: var(--white);
}

.account-page .section-tag {
  display: none !important;
}

.account-page__lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--accent-on);
  background: linear-gradient(120deg, var(--accent), #b8a84a);
  border: 1px solid rgba(201, 188, 86, 0.55);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.account-admin-banner:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.account-admin-banner span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.account-admin-banner strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.account-admin-btn {
  background: linear-gradient(120deg, #c9bc56, #a8983d) !important;
  color: var(--accent-on) !important;
  border-color: transparent !important;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-head__photo-wrap {
  position: relative;
  flex: 0 0 auto;
}

.account-photo {
  appearance: none;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 3px solid rgba(201, 188, 86, 0.55);
  background:
    linear-gradient(145deg, rgba(201, 188, 86, 0.35), rgba(255, 255, 255, 0.06));
  background-size: cover;
  background-position: center;
  color: var(--white);
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 0 0 4px rgba(201, 188, 86, 0.12);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.account-photo:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.account-photo.has-image {
  color: transparent;
  text-shadow: none;
}

.account-photo__badge {
  appearance: none;
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(20, 20, 24, 0.9);
  background: var(--accent);
  color: var(--accent-on);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.account-photo__badge .ti {
  font-size: 1rem;
}

.account-head__meta {
  min-width: 0;
  flex: 1;
}

.account-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.account-section-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--white);
}

body.account-drawer-open {
  overflow: hidden;
}

.account-drawer {
  position: fixed;
  inset: 0;
  z-index: 100200 !important;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
}

.account-drawer[hidden] {
  display: none !important;
}

.account-drawer.is-open {
  display: flex !important;
  pointer-events: auto;
}

.account-drawer__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.account-drawer.is-open .account-drawer__backdrop {
  opacity: 1;
}

.account-drawer__sheet {
  position: relative;
  z-index: 2;
  width: min(22rem, 90vw);
  max-width: 100%;
  height: 100%;
  background: #fff;
  color: #1c1c24;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
  transform: translate3d(105%, 0, 0);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.account-drawer.is-open .account-drawer__sheet {
  transform: translate3d(0, 0, 0) !important;
}

.account-drawer__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1rem 1.15rem;
  background: linear-gradient(135deg, #c9bc56 0%, #9a8c35 100%);
  color: #1c1c24;
  flex: 0 0 auto;
}

.account-drawer__photo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.account-drawer__photo.has-image {
  color: transparent;
}

.account-drawer__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.account-drawer__meta strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-drawer__meta span {
  font-size: 0.78rem;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-drawer__close {
  appearance: none;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 28, 36, 0.12);
  color: #1c1c24;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.account-drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.account-drawer__label {
  margin: 0.85rem 1.1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8790;
}

.account-drawer__item {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border: 0;
  border-bottom: 1px solid rgba(28, 28, 36, 0.06);
  background: #fff;
  color: #1c1c24;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.account-drawer__item > .ti:first-child {
  font-size: 1.25rem;
  color: #6b6670;
  width: 1.4rem;
  text-align: center;
  flex: 0 0 auto;
}

.account-drawer__item > span {
  flex: 1;
  min-width: 0;
}

.account-drawer__item > .ti:last-child {
  font-size: 1.05rem;
  color: #b0abb4;
  flex: 0 0 auto;
}

.account-drawer__item:hover,
.account-drawer__item:active {
  background: #f6f5f7;
}

.account-drawer__item.is-active {
  background: rgba(201, 188, 86, 0.14);
}

.account-drawer__item.is-active > .ti:first-child,
.account-drawer__item.is-active > span {
  color: #706520;
}

.account-drawer__item--admin > .ti:first-child {
  color: #9a8c35;
}

.account-drawer__item--danger {
  margin-top: 0.35rem;
  color: #b42318;
  border-bottom: 0;
}

.account-drawer__item--danger > .ti:first-child {
  color: #b42318;
}

.account-main {
  min-width: 0;
}

.account-panel {
  animation: accountPanelIn 0.25s ease both;
}

@keyframes accountPanelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.account-stat {
  appearance: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0.9rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.account-stat:hover {
  border-color: rgba(201, 188, 86, 0.4);
  background: rgba(201, 188, 86, 0.08);
}

.account-stat__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.account-stat strong {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.account-card {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.account-card h2,
.account-card h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.02rem;
  margin: 0 0 0.65rem;
  color: var(--white);
}

.account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.account-card__head h3 {
  margin: 0;
}

.account-text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.account-text-btn:hover {
  color: var(--accent-hover);
}

.account-recent {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-recent__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.86rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.account-recent__row:hover {
  border-color: rgba(201, 188, 86, 0.4);
  background: rgba(201, 188, 86, 0.08);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.account-actions .btn-primary,
.account-actions .btn-ghost,
.account-head__actions .btn-primary,
.account-head__actions .btn-ghost,
.signin-actions .btn-primary,
.signin-actions .btn-ghost,
.review-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.account-actions .btn-ico,
.account-head__actions .btn-ico,
.signin-actions .btn-ico,
.review-form .btn-ico {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 0.95rem;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.order-item__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.order-item__status {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(201, 188, 86, 0.35);
  color: var(--accent);
}

.order-item__status.is-paid {
  color: #7dcea0;
  border-color: rgba(125, 206, 160, 0.4);
}

.order-item__status.is-cancelled {
  color: #e08b7a;
  border-color: rgba(224, 139, 122, 0.4);
}

.order-item__status.is-enquiry {
  color: #8eb4e0;
  border-color: rgba(142, 180, 224, 0.4);
}

.order-item__status.is-pending {
  color: var(--accent);
  border-color: rgba(201, 188, 86, 0.35);
}

.order-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.order-item__tag {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--white);
}

.order-item__total {
  margin-top: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
}

.order-item__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.order-item__foot .order-item__total {
  margin-top: 0;
}

.order-item__receipt {
  font-size: 0.78rem !important;
  padding: 0.35rem 0.65rem !important;
}

.account-empty {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.account-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.account-inline-msg {
  min-height: 1.1em;
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.account-form input {
  font: inherit;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.6rem 0.75rem;
}

.account-form input:focus {
  outline: none;
  border-color: rgba(201, 188, 86, 0.55);
}

.account-form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.account-form .form-optional {
  font-weight: 400;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .account-page {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }

  .account-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .account-photo {
    width: 6.25rem;
    height: 6.25rem;
    font-size: 1.5rem;
  }

  .account-head__actions {
    justify-content: center;
  }

  .account-section-title {
    font-size: 1.05rem;
  }

  .account-drawer__sheet {
    width: min(100%, 22rem);
    border-radius: 1rem 0 0 1rem;
  }

  .account-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-recent__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-recent__row span:last-child {
    display: none;
  }

  .account-card__head {
    flex-wrap: wrap;
  }

  .account-actions {
    max-width: 100%;
  }

  .account-actions .btn-primary,
  .account-actions .btn-ghost,
  .account-head__actions .btn-primary,
  .account-head__actions .btn-ghost {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }
}

@media (min-width: 721px) {
  .account-page {
    max-width: min(880px, 100%);
  }
}

html[data-theme='light'] .account-admin-banner {
  color: #1c1c24;
}

html[data-theme='light'] .account-photo {
  border-color: rgba(112, 101, 32, 0.45);
  box-shadow: 0 0 0 4px rgba(112, 101, 32, 0.1);
}

html[data-theme='light'] .account-photo__badge {
  border-color: #fff;
}

html[data-theme='light'] .account-stat,
html[data-theme='light'] .account-card,
html[data-theme='light'] .order-item,
html[data-theme='light'] .account-recent__row {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(28, 28, 36, 0.1);
}

html[data-theme='light'] .account-head {
  border-bottom-color: rgba(28, 28, 36, 0.1);
}

html[data-theme='light'] .account-form input {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(28, 28, 36, 0.14);
}

.reviews-live {
  margin-top: var(--block-gap, 1.5rem);
  padding: 0 clamp(1rem, 3vw, 2rem) var(--section-y, 2.5rem);
  max-width: var(--max-w, 1100px);
  margin-left: auto;
  margin-right: auto;
}

.reviews-live h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1rem;
}

.reviews-live__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.review-card {
  background: rgba(230, 223, 208, 0.88);
  color: #1c1812;
  border: 1px solid rgba(70, 55, 35, 0.22);
  padding: 1rem;
}

.review-card__stars {
  color: #c9bc56;
  letter-spacing: 0.08em;
  margin: 0.2rem 0 0.45rem;
  font-size: 0.95rem;
}

.review-card__body {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.review-card__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1c1812;
}

.review-form {
  background: rgba(230, 223, 208, 0.88);
  color: #1c1812;
  border: 1px solid rgba(70, 55, 35, 0.22);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 520px;
}

.review-form h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 1rem;
  margin: 0;
}

.review-form__gate {
  font-size: 0.85rem;
  color: #3a342c;
}

.review-form__gate button {
  border: none;
  background: none;
  color: #7a6f1f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.checkout-save-btn {
  width: 100%;
}

.legal-page {
  padding: calc(var(--nav-h, 64px) + 1.5rem) clamp(1rem, 3vw, 2rem) 3rem;
  max-width: 720px;
  margin: 0 auto;
  background: transparent;
}

.legal-page h1 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
}

.legal-page__meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.legal-page h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.55rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

.legal-page a {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-top: 0.65rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 11000;
  max-width: 520px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  background: rgba(24, 24, 28, 0.94);
  border: 1px solid rgba(201, 188, 86, 0.28);
  color: var(--white, #f0f0f2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted, #b8b8be);
  flex: 1 1 220px;
}

.cookie-banner a {
  color: var(--accent);
}

.admin-page {
  padding: calc(var(--nav-h, 64px) + 1.5rem) clamp(1rem, 3vw, 2rem) 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-page h1 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.35rem 0 0.5rem;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.admin-toast {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 0.5rem);
  z-index: 20;
  max-width: 28rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(47, 107, 58, 0.35);
  background: rgba(220, 245, 226, 0.95);
  color: #1c1812;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.admin-toast.is-error {
  border-color: rgba(138, 59, 46, 0.4);
  background: rgba(255, 230, 224, 0.96);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.85rem;
}

.admin-tab {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, #c4c4cc);
  cursor: pointer;
}

.admin-tab.is-active {
  color: #1c1812;
  background: rgba(230, 223, 208, 0.95);
  border-color: rgba(201, 188, 86, 0.55);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 200px);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.admin-toolbar input,
.admin-toolbar select {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white, #f4f4f5);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-stat {
  background: rgba(230, 223, 208, 0.9);
  color: #1c1812;
  border: 1px solid rgba(70, 55, 35, 0.22);
  padding: 0.95rem 1rem;
}

.admin-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c5348;
}

.admin-stat__value {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0.2rem 0;
}

.admin-stat__sub {
  font-size: 0.78rem;
  color: #3a342c;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #3a342c;
}

.admin-status select,
.admin-review-edit input,
.admin-review-edit select,
.admin-review-edit textarea {
  border: 1px solid rgba(70, 55, 35, 0.22);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.45rem;
  font: inherit;
  color: #1c1812;
}

.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.65rem;
}

.admin-item__feedback {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #2f6b3a;
}

.admin-item__feedback.is-error {
  color: #8a3b2e;
}

.admin-message {
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-review-edit {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.admin-review-edit label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3a342c;
}

.admin-review-body {
  grid-column: 1 / -1;
}

.admin-danger {
  color: #8a3b2e !important;
  border-color: rgba(138, 59, 46, 0.35) !important;
}

@media (max-width: 800px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-account__label-full {
    display: none;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  /* Keep Sign in + Cart at top; do not take space in the bottom nav */
  .nav-actions {
    position: static;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow: visible;
    pointer-events: none;
  }

  .nav-actions > * {
    pointer-events: auto;
  }

  .nav-account {
    position: fixed !important;
    top: 0.75rem;
    right: 3.85rem;
    z-index: 99990;
    margin: 0;
    min-width: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    background: #18181c;
  }

  .nav-account__label {
    display: none;
  }

  .nav-account__icon {
    width: 1.45rem;
    height: 1.45rem;
  }

  [data-theme="light"] .nav-account {
    background: #f0f2f5;
  }
}
