/* Ozazy — sky blue theme */
:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-deep: #075985;
  --sky-light: #e0f2fe;
  --sky-pale: #f0f9ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5fbff;
  --white: #fff;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(2, 132, 199, .06), 0 4px 16px rgba(2, 132, 199, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; }
a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 clamp(12px, 2.5vw, 40px); }
/* Wide screens: use the space — wider search box, roomier filters, more ad cards per row (the grid adds columns by itself). */
@media (min-width: 1400px) {
  .searchbar { max-width: 820px; }
  .layout { grid-template-columns: 280px 1fr; }
  .ad-layout { grid-template-columns: 1fr 400px; }
  .dash { grid-template-columns: 240px 1fr; }
}
/* Reading pages (policies, forms, chat) stay comfortable to read even on big screens. */
.container.narrow, .page-text { max-width: 980px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.hide-sm { } @media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------- Header ---------- */
.topbar { background: linear-gradient(90deg, var(--sky-dark), var(--sky)); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(2,132,199,.25); }
.topbar .container { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo { font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -.5px; display: flex; align-items: center; gap: 6px; }
.logo:hover { text-decoration: none; }
.logo .dot { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--sky-dark); display: grid; place-items: center; font-size: 1.1rem; }
.searchbar { flex: 1; display: flex; background: #fff; border-radius: 10px; overflow: hidden; position: relative; max-width: 640px; }
.searchbar input { flex: 1; border: 0; padding: 11px 14px; font-size: 15px; outline: none; min-width: 0; }
.searchbar select { border: 0; border-left: 1px solid var(--line); padding: 0 8px; background: #fff; color: var(--ink); max-width: 130px; }
.searchbar button { border: 0; background: var(--sky-deep); color: #fff; padding: 0 16px; font-weight: 600; cursor: pointer; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); display: none; z-index: 60; }
.suggest a { display: block; padding: 9px 14px; color: var(--ink); }
.suggest a:hover { background: var(--sky-pale); text-decoration: none; }
.navlinks { display: flex; gap: 6px; align-items: center; }
.navlinks a, .navlinks button.linklike { color: #fff; padding: 8px 10px; border-radius: 8px; position: relative; font-weight: 500; background: none; border: 0; cursor: pointer; font-size: 15px; }
.navlinks a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.badge-count { position: absolute; top: 0; right: 0; background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 6px; line-height: 17px; }
.btn-sell { background: #fff !important; color: var(--sky-dark) !important; font-weight: 700 !important; }
@media (max-width: 720px) {
  .topbar .container { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .searchbar select { display: none; }
  .navlinks .label { display: none; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; background: var(--sky); color: #fff; text-decoration: none !important; transition: background .15s; }
.btn:hover { background: var(--sky-dark); }
.btn-outline { background: #fff; color: var(--sky-dark); border-color: var(--sky); }
.btn-outline:hover { background: var(--sky-pale); }
.btn-ghost { background: transparent; color: var(--sky-dark); }
.btn-ghost:hover { background: var(--sky-light); }
.btn-green { background: var(--green); } .btn-green:hover { background: #15803d; }
.btn-red { background: var(--red); } .btn-red:hover { background: #b91c1c; }
.btn-amber { background: var(--amber); color: #111; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky-light); border-color: var(--sky); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; }

/* ---------- Cards / panels ---------- */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.page { padding-top: 20px; padding-bottom: 40px; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--sky-pale); border-color: #bae6fd; color: var(--sky-deep); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .3px; }
.tag-top { background: var(--amber); color: #111; }
.tag-urgent { background: var(--red); color: #fff; }
.tag-verified { background: var(--sky-light); color: var(--sky-deep); }
.tag-video { background: rgba(15,23,42,.75); color: #fff; }
.tag-gray { background: #f1f5f9; color: var(--muted); }
.tag-green { background: #dcfce7; color: #166534; }

/* ---------- Listing grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--ink); position: relative; transition: transform .12s; }
.card:hover { transform: translateY(-2px); text-decoration: none; }
.card .thumb { aspect-ratio: 4/3; background: var(--sky-light); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.card .thumb .count { position: absolute; bottom: 8px; left: 8px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.card .price { color: var(--sky-dark); font-weight: 800; font-size: 1.05rem; }
.card .title { font-size: .92rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
.card .meta { font-size: .78rem; color: var(--muted); }
.card.is-top { outline: 2px solid var(--amber); }
.fav-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 17px; z-index: 2; }
.noimg { display: grid; place-items: center; height: 100%; font-size: 2.2rem; color: var(--sky); }

/* ---------- Home ---------- */
.hero { background: linear-gradient(135deg, var(--sky) 0%, #38bdf8 50%, #7dd3fc 100%); color: #fff; padding: 34px 0 40px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 6px; }
.hero p { opacity: .95; margin: 0 0 16px; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .chips span { background: rgba(255,255,255,.2); padding: 6px 12px; border-radius: 99px; font-size: .88rem; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: -24px; }
.cat { background: #fff; border-radius: var(--radius); padding: 14px 10px; text-align: center; box-shadow: var(--shadow); color: var(--ink); }
.cat:hover { text-decoration: none; outline: 2px solid var(--sky-light); }
.cat .ic { font-size: 1.8rem; }
.cat .nm { font-weight: 600; font-size: .86rem; margin-top: 4px; }
.cat .ct { font-size: .75rem; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }
.shopcard { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); text-align: center; color: var(--ink); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sky-light); display: grid; place-items: center; font-weight: 800; color: var(--sky-dark); margin: 0 auto 6px; font-size: 1.3rem; }
.cta-band { background: var(--sky-deep); color: #fff; border-radius: var(--radius); padding: 24px; margin: 30px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Search page ---------- */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .filters { display: none; } .filters.open { display: block; } }
.filters .panel { position: sticky; top: 76px; }
.filters h3 { font-size: .95rem; margin-top: 10px; }
.subcats a { display: block; padding: 5px 0; color: var(--ink); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.pagination .on { background: var(--sky); color: #fff; }

/* ---------- Listing page ---------- */
.ad-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
@media (max-width: 900px) { .ad-layout { grid-template-columns: 1fr; } }
.gallery .main { background: #0b1220; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; }
.gallery .main img, .gallery .main video { width: 100%; height: 100%; object-fit: contain; }
.gallery .strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.gallery .strip button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 78px; height: 60px; flex: 0 0 auto; cursor: pointer; background: var(--sky-light); position: relative; }
.gallery .strip button.on { border-color: var(--sky); }
.gallery .strip img { width: 100%; height: 100%; object-fit: cover; }
.gallery .strip .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; background: rgba(0,0,0,.35); }
.ad-price { font-size: 1.7rem; font-weight: 800; color: var(--sky-dark); }
.attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.attrs div { background: var(--sky-pale); border-radius: 10px; padding: 8px 10px; }
.attrs b { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.seller { display: flex; gap: 12px; align-items: center; }
.seller .avatar { margin: 0; }
.contact .btn { width: 100%; margin-top: 8px; }
.desc { white-space: pre-wrap; }
.stars { color: var(--amber); letter-spacing: 1px; }
.mobile-contact { display: none; }
@media (max-width: 900px) {
  .mobile-contact { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 10px; gap: 8px; box-shadow: 0 -2px 12px rgba(0,0,0,.08); z-index: 40; }
  .mobile-contact .btn { flex: 1; }
  body.has-mobile-contact { padding-bottom: 70px; }
}

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 2px solid transparent; position: relative; }
.plan.popular { border-color: var(--sky); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--sky); color: #fff; padding: 3px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.plan .amt { font-size: 2rem; font-weight: 800; color: var(--sky-dark); }
.plan ul { padding-left: 0; list-style: none; flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; font-size: .92rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }
.period-toggle { display: inline-flex; background: #fff; border-radius: 99px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 18px; }
.period-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--muted); }
.period-toggle button.on { background: var(--sky); color: #fff; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.sidenav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; align-self: start; }
.sidenav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.sidenav a.on, .sidenav a:hover { background: var(--sky-light); color: var(--sky-deep); text-decoration: none; }
@media (max-width: 860px) { .sidenav { display: flex; overflow-x: auto; } .sidenav a { white-space: nowrap; } }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .n { font-size: 1.6rem; font-weight: 800; color: var(--sky-dark); }
.stat .l { font-size: .8rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; background: var(--sky); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--sky-deep); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.tabs a.on { background: var(--sky); color: #fff; }
.mylist { display: flex; flex-direction: column; gap: 10px; }
.myitem { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.myitem img, .myitem .noimg { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--sky-light); }
.myitem .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--sky-pale); font-size: .8rem; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Upload form ---------- */
.dropzone { border: 2px dashed #7dd3fc; border-radius: var(--radius); padding: 18px; text-align: center; background: var(--sky-pale); cursor: pointer; }
.dropzone:hover { background: var(--sky-light); }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.previews .pv { width: 88px; height: 70px; border-radius: 8px; overflow: hidden; position: relative; background: var(--sky-light); }
.previews .pv img { width: 100%; height: 100%; object-fit: cover; }
.previews .pv label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 4px; margin: 0; }
.video-preview video { max-height: 240px; border-radius: 10px; margin-top: 10px; background: #000; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 160px); min-height: 420px; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--sky-pale); display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 75%; padding: 9px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--sky); color: #fff; }
.bubble.offer { border: 2px solid var(--amber); }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.chat form { display: flex; gap: 8px; padding: 10px; background: #fff; }
.chat form input[name=body] { flex: 1; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; background: #fff; }
.quick button { white-space: nowrap; }
.convlist a { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink); align-items: center; }
.convlist a:hover { background: var(--sky-pale); text-decoration: none; }
.convlist img, .convlist .noimg { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--sky-light); font-size: 1.2rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--sky-deep); color: #cfeafe; padding: 30px 0; margin-top: 40px; font-size: .9rem; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
footer.site h4 { color: #fff; margin: 0 0 8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 3px 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 3rem; }
dialog { border: 0; border-radius: 16px; padding: 20px; max-width: 440px; width: 92%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15,23,42,.45); }
.bubble.system { align-self: center; max-width: 92%; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; font-size: .85rem; text-align: center; }
/* Moderation */
.blur-media img, .blur-media video { filter: blur(18px); transition: filter .2s; }
.blur-media.revealed img, .blur-media.revealed video { filter: none; }
.reason { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0; background: #f1f5f9; }
.reason.block { background: #fee2e2; color: #991b1b; }
.reason.review { background: #fef3c7; color: #92400e; }
.reason.info { background: var(--sky-light); color: var(--sky-deep); }
.mod-card { display: grid; grid-template-columns: 220px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; }
@media (max-width: 760px) { .mod-card { grid-template-columns: 1fr; } }
.mod-media { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-media img, .mod-media video { width: 100px; height: 76px; object-fit: cover; border-radius: 6px; background: #000; }
.cat-suggest { background: var(--sky-pale); border: 1px solid #bae6fd; border-radius: 10px; padding: 10px 12px; margin: -4px 0 14px; display: none; }
.rules-list li { margin: 4px 0; }
.toc a { display: inline-block; margin: 0 10px 6px 0; }
.lang-select { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 6px 6px; width: auto; font-weight: 600; cursor: pointer; }
.lang-select option { color: var(--ink); }
footer.site .langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
footer.site .langs a { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 3px 10px; font-size: .82rem; }
footer.site .langs a.on { background: #fff; color: var(--sky-deep); }
/* chip rows (admin "Other" ads) */
.panel .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.panel .chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #eef7fd; border: 1px solid #cfe8f7; font-size: .85rem; color: inherit; text-decoration: none; }
.panel .chip.on { background: var(--sky); border-color: transparent; color: #fff; }
.other-spec { width: 100%; }

/* =====================================================================
   v1.5 — interactive & dynamic touches (CSS-only animations, light on data)
   ===================================================================== */
/* Header gets a stronger shadow once you scroll */
.topbar { transition: box-shadow .2s; }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(2,132,199,.35); }

/* Hero */
.hero-live { position: relative; overflow: hidden; padding: 46px 0 60px; background: linear-gradient(125deg, #0369a1, #0ea5e9 45%, #38bdf8 75%, #7dd3fc); background-size: 200% 200%; animation: heroShift 16s ease-in-out infinite; }
@keyframes heroShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .35; animation: blob 14s ease-in-out infinite; }
.hero-bg .b1 { width: 340px; height: 340px; background: #bae6fd; top: -120px; left: -60px; }
.hero-bg .b2 { width: 280px; height: 280px; background: #fde68a; bottom: -140px; right: 10%; animation-delay: -5s; opacity: .25; }
.hero-bg .b3 { width: 220px; height: 220px; background: #a5f3fc; top: 20%; right: -60px; animation-delay: -9s; }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.08); } 66% { transform: translate(-20px,20px) scale(.95); } }
.hero-bg .float { position: absolute; font-size: 2rem; opacity: .22; animation: floaty 9s ease-in-out infinite; }
.hero-bg .f0 { left: 4%; top: 18%; } .hero-bg .f1 { left: 14%; bottom: 12%; animation-delay: -2s; } .hero-bg .f2 { left: 30%; top: 8%; animation-delay: -4s; }
.hero-bg .f3 { right: 30%; bottom: 10%; animation-delay: -1s; } .hero-bg .f4 { right: 6%; top: 14%; animation-delay: -6s; } .hero-bg .f5 { right: 16%; bottom: 30%; animation-delay: -3s; }
.hero-bg .f6 { left: 48%; bottom: 6%; animation-delay: -7s; } .hero-bg .f7 { left: 62%; top: 10%; animation-delay: -5s; } .hero-bg .f8 { left: 8%; top: 55%; animation-delay: -8s; } .hero-bg .f9 { right: 42%; top: 40%; animation-delay: -2.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(8deg); } }
@media (max-width: 720px) { .hero-bg .float { font-size: 1.4rem; } .hero-bg .f2, .hero-bg .f6, .hero-bg .f7, .hero-bg .f9 { display: none; } }
.hero-inner { position: relative; text-align: center; }
.hero-live h1 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); letter-spacing: -.5px; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(3,105,161,.35); }
.hero-live p { max-width: 720px; margin: 0 auto 20px; font-size: 1.05rem; }
.hero-search { position: relative; max-width: 760px; margin: 0 auto; display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 14px 40px rgba(3,105,161,.35); transition: transform .2s, box-shadow .2s; }
.hero-search:focus-within { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(3,105,161,.45); }
.hero-search .hs-ic { padding: 0 6px 0 12px; font-size: 1.1rem; }
.hero-search input { flex: 1; border: 0 !important; outline: none !important; font-size: 1.05rem; padding: 12px 8px; min-width: 0; background: transparent; }
.hero-search .btn { border-radius: 12px; padding: 12px 22px; font-size: 1rem; }
.hero-search .suggest { text-align: left; border-radius: 12px; top: calc(100% + 6px); }
.suggest a.on { background: var(--sky-pale); }
.popular { margin: 16px auto 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 980px; }
.popular .lbl { font-weight: 700; font-size: .9rem; }
.popular a { color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 5px 12px; border-radius: 99px; font-size: .86rem; transition: background .15s, transform .15s; }
.popular a:hover { background: #fff; color: var(--sky-deep); text-decoration: none; transform: translateY(-2px); }
.hero-stats { display: flex; justify-content: center; gap: clamp(14px, 4vw, 48px); margin-top: 26px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.hero-stats b { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .82rem; opacity: .9; }
.hero-live + .ticker + .container .cats, .hero-live + .container .cats { margin-top: 18px; }

/* Live ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(2,132,199,.06); }
.ticker-in { display: flex; align-items: center; gap: 10px; height: 52px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 1.6s infinite; flex: 0 0 auto; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.tk-lbl { white-space: nowrap; font-size: .9rem; color: var(--sky-deep); }
.tk-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; gap: 28px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.tk-viewport:hover .tk-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; font-size: .88rem; }
.tk-item:hover { text-decoration: none; color: var(--sky-dark); }
.tk-item img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.tk-item b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tk-price { color: var(--sky-dark); font-weight: 800; }
.tk-meta { color: var(--muted); font-size: .8rem; }

/* Category tiles */
.cat { transition: transform .18s, box-shadow .18s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(2,132,199,.18); outline: 0; }
.cat .ic { transition: transform .25s; display: inline-block; }
.cat:hover .ic { transform: scale(1.18) rotate(-6deg); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* Cards */
.card { transition: transform .18s, box-shadow .18s, opacity .45s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(2,132,199,.18); }
.card .thumb img { transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb video.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; z-index: 1; }
.card .thumb video.preview.on { opacity: 1; }
.card .thumb .tags, .card .thumb .count { z-index: 2; }
.card .dots { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; opacity: 0; transition: opacity .2s; }
.card:hover .dots { opacity: 1; }
.card .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.card .dots i.on { background: #fff; }
.card-fav { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--red); font-size: 18px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; transition: transform .15s; }
.card-fav:hover { transform: scale(1.12); }
.card-fav.on { background: #fff; }
.card-fav.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.card.is-top .tag-top { animation: shine 2.6s ease-in-out infinite; background-image: linear-gradient(110deg, var(--amber) 40%, #fde68a 50%, var(--amber) 60%); background-size: 250% 100%; }
@keyframes shine { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Skeleton loading cards */
.card.skel { pointer-events: none; }
.card.skel .thumb, .card.skel i { background: linear-gradient(90deg, #e8f4fc 25%, #f5fbff 50%, #e8f4fc 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.card.skel i { display: block; height: 12px; border-radius: 6px; margin: 6px 0; }
.card.skel i.short { width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Feed tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -4px 0 14px; }
.tabs button { border: 1px solid #cfe8f7; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; transition: all .15s; }
.tabs button:hover { border-color: var(--sky); color: var(--sky-dark); }
.tabs button.on { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 4px 14px rgba(14,165,233,.35); }
.tabs .near-state { width: auto; padding: 7px 10px; border-radius: 99px; }
.linkbtn { background: none; border: 0; color: var(--sky-dark); cursor: pointer; font: inherit; }

/* Horizontal rows with arrows */
.hs-wrap { position: relative; }
.hs-btn { position: absolute; top: 40%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--sky-deep); font-size: 26px; line-height: 1; box-shadow: 0 4px 16px rgba(2,132,199,.25); cursor: pointer; transition: transform .15s; }
.hs-btn:hover { transform: translateY(-50%) scale(1.1); }
.hs-btn.prev { left: -12px; } .hs-btn.next { right: -12px; }
@media (hover: none) { .hs-btn { display: none; } }
.hscroll { scroll-behavior: smooth; scrollbar-width: thin; }

/* Toasts & back-to-top */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #0f172a; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); transition: all .25s; }
.toast.in { opacity: 1; transform: none; }
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sky); color: #fff; font-size: 20px; box-shadow: 0 8px 22px rgba(14,165,233,.45); cursor: pointer; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--sky-dark); }

/* Call-to-action pulse */
.btn-pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.cta-band { background: linear-gradient(120deg, var(--sky-deep), #0369a1 50%, var(--sky-dark)); }

/* Listing gallery: arrows + full screen */
.gallery .main { position: relative; cursor: zoom-in; }
.gallery .main img.fade { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.g-nav.prev { left: 10px; } .g-nav.next { right: 10px; }
.g-nav:hover { background: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(2,6,23,.92); display: grid; place-items: center; cursor: zoom-out; animation: fadeIn .2s; }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* Phones: compact homepage */
@media (max-width: 720px) {
  body.home .topbar .searchbar { display: none; }            /* the big hero search replaces it on the homepage */
  .hero-live { padding: 26px 0 30px; }
  .hero-live p { font-size: .95rem; margin-bottom: 14px; }
  .hero-search { border-radius: 14px; padding: 4px; }
  .hero-search input { font-size: 1rem; padding: 10px 4px; }
  .hero-search .btn { padding: 10px 14px; }
  .popular { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 14px -12px 0; padding: 0 12px 4px; scrollbar-width: none; }
  .popular::-webkit-scrollbar { display: none; }
  .popular a, .popular .lbl { flex: 0 0 auto; white-space: nowrap; }
  .hero-stats { gap: 6px; margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); }
  .hero-stats > div { min-width: 0; }
  .hero-stats b { font-size: 1.25rem; }
  .hero-stats span { font-size: .7rem; line-height: 1.2; text-align: center; }
  .ticker-in { height: 44px; }
  .tk-lbl { display: none; }
}
@media (max-width: 520px) {
  .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat { padding: 10px 4px; }
  .cat .ic { font-size: 1.5rem; }
  .cat .nm { font-size: .7rem; font-weight: 600; line-height: 1.2; }
  .cat .ct { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: 0 0 auto; }
  .to-top { width: 42px; height: 42px; right: 12px; bottom: 16px; }
}
