/* =========================================================
   Afro Russ — where Africa meets Russia
   Palette: savanna sunset meets winter sky.
   Type: Unbounded (display, Cyrillic-ready) + Manrope (body).
   ========================================================= */
:root {
  --ink: #16131f;
  --ink-2: #4a4558;
  --muted: #8a8598;
  --line: #ece8f2;
  --paper: #fffaf4;
  --card: #ffffff;
  --sun: #ff6b2c;
  --gold: #ffb42e;
  --sky: #2f6bff;
  --berry: #e8336d;
  --leaf: #13a36e;
  --grad: linear-gradient(120deg, #ff6b2c 0%, #e8336d 45%, #2f6bff 100%);
  --grad-soft: linear-gradient(120deg, #fff1e6 0%, #fde8ef 50%, #e8efff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22,19,31,.04), 0 8px 24px rgba(22,19,31,.06);
  --shadow-lg: 0 18px 50px rgba(22,19,31,.14);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 72px; /* room for mobile tab bar */
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sun); }
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
main { padding: 24px 0 48px; min-height: 60vh; }

/* ---------- Top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,250,244,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: .8rem; letter-spacing: -.04em;
}
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); position: relative;
}
.nav-links a:hover, .nav-links a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-size: 1.05rem; cursor: pointer;
}
.icon-btn:hover { border-color: var(--sun); color: var(--ink); }
.dot-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--berry); color: #fff; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--paper);
}
.nav-links .dot-count { position: static; display: inline-grid; margin-left: 4px; border: 0; }

/* Mobile tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; justify-content: space-around; align-items: center;
  height: 64px; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; font-size: .68rem; font-weight: 700; color: var(--muted); gap: 2px; position: relative; }
.tabbar a span.ic { font-size: 1.3rem; line-height: 1; }
.tabbar a.on { color: var(--ink); }
.tabbar .tab-post span.ic {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center;
  margin-top: -22px; box-shadow: 0 8px 20px rgba(232,51,109,.4); font-size: 1.6rem;
}
.tabbar .dot-count { top: -4px; right: 6px; }

@media (max-width: 860px) {
  .nav-links, .nav-hide-sm { display: none !important; }
  .tabbar { display: flex; }
}
@media (min-width: 861px) { body { padding-bottom: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--grad); border: 0; color: #fff; }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(232,51,109,.3); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--berry); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linkish:hover { color: var(--berry); }
form.inline { display: inline; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.input, .form-card input[type=text], .form-card input[type=email], .form-card input[type=password],
.form-card input[type=url], .form-card input[type=date], .form-card input[type=number], .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: 500 1rem var(--font-body); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,107,44,.12);
}
textarea.input { resize: vertical; }
.helptext, .field .help { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--berry); font-size: .85rem; font-weight: 600; }
.form-errors { background: #fff0f4; color: var(--berry); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sun); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Region chooser (radio pills) */
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 700; background: #fff;
}
.pills input:checked + span { border-color: transparent; background: var(--ink); color: #fff; }
.pills input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,107,44,.25); }

/* Dropzone */
.dropzone {
  border: 2px dashed #d9d2e6; border-radius: var(--radius); padding: 28px; text-align: center;
  background: var(--grad-soft); cursor: pointer; transition: border-color .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--sun); }
.dropzone input { display: none; }
.dropzone .big { font-size: 2rem; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.previews > div { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; position: relative; }
.previews img, .previews video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Flash messages ---------- */
.flashes { position: fixed; top: calc(var(--nav-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 80; width: min(560px, calc(100% - 32px)); }
.flash {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px;
  box-shadow: var(--shadow-lg); font-weight: 600; display: flex; gap: 10px; justify-content: space-between; align-items: center;
  animation: slideIn .25s ease-out;
}
.flash.error { background: var(--berry); }
.flash.success { background: var(--leaf); }
.flash button { background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; opacity: .8; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 44px 36px; margin-bottom: 28px;
  background: var(--ink); color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%;
  background: radial-gradient(closest-side, rgba(255,107,44,.55), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -60% -10%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(47,107,255,.5), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 14ch; }
.hero p { color: #d8d3e4; max-width: 46ch; font-size: 1.05rem; }
.hero .row { margin-top: 20px; }
.hero .btn:not(.btn-primary) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div { font-size: .8rem; color: #b9b3c8; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; letter-spacing: 0; }
.hello { font-family: var(--font-display); font-size: .85rem; color: var(--gold); letter-spacing: .02em; margin-bottom: 10px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { color: inherit; border-color: var(--ink); }
.search-mini { display: flex; gap: 8px; }
.search-mini .input { padding: 9px 14px; border-radius: 999px; min-width: 200px; }

/* ---------- Layout with sidebar ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.side { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 1024px) { .with-side { grid-template-columns: 1fr; } .side { position: static; } }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.panel h3 { margin-bottom: 12px; }

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 3 260px; column-gap: 18px; }
.masonry > .card { break-inside: avoid; margin-bottom: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s; display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; background: #f1edf6; }
.card-media img, .card-media video { width: 100%; height: auto; }
.card-media .count {
  position: absolute; top: 10px; right: 10px; background: rgba(22,19,31,.7); color: #fff;
  font-size: .75rem; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.card-media .play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.6rem;
  text-shadow: 0 4px 20px rgba(0,0,0,.4); pointer-events: none;
}
.card-text {
  display: block; padding: 28px 22px; min-height: 180px; background: var(--grad); color: #fff;
  font-family: var(--font-display); font-size: 1.1rem; line-height: 1.35; font-weight: 500;
}
.card-text.alt-1 { background: linear-gradient(140deg, #16131f, #3a2a6b); }
.card-text.alt-2 { background: linear-gradient(140deg, #ff6b2c, #ffb42e); }
.card-text:hover { color: #fff; }
.card-body { padding: 14px 16px 12px; }
.card-caption { font-size: .93rem; color: var(--ink-2); margin-bottom: 10px; word-wrap: break-word; }
.byline { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.byline .name { font-weight: 800; color: var(--ink); }
.byline .meta { color: var(--muted); font-size: .78rem; }
.tag-region { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #f4f1f8; color: var(--ink-2); }
.actions { display: flex; align-items: center; gap: 4px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 0; background: none; font: 700 .85rem var(--font-body); color: var(--ink-2); cursor: pointer;
}
.act:hover { background: #f4f1f8; color: var(--ink); }
.act .heart { font-size: 1.05rem; transition: transform .2s; }
.act.liked { color: var(--berry); }
.act.liked .heart { transform: scale(1.15); }
.act.pop .heart { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.5); } }
.act.right { margin-left: auto; }

/* Avatars */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--grad);
  color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: .78rem; position: relative;
}
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar.md { width: 48px; height: 48px; font-size: 1rem; }
.avatar.anon { background: #2b2638; }
.avatar-wrap { position: relative; display: inline-block; flex: none; }
.online-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--leaf); border: 2px solid #fff; }
.faces { display: flex; flex-wrap: wrap; gap: 8px; }

/* Shot of the week */
.sotw { display: block; border-radius: var(--radius); overflow: hidden; position: relative; }
.sotw img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.sotw .over { position: absolute; inset: auto 0 0 0; padding: 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.sotw .badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: .75rem; padding: 5px 10px; border-radius: 999px; }

/* ---------- Post detail ---------- */
.post-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .post-wrap { grid-template-columns: 1fr; } }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: #0f0d15; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 100%; scroll-snap-align: center; max-height: 78vh; object-fit: contain; width: 100%; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d8d2e2; }
.carousel-dots span.on { background: var(--ink); width: 18px; border-radius: 999px; }
.post-text-big { padding: 48px 32px; border-radius: var(--radius); background: var(--grad); color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; white-space: pre-line; }
.caption-full { white-space: pre-line; font-size: 1.02rem; }
.comment { display: flex; gap: 10px; padding: 12px 0; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment .bubble { flex: 1; min-width: 0; }
.comment .bubble p { margin: 2px 0 4px; white-space: pre-line; word-wrap: break-word; }
.replies { margin-left: 44px; border-left: 2px solid var(--line); padding-left: 12px; }
.replies .comment { padding: 8px 0; }
.reply-form { display: none; margin-top: 8px; }
.reply-form.open { display: block; }
details.report summary { cursor: pointer; color: var(--muted); font-size: .85rem; list-style: none; }
details.report summary::-webkit-details-marker { display: none; }

/* Share sheet */
.share-sheet {
  position: fixed; inset: 0; z-index: 90; background: rgba(22,19,31,.45); display: none; align-items: flex-end; justify-content: center;
}
.share-sheet.open { display: flex; }
.share-box { background: #fff; width: min(440px, 100%); border-radius: 24px 24px 0 0; padding: 22px 20px 28px; animation: up .22s ease-out; }
@media (min-width: 600px) { .share-sheet { align-items: center; } .share-box { border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.share-grid a, .share-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px;
  background: #f7f4fa; border: 0; font: 700 .8rem var(--font-body); cursor: pointer; color: var(--ink);
}
.share-grid .ic { font-size: 1.5rem; }

/* ---------- Profile ---------- */
.profile-head { border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); margin-bottom: 24px; }
.profile-cover { height: 140px; background: var(--grad); }
.profile-cover.russia { background: linear-gradient(120deg, #2f6bff, #8fb3ff 50%, #e8336d); }
.profile-cover.africa { background: linear-gradient(120deg, #ff6b2c, #ffb42e 50%, #13a36e); }
.profile-info { padding: 0 24px 24px; margin-top: -48px; }
.profile-info .row.top { align-items: flex-end; }
.profile-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: .92rem; margin: 6px 0 12px; }
.counts { display: flex; gap: 22px; margin: 10px 0 14px; }
.counts b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.counts span { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 10px; border-radius: 999px; background: #f4f1f8; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.verified { color: var(--sky); font-size: .9rem; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.person-card .avatar-wrap { margin-bottom: 10px; }
.person-card .avatar { width: 72px; height: 72px; font-size: 1.3rem; }
.person-card h3 { margin-bottom: 2px; }

/* ---------- Chat ---------- */
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); }
.inbox-item:hover { background: #fff; box-shadow: var(--shadow); color: inherit; }
.inbox-item .grow { flex: 1; min-width: 0; }
.inbox-item .preview { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.unread .preview { color: var(--ink); font-weight: 700; }
.pill-count { background: var(--berry); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

.chat { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h) - 48px); max-height: 820px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 860px) { .chat { height: calc(100vh - var(--nav-h) - 64px - 32px); } }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #faf8fc; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); align-self: flex-start; word-wrap: break-word; white-space: pre-line; }
.msg.mine { align-self: flex-end; background: var(--ink); color: #fff; }
.msg img { border-radius: 12px; margin-bottom: 4px; max-height: 300px; }
.msg .t { display: block; font-size: .7rem; opacity: .6; text-align: right; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; border-radius: 22px; padding: 11px 16px; max-height: 120px; }
.chat-form .attach { cursor: pointer; }
.chat-form input[type=file] { display: none; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }

/* ---------- Opportunities ---------- */
.opp { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; border-left: 5px solid var(--sun); }
.opp:hover { color: inherit; box-shadow: var(--shadow-lg); }
.opp.kind-scholarship, .opp.kind-exchange { border-left-color: var(--sky); }
.opp.kind-event, .opp.kind-competition { border-left-color: var(--berry); }
.opp.kind-internship, .opp.kind-job { border-left-color: var(--leaf); }
.opp-mini { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.opp-mini:last-child { border-bottom: 0; }
.deadline { font-weight: 800; font-size: .82rem; color: var(--sun); }
.deadline.soon { color: var(--berry); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .input { width: auto; flex: 1 1 160px; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .big { font-size: 2.6rem; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 28px 0; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: #fff6e0; color: #7a5600; font-weight: 600; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.notif { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); }
.notif.new { background: #fff; box-shadow: var(--shadow); }
.mod-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.mod-card img, .mod-card video { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .mod-card { grid-template-columns: 1fr; } }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: .88rem; }
footer.site .row { gap: 18px; }
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 120px); display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); }
.auth-card .hello { text-align: center; }
.divider { text-align: center; color: var(--muted); font-size: .85rem; margin: 18px 0; }
