/* Vosemo Deals: community deals board. Loads after style.css and reuses its tokens. */
[hidden] { display: none !important; }
.hub-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hub-card { padding: 32px; }
.hub-card h2 { margin: 14px 0 8px; font-size: 1.7rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.acct { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.acct a { font-weight: 600; text-decoration: none; }
.acct .karma { font-size: .8rem; background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
/* Phones: the account link sits on the top row next to search, kept short
   (username only; karma and Log out live on your profile page). */
@media (max-width: 760px) {
  .acct { order: 3; font-size: .85rem; gap: 6px; }
  .acct .karma, .acct .linkish, .acct .sep, .acct .signup { display: none; }
  .acct a { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--text); }

.deals-hero { padding: 40px 0 8px; }
.deals-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.deals-hero .lede { font-size: 1.05rem; }
/* Phones: a slim intro so deals start near the top of the screen. */
@media (max-width: 760px) {
  .deals-hero { padding: 18px 0 0; }
  .deals-hero .eyebrow { display: none; }
  .deals-hero h1 { font-size: 1.5rem; margin-bottom: 4px; }
  .deals-hero .lede { font-size: .95rem; margin-bottom: 0; }
  .deals-layout { padding-top: 12px; }
  .deals-layout .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 14px; padding: 0 0 2px; scrollbar-width: none; }
  .deals-layout .chips::-webkit-scrollbar { display: none; }
  .deals-layout .chip { white-space: nowrap; flex: none; }
}

.deals-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; padding-top: 20px; padding-bottom: 56px; }
@media (max-width: 900px) { .deals-layout { grid-template-columns: minmax(0, 1fr); } }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button, .chip {
  border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--border); background: var(--surface); font-weight: 500; padding: 4px 12px; }
.chip[aria-pressed="true"] { background: var(--ember-soft); border-color: var(--ember); color: var(--ember); }
select.mini.active { border-color: var(--ember); color: var(--ember); background: var(--ember-soft); font-weight: 600; }
select.mini { font: inherit; font-size: .9rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

.deal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deal {
  display: grid; grid-template-columns: 44px 88px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 14px 10px;
}
.deal.expired { opacity: .6; }
/* Product photos: white tile so store photos (usually on white) look clean in dark mode too. */
.thumb-link { display: block; }
.thumb, .big-photo { display: block; width: 88px; height: 88px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.no-photo { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.no-photo svg { width: 30px; height: 30px; opacity: .6; }
.deal-photo .big-photo { width: 100%; height: auto; aspect-ratio: 1; max-height: 320px; padding: 10px; }
.deal-photo .no-photo svg { width: 56px; height: 56px; }
@media (max-width: 560px) {
  .deal { grid-template-columns: 38px 68px minmax(0, 1fr); gap: 10px; padding-right: 12px; }
  .thumb { width: 68px; height: 68px; }
}
.photo-preview img { max-width: 160px; max-height: 160px; border-radius: 10px; border: 1px solid var(--border); background: #fff; object-fit: contain; }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote button {
  width: 34px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.vote button:hover { background: var(--surface-2); color: var(--text); }
.vote button svg { width: 20px; height: 20px; }
.vote button svg { width: 18px; height: 18px; }
.vote .up[aria-pressed="true"] { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.vote .down[aria-pressed="true"] { color: #c0392b; background: color-mix(in srgb, #c0392b 12%, transparent); }
.vote .score { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.deal h3 { font-family: "Inter", system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; letter-spacing: 0; }
.deal h3 a { color: var(--text); text-decoration: none; }
/* Long unbroken text (a pasted link as a title, a long store name) wraps instead of widening the page. */
.deal h3, .deal-full h1, .price-line, .deal-meta, .comment .who { overflow-wrap: anywhere; min-width: 0; }
.deal h3 a:hover { color: var(--ember); }
.price-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.price { font-weight: 700; color: var(--ok); font-size: 1.1rem; }
.was { color: var(--muted); text-decoration: line-through; font-size: .92rem; }
.off { font-size: .78rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
.store { font-weight: 600; font-size: .92rem; }
.deal-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.deal-meta a { color: var(--muted); }
.deal-meta .get { color: var(--ember); font-weight: 600; text-decoration: none; }
.badge-exp { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); color: var(--muted); padding: 2px 8px; border-radius: 999px; }

.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--text); margin-top: 0; }

.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.side-box h3 { margin: 0 0 8px; font-size: 1.05rem; }
.side-box p, .side-box li { font-size: .92rem; color: var(--muted); }
.side-box ul { padding-left: 18px; margin: 0; }
.side-box .btn { width: 100%; text-align: center; }
.home-more { padding-top: 8px; border-top: 1px solid var(--border); }
.home-more .section-head a { font-weight: 600; text-decoration: none; }
a.bbq-promo { display: block; text-decoration: none; color: var(--text); transition: border-color .15s; }
a.bbq-promo:hover { border-color: var(--ember); color: var(--text); }
.bbq-promo .more { font-weight: 600; color: var(--ember); font-size: .92rem; }

.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: var(--ember); }
.form textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-msg { min-height: 1.4em; font-size: .95rem; margin: 0; }
.form-msg.err { color: #c0392b; }
@media (prefers-color-scheme: dark) { .form-msg.err { color: #ff8a7a; } }

.auth-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.auth-grid .side-box { padding: 28px; }
.auth-grid h2 { margin-top: 0; font-size: 1.4rem; }

.deal-full { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 22px; }
@media (max-width: 680px) {
  .deal-full { grid-template-columns: minmax(0, 1fr); }
  .deal-full .deal-photo .big-photo { max-height: 260px; }
}
.did-it-work { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 14px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.did-it-work strong { font-size: .95rem; margin-right: 4px; }
.did-it-work .vote-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.did-it-work .vote-btn svg { width: 18px; height: 18px; }
.did-it-work .up[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.did-it-work .down[aria-pressed="true"] { border-color: #c0392b; color: #c0392b; background: color-mix(in srgb, #c0392b 10%, var(--surface)); }
.did-it-work .score { font-weight: 700; color: var(--muted); font-size: .9rem; }
.did-it-work .score::before { content: "Score "; font-weight: 500; }
.report-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -6px 0 14px; font-size: .88rem; color: var(--muted); }
.report-btn { font: inherit; font-size: .88rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--border); background: none; color: var(--muted); cursor: pointer; }
.report-btn:hover { border-color: #b7791f; color: #b7791f; }
.report-btn[aria-pressed="true"] { border-style: solid; border-color: #b7791f; color: #b7791f; background: color-mix(in srgb, #b7791f 10%, transparent); }
.deal-meta .reports { color: #b7791f; font-weight: 600; }
.deal-meta .share-btn { font-size: .85rem; color: var(--muted); }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.share-box strong { font-size: .95rem; margin-right: 4px; }
.share-opt {
  display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: .88rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; cursor: pointer;
}
.share-opt:hover { border-color: var(--ember); color: var(--ember); }
.share-opt.primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.share-opt.primary:hover { background: var(--ember-dark); color: #fff; }
.deal-full h1 { font-family: "Inter", system-ui, sans-serif; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: 0; margin: 0 0 8px; }
.deal-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 0; }
.owner-tools { display: flex; gap: 10px 16px; margin-top: 14px; font-size: .9rem; flex-wrap: wrap; align-items: center; }
.end-edit { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.end-edit input { font: inherit; font-size: .85rem; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.deal-meta .ends-soon { color: var(--ember); font-weight: 600; }

.comments { margin-top: 28px; }
.comments h2 { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.comment { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.comment .who { font-size: .85rem; color: var(--muted); margin-bottom: 4px; display: flex; gap: 10px; }
.comment .who a { font-weight: 600; }
.comment p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.results-head { font-size: 1.2rem; margin: 28px 0 12px; }
.load-more { display: block; margin: 18px auto 0; }

/* ---------- Coupons ---------- */
.coupon-search { flex: 1 1 220px; min-width: 0; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.coupon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.coupon {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
}
.coupon.stale { opacity: .62; }
.coupon.flash { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.coupon-main { min-width: 0; }
.coupon h3 { font-family: "Inter", system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 2px 0 4px; letter-spacing: 0; overflow-wrap: anywhere; }
.coupon-store { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ember); text-decoration: none; }
.coupon-body { margin: 2px 0 6px; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.coupon-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.coupon-meta a { color: var(--muted); }
.rate { font-weight: 600; }
.rate.good { color: var(--ok); }
.rate.meh { color: #a06a00; }
.rate.bad { color: #b3261e; }
.rate.new { font-weight: 500; }
.worked { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.worked-btn { font: inherit; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.worked-btn.yes[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.worked-btn.no[aria-pressed="true"] { background: #b3261e; border-color: #b3261e; color: #fff; }
.coupon-action { align-self: center; }
.code-btn {
  display: inline-flex; align-items: stretch; min-width: 170px; border: 2px dashed var(--ember); border-radius: 10px; overflow: hidden;
  background: var(--surface); padding: 0; cursor: pointer; font: inherit; text-decoration: none;
}
.code-btn .peek { flex: 1; padding: 9px 12px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-weight: 700; letter-spacing: .06em; color: var(--text); text-align: center; overflow-wrap: anywhere; }
.code-btn .label { background: var(--ember); color: #fff; font-weight: 700; padding: 9px 12px; white-space: nowrap; display: flex; align-items: center; }
.code-btn.shown .peek { background: var(--ember-soft); }
.code-btn.nocode { justify-content: center; background: var(--ember); color: #fff; font-weight: 700; padding: 10px 16px; border-style: solid; }
.store-hero h1 { margin-bottom: 8px; }
.store-info { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.store-info .btn { width: auto; }
.chip-count { color: var(--muted); font-weight: 500; font-size: .85em; }
a.chip { text-decoration: none; color: var(--text); }
a.chip[aria-current="page"] { background: var(--ember-soft); border-color: var(--ember); color: var(--ember); }
.check-row { display: flex !important; gap: 10px; align-items: center; font-weight: 400 !important; align-self: end; margin-bottom: 10px; }
.check-row input { width: auto !important; }
@media (max-width: 560px) {
  .coupon { grid-template-columns: minmax(0, 1fr); }
  .coupon-action { grid-row: 2; }
  .code-btn { width: 100%; }
}

/* ---------- Stores directory, follow, Black Friday ---------- */
.nav a.nav-hot { color: var(--ember); font-weight: 700; }
.follow-btn { font: inherit; font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; }
.follow-btn[aria-pressed="true"] { background: var(--ember-soft); border-color: var(--ember); color: var(--ember); }
.section-tight { padding-top: 20px; padding-bottom: 56px; }
.store-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.store-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.store-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.store-tile span { color: var(--muted); font-size: .82rem; }
.store-tile:hover { border-color: var(--ember); }
.dir-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 16px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { min-width: 28px; text-align: center; padding: 3px 6px; border-radius: 8px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: .85rem; }
.letter-group h2 { font-size: 1.3rem; margin: 18px 0 8px; scroll-margin-top: 70px; }
.store-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.store-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.store-link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.store-counts { color: var(--muted); font-size: .82rem; }
.following-box { margin-bottom: 24px; }
.mixed-list .deal { list-style: none; }
.bf-hero .btn { width: auto; }
.bf-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.bf-store { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.bf-store span { color: var(--muted); font-size: .88rem; flex: 1; }
.bf-store .btn { width: 100%; text-align: center; }
.bf-store a:not(.btn) { font-size: .85rem; }
#store-deals { margin-top: 24px; }
@media (max-width: 760px) { .store-sections { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Saves, events, Top 10 ---------- */
.save-btn[aria-pressed="true"] { color: var(--ember); font-weight: 600; }
.deal h3 a.badge-event, .badge-event { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #1f1a17; color: #fff !important; padding: 2px 8px; border-radius: 999px; text-decoration: none; vertical-align: 2px; }
.event-check { margin: 4px 0 8px; }
a.bf-promo { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); background: linear-gradient(135deg, #1f1a17, #3a2418); color: #fff; border: 0; }
a.bf-promo span { color: #f2ebe3; font-size: .9rem; }
.deal.ranked { position: relative; }
.rank { position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ember); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; box-shadow: var(--shadow); }
.code-wrap { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.code-note { margin: 0; font-size: .8rem; color: var(--muted); max-width: 230px; }
.code-btn.shown .label { background: var(--ok); }
.pinned-amazon { grid-template-columns: 88px minmax(0, 1fr); border: 2px solid #f90; }
.pinned-amazon .pin-badge { width: 88px; height: 88px; border-radius: 10px; background: #232f3e; color: #fff; font-weight: 800; display: grid; place-items: center; }
.pinned-amazon .btn { width: auto; margin-top: 6px; }
@media (max-width: 560px) { .code-note { max-width: none; } }