/*
Theme Name: 8kwalls
Theme URI: https://8kwalls.com
Description: Community wallpaper platform
Version: 1.2
Author: 8kwalls
Author URI: https://8kwalls.com
License: Private
Text Domain: 8kwalls
*/

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:            #0e0e0e;
  --bg-elevated:   #161616;
  --bg-footer:     #0a0a0a;
  --bg-input:      rgba(255, 255, 255, 0.05);
  --bg-input-focus:rgba(255, 255, 255, 0.08);
  --accent:        #8dff1a;
  --accent-hover:  #a0ff40;
  --accent-dim:    rgba(141, 255, 26, 0.08);
  --accent-glow:   0 0 0 1.5px rgba(141, 255, 26, 0.3);
  --text:          #f0f0f0;
  --text-sec:      rgba(255, 255, 255, 0.55);
  --text-muted:    rgba(255, 255, 255, 0.3);
  --text-ultra:    rgba(255, 255, 255, 0.2);
  --border:        rgba(255, 255, 255, 0.06);
  --border-mid:    rgba(255, 255, 255, 0.1);
  --border-hover:  rgba(255, 255, 255, 0.18);
  --radius-card:   10px;
  --radius-pill:   50px;
  --radius-btn:    8px;
  --radius-sm:     6px;
  --gap-grid:      10px;
  --max-w:         1400px;
  --header-h:      58px;
  --strip-h:       44px;
  --font:          'DM Sans', system-ui, sans-serif;
  --ease-img:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t:             0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; background: none; border: none; outline: none; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h3 { font-size: 1rem; font-weight: 500; }
p { color: var(--text-sec); }

/* ── Layout ─────────────────────────────────────────────── */
.wg-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Site wrapper ───────────────────────────────────────── */
.wg-site { display: flex; flex-direction: column; min-height: 100vh; }
.wg-main { flex: 1; padding-top: calc(var(--header-h) + var(--strip-h)); }

/* ── Mobile search panel — hidden by default ────────────── */
.mobile-search-panel { display: none; }

/* ── Header ─────────────────────────────────────────────── */
.wg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wg-header-row1 {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

/* Wordmark */
.wg-wordmark {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.wg-wordmark .accent { color: var(--accent); }

/* Search */
.wg-search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.wg-search-bar {
  width: 100%;
  height: 36px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 16px 0 38px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  transition: background var(--t), box-shadow var(--t);
}
.wg-search-bar::placeholder { color: rgba(255, 255, 255, 0.3); }
.wg-search-bar:focus {
  background: var(--bg-input-focus);
  box-shadow: var(--accent-glow);
}
.wg-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  pointer-events: none;
}
.wg-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  overflow: hidden;
  z-index: 200;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.wg-autocomplete.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.wg-autocomplete-group { padding: 6px 0; }
.wg-autocomplete-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ultra);
  padding: 8px 16px 4px;
}
.wg-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--t);
  color: var(--text-sec);
}
.wg-autocomplete-item:hover,
.wg-autocomplete-item.focused {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.wg-autocomplete-item i { color: var(--text-ultra); font-size: 12px; width: 14px; text-align: center; }

/* Header actions */
.wg-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wg-device-shortcuts { display: flex; gap: 2px; }
.wg-device-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--t), border-color var(--t);
  letter-spacing: 0.01em;
}
.wg-device-btn:hover { color: var(--text); border-color: var(--border-mid); }

.wg-btn-submit {
  height: 32px;
  padding: 0 14px;
  background: var(--accent);
  color: #0e0e0e;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t);
}
.wg-btn-submit:hover { background: var(--accent-hover); }

.wg-search-icon-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-sec);
  transition: color var(--t);
}
.wg-search-icon-btn:hover { color: var(--text); }

/* User */
.wg-user-wrap { position: relative; }
.wg-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--t), opacity var(--t);
}
.wg-user-avatar:hover { border-color: var(--border-mid); }
.wg-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wg-login-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), border-color var(--t);
}
.wg-login-btn:hover { color: var(--text); border-color: var(--border-mid); }

.wg-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.wg-user-dropdown.open { display: block; }
.wg-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-sec);
  transition: background var(--t), color var(--t);
}
.wg-user-dropdown a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.wg-user-dropdown a i { width: 14px; text-align: center; color: var(--text-ultra); }
.wg-user-dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Category strip ─────────────────────────────────────── */
.wg-strip {
  height: var(--strip-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wg-strip::-webkit-scrollbar { display: none; }
.wg-strip-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  height: 100%;
  white-space: nowrap;
}
.wg-cat-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  border: none;
  background: transparent;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.wg-cat-pill:hover { color: rgba(255, 255, 255, 0.75); }
.wg-cat-pill.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Grid ───────────────────────────────────────────────── */
.wg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
  padding: var(--gap-grid);
}

/* ── Wallpaper card ─────────────────────────────────────── */
.wg-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 16/9;
  cursor: pointer;
}
.wg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-img);
}
.wg-card:hover .wg-card-img { transform: scale(1.04); }
.wg-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 40%, transparent 65%);
  padding: 36px 10px 10px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.wg-card:hover .wg-card-overlay { opacity: 1; }
.wg-card-title {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.wg-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.wg-card-tags { display: flex; gap: 3px; flex-wrap: wrap; }
.wg-card-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  letter-spacing: 0.01em;
}
.wg-card-save {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
  z-index: 2;
}
.wg-card-save:hover { background: rgba(0, 0, 0, 0.7); color: #fff; }
.wg-card-save.saved {
  background: var(--accent);
  color: #111;
}
.wg-card-res {
  position: absolute;
  top: 8px; right: 8px;
  height: 17px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  display: flex; align-items: center;
}

/* Mobile: overlay always slightly visible */
@media (hover: none) {
  .wg-card-overlay { opacity: 1; }
  .wg-card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 35%, transparent 55%); }
}

/* ── Collection card ────────────────────────────────────── */
.wg-col-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.wg-col-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-img);
}
.wg-col-card:hover .wg-col-card-img { transform: scale(1.04); }
.wg-col-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.wg-col-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.wg-col-card-meta { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 300; }

/* ── Featured collection ────────────────────────────────── */
.wg-featured-col {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21/9;
  background: rgba(255, 255, 255, 0.03);
  margin: 36px 0;
}
.wg-featured-col-img { width: 100%; height: 100%; object-fit: cover; }
.wg-featured-col-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}
.wg-featured-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.wg-featured-col-title {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  max-width: 480px;
}
.wg-featured-col-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 380px;
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 300;
}
.wg-featured-col-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  transition: background var(--t), border-color var(--t);
  width: fit-content;
}
.wg-featured-col-link:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); }

/* ── Sort / filter bar ──────────────────────────────────── */
.wg-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gap-grid) 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.wg-sort-bar::-webkit-scrollbar { display: none; }
.wg-sort-pills { display: flex; gap: 4px; flex-shrink: 0; }
.wg-sort-pill {
  height: 28px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}
.wg-sort-pill:hover { color: var(--text-sec); border-color: var(--border); }
.wg-sort-pill.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Section headers ────────────────────────────────────── */
.wg-section { padding: 40px 0; }
.wg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 var(--gap-grid);
}
.wg-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.wg-section-link {
  font-size: 12px;
  color: var(--text-ultra);
  transition: color var(--t);
  letter-spacing: 0.01em;
}
.wg-section-link:hover { color: var(--accent); }

/* ── Horizontal scroll row ──────────────────────────────── */
.wg-hscroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--gap-grid);
}
.wg-hscroll::-webkit-scrollbar { display: none; }
.wg-hscroll-inner { display: flex; gap: 12px; }

/* ── Uploader strip ─────────────────────────────────────── */
.wg-uploader-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
}
.wg-uploader-chip img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: border-color var(--t), transform 0.3s var(--ease-img);
}
.wg-uploader-chip:hover img { border-color: var(--accent); transform: scale(1.05); }
.wg-uploader-chip-name {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Pill tags ──────────────────────────────────────────── */
.wg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wg-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--t), border-color var(--t);
}
.wg-tag:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }

/* ── Single wallpaper ───────────────────────────────────── */
.wg-single-hero {
  width: 100%;
  background: #000;
  line-height: 0;
}
.wg-single-hero img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  margin: 0 auto;
}
.wg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 11px;
  color: var(--text-ultra);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wg-breadcrumb::-webkit-scrollbar { display: none; }
.wg-breadcrumb a { color: var(--text-ultra); transition: color var(--t); }
.wg-breadcrumb a:hover { color: var(--text-sec); }
.wg-breadcrumb-sep { opacity: 0.35; }
.wg-breadcrumb span:last-child { color: var(--text-muted); }

.wg-single-body { padding: 24px 20px 80px; max-width: 820px; margin: 0 auto; }
.wg-single-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text);
}
.wg-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 28px;
}
.wg-stat { display: flex; flex-direction: column; gap: 3px; }
.wg-stat-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.wg-stat-label {
  font-size: 10px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Download buttons */
.wg-download-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.wg-btn-dl-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  background: var(--accent);
  color: #0e0e0e;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  letter-spacing: 0.01em;
}
.wg-btn-dl-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(141, 255, 26, 0.25);
}
.wg-btn-dl-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  background: transparent;
  transition: color var(--t), border-color var(--t);
}
.wg-btn-dl-secondary:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.wg-dl-secondary-group { display: flex; gap: 8px; }
.wg-dl-secondary-group .wg-btn-dl-secondary { flex: 1; }

/* Save button */
.wg-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  background: transparent;
  margin-bottom: 28px;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.wg-save-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.wg-save-btn.saved {
  color: var(--accent);
  border-color: rgba(141, 255, 26, 0.3);
  background: var(--accent-dim);
}

/* Uploader block */
.wg-uploader-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.wg-uploader-block img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.wg-uploader-block-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  transition: color var(--t);
}
.wg-uploader-block-name:hover { color: var(--accent); }
.wg-uploader-block-meta {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
}

/* Meta sections */
.wg-meta-section { margin-bottom: 20px; }
.wg-meta-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ultra);
  margin-bottom: 8px;
}

/* Share row */
.wg-share-row {
  display: flex;
  gap: 6px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.wg-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--t), border-color var(--t);
}
.wg-share-btn:hover { color: var(--text-sec); border-color: var(--border-mid); }

/* ── Resolution section ─────────────────────────────────── */
.wg-res-section { margin-top: 28px; }
.wg-res-tabs-head {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.wg-res-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  transition: color var(--t), background var(--t), border-color var(--t);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.wg-res-tab:hover { color: var(--text-sec); border-color: var(--border-mid); }
.wg-res-tab.active {
  color: var(--accent);
  border-color: rgba(141, 255, 26, 0.35);
  background: var(--accent-dim);
}
.wg-res-tab-panel { display: none; margin-top: 2px; }
.wg-res-tab-panel.active { display: block; }
.wg-res-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-sec);
  font-size: 13px;
  transition: color var(--t);
  position: relative;
  overflow: hidden;
}
.wg-res-row:last-child { border-bottom: none; }
.wg-res-row:hover { color: var(--text); }
.wg-res-row:hover .wg-res-dl-icon { opacity: 1; }
.wg-res-val {
  font-weight: 500;
  color: var(--text);
  min-width: 96px;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.wg-res-label {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}
.wg-res-dl-icon {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--t);
}

/* Report */
.wg-report-wrap { margin-top: 14px; }
.wg-report-btn {
  font-size: 11px;
  color: var(--text-ultra);
  transition: color var(--t);
  letter-spacing: 0.01em;
}
.wg-report-btn:hover { color: var(--text-muted); }
.wg-report-confirm {
  display: none;
  margin-top: 8px;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-sec);
  gap: 12px;
  align-items: center;
}
.wg-report-confirm.open { display: flex; }
.wg-report-confirm-yes { color: #ef4444; font-weight: 500; cursor: pointer; }
.wg-report-confirm-cancel { color: var(--text-muted); cursor: pointer; }

/* ── Sticky download bar (mobile) ───────────────────────── */
.wg-sticky-dl {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: rgba(14, 14, 14, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 150;
  gap: 8px;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.wg-sticky-dl.visible { transform: translateY(0); }
.wg-sticky-dl-btn {
  flex: 1;
  height: 44px;
  background: var(--accent);
  color: #0e0e0e;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wg-sticky-dl-save {
  width: 44px; height: 44px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--text-sec);
  flex-shrink: 0;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.wg-sticky-dl-save.saved { color: var(--accent); border-color: rgba(141, 255, 26, 0.3); }

/* ── FAB ────────────────────────────────────────────────── */
.wg-fab {
  display: none;
  position: fixed;
  bottom: 22px; right: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #0e0e0e;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  z-index: 140;
  box-shadow: 0 4px 20px rgba(141, 255, 26, 0.28);
  transition: background var(--t), transform var(--t);
}
.wg-fab:hover { background: var(--accent-hover); transform: scale(1.06); }

/* ── Save modal ─────────────────────────────────────────── */
.wg-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wg-modal-backdrop.open { display: flex; }
.wg-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.wg-modal-title { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.wg-modal-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.wg-modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.wg-modal-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.wg-modal-footer { padding: 12px 18px; border-top: 1px solid var(--border); }

.wg-col-list { display: flex; flex-direction: column; gap: 2px; }
.wg-col-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t);
  border-left: 3px solid transparent;
}
.wg-col-list-item:hover { background: rgba(255, 255, 255, 0.04); }
.wg-col-list-item.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.wg-col-list-icon { color: var(--text-ultra); font-size: 13px; width: 16px; text-align: center; }
.wg-col-list-name { font-size: 13px; flex: 1; }
.wg-col-list-count { font-size: 11px; color: var(--text-ultra); }
.wg-col-list-check { color: var(--accent); font-size: 13px; display: none; }
.wg-col-list-item.selected .wg-col-list-check { display: block; }

.wg-create-col-form { margin-top: 10px; }
.wg-create-col-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 2px;
  transition: color var(--t);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  width: fit-content;
  margin-top: 8px;
}
.wg-create-col-toggle:hover { color: var(--text-sec); border-color: var(--border-mid); }
.wg-create-col-fields {
  display: none;
  margin-top: 12px;
  flex-direction: column;
  gap: 10px;
}
.wg-create-col-fields.open { display: flex; }
.wg-field { display: flex; flex-direction: column; gap: 5px; }
.wg-field label { font-size: 11px; color: var(--text-ultra); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.wg-field input,
.wg-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.wg-field input:focus,
.wg-field textarea:focus { border-color: rgba(141, 255, 26, 0.4); box-shadow: var(--accent-glow); }
.wg-field textarea { resize: vertical; min-height: 68px; }

.wg-btn-primary {
  width: 100%;
  height: 40px;
  background: var(--accent);
  color: #0e0e0e;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background var(--t), transform var(--t);
  letter-spacing: 0.01em;
}
.wg-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ── Submit page ────────────────────────────────────────── */
.wg-submit-page { max-width: 600px; margin: 0 auto; padding: 40px 20px 80px; }
.wg-submit-page h1 { margin-bottom: 8px; }
.wg-submit-page > p { font-size: 14px; margin-bottom: 32px; font-weight: 300; }

.wg-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 56px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  margin-bottom: 28px;
  position: relative;
}
.wg-dropzone:hover,
.wg-dropzone.drag-over {
  border-color: rgba(141, 255, 26, 0.4);
  background: var(--accent-dim);
}
.wg-dropzone-icon { font-size: 32px; color: rgba(255, 255, 255, 0.12); margin-bottom: 12px; }
.wg-dropzone-text { font-size: 14px; color: var(--text-sec); margin-bottom: 4px; font-weight: 400; }
.wg-dropzone-sub { font-size: 12px; color: var(--text-ultra); font-weight: 300; }
.wg-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.wg-preview-area {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.wg-preview-area.visible { display: flex; }
.wg-preview-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}
.wg-preview-specs { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.wg-preview-spec { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wg-preview-spec-val { font-size: 13px; font-weight: 500; }
.wg-preview-spec-label { font-size: 10px; color: var(--text-ultra); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 300; }

.wg-submit-form { display: flex; flex-direction: column; gap: 16px; }
.wg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wg-rights {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.55;
  font-weight: 300;
}
.wg-rights input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

.wg-progress-wrap { display: none; flex-direction: column; gap: 7px; margin-top: 8px; }
.wg-progress-wrap.visible { display: flex; }
.wg-progress-bar { height: 3px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; overflow: hidden; }
.wg-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0; transition: width 0.2s ease; }
.wg-progress-label { font-size: 11px; color: var(--text-ultra); font-weight: 300; }

.wg-submit-success { display: none; text-align: center; padding: 60px 20px; }
.wg-submit-success.visible { display: block; }
.wg-submit-success-icon { font-size: 40px; color: var(--accent); margin-bottom: 14px; }
.wg-submit-success h2 { margin-bottom: 6px; font-size: 1.2rem; }
.wg-submit-success p { margin-bottom: 24px; font-size: 14px; font-weight: 300; }

/* ── Profile page ───────────────────────────────────────── */
.wg-profile-header {
  padding: 48px 20px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.wg-profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 auto 14px;
}
.wg-profile-name { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; font-weight: 400; letter-spacing: -0.03em; }
.wg-profile-bio { font-size: 13px; color: var(--text-sec); max-width: 440px; margin: 0 auto 20px; font-weight: 300; line-height: 1.6; }
.wg-profile-stats { display: flex; justify-content: center; gap: 36px; }
.wg-profile-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wg-profile-stat-val { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.wg-profile-stat-label { font-size: 10px; font-weight: 300; color: rgba(255, 255, 255, 0.35); text-transform: uppercase; letter-spacing: 0.08em; }

.wg-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--strip-h));
  background: var(--bg);
  z-index: 10;
}
.wg-tab {
  height: 44px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t), border-color var(--t);
}
.wg-tab.active { color: var(--text); border-color: var(--text); }
.wg-tab-panel { display: none; }
.wg-tab-panel.active { display: block; }

/* ── Collection page ────────────────────────────────────── */
.wg-col-header {
  position: relative;
  height: clamp(200px, 36vw, 380px);
  overflow: hidden;
}
.wg-col-header-img { width: 100%; height: 100%; object-fit: cover; }
.wg-col-header-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.wg-col-header-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: #fff; letter-spacing: -0.03em; margin-bottom: 6px; font-weight: 400; }
.wg-col-header-desc { font-size: 13px; color: rgba(255,255,255,0.5); max-width: 460px; margin-bottom: 12px; font-weight: 300; }
.wg-col-header-meta { display: flex; align-items: center; gap: 10px; }
.wg-col-header-by { font-size: 12px; color: rgba(255,255,255,0.5); }
.wg-follow-btn {
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  transition: background var(--t), border-color var(--t);
}
.wg-follow-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); }

/* ── 404 page ───────────────────────────────────────────── */
.wg-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}
.wg-404-num {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.07);
  margin-bottom: 20px;
  user-select: none;
}
.wg-404-title { font-size: 1.4rem; font-weight: 400; margin-bottom: 8px; letter-spacing: -0.02em; }
.wg-404-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; font-weight: 300; }
.wg-404-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────── */
.wg-footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 20px 24px;
}
.wg-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.wg-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
.wg-footer-wordmark { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.05em; margin-bottom: 7px; }
.wg-footer-wordmark .accent { color: var(--accent); }
.wg-footer-tagline { font-size: 12px; font-weight: 300; color: var(--text-ultra); }
.wg-footer-col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}
.wg-footer-links { display: flex; flex-direction: column; gap: 10px; }
.wg-footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--t);
}
.wg-footer-links a:hover { color: rgba(255, 255, 255, 0.8); }
.wg-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Search results ─────────────────────────────────────── */
.wg-search-header { padding: 32px 20px 20px; }
.wg-search-query { font-size: 13px; color: var(--text-muted); margin-top: 5px; font-weight: 300; }
.wg-search-query span { color: var(--text-sec); font-weight: 400; }
.wg-no-results { padding: 60px 20px; text-align: center; }
.wg-no-results-icon { font-size: 36px; color: rgba(255, 255, 255, 0.1); margin-bottom: 14px; }
.wg-no-results h2 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 400; }

/* ── Resolution page ────────────────────────────────────── */
.wg-res-page-header {
  padding: 32px 20px 22px;
  border-bottom: 1px solid var(--border);
}
.wg-res-page-desc { font-size: 13px; color: var(--text-sec); margin-top: 6px; font-weight: 300; }

/* ── Pagination ─────────────────────────────────────────── */
.wg-pagination {
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 32px 20px;
}
.wg-pagination a,
.wg-pagination span {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--t);
}
.wg-pagination a:hover { border-color: var(--border); color: var(--text-sec); }
.wg-pagination .current {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-mid);
  color: var(--text);
}

/* ── Scroll to top ──────────────────────────────────────── */
.wg-scroll-top {
  display: none;
  position: fixed;
  bottom: 26px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 13px;
  align-items: center;
  justify-content: center;
  z-index: 130;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.wg-scroll-top.visible { display: flex; }
.wg-scroll-top:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-sec);
}

/* ── Ripple ─────────────────────────────────────────────── */
[data-ripple] { position: relative; overflow: hidden; }
.wg-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  animation: wg-ripple-anim 0.5s linear;
  pointer-events: none;
}
@keyframes wg-ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Loading skeleton ───────────────────────────────────── */
.wg-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: wg-shimmer 1.6s infinite;
  border-radius: var(--radius-card);
  aspect-ratio: 16/9;
}
@keyframes wg-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Sentinel ───────────────────────────────────────────── */
.wg-sentinel { height: 1px; }

/* ── Inline notice ──────────────────────────────────────── */
.wg-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin: 14px 0;
}
.wg-notice-info { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(141,255,26,0.2); }
.wg-notice-error { background: rgba(239,68,68,0.07); color: #f87171; border: 1px solid rgba(239,68,68,0.18); }

/* ── Select ─────────────────────────────────────────────── */
select.wg-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 32px 9px 12px;
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--t);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L1 3h8z' fill='rgba(255,255,255,0.25)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  width: 100%;
}
select.wg-select:focus { border-color: rgba(141,255,26,0.4); box-shadow: var(--accent-glow); }

/* ── Tablet (768px+) ────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --gap-grid: 12px; }
  .wg-grid { grid-template-columns: repeat(3, 1fr); }
  .wg-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .wg-footer-bottom { flex-direction: row; justify-content: space-between; }
  .wg-download-group { flex-direction: row; flex-wrap: wrap; }
  .wg-btn-dl-primary { flex: 1; min-width: 200px; }
  .wg-dl-secondary-group { flex: 1; }
}

/* ── Desktop (1024px+) ──────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --gap-grid: 14px; }
  .wg-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--gap-grid) 20px;
    max-width: var(--max-w);
    margin: 0 auto;
  }
  .wg-sort-bar { padding: 16px 20px 0; max-width: var(--max-w); margin: 0 auto; }
  .wg-device-shortcuts { display: flex; }
  .wg-featured-col { margin: 40px 20px; }
}

/* ── Mobile only ────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --gap-grid: 6px; }
  .wg-device-shortcuts { display: none; }
  .wg-btn-submit { display: none; }
  .wg-search-wrap:not(.mobile-search-panel) { display: none; }
  .wg-search-icon-btn { display: flex; }
  .wg-fab { display: flex; }
  .wg-sticky-dl { display: flex; }
  .wg-single-hero img { max-height: 55vw; }
  .wg-form-row { grid-template-columns: 1fr; }
  .wg-featured-col { aspect-ratio: 4/3; }
  .wg-featured-col-body {
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 60%);
    justify-content: flex-end;
    padding: 18px;
  }
  .wg-featured-col-title { font-size: 1.1rem; }
  .wg-featured-col-desc { display: none; }
  .wg-profile-stats { gap: 18px; }
  .wg-single-body { padding: 18px 16px 100px; }
  .wg-grid { padding: var(--gap-grid); }
  .wg-res-tabs-head { gap: 3px; }
  .wg-res-tab { font-size: 11px; padding: 5px 10px; }
}

/* ── Mobile search expanded ─────────────────────────────── */
@media (max-width: 767px) {
  .mobile-search-panel.mobile-open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    z-index: 101;
  }
}
