:root {
  --ink: #172026;
  --muted: #5e6972;
  --line: #d9e0e5;
  --paper: #f7f4ef;
  --white: #ffffff;
  --gold: #f6b84b;
  --teal: #0f766e;
  --coral: #d95f43;
  --navy: #22324a;
  --shadow: 0 22px 60px rgba(23, 32, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 224, 229, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.login-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: #37444d;
  font-size: 0.95rem;
  font-weight: 750;
}

.nav-links a,
.nav-link-button,
.login-link {
  transition:
    color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.nav-links a:hover,
.nav-link-button:hover,
.login-link:hover {
  transform: translateY(-1px);
}

.nav-link-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.login-actions {
  gap: 10px;
}

.coin-chip,
.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff8eb;
  border: 1px solid rgba(246, 184, 75, 0.7);
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.cart-pill {
  min-height: 22px;
  min-width: 22px;
  margin-left: 4px;
  padding: 0 7px;
  color: var(--white);
  background: var(--teal);
  border: 0;
  font-size: 0.75rem;
}

.redeem-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.login-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.login-link-dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  padding: clamp(46px, 8vw, 98px) clamp(18px, 5vw, 72px) 36px;
  background:
    linear-gradient(90deg, rgba(23, 32, 38, 0.86) 0%, rgba(23, 32, 38, 0.58) 46%, rgba(23, 32, 38, 0.18) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=85") center / cover;
  color: var(--white);
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-promise {
  display: grid;
  gap: 7px;
  max-width: 680px;
  margin-top: 30px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--gold);
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(8px);
}

.hero-promise strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.hero-promise span {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.login-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button,
.login-form button {
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.login-form button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-self: stretch;
  align-content: end;
}

.hero-panel div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.hero-panel strong {
  display: block;
  color: var(--gold);
  font-size: 2.15rem;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.category-band,
.roles-band,
.about-band,
.contact-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 330px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px 1fr;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 38, 0.08);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card:focus-visible,
.back-link:focus-visible,
.item-actions button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.category-card img {
  height: 190px;
  object-fit: cover;
}

.category-card div {
  padding: 18px;
}

.category-card p,
.role-card p,
.about-copy p,
.contact-band p,
.contact-card span,
.about-points span {
  color: var(--muted);
  line-height: 1.55;
}

.roles-band {
  background: #ecf5f2;
}

.start-band {
  background:
    linear-gradient(135deg, rgba(236, 245, 242, 0.96), rgba(255, 248, 235, 0.96)),
    url("https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.start-panel {
  max-width: 820px;
}

.role-card {
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15, 118, 110, 0.1);
}

.role-card-accent {
  background: #fff8eb;
}

.role-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--teal);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-card h3 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.start-profile-button {
  margin-top: 12px;
  width: fit-content;
  cursor: pointer;
}

.login-form {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #33404a;
  font-size: 0.9rem;
  font-weight: 850;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #cad4dc;
  border-radius: 7px;
  font: inherit;
}

.login-form button {
  width: fit-content;
  margin-top: 6px;
  cursor: pointer;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--white);
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-points div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.about-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.contact-band .eyebrow {
  color: var(--gold);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}

.contact-card a {
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.category-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(46px, 8vw, 98px) clamp(18px, 5vw, 72px) 42px;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.category-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.category-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  font-weight: 850;
}

.cart-summary {
  padding: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.cart-summary span,
.cart-summary strong {
  display: block;
}

.cart-summary > span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
}

.cart-summary strong {
  margin-top: 8px;
  color: var(--gold);
  font-size: 2.3rem;
  line-height: 1;
}

.items-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.item-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 38, 0.08);
}

.item-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.item-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 950;
}

.item-price {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: right;
}

.item-card h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.item-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.55;
}

.item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.item-actions button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.item-actions button:first-child {
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
}

.borrow-list,
.cart-list {
  display: grid;
  gap: 14px;
}

.borrow-option,
.cart-row,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.borrow-option h3,
.cart-row h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.borrow-option p,
.cart-row p,
.borrow-option span,
.cart-row span,
.empty-state span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  display: grid;
  justify-content: start;
}

.cart-page {
  min-height: calc(100svh - 154px);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.cart-page h1,
.request-page h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.request-page {
  min-height: calc(100svh - 154px);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.request-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 38, 0.08);
}

.request-card h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.request-card p {
  color: var(--muted);
}

.request-card label {
  display: grid;
  gap: 7px;
  color: #33404a;
  font-size: 0.9rem;
  font-weight: 850;
}

.request-card select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #cad4dc;
  border-radius: 7px;
  font: inherit;
}

.request-status {
  width: fit-content;
  padding: 7px 10px;
  color: #8a5a00;
  background: #fff8eb;
  border: 1px solid rgba(246, 184, 75, 0.7);
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 900;
}

.handover-code,
.request-next {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #ecf5f2;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
}

.handover-code span,
.request-next span {
  color: var(--muted);
}

.request-next {
  margin-top: 20px;
}

.toast {
  position: fixed;
  right: clamp(16px, 4vw, 38px);
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
  font-weight: 850;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  width: min(920px, calc(100vw - 28px));
  max-height: min(88vh, 860px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(23, 32, 38, 0.68);
  backdrop-filter: blur(8px);
}

.modal-panel {
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.icon-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #33404a;
  font-size: 0.9rem;
  font-weight: 850;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #cad4dc;
  border-radius: 7px;
  font: inherit;
}

.form-grid textarea {
  min-height: 86px;
  padding: 12px 13px;
  resize: vertical;
}

.wide-field {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.primary-form-button,
.secondary-form-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.primary-form-button {
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.secondary-form-button {
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--line);
}

.check-field {
  min-height: 46px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  align-self: end;
  padding: 0 10px;
  background: #fbfcfc;
  border: 1px solid #cad4dc;
  border-radius: 7px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
}

.otp-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ecf5f2;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
}

.otp-card strong,
.otp-card span,
.otp-card p {
  display: block;
}

.otp-card span,
.otp-card p {
  color: var(--muted);
  line-height: 1.45;
}

.otp-card p {
  margin: 0;
  font-weight: 850;
}

.otp-actions {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.otp-actions input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #cad4dc;
  border-radius: 7px;
  font: inherit;
}

.otp-actions button:disabled,
.otp-actions input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.otp-pending {
  color: #8a5a00 !important;
}

.otp-verified {
  color: var(--teal) !important;
}

.otp-error {
  color: #b42318 !important;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: #384650;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-weight: 800;
}
body[data-requires-auth]:not(.session-ready) { visibility: hidden; }

.secure-chip { padding: 9px 12px; color: var(--teal); background: #ecf5f2; border: 1px solid rgba(15,118,110,.2); border-radius: 7px; font-weight: 900; }
.auth-body { min-height: 100vh; background: #edf3f1; }
.auth-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(320px,.8fr) minmax(480px,1.2fr); }
.auth-intro { padding: clamp(48px,7vw,96px) clamp(24px,6vw,80px); color: var(--white); background: linear-gradient(145deg,rgba(23,32,38,.94),rgba(15,118,110,.88)),url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1400&q=80") center/cover; }
.auth-intro h1,.admin-shell h1 { margin: 18px 0; font-size: clamp(3rem,7vw,6.4rem); line-height: .92; }
.auth-intro>p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.78); font-size: 1.1rem; line-height: 1.6; }
.auth-benefits { display: grid; gap: 16px; margin: 42px 0 0; padding: 0; list-style: none; }
.auth-benefits li { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.auth-benefits span { color: rgba(255,255,255,.7); }
.auth-card { padding: clamp(28px,5vw,72px); background: var(--white); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 30px; padding: 5px; background: #edf3f1; border-radius: 9px; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: inherit; font-weight: 900; }
.auth-tabs button.is-active { color: var(--white); background: var(--navy); }
.auth-form { display: grid; gap: 16px; }
.auth-form>label,.google-profile-form label { display: grid; gap: 7px; color: #33404a; font-size: .9rem; font-weight: 850; }
.auth-form input,.auth-form textarea,.google-profile-form input { width: 100%; min-height: 48px; padding: 0 13px; color: var(--ink); background: #fbfcfc; border: 1px solid #cad4dc; border-radius: 7px; font: inherit; }
.auth-form textarea { min-height: 86px; padding: 12px 13px; resize: vertical; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.auth-divider::before,.auth-divider::after { content:""; height: 1px; flex: 1; background: var(--line); }
.google-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; color: #27313a; background: white; border: 1px solid #bcc7cf; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 900; }
.google-mark { color: #4285f4; font-size: 1.2rem; font-weight: 950; }
.form-message { min-height: 22px; margin: 0; font-weight: 800; }.form-message.error { color: #b42318; }
.link-button { width: fit-content; padding: 0; color: var(--teal); background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 850; }
.consent-field { min-height: auto; display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px !important; }
.consent-field input { width: 18px; min-height: 18px; }
.auth-session { max-width: 520px; padding: 34px; background: #fff8eb; border: 1px solid rgba(246,184,75,.7); border-radius: 10px; }
.account-avatar { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 28px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); font-size: 1.7rem; font-weight: 950; }
.auth-session-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.google-dialog { width: min(520px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: 9px; box-shadow: var(--shadow); }.google-dialog::backdrop { background: rgba(23,32,38,.7); backdrop-filter: blur(7px); }
.auth-dialog,.profile-dialog { width: min(680px,calc(100vw - 28px)); max-height: 92vh; padding: 0; overflow: hidden; border: 0; border-radius: 12px; box-shadow: var(--shadow); }
.profile-dialog { width: min(920px,calc(100vw - 28px)); }
.auth-dialog::backdrop,.profile-dialog::backdrop { background: rgba(23,32,38,.76); backdrop-filter: blur(9px); }
.auth-modal-panel,.profile-form { max-height: 92vh; overflow: auto; }
.profile-form small { color: var(--muted); font-weight: 650; line-height: 1.45; }
.account-button { min-height: 40px; padding: 0 14px; color: var(--ink); background: var(--gold); border: 1px solid var(--ink); border-radius: 7px; cursor: pointer; font: inherit; font-weight: 900; }
.member-welcome { display: grid; grid-template-columns: 1fr minmax(320px,.72fr); gap: clamp(24px,5vw,70px); align-items: center; padding: clamp(48px,7vw,96px) clamp(18px,5vw,72px); background: linear-gradient(135deg,#fff8eb,#edf3f1); }
.member-welcome h1 { max-width: 820px; margin: 8px 0 14px; font-size: clamp(3rem,7vw,6.2rem); line-height: .92; }
.member-welcome>div>p:last-child { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.profile-status-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 8px 8px 0 rgba(23,32,38,.08); }
.profile-status-card p { margin: 4px 0 16px; color: var(--muted); line-height: 1.5; }
.profile-status-card button { grid-column: 2; width: fit-content; }
.status-dot { width: 13px; height: 13px; margin-top: 5px; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; }
.status-dot.is-complete { background: var(--teal); }
.fix-home-band { padding: clamp(54px,8vw,108px) clamp(18px,5vw,72px); color: var(--white); background: var(--navy); }
.fix-home-band>.section-heading { max-width: 780px; }
.fix-home-band>.section-heading>p:last-child { color: rgba(255,255,255,.72); line-height: 1.65; }
.fix-home-form { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 22px; margin-top: 34px; }
.camera-panel,.design-controls { padding: clamp(18px,3vw,28px); color: var(--ink); background: var(--white); border-radius: 12px; }
.camera-panel video,.photo-stage { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #0d1419; border-radius: 9px; }
.camera-panel video,.photo-stage img { width: 100%; height: 100%; object-fit: contain; }
.photo-stage { position: relative; cursor: crosshair; }
.focus-marker { position: absolute; width: 28px; height: 28px; background: rgba(246,184,75,.45); border: 3px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(23,32,38,.35); transform: translate(-50%,-50%); pointer-events: none; }
.camera-placeholder { min-height: 340px; display: grid; place-content: center; gap: 8px; padding: 28px; color: var(--muted); background: #edf3f1; border: 2px dashed #afbec6; border-radius: 9px; text-align: center; }
.camera-placeholder strong { color: var(--ink); font-size: 1.4rem; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.upload-button { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.design-controls { display: grid; align-content: start; gap: 16px; }
.design-controls label { display: grid; gap: 7px; font-weight: 850; }
.design-controls input,.design-controls select { width: 100%; min-height: 48px; padding: 0 13px; color: var(--ink); background: #fbfcfc; border: 1px solid #cad4dc; border-radius: 7px; font: inherit; }
.step-label { margin: 0; padding: 12px; color: #725100; background: #fff8eb; border-radius: 7px; font-weight: 850; }
.design-results { margin-top: 64px; }
.design-suggestion-grid { display: grid; gap: 24px; }
.design-suggestion-card { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(320px,1.2fr); overflow: hidden; color: var(--ink); background: var(--white); border-radius: 12px; }
.design-suggestion-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.design-suggestion-card>div { padding: clamp(22px,4vw,38px); }
.design-suggestion-card h3 { margin: 8px 0 12px; font-size: clamp(1.7rem,4vw,2.8rem); }
.design-suggestion-card p,.design-suggestion-card li { color: var(--muted); line-height: 1.55; }
.design-suggestion-card ul { padding-left: 20px; }
.suggestion-rank { color: var(--teal); font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.google-profile-form { display: grid; gap: 16px; }.prototype-note { padding: 12px; color: #725100; background: #fff8eb; border-radius: 7px; line-height: 1.5; }
.admin-body { min-height: 100vh; color: var(--white); background: var(--navy); }
.admin-shell { min-height: 100vh; display: grid; place-items: center; padding: clamp(24px,6vw,72px); }
.admin-login-card { width: min(520px,100%); padding: clamp(26px,5vw,48px); color: var(--ink); background: white; border-radius: 10px; box-shadow: 12px 12px 0 var(--gold); }.admin-login-card .brand { margin-bottom: 46px; }.admin-login-card h1 { font-size: clamp(2.7rem,7vw,5rem); }
.admin-dashboard { width: min(1200px,100%); }.admin-dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.admin-dashboard-head h1 { margin-top: 0; }
.admin-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }.admin-metrics article { display: grid; gap: 10px; padding: 22px; color: var(--ink); background: white; border-radius: 9px; }.admin-metrics strong { color: var(--teal); font-size: 2.8rem; }
.admin-table-card { margin-top: 20px; padding: 24px; color: var(--ink); background: white; border-radius: 9px; }.admin-customer-list { display: grid; }.admin-customer-list article { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }.admin-customer-list article div { display: grid; gap: 3px; }.admin-customer-list article span { color: var(--muted); }

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-links,
  .login-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .category-hero,
  .about-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-shell { grid-template-columns: 1fr; }
  .member-welcome { grid-template-columns: 1fr; }
  .fix-home-form { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; }
  .admin-metrics { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .login-actions,
  .borrow-option,
  .cart-row,
  .cart-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .login-link,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero {
    min-height: 760px;
    align-items: end;
    background-position: center;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5.8rem);
  }

  .hero-panel,
  .category-grid,
  .item-grid,
  .request-grid,
  .form-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .otp-actions {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 300px;
    grid-template-rows: 168px 1fr;
  }

  .category-card img {
    height: 168px;
  }

  .login-form button {
    width: 100%;
  }
  .auth-card,.auth-intro { padding: 34px 20px; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-dashboard-head { align-items: stretch; flex-direction: column; }
  .design-suggestion-card { grid-template-columns: 1fr; }
}
