:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-2: #f4ece1;
  --text: #1f2a44;
  --muted: #6b7590;
  --navy: #1f2a44;
  --navy-2: #2c3e66;
  --navy-tint: #e8ecf5;
  --border: #eadfd2;
  --accent: #c8553d;
  --accent-dark: #a8432f;
  --sage: #8a9a5b;
  --mustard: #e9a23b;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(31, 42, 68, .07);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-fun: 'Pacifico', 'Fraunces', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-body); }
a { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.35rem; }
.muted { color: var(--muted); font-weight: 400; font-size: .95em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; width: 100%; padding-top: 24px; padding-bottom: 56px; min-height: 60vh; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fffaf3 0%, var(--bg) 60%, #f3e7d8 100%);
  transition: opacity .6s ease, visibility .6s;
  cursor: pointer;
}
.splash.done, .no-splash .splash:not(.loading) { opacity: 0; visibility: hidden; pointer-events: none; }
/* Loading screen between pages: fades in after a short delay, bar runs until the page arrives. */
.splash.loading { opacity: 1; visibility: visible; animation: hm-fade-in .3s ease .2s both; }
.splash.loading .splash-bar div { width: 40%; animation: hm-indeterminate 1.1s ease-in-out infinite; }
@keyframes hm-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.splash-active body { overflow: hidden; }
.splash-inner { text-align: center; padding: 16px; }
.splash .crochet-logo { width: min(300px, 75vw); height: auto; margin: 0 auto; }
.splash-brand { font-family: var(--font-head); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 700; margin-top: 6px; }
.splash-brand span { color: var(--accent); }
.splash-tagline { font: 400 1.5rem/1.4 var(--font-fun); color: var(--accent); margin-top: 2px; }
.splash-bar { width: 220px; max-width: 70vw; height: 6px; background: var(--surface-2); border-radius: 99px; margin: 22px auto 0; overflow: hidden; }
.splash-bar div {
  height: 100%; width: 0; border-radius: 99px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 8px, var(--mustard) 8px 16px);
  animation: hm-load 2.6s cubic-bezier(.4, .1, .3, 1) forwards;
}
@keyframes hm-load { to { width: 100%; } }

/* ---------- Crochet logo animation ---------- */
/* One stitch = 1.6s: insert the hook, catch the yarn, pull through. The SVG's yarn path uses the same rhythm. */
.crochet-logo .cl-scene { transform-box: view-box; transform-origin: 100px 130px; animation: hm-breathe 3.2s ease-in-out infinite; }
.crochet-logo .cl-hand-right { transform-box: view-box; transform-origin: 160px 140px; animation: hm-hook 1.6s ease-in-out infinite; }
.crochet-logo .cl-hand-left { transform-box: view-box; transform-origin: 48px 140px; animation: hm-hold 1.6s ease-in-out infinite; }
.crochet-logo .cl-index { transform-box: fill-box; transform-origin: 50% 100%; animation: hm-index 1.6s ease-in-out infinite; }
.crochet-logo .cl-ball { transform-box: view-box; transform-origin: 24px 149px; animation: hm-hop 1.6s ease-in-out infinite; }
.crochet-logo .cl-ball-spin { transform-box: view-box; transform-origin: 24px 132px; animation: hm-roll 6.4s linear infinite; }
.crochet-logo .cl-loop { transform-box: view-box; transform-origin: 101px 83px; animation: hm-loop 1.6s ease-in-out infinite; }
.crochet-logo .cl-heart { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: hm-heart 4.8s ease-out infinite; }
.crochet-logo .cl-heart.h2 { animation-delay: 2.4s; }
.crochet-logo .cl-row path { opacity: 0; animation: 11.2s linear infinite; }

@keyframes hm-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes hm-hook {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-3px, 2px) rotate(-6deg); }
  40% { transform: translate(-4px, 4px) rotate(-12deg); }
  55% { transform: translate(-1px, 1px) rotate(-4deg); }
  75% { transform: translate(3px, -2px) rotate(5deg); }
}
@keyframes hm-hold { 0%, 100% { transform: rotate(0deg) translate(0, 0); } 40% { transform: rotate(2.5deg) translate(1px, 1px); } 75% { transform: rotate(-1.5deg) translate(0, -1px); } }
@keyframes hm-index { 0%, 30%, 100% { transform: rotate(0deg); } 60% { transform: rotate(-12deg); } }
@keyframes hm-hop { 0%, 60%, 100% { transform: translateY(0) scaleY(1); } 72% { transform: translateY(-3px) scaleY(1.03); } 84% { transform: translateY(0) scaleY(.96); } }
@keyframes hm-roll { to { transform: rotate(-360deg); } }
@keyframes hm-loop { 0%, 30% { transform: scale(0); opacity: 0; } 50%, 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes hm-heart { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 15% { opacity: 1; transform: translateY(0) scale(1); } 60% { opacity: .9; transform: translateY(-14px) scale(1); } 80%, 100% { opacity: 0; transform: translateY(-22px) scale(.8); } }
/* Stitches of the top row appear one per pull, then the row restarts. */
.crochet-logo .cl-row path:nth-child(1) { animation-name: hm-st0; }
@keyframes hm-st0 { 0%, 13.1% { opacity: 0; } 13.6%, 97% { opacity: 1; } 100% { opacity: 0; } }
.crochet-logo .cl-row path:nth-child(2) { animation-name: hm-st1; }
@keyframes hm-st1 { 0%, 26.6% { opacity: 0; } 27.1%, 97% { opacity: 1; } 100% { opacity: 0; } }
.crochet-logo .cl-row path:nth-child(3) { animation-name: hm-st2; }
@keyframes hm-st2 { 0%, 40.2% { opacity: 0; } 40.7%, 97% { opacity: 1; } 100% { opacity: 0; } }
.crochet-logo .cl-row path:nth-child(4) { animation-name: hm-st3; }
@keyframes hm-st3 { 0%, 53.8% { opacity: 0; } 54.3%, 97% { opacity: 1; } 100% { opacity: 0; } }
.crochet-logo .cl-row path:nth-child(5) { animation-name: hm-st4; }
@keyframes hm-st4 { 0%, 67.4% { opacity: 0; } 67.9%, 97% { opacity: 1; } 100% { opacity: 0; } }
.crochet-logo .cl-row path:nth-child(6) { animation-name: hm-st5; }
@keyframes hm-st5 { 0%, 80.9% { opacity: 0; } 81.4%, 97% { opacity: 1; } 100% { opacity: 0; } }
.crochet-logo .cl-row path:nth-child(7) { animation-name: hm-st6; }
@keyframes hm-st6 { 0%, 94.5% { opacity: 0; } 95.0%, 97% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .crochet-logo * { animation: none !important; }
  .crochet-logo .cl-row path { opacity: 1; }
  .splash-bar div { animation-duration: .5s; }
}

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.brand em, .site-footer em { font-style: normal; color: var(--accent); }
.brand-text { display: grid; justify-items: start; line-height: 1.05; }
.wordmark { display: block; overflow: visible; }
.brand-wordmark { height: 46px; width: auto; margin: -4px 0 -6px; }
.splash-wordmark { height: 84px; width: auto; margin: 6px auto 0; }
.footer-brand { display: inline-block; background: var(--bg); padding: 10px 18px 8px; border-radius: 14px; border: 2px dashed #d9c9b6; outline: 5px solid var(--bg); }
.footer-wordmark { height: 52px; width: auto; }
.brand-sub { font: 400 .9rem/1.3 var(--font-fun); color: var(--accent); margin-left: 6px; }
.footer-sub { font: 400 1.05rem/1.4 var(--font-fun); color: #f0a38f; margin-top: 2px; }
.header-search { flex: 1; min-width: 200px; }
.header-search input { width: 100%; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--accent); }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }

/* ---------- Forms & buttons ---------- */
input, select, textarea {
  font: inherit; color: inherit; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 85, 61, .15); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 99px; border: 1.5px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: .92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--navy-tint); border-color: #cfd6e6; }
.btn-danger { background: transparent; border-color: #e3b5ab; color: #a8432f; }
.btn-danger:hover { background: #fbeae6; }

.form { display: grid; gap: 16px; margin-bottom: 32px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form-page { max-width: 480px; margin: 0 auto; background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-page.wide { max-width: 760px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px; background: var(--bg); font-weight: 400 !important; }
.existing-images { border: 0; padding: 0; margin: 0; }
.existing-images legend { font-weight: 600; margin-bottom: 8px; }
.image-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.image-pick { width: 110px; display: grid !important; gap: 4px; font-weight: 400 !important; font-size: .9rem; }
.image-pick img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; }
.image-pick span { display: flex; gap: 4px; align-items: center; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #eef3e2; color: #4f5c2a; }
.alert-error { background: #fbeae6; color: #8d3524; }
.alert-info { background: #fdf3df; color: #7a5410; }

/* ---------- Home ---------- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border-radius: 24px; padding: 40px; margin-bottom: 32px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero .hero-title { font: 400 clamp(2.2rem, 5.2vw, 3.6rem)/1.35 var(--font-fun); color: var(--navy); margin-bottom: .35em; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-art .crochet-logo { width: 100%; max-width: 340px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.chip { white-space: nowrap; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--navy-2); }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-head h2 { margin: 0; }
.sort-form select { width: auto; padding: 7px 10px; }
.sort-form label { display: flex; gap: 8px; align-items: center; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card-link { display: block; text-decoration: none; color: var(--text); }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 42, 68, .14); }
.card-img { aspect-ratio: 1; background: var(--surface-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; }
.card-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--accent-dark); margin-top: 2px; }
.card-meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.sold-tag { position: absolute; top: 10px; left: 10px; background: var(--text); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.sold-tag.big { font-size: 1rem; padding: 6px 14px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; }
.pagination a.active { background: var(--navy); color: #fff; }
.pagination .gap { min-width: 24px; display: grid; place-items: center; color: var(--muted); }
.empty { text-align: center; padding: 56px 16px; background: var(--surface); border-radius: var(--radius); }
.empty p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Product ---------- */
.crumbs { margin-bottom: 16px; color: var(--muted); font-size: .95rem; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.gallery-main { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent-dark); }
.description { white-space: pre-line; margin: 20px 0; }
.seller-card { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 16px; border-radius: var(--radius); margin-bottom: 20px; }
.seller-card a { color: var(--text); }
.phone { margin-top: 4px; }
.avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--navy-2); color: #fff; display: grid; place-items: center; font: 700 1.3rem var(--font-head); }
.avatar.big { width: 112px; height: 112px; font-size: 2.6rem; }
.avatar.tiny { width: 26px; height: 26px; font-size: .8rem; }
img.avatar { object-fit: cover; background: var(--surface-2); }
.nav-profile { display: inline-flex; align-items: center; gap: 6px; }
.seller-info { min-width: 0; }
.seller-tagline { font-size: .95rem; }
.seller-links { margin-top: 6px; font-size: .92rem; }
.owner-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.contact-form { display: grid; gap: 10px; background: var(--surface); padding: 16px; border-radius: var(--radius); }
.contact-form label { font-weight: 700; }
.contact-cta { background: var(--surface); padding: 16px; border-radius: var(--radius); }
.contact-cta p { margin-top: 0; }
.disclaimer { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--mustard); padding-left: 12px; margin-top: 20px; }
.more { margin-top: 48px; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 28px; align-items: center; background: var(--surface); padding: 28px; border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.profile-head h1 { margin-bottom: 2px; }
.profile-main { min-width: 0; }
.tagline { margin: 0 0 4px; font-size: 1.1rem; }
.profile-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); }
.profile-stats strong { color: var(--text); font-size: 1.1rem; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tabs a { padding: 10px 18px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--navy); border-bottom-color: var(--navy); }
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.about-text, .about-box { background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-side { display: grid; gap: 16px; }
.about-box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.bio { white-space: pre-line; overflow-wrap: anywhere; font-size: 1.05rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--navy-tint); color: var(--navy-2); padding: 4px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.small { font-size: .88rem; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.avatar-edit { display: flex; gap: 20px; align-items: center; }
.avatar-fields { display: grid; gap: 6px; flex: 1; }
.form-section { margin: 12px 0 0; font-size: 1.15rem; }

/* ---------- Messages ---------- */
.threads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.thread { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.thread.unread { border-left: 4px solid var(--accent); }
.thread-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.thread-img img { width: 100%; height: 100%; object-fit: cover; }
.thread-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; }
.thread-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.conv-product { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); background: var(--surface); padding: 10px 14px 10px 10px; border-radius: var(--radius); }
.conv-product img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.messages { display: flex; flex-direction: column; gap: 10px; background: var(--surface); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; }
.msg { max-width: 75%; align-self: flex-start; background: var(--surface-2); padding: 10px 14px; border-radius: 16px 16px 16px 4px; }
.msg.mine { align-self: flex-end; background: #f6ddd5; border-radius: 16px 16px 4px 16px; }
.msg-body { white-space: pre-line; overflow-wrap: anywhere; }
.msg-time { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.reply-form { display: flex; gap: 10px; align-items: flex-end; }

/* ---------- Static text ---------- */
.prose { max-width: 760px; margin: 0 auto; background: var(--surface); padding: 32px; border-radius: var(--radius); }
.prose h2 { margin-top: 1.4em; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d5dbea; padding: 40px 0 20px; }
.site-footer strong { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.site-footer p { max-width: 460px; color: #b4bdd3; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-row > div:first-child { flex: 1 1 320px; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { color: #d5dbea; }
.footer-copy { margin-top: 24px; font-size: .85rem; color: #8d97b0; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.footer-copy a { color: #b4bdd3; }
.anpc { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-art { order: -1; }
  .hero-art .crochet-logo { max-width: 220px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-row { gap: 10px 16px; }
  .brand-wordmark { height: 38px; }
  .splash-wordmark { height: 66px; }
  .nav { gap: 10px; font-size: .9rem; }
  .nav .btn-sm { padding: 6px 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-page, .prose { padding: 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; align-items: flex-start; padding: 20px; }
  .about { grid-template-columns: 1fr; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
  .nav-profile .avatar { display: none; }
  .msg { max-width: 90%; }
  .reply-form { flex-direction: column; align-items: stretch; }
}

/* ---------- Verification, 2FA, reports ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.verified-badge { display: inline-flex; align-items: center; gap: 3px; background: var(--navy); color: #fff; font: 700 .72rem var(--font-body); padding: 3px 9px; border-radius: 99px; vertical-align: middle; letter-spacing: .02em; }
h1 .verified-badge { font-size: .8rem; position: relative; top: -4px; }
.verified-dot { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .62rem; font-weight: 700; vertical-align: 1px; }
.verify-banner { background: var(--navy); color: #fff; padding: 10px 0; font-size: .95rem; }
.verify-banner a { color: #ffd38a; font-weight: 700; margin-left: 6px; }
.step-icon { font-size: 2.2rem; margin-bottom: 4px; }
.code-input { font: 700 1.6rem/1 var(--font-body); letter-spacing: .35em; text-align: center; max-width: 260px; }
.resend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.resend .link-button { color: var(--navy-2); font-weight: 700; text-decoration: underline; }
.resend .link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.security-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--navy-tint); padding: 18px 20px; border-radius: var(--radius); margin-bottom: 32px; }
.security-cta h2 { margin: 0 0 2px; font-size: 1.15rem; }
.security-cta p { margin: 0; }
.status-on { display: inline-block; background: var(--navy); color: #fff; padding: 6px 14px; border-radius: 99px; font-weight: 700; margin-bottom: 8px; }
.steps { padding-left: 20px; display: grid; gap: 14px; }
.qr-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 12px; background: var(--bg); padding: 16px; border-radius: var(--radius); }
.qr-box img { border-radius: 8px; }
.secret { display: block; margin-top: 4px; font: 700 1rem ui-monospace, monospace; letter-spacing: .08em; background: var(--surface); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.inline-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report { margin-top: 14px; }
.report summary { cursor: pointer; color: var(--muted); font-size: .9rem; display: inline-block; }
.report summary:hover { color: var(--accent-dark); }
.report[open] .form { margin: 10px 0 0; background: var(--surface); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Admin ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; }
.stat strong { font: 700 1.8rem var(--font-head); color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }
.stat-alert strong { color: var(--accent-dark); }
.admin-section { margin-bottom: 36px; }
.admin-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); padding: 14px 16px; border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.admin-card-main { min-width: 0; flex: 1 1 320px; display: grid; gap: 3px; overflow-wrap: anywhere; }
.admin-card blockquote { margin: 6px 0 0; padding: 8px 12px; background: var(--bg); border-left: 3px solid var(--mustard); border-radius: 6px; white-space: pre-line; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions form { margin: 0; }
.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filter input { flex: 1; min-width: 200px; }
.admin-filter select { width: auto; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); margin-left: 4px; }
.pill-navy { background: var(--navy); color: #fff; }
.pill-amber { background: #fdf3df; color: #7a5410; }
.pill-red { background: #fbeae6; color: #8d3524; }

/* ---------- Favourites ---------- */
.fav-form { margin: 0; }
.card .fav-form { position: absolute; top: 10px; right: 10px; }
.fav-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--navy); border-radius: 99px; padding: 8px; box-shadow: 0 1px 6px rgba(31, 42, 68, .18); font: 700 .95rem var(--font-body); transition: transform .15s; }
.fav-btn svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { color: var(--accent); }
.fav-btn.on svg { fill: currentColor; }
.fav-btn.pop { transform: scale(1.25); }
.fav-big .fav-btn { padding: 9px 16px 9px 12px; border: 1.5px solid var(--border); box-shadow: none; background: var(--surface); }
.badge-soft { background: var(--navy-tint); color: var(--navy); }
.badge[hidden] { display: none; }

/* ---------- Sharing ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.share-label { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.share-btn { font: 700 .88rem var(--font-body); padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--surface); color: var(--navy); text-decoration: none; cursor: pointer; }
.share-btn:hover { background: var(--navy-tint); }
.share-wa:hover { border-color: #25d366; }
.share-fb:hover { border-color: #1877f2; }

/* ---------- Reviews ---------- */
.stars { color: #d5d9e4; letter-spacing: 1px; white-space: nowrap; }
.stars .full { color: var(--mustard); }
.stars .half { background: linear-gradient(90deg, var(--mustard) 50%, #d5d9e4 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: .92rem; margin: 2px 0; }
.rating-line.big { font-size: 1rem; margin: 4px 0; }
.reviews { display: grid; gap: 12px; align-content: start; }
.review { background: var(--surface); padding: 18px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review-head { display: flex; gap: 12px; align-items: center; }
.review-body { white-space: pre-line; margin: 10px 0 4px; overflow-wrap: anywhere; }
.avatar.small { width: 40px; height: 40px; font-size: 1.05rem; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-weight: 600; margin-bottom: 4px; }
.star-radios { display: inline-flex; flex-direction: row-reverse; }
.star-radios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-radios label { font-size: 2rem; color: #d5d9e4; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-radios label:hover, .star-radios label:hover ~ label, .star-radios input:checked ~ label { color: var(--mustard); }
.star-radios input:focus-visible + label { outline: 2px solid var(--navy); border-radius: 4px; }
.review-nudge { background: var(--navy-tint); padding: 12px 16px; border-radius: 10px; }

/* ---------- Seasonal collections ---------- */
.season { background: var(--surface); border-radius: 24px; padding: 28px; margin-bottom: 32px; box-shadow: var(--shadow); border-top: 6px solid var(--navy); }
.season-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.season-head h2 { margin: 0 0 4px; font-size: 1.6rem; }
.season-head p { margin: 0; color: var(--muted); }
.season-craciun { border-top-color: #2f6b4f; }
.season-martisor { border-top-color: #c8553d; }
.season-paste { border-top-color: #e9a23b; }
.season-ziua-mamei { border-top-color: #c9718f; }
.season-hero { display: flex; gap: 20px; align-items: center; background: var(--navy); color: #fff; border-radius: 24px; padding: 28px 32px; margin-bottom: 20px; }
.season-hero h1 { color: #fff; margin-bottom: 4px; }
.season-hero p { margin: 0; color: #d5dbea; }
.season-hero .muted { color: #b4bdd3; }
.season-emoji { font-size: 3rem; }
.season-picks { border: 0; padding: 0; margin: 0; }
.season-picks legend { font-weight: 600; margin-bottom: 8px; }
.pick { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 99px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--navy); background: var(--navy-tint); }
.product-seasons { margin-top: 10px; }
.product-seasons .tag { text-decoration: none; }
.footer-heading { font-family: var(--font-body) !important; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; color: #8d97b0 !important; }
.forgot-link { justify-self: end; margin-top: -8px; }

@media (max-width: 820px) {
  .season { padding: 18px; }
  .season-hero { padding: 20px; }
  .share-label { flex-basis: 100%; margin: 4px 0 0; }
}

/* ---------- Gift occasions ---------- */
.upcoming { margin-bottom: 28px; }
.upcoming h2 { font-size: 1.15rem; margin-bottom: 10px; }
.upcoming-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.upcoming-chip { display: flex; align-items: center; gap: 10px; flex-shrink: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 10px 16px 10px 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.upcoming-chip:hover { border-color: var(--navy-2); }
.upcoming-chip strong { display: block; font-size: .95rem; }
.upcoming-chip small { display: block; color: var(--muted); font-size: .8rem; }
.upcoming-chip .occasion-emoji { font-size: 1.6rem; }
.upcoming-chip.all { background: var(--navy); border-color: var(--navy); color: #fff; }
.upcoming-chip.all small { color: #b4bdd3; }
.season-when { font: 600 .9rem var(--font-body); color: var(--muted); margin-left: 6px; }
.occasion-group { margin-bottom: 32px; }
.occasion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.occasion-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.occasion-tile { display: grid; gap: 2px; align-content: start; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.occasion-tile:hover { transform: translateY(-2px); border-color: var(--navy-2); }
.occasion-tile.soon { border-color: var(--accent); }
.occasion-emoji { font-size: 1.8rem; line-height: 1.2; }
.occasion-name { font-weight: 700; }
.occasion-when { color: var(--muted); font-size: .85rem; }
.occasion-countdown { color: var(--accent-dark); font-size: .85rem; font-weight: 700; }
.occasion-count { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.occasions-home { margin-bottom: 32px; }
.occasions-home .occasion-tile { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.season-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-weight: 600; }
.season-countdown { background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 99px; }
.season-names { margin-top: 10px !important; font-size: .95rem; }
.pick-group { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.pick-group summary { cursor: pointer; font-weight: 700; }
.pick-group[open] summary { margin-bottom: 10px; }

.danger-zone { border: 1.5px solid #e3b5ab; border-radius: var(--radius); padding: 14px 18px; margin-top: 8px; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: #8d3524; }
.danger-zone[open] summary { margin-bottom: 8px; }

.admin-diag { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; box-shadow: var(--shadow); }
.admin-diag summary { cursor: pointer; font-weight: 700; }
.admin-diag[open] summary { margin-bottom: 10px; }
