/* ===== Tokens ===== */
:root {
  --blue:       #1250c4;
  --blue-deep:  #0b2f7a;
  --blue-tint:  #eef3fd;
  --yellow:     #ffc72c;
  --yellow-dk:  #e5ab00;
  --ink:        #14213d;
  --muted:      #5a6786;
  --line:       #d9e2f5;
  --white:      #ffffff;
  --radius:     10px;
  --font-head:  "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body:  "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--font-head); letter-spacing: .01em;
  padding: .85rem 1.25rem; border-radius: 8px;
  transition: background-color .15s, transform .15s;
}
.btn-yellow { background: var(--yellow); color: var(--blue-deep); }
.btn-yellow:hover { background: var(--yellow-dk); }

/* ===== Header ===== */
.topstrip { background: var(--yellow); color: var(--blue-deep); text-align: center; font-size: .9rem; font-weight: 500; padding: .4rem 1rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.6rem/1 var(--font-head); color: var(--blue-deep); }
.logo-mark { display: block; width: 2.4rem; height: 2.4rem; flex: none; }
.logo-word { font-weight: 800; letter-spacing: -0.02em; }
.nav-school { display: inline-flex; align-items: center; gap: .35rem; }
.nav-school svg { flex: none; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--blue-deep); }
.main-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ===== Hero + search ===== */
.hero { background: var(--blue); color: var(--white); padding: 3.5rem 0 5.5rem; }
.hero-compact { padding: 1.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.hero-sub { margin: .9rem 0 1.8rem; font-size: 1.15rem; color: #d6e3ff; max-width: 52ch; }

.search-form {
  position: relative; display: flex; gap: .5rem; align-items: stretch;
  background: var(--white); padding: .5rem; border-radius: 14px;
  max-width: 860px; box-shadow: 0 6px 0 var(--yellow);
}
.search-form select, .search-form input {
  font: 500 1rem var(--font-body); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: .8rem .9rem;
}
.search-form select { flex: 0 0 210px; max-width: 210px; }
.search-form input { flex: 1 1 auto; min-width: 0; }
.search-form input:focus, .search-form select:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px); z-index: 20;
  background: var(--white); color: var(--ink); border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(11, 47, 122, .25); overflow: hidden;
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; flex-direction: column; padding: .7rem 1rem; text-decoration: none; border-bottom: 1px solid var(--blue-tint); }
.suggest a:hover, .suggest a.is-active { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--yellow); }
.suggest .s-name { font-weight: 500; }
.suggest mark { background: var(--yellow); color: var(--blue-deep); padding: 0 .1em; border-radius: 2px; }
.suggest .s-crumb { font-size: .85rem; color: var(--muted); }
.suggest .s-empty { padding: .9rem 1rem; color: var(--muted); }
.suggest .s-all { font-weight: 600; color: var(--blue); background: var(--blue-tint); border-bottom: 0; }

/* ===== Category tiles ===== */
.categories { padding: 0 0 4rem; background: var(--blue-tint); }
.categories h2 { font-size: 2rem; color: var(--blue-deep); padding: 2.5rem 0 1.5rem; }
.hero + .categories { margin-top: 0; }
#categories .wrap > h2 { padding-top: 2.5rem; }

.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.tile:hover, .tile:focus-within { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); border-color: var(--blue); }
.tile-media { position: relative; aspect-ratio: 4 / 3; background: var(--blue); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.6rem; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }
.tile-badge { position: absolute; left: .75rem; top: .75rem; background: var(--yellow); color: var(--blue-deep); font: 600 .85rem/1 var(--font-head); padding: .35rem .6rem; border-radius: 6px; }
.tile-body { padding: 1rem 1.1rem 1.2rem; }
.tile-title { font-size: 1.35rem; color: var(--blue-deep); }
.tile-title a { text-decoration: none; }
.tile-title a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.tile-subs { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .92rem; }
.tile-subs a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; }
.tile-subs a:hover { color: var(--blue); text-decoration: underline; }

/* ===== Search results page ===== */
.result-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.result-list li + li { border-top: 1px solid var(--blue-tint); }
.result-list a { display: flex; flex-direction: column; padding: .9rem 1.1rem; text-decoration: none; }
.result-list a:hover { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--yellow); }
.r-name { font-weight: 500; color: var(--blue-deep); }
.r-crumb { font-size: .88rem; color: var(--muted); }
.notice { background: var(--white); border-left: 5px solid var(--yellow); padding: 1rem 1.25rem; border-radius: 6px; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-deep); color: #cfdcff; padding: 1.5rem 0; border-top: 6px solid var(--yellow); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--yellow); }

/* ===== Small screens ===== */
@media (max-width: 720px) {
  .main-nav .hide-sm { display: none; }
  .header-row { flex-wrap: wrap; row-gap: .5rem; }
  .main-nav { gap: 1rem; flex-wrap: wrap; }
  .main-nav a, .main-nav .linklike { white-space: nowrap; }
  .search-form { flex-direction: column; }
  .search-form select { flex: none; max-width: none; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .tile-title { font-size: 1.1rem; }
  .tile-subs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .btn { transition: none; }
  .tile:hover, .tile:focus-within { transform: none; }
}

/* ===== Account, chat strip, forms ===== */
.hello { color: var(--muted); font-size: .95rem; }
.inline-form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: 500 1rem var(--font-body); color: var(--blue-deep); }
.linklike:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.chat-strip { background: var(--yellow); color: var(--blue-deep); }
.chat-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.chat-strip p { margin: 0; }
.chat-strip .btn { background: var(--blue-deep); color: var(--white); }
.chat-strip .btn:hover { background: var(--blue); }

.auth { background: var(--blue-tint); padding: 3rem 0 4rem; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 6px 6px 0 var(--yellow); max-width: 440px; margin-inline: auto; padding: 2rem; }
.auth-card h1 { font-size: 2rem; color: var(--blue-deep); margin-bottom: 1rem; }
.auth-card label { display: block; font-weight: 500; margin: 1rem 0 .3rem; }
.auth-card input { width: 100%; font: 500 1rem var(--font-body); padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; }
.auth-card input:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.auth-card .btn { width: 100%; margin-top: 1.5rem; }
.auth-note { background: var(--blue-tint); border-left: 5px solid var(--yellow); padding: .7rem 1rem; border-radius: 6px; margin: 0 0 .5rem; }
.auth-alt { margin: 1.25rem 0 0; color: var(--muted); }
.auth-alt a { color: var(--blue); font-weight: 500; }
.form-error { background: #fdecec; border-left: 5px solid #c62828; color: #7a1b1b; padding: .7rem 1rem; border-radius: 6px; margin: 0 0 .5rem; }
.form-error p { margin: .15rem 0; }

.chat-page { background: var(--blue-tint); padding: 1.5rem 0 3rem; min-height: 60vh; }
.chat-placeholder { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-height: 50vh; }
@media (max-width: 720px) { .chat-placeholder { grid-template-columns: 1fr; } }

/* ===== Account notice (bid payments / warnings) ===== */
.account-notice { background: var(--blue-tint); border-bottom: 1px solid var(--line); }
.account-notice.is-danger { background: #fdecec; border-bottom-color: #f3c4c4; }
.account-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .6rem; }
.account-notice p { margin: 0; font-weight: 500; color: var(--blue-deep); }
.account-notice.is-danger p { color: #7a1b1b; }
.account-notice a { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ===== Sellers (sellers.php + home page row) ===== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2.5rem 0 1.5rem; }
.section-head h2 { font-size: 2rem; color: var(--blue-deep); }
.see-all { font-weight: 600; color: var(--blue); text-decoration: none; }
.see-all:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.home-sellers { background: var(--white); padding-bottom: 3rem; border-bottom: 1px solid var(--line); }

.seller-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.seller-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.seller-card[hidden] { display: none; }
.seller-card:hover, .seller-card:focus-within { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); border-color: var(--blue); }
.seller-top {
  --banner: none; position: relative; height: 84px;
  background: linear-gradient(110deg, rgba(11, 47, 122, .95), rgba(18, 80, 196, .8)), var(--banner) center / cover, var(--blue);
}
.seller-avatar {
  position: absolute; left: 1.1rem; bottom: -28px; width: 64px; height: 64px; border-radius: 14px;
  background: var(--yellow); color: var(--blue-deep); display: grid; place-items: center;
  font: 700 1.9rem/1 var(--font-head); box-shadow: 4px 4px 0 var(--blue-deep); border: 3px solid var(--white);
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.seller-avatar .online-dot { position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: #18b26b; border: 3px solid var(--white); }
.seller-live {
  position: absolute; right: .8rem; top: .8rem; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--yellow); color: var(--blue-deep); font: 700 .85rem/1 var(--font-head); padding: .4rem .6rem; border-radius: 6px;
}
.seller-live i { width: 8px; height: 8px; border-radius: 50%; background: #e0362c; animation: seller-blink 1.4s infinite; }
@keyframes seller-blink { 50% { opacity: .25; } }
.seller-body { padding: 2.4rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.seller-name { font-size: 1.4rem; color: var(--blue-deep); }
.seller-name a { text-decoration: none; }
.seller-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card opens the store */
.seller-tag { margin: 0; color: var(--ink); font-size: .95rem; }
.seller-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .85rem; color: var(--muted); }
.seller-samples { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seller-samples li { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.seller-samples img, .seller-samples span {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover;
  background: var(--blue-tint); display: grid; place-items: center; font-size: 1.6rem;
}
.seller-samples em { font-style: normal; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-cta { margin-top: auto; padding-top: .6rem; font: 700 1rem/1 var(--font-head); color: var(--blue); }
.seller-card:hover .seller-cta { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.sellers-hero { padding-bottom: 2rem; }
.sellers-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.sellers-hero .hero-sub { margin-bottom: 1.25rem; }
.sellers-tools {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; background: var(--white); padding: .5rem;
  border-radius: 14px; max-width: 860px; box-shadow: 0 6px 0 var(--yellow);
}
.sellers-tools input[type="search"], .sellers-tools select { font: 500 1rem var(--font-body); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: .8rem .9rem; }
.sellers-tools input[type="search"] { flex: 1 1 280px; min-width: 0; }
.sellers-tools input[type="search"]:focus, .sellers-tools select:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.check-light { white-space: nowrap; display: flex; align-items: center; gap: .45rem; color: var(--blue-deep); font-weight: 500; padding: 0 .6rem; cursor: pointer; }
.check-light input { width: 18px; height: 18px; accent-color: var(--blue); }
.sellers-list { background: var(--blue-tint); padding: 2rem 0 4rem; }
.sellers-count { margin: 0 0 1rem; color: var(--muted); }

@media (max-width: 720px) {
  .seller-grid { grid-template-columns: 1fr; }
  .seller-grid-row { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; }
  .seller-grid-row .seller-card { scroll-snap-align: start; }
  .sellers-tools select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .seller-card { transition: none; }
  .seller-card:hover, .seller-card:focus-within { transform: none; }
  .seller-live i { animation: none; }
}

/* Seller payments link (sellers only) */
.main-nav a.nav-seller { display: inline-flex; align-items: center; gap: .35rem; }
.main-nav a.nav-add { background: var(--yellow); color: var(--blue-deep); padding: .35rem .7rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.main-nav a.nav-add:hover { background: var(--yellow-dk); text-decoration: none; }
.nav-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--yellow); color: var(--blue-deep); font: 700 .8rem/1 var(--font-head); }

/* ===== Sell on Podbants banner (sellers.php) ===== */
.sell-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--blue-deep); color: var(--white); border-radius: 14px; padding: 1.1rem 1.3rem; border-bottom: 5px solid var(--yellow); }
.sell-cta strong { display: block; font: 700 1.3rem var(--font-head); }
.sell-cta p { margin: .2rem 0 0; color: #cfdcff; }

@media (max-width: 560px) { .sell-cta .btn { width: 100%; text-align: center; } }
.main-nav a.nav-sell { font-weight: 600; color: var(--blue); }

/* ===== Notification bell ===== */
.bell { position: relative; }
.bell-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--blue-tint); color: var(--blue-deep); cursor: pointer; }
.bell-btn:hover { background: #dfe9fd; }
.bell-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #d4351c; color: #fff; font: 700 .7rem/18px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--white); }
.bell-count[hidden] { display: none; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(11, 47, 122, .18); z-index: 80; }
.bell-panel[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); }
.bell-head strong { font: 700 1.1rem var(--font-head); color: var(--blue-deep); }
.bell-credit { background: #f3fbf6; color: #13653a; border: 1px solid #b8d8c4; border-radius: 99px; padding: .2rem .6rem; font-size: .82rem; font-weight: 600; }
.bell-credit[hidden] { display: none; }
.bell-list { list-style: none; margin: 0; padding: .3rem; }
.bell-list li.is-unread { background: #fffbea; border-radius: 10px; }
.bell-item { display: flex; gap: .65rem; padding: .65rem .7rem; text-decoration: none; color: var(--ink); border-radius: 10px; }
a.bell-item:hover { background: var(--blue-tint); }
.bell-ico { font-size: 1.2rem; line-height: 1.3; }
.bell-txt { display: grid; gap: .15rem; min-width: 0; }
.bell-txt strong { font-weight: 600; color: var(--blue-deep); }
.bell-txt span { font-size: .88rem; color: var(--ink); }
.bell-txt em { font-style: normal; font-size: .78rem; color: var(--muted); }
.bell-empty { padding: 1rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .bell-panel { position: fixed; left: 4vw; right: 4vw; top: 70px; width: auto; } }

/* ===== Featured group bids (home) + Pro badge ===== */
.home-bids { padding: 2.5rem 0 .5rem; }
.home-bids-note { color: var(--muted); font-size: .95rem; }
.home-bid-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.home-bid a { display: grid; gap: .35rem; height: 100%; box-sizing: border-box; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; }
.home-bid a:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(11, 47, 122, .12); }
.home-bid-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--blue); font-size: 2.4rem; }
.home-bid-media img { width: 100%; height: 100%; object-fit: cover; }
.home-bid-media em { position: absolute; top: .5rem; left: .5rem; font-style: normal; background: var(--yellow); color: var(--blue-deep); font: 700 .78rem/1 var(--font-head); padding: .3rem .55rem; border-radius: 99px; }
.home-bid-store { font-size: .82rem; color: var(--muted); font-weight: 600; }
.home-bid-title { font: 600 1.05rem/1.25 var(--font-head); color: var(--blue-deep); }
.home-bid-prices { font-size: .92rem; color: var(--muted); }
.home-bid-prices s { color: var(--muted); }
.home-bid-prices b { font: 700 1.2rem var(--font-head); color: var(--blue); }
.home-bid .bid-bar { display: block; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.home-bid .bid-bar span { display: block; height: 100%; background: var(--blue); }
.home-bid-left { font-size: .85rem; color: var(--muted); }
.pro-badge { display: inline-block; vertical-align: middle; background: var(--yellow); color: var(--blue-deep); font: 700 .72rem/1 var(--font-head); letter-spacing: .04em; padding: .25rem .45rem; border-radius: 6px; }
/* notification items live inside .main-nav: undo the menu's link styles (nowrap on phones, yellow underline) */
.main-nav .bell-panel a.bell-item, .main-nav .bell-panel a.bell-item:hover { text-decoration: none; white-space: normal; }
.bell-txt { min-width: 0; overflow-wrap: anywhere; }
.bell-txt strong, .bell-txt span, .bell-txt em { white-space: normal; }

/* cart icon in the menu */
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-tint); color: var(--blue-deep); }
.main-nav a.cart-link:hover { background: #dfe9fd; text-decoration: none; }
.cart-link .bell-count { position: absolute; top: 4px; right: 3px; }

/* "My store" and account menus in the header */
.nav-menu { position: relative; }
.nav-menu-btn { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font-weight: 600; color: var(--blue-deep); padding: .4rem .75rem; border-radius: 999px; background: var(--blue-tint); white-space: nowrap; }
.nav-menu-btn::-webkit-details-marker { display: none; }
.nav-menu-btn::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: .15rem; }
.nav-menu[open] > .nav-menu-btn { background: #dfe9fd; }
.nav-menu[open] > .nav-menu-btn::after { transform: translateY(2px) rotate(-135deg); }
.nav-menu-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.nav-account .nav-menu-btn { background: none; font-weight: 500; }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 15rem; max-width: calc(100vw - 32px); display: grid; padding: .4rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 47, 122, .16); }
.main-nav .nav-menu-panel a, .main-nav .nav-menu-panel .linklike { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .75rem; border-radius: 8px; white-space: normal; text-decoration: none; font-weight: 500; text-align: left; width: 100%; }
.main-nav .nav-menu-panel a:hover, .main-nav .nav-menu-panel .linklike:hover { background: var(--blue-tint); text-decoration: none; }
.main-nav .nav-menu-panel a.nav-menu-add { background: var(--yellow); font-weight: 600; margin-bottom: .25rem; }
.main-nav .nav-menu-panel a.nav-menu-add:hover { background: var(--yellow-dk); }
.main-nav .nav-menu-panel a.nav-menu-admin { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: .25rem; color: var(--blue); }
.nav-menu-panel .inline-form { display: block; border-top: 1px solid var(--line); margin-top: .25rem; padding-top: .25rem; }
@media (max-width: 760px) {
  .nav-menu { position: static; }
  .nav-menu-panel { left: 16px; right: 16px; top: auto; margin-top: .5rem; min-width: 0; max-width: none; }
  .site-header { position: relative; }
}
@media (max-width: 1100px) {
  .main-nav { gap: 1rem; }
  .main-nav .hide-sm { display: none; }
}
@media (max-width: 980px) {
  .header-row { flex-wrap: wrap; row-gap: .5rem; }
  .main-nav { flex-wrap: wrap; row-gap: .5rem; }
}
.nav-streak { font: 700 .82rem/1 var(--font-body); color: #b4470b; background: #fff1e0; border-radius: 999px; padding: .2rem .45rem; }

/* ---------- iPhone: "add to home screen" tip and the app's notification card (assets/js/app_shell.js) ---------- */
.ios-tip, .push-ask { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  background: #fff; color: var(--ink, #142033); border-radius: 18px; box-shadow: 0 12px 36px rgba(11, 47, 122, .25);
  padding: 14px 14px 14px 16px; max-width: 440px; margin: 0 auto; animation: tipIn .35s ease-out; }
.ios-tip { display: flex; gap: 12px; align-items: center; }
.ios-tip-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.ios-tip-text strong { display: block; font-size: 1rem; }
.ios-tip-text p { margin: 2px 0 0; font-size: .92rem; color: #4a5a72; }
.ios-share { display: inline-flex; vertical-align: -4px; color: #1250c4; }
.ios-tip-close { margin-left: auto; align-self: flex-start; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #6b7a90; cursor: pointer; padding: 2px 6px; }
.ios-tip::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.push-ask strong { display: block; font-size: 1.05rem; }
.push-ask p { margin: 4px 0 10px; color: #4a5a72; font-size: .95rem; }
.push-ask-row { display: flex; gap: 8px; }
@keyframes tipIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ios-tip, .push-ask { animation: none; } }

/* ===== Share a seller in your group chat (includes/share_chat.php, assets/js/share_chat.js) ===== */
.seller-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.share-chat-btn { position: relative; z-index: 2; cursor: pointer; }      /* above the card's "open the store" link */
.share-chat-card {
  border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px;
  font: 700 .9rem/1 var(--font-body); padding: .6rem .9rem; min-height: 40px; text-decoration: none; display: inline-flex; align-items: center;
}
.share-chat-card:hover { background: var(--blue-tint); }
.share-chat-btn.is-shared { background: #e6f6ee; border-color: #13653a; color: #13653a; }
.btn.share-chat-btn.is-shared { background: #fff; color: #13653a; }
.sc-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,47,122,.45); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.sc-sheet { width: min(480px, 100%); max-height: 80vh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 18px 18px 20px; box-shadow: 0 20px 50px rgba(11,47,122,.3); color: var(--ink);
            margin-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 700px) { .sc-overlay { align-items: center; } }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sc-head h2 { font-size: 1.3rem; color: var(--blue-deep); margin: 0; overflow-wrap: anywhere; }
.sc-x { border: 0; background: var(--blue-tint); color: var(--blue-deep); width: 40px; height: 40px; border-radius: 12px; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; transition: background .15s; }
.sc-x:hover { background: #dbe5f7; }
.sc-x:focus-visible { outline: 3px solid var(--yellow, #ffd23f); outline-offset: 2px; }
.sc-note { color: var(--muted); margin: .5rem 0 1rem; }
.sc-go { display: block; text-align: center; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sc-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.sc-act { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-share { border: 0; background: var(--yellow); color: var(--blue-deep); font-weight: 800; border-radius: 12px; padding: 0 18px; min-height: 44px; cursor: pointer; }
.sc-share:disabled { opacity: .6; }
.sc-in { color: #13653a; font-weight: 700; font-size: .92rem; }
.sc-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.sc-err { flex-basis: 100%; margin: 0; color: #b3261e; font-size: .9rem; }
.sc-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; flex: 1 1 200px; min-width: 0; }
.sc-pick input, .sc-all input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; cursor: pointer; }
.sc-row.is-done { background: #f3faf6; border-color: #cde9d9; }
.sc-row.is-done .sc-pick { cursor: default; opacity: .75; }
.sc-all { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; margin-bottom: 6px; font-weight: 700; color: var(--blue-deep); cursor: pointer; }
.sc-together { display: block; width: 100%; margin-top: 14px; text-align: center; font-size: 1.02rem; }
.sc-together:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.sc-status { margin: 10px 0 0; color: #13653a; font-weight: 700; min-height: 1.2em; }

/* ===== Automatic seller payouts (seller_payments.php) ===== */
.cn-card { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 1.1rem 1.2rem; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.cn-card h2 { font-size: 1.35rem; color: var(--blue-deep); margin: 0; }
.cn-lead, .cn-small { margin: 0; color: #33456f; }
.cn-small { font-size: .92rem; color: var(--muted); }
.cn-store { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; display: grid; gap: .5rem; }
.cn-store-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cn-store form { margin: 0; }
.cn-flash { margin: 0; padding: .6rem .8rem; border-radius: 12px; font-weight: 700; }
.cn-flash.is-ok { background: #e6f6ee; color: #13653a; }
.cn-flash.is-err { background: #fff6d6; color: #8a5a00; }
.fin-run { margin: .3rem 0 .8rem; }

/* ===== Support desk and Team (support.php, admin_team.php) ===== */
.sup-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.sup-tabs a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--blue-deep); font-weight: 700; text-decoration: none; }
.sup-tabs b { background: var(--yellow); color: var(--blue-deep); border-radius: 999px; padding: .05rem .5rem; font-size: .85rem; }
.sup-ship { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; margin-top: .7rem; display: grid; gap: .4rem; }
.sup-ship p { margin: 0; overflow-wrap: anywhere; }
.sup-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.sup-row { grid-template-columns: 1fr auto; align-items: center; }
@media (max-width: 600px) { .sup-row { grid-template-columns: 1fr; } }
.sup-order { display: grid; gap: .4rem; margin-top: .8rem; }

/* ===== Founding 100 (sell.php, badges) ===== */
.fdr-badge { display: inline-flex; align-items: center; gap: .2rem; background: #fff6d6; color: #8a5a00; border: 1px solid var(--yellow); border-radius: 999px; font: 800 .78rem/1 var(--font-body); padding: .3rem .55rem; vertical-align: middle; white-space: nowrap; }
.store-hero .fdr-badge { margin-top: .3rem; }
.fdr-offer { background: var(--blue-deep); color: #fff; border-bottom: 5px solid var(--yellow); }
.fdr-row { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 1.6rem; }
.fdr-offer .fdr-row h2 { color: #fff !important; font-size: clamp(1.4rem, 3vw, 2rem); margin: .2rem 0 .4rem; }
.fdr-row p { margin: 0; color: #dfe8fb; max-width: 60ch; }
.fdr-kicker { color: var(--yellow) !important; font-weight: 800; }
.fdr-count { background: var(--yellow); color: var(--blue-deep) !important; border-radius: 16px; padding: .8rem 1.1rem; font-weight: 700; text-align: center; }
.fdr-count b { display: block; font: 700 2.2rem/1 var(--font-head); }
.sc-sheet [hidden] { display: none !important; }
/* Seller card: "Shop together" and "Share in chat" side by side */
.seller-share2 { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.share-chat-btn.is-together.share-chat-card { background: var(--yellow); border-color: var(--yellow); color: var(--blue-deep); }

/* ===== Buy together (team price per buyer): store cards, live panels, deal page ===== */
.team-box { margin: .6rem 0; padding: .7rem .8rem; border: 1.5px dashed #f5b301; border-radius: 12px; background: #fffaf0; }
.team-head { margin: 0 0 .45rem; font-weight: 800; font-size: .95rem; }
.team-head span { font-weight: 500; color: #5b6475; font-size: .85rem; }
.team-ladder { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.team-ladder li { display: flex; flex-direction: column; align-items: center; min-width: 3.6rem; padding: .3rem .45rem; border-radius: 9px; background: #fff; border: 1px solid #e6e9f0; font-size: .74rem; color: #5b6475; line-height: 1.25; }
.team-ladder li b { font-size: .9rem; color: #111827; }
.team-ladder li.is-solo { opacity: .75; }
.team-ladder.is-live li.is-done { background: #e8f7ee; border-color: #9bd8b0; }
.team-ladder.is-live li.is-now { background: #1250c4; border-color: #1250c4; color: #dbe6ff; box-shadow: 0 4px 12px rgba(18, 80, 196, .25); }
.team-ladder.is-live li.is-now b { color: #fff; }
.team-start-btn { width: 100%; }
.team-note { margin: .4rem 0 0; font-size: .78rem; color: #5b6475; line-height: 1.4; }
.team-panel .team-now { margin: .4rem 0 .5rem; font-size: .95rem; }
.team-panel .team-now strong { font-size: 1.25rem; color: #0a7a2f; }
.bidp-teamtag { display: inline-block; margin: 0 0 .6rem; padding: .25rem .6rem; border-radius: 999px; background: #fff4d6; color: #7a5300; font-weight: 700; font-size: .85rem; }
.bidp-ladder { margin: .2rem 0 .9rem; }
.bidp-ladder li { min-width: 4.4rem; padding: .4rem .55rem; font-size: .78rem; }
.bidp-ladder li b { font-size: 1rem; }
.bidp-msg.is-good { color: #0a7a2f; font-weight: 600; }

/* My store: one tap to the seller's own store (Nov 2026) */
.main-nav a.nav-mystore { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--blue-deep); padding: .4rem .85rem; border-radius: 999px; background: var(--yellow); white-space: nowrap; text-decoration: none; }
.main-nav a.nav-mystore:hover { filter: brightness(.96); }
.main-nav a.nav-mystore:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
