/* ===== IconStash — design system ===== */
:root {
  --brand-1: #6d5efc;
  --brand-2: #9d4edd;
  --brand-3: #ff5c8a;
  --brand-grad: linear-gradient(135deg, #6d5efc 0%, #9d4edd 50%, #ff5c8a 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(109,94,252,.12), rgba(255,92,138,.12));

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-sunken: #eef0f7;
  --border: #e6e8f0;
  --border-strong: #d4d7e3;
  --text: #14152a;
  --text-soft: #5a5d72;
  --text-faint: #8a8da3;
  --shadow-sm: 0 1px 2px rgba(20,21,42,.06), 0 1px 3px rgba(20,21,42,.05);
  --shadow-md: 0 6px 24px rgba(20,21,42,.08);
  --shadow-lg: 0 18px 50px rgba(20,21,42,.14);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --header-h: 66px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
[data-theme="dark"] {
  --bg: #0e0f1a;
  --bg-soft: #14162a;
  --bg-elev: #181a2e;
  --bg-sunken: #1f2238;
  --border: #262a44;
  --border-strong: #353a5c;
  --text: #f1f2fb;
  --text-soft: #aab0cc;
  --text-faint: #757a9c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.55);
  --brand-grad-soft: linear-gradient(135deg, rgba(109,94,252,.18), rgba(255,92,138,.16));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(109,94,252,.25); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--text-soft); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-grad); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(109,94,252,.4);
}
.logo .mark svg { width: 20px; height: 20px; color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 9px; font-weight: 550; font-size: 14.5px;
  color: var(--text-soft); transition: .18s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.active { color: var(--brand-1); background: var(--brand-grad-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text-soft); display: grid; place-items: center;
  transition: .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px;
  transition: .18s var(--ease); background: var(--bg-elev); color: var(--text);
}
.btn svg { width: 17px; height: 17px; }
.btn.ghost { border-color: var(--border); color: var(--text-soft); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn.primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(109,94,252,.35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(109,94,252,.45); }
.btn.lg { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.burger { display: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: 66px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(109,94,252,.22), transparent 70%),
    radial-gradient(560px 320px at 85% 0%, rgba(255,92,138,.20), transparent 70%),
    radial-gradient(520px 320px at 55% 30%, rgba(157,78,221,.16), transparent 70%);
  filter: blur(4px);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 850; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-soft); max-width: 680px; margin: 0 auto 30px; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev);
  font-size: 13.5px; font-weight: 600; color: var(--text-soft); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #21c97a; box-shadow: 0 0 0 4px rgba(33,201,122,.18); }

/* ===== Hero marquee ===== */
.marquee-band {
  margin-top: 54px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-row { display: flex; gap: 16px; width: max-content; animation: mq 46s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 58s; }
.marquee-band:hover .mq-row { animation-play-state: paused; }
.mq-tile {
  width: 60px; height: 60px; flex: none; border-radius: 17px; display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: .18s var(--ease);
}
.mq-tile:hover { transform: translateY(-4px) scale(1.07); box-shadow: var(--shadow-md); border-color: var(--brand-1); }
.mq-tile img { width: 32px; height: 32px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ===== Section heading icons ===== */
.h-ico { display: inline-grid; place-items: center; vertical-align: -5px; margin-right: 12px; }
.h-ico img { width: 30px; height: 30px; filter: drop-shadow(0 2px 5px rgba(20,21,42,.16)); }

/* ===== Search bar ===== */
.searchbar {
  display: flex; align-items: center; gap: 10px; background: var(--bg-elev);
  border: 1.5px solid var(--border-strong); border-radius: 16px; padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-md); max-width: 660px; margin: 0 auto; transition: .2s var(--ease);
}
.searchbar:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(109,94,252,.16), var(--shadow-md); }
.searchbar svg.s-ico { width: 22px; height: 22px; color: var(--text-faint); flex: none; }
.searchbar input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 16.5px; padding: 8px 0;
}
.searchbar input::placeholder { color: var(--text-faint); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.tag {
  font-size: 13px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text-soft); font-weight: 550; transition: .16s var(--ease);
}
.tag:hover { color: var(--brand-1); border-color: var(--brand-1); background: var(--brand-grad-soft); }

/* ===== Stats strip ===== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 48px auto 0; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); }
.stat .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 850; letter-spacing: -.02em; }
.stat .lbl { color: var(--text-soft); font-size: 13.5px; font-weight: 600; margin-top: 2px; }

/* ===== Sections ===== */
section.block { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; letter-spacing: -.02em; font-weight: 800; }
.sec-head p { margin: 6px 0 0; color: var(--text-soft); }
.link-more { color: var(--brand-1); font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.link-more svg { width: 16px; height: 16px; }

/* ===== Category tiles ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; background: var(--bg-elev); overflow: hidden; transition: .22s var(--ease);
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card .cc-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-grad-soft);
}
.cat-card .cc-ico img { width: 30px; height: 30px; }
.cat-card .cc-ico.color {
  width: 62px; height: 62px; border-radius: 18px;
  background: var(--bg-soft); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), var(--shadow-sm);
}
[data-theme="dark"] .cat-card .cc-ico.color { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-sm); }
.cat-card .cc-ico.color img { width: 40px; height: 40px; filter: drop-shadow(0 3px 6px rgba(20,21,42,.14)); }
.cat-card:hover .cc-ico.color { transform: scale(1.04) rotate(-2deg); transition: .25s var(--ease); }
.cat-card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; }
.cat-card p { margin: 0; font-size: 14px; color: var(--text-soft); }
.cat-card .cc-count { margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--brand-1); }
.cat-card .glow { position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--brand-grad); opacity: .10; filter: blur(8px); }

/* ===== Icon grid ===== */
.icon-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
}
.icon-cell {
  position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-elev); display: grid; place-items: center; cursor: pointer;
  transition: .16s var(--ease); padding: 14px;
}
.icon-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-1); }
.icon-cell img { width: 100%; height: 100%; object-fit: contain; }
.icon-cell .fav-dot { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; opacity: 0; transition: .15s; color: var(--text-faint); }
.icon-cell:hover .fav-dot { opacity: 1; }
.icon-cell.is-fav .fav-dot { opacity: 1; color: var(--brand-3); }
.icon-cell .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 10.5px;
  color: var(--text-faint); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: .15s;
}
.icon-cell:hover .nm { opacity: 1; }

/* ===== Pack cards ===== */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pack-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
  padding: 18px; transition: .2s var(--ease); box-shadow: var(--shadow-sm);
}
.pack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-1); }
.pack-card .pc-samples { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.pack-card .pc-samples img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pack-card h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 7px; }
.pack-card .pc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--text-soft); }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-soft); }
.badge.color { background: linear-gradient(135deg,#ffd36e,#ff7eb3); color: #4a2b00; }

/* ===== Toolbar / filters ===== */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.field {
  display: flex; align-items: center; gap: 8px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 11px; padding: 9px 13px; font-size: 14.5px; color: var(--text);
}
.field svg { width: 17px; height: 17px; color: var(--text-faint); }
.field input, .field select { border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14.5px; min-width: 90px; }
.field.grow { flex: 1; min-width: 220px; }
.field.grow input { width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev);
  font-size: 13.5px; font-weight: 600; color: var(--text-soft); transition: .15s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.swatch-row { display: flex; gap: 8px; align-items: center; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: .15s; padding: 0; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--text); box-shadow: 0 0 0 3px var(--brand-grad-soft); }

/* ===== Modal ===== */
.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,11,22,.55);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: .2s var(--ease);
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(820px, 100%); max-height: 90vh; overflow: auto; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: .22s var(--ease);
}
.modal-back.open .modal { transform: none; }
.modal-grid { display: grid; grid-template-columns: 320px 1fr; }
.modal-preview {
  background: var(--bg-soft); display: grid; place-items: center; padding: 36px; position: relative;
  border-right: 1px solid var(--border);
}
.modal-preview .stage {
  width: 200px; height: 200px; border-radius: 18px; background:
    linear-gradient(45deg, var(--bg-sunken) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(-45deg, var(--bg-sunken) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(45deg, transparent 75%, var(--bg-sunken) 75%) -10px 0/20px 20px,
    linear-gradient(-45deg, transparent 75%, var(--bg-sunken) 75%) -10px 0/20px 20px;
  display: grid; place-items: center; border: 1px solid var(--border);
}
.modal-preview .stage img { width: 64%; height: 64%; object-fit: contain; transition: .15s; }
.modal-body { padding: 24px 26px; }
.modal-body h3 { margin: 0 0 2px; font-size: 21px; letter-spacing: -.01em; word-break: break-word; }
.modal-body .sub { color: var(--text-soft); font-size: 13.5px; margin-bottom: 18px; }
.ctrl { margin-bottom: 16px; }
.ctrl label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.ctrl input[type=range] { width: 100%; accent-color: var(--brand-1); }
.ctrl .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.modal-actions .btn { justify-content: center; }
.modal-close { position: absolute; top: 14px; right: 14px; }

/* ===== Editor page ===== */
.editor-layout { display: grid; grid-template-columns: 280px 1fr 300px; gap: 22px; align-items: start; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); }
.editor-canvas { min-height: 460px; display: grid; place-items: center; position: relative; }
.editor-canvas .stage {
  width: 320px; height: 320px; border-radius: 22px; display: grid; place-items: center;
  background:
    linear-gradient(45deg, var(--bg-sunken) 25%, transparent 25%) -12px 0/24px 24px,
    linear-gradient(-45deg, var(--bg-sunken) 25%, transparent 25%) -12px 0/24px 24px,
    linear-gradient(45deg, transparent 75%, var(--bg-sunken) 75%) -12px 0/24px 24px,
    linear-gradient(-45deg, transparent 75%, var(--bg-sunken) 75%) -12px 0/24px 24px;
  border: 1px solid var(--border);
}
.editor-canvas .stage img { transition: .12s; }
.preset-pick { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; max-height: 300px; overflow: auto; }
.preset-pick .icon-cell { aspect-ratio: 1; padding: 10px; }

/* ===== Banner / CTA ===== */
.cta {
  border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; position: relative; overflow: hidden;
  background: var(--brand-grad); color: #fff;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -.02em; }
.cta p { margin: 0 auto 26px; max-width: 560px; opacity: .92; font-size: 17px; }
.cta .btn.primary { background: #fff; color: var(--brand-1); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.cta::after { content:""; position:absolute; inset:0; background: radial-gradient(400px 200px at 80% -20%, rgba(255,255,255,.25), transparent 60%); }

/* ===== Tools / feature cards ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); padding: 26px; box-shadow: var(--shadow-sm);
  transition: .2s var(--ease);
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat .fi { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-grad-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--brand-1); }
.feat .fi svg { width: 26px; height: 26px; }
.feat .fi.color {
  background: var(--bg-soft); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), var(--shadow-sm);
}
[data-theme="dark"] .feat .fi.color { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-sm); }
.feat .fi.color img { width: 34px; height: 34px; filter: drop-shadow(0 3px 6px rgba(20,21,42,.14)); }
.feat:hover .fi.color { transform: scale(1.06); transition: .22s var(--ease); }
.feat h3 { margin: 0 0 8px; font-size: 18px; }
.feat p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* ===== Pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.price-card.feat-plan { border-color: var(--brand-1); box-shadow: 0 0 0 2px var(--brand-grad-soft), var(--shadow-md); }
.price-card .plan { font-weight: 700; font-size: 15px; color: var(--brand-1); text-transform: uppercase; letter-spacing: .05em; }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.plan-ico img { width: 32px; height: 32px; filter: drop-shadow(0 2px 5px rgba(20,21,42,.14)); }
.price-card .price { font-size: 42px; font-weight: 850; letter-spacing: -.02em; margin: 10px 0 2px; }
.price-card .price small { font-size: 15px; color: var(--text-soft); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--text-soft); }
.price-card li svg { width: 18px; height: 18px; color: #21c97a; flex: none; margin-top: 2px; }
.ribbon { position: absolute; top: 18px; right: 18px; background: var(--brand-grad); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; padding: 50px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 0 0 14px; }
.foot-grid a { display: block; color: var(--text-soft); font-size: 14px; padding: 5px 0; transition: .15s; }
.foot-grid a:hover { color: var(--brand-1); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; }

/* ===== Misc ===== */
.skeleton { background: linear-gradient(100deg, var(--bg-sunken) 30%, var(--bg-soft) 50%, var(--bg-sunken) 70%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--brand-1); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty svg { width: 56px; height: 56px; color: var(--text-faint); margin-bottom: 14px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 200; display: flex; gap: 9px; align-items: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: #21c97a; }
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; letter-spacing: -.02em; }
.page-head p { color: var(--text-soft); font-size: 17px; margin: 0; max-width: 640px; }
.count-line { color: var(--text-faint); font-size: 14px; margin: 0 0 18px; font-weight: 600; }
.load-more-wrap { text-align: center; margin-top: 32px; }
.anim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 16px; }
.anim-cell { aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); display: grid; place-items: center; padding: 22px; transition: .18s var(--ease); cursor: pointer; }
.anim-cell:hover { border-color: var(--brand-1); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.anim-cell img { width: 100%; height: 100%; }

/* ===== Share buttons (modal) ===== */
.share-row { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.share-lbl { font-size: 12.5px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.share-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-soft); display: grid; place-items: center; transition: .16s var(--ease);
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share-btn:hover { background: var(--brand-1); }
.share-btn.x:hover { background: #0f1419; }
.share-btn.reddit:hover { background: #ff4500; }

/* ===== Icon of the Day ===== */
.daily-card {
  display: flex; align-items: center; gap: 24px; padding: 24px 28px; border-radius: var(--radius-lg);
  background: var(--brand-grad-soft); border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.daily-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--brand-grad); opacity: .12; filter: blur(6px); }
.daily-ico {
  width: 96px; height: 96px; flex: none; border-radius: 22px; display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.daily-ico img { width: 60px; height: 60px; filter: drop-shadow(0 4px 10px rgba(20,21,42,.18)); }
.daily-body { flex: 1; min-width: 0; }
.daily-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-1); }
.daily-eyebrow svg { width: 15px; height: 15px; }
.daily-body h3 { margin: 6px 0 4px; font-size: 26px; letter-spacing: -.02em; text-transform: capitalize; }
.daily-body p { margin: 0 0 14px; color: var(--text-soft); font-size: 14.5px; }
.daily-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.daily-actions .btn svg { width: 17px; height: 17px; }

/* ===== Share IconStash CTA ===== */
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn.cta-share { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.cta .btn.cta-share:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }
.cta .btn.cta-share span { display: inline-grid; place-items: center; }
.cta .btn.cta-share svg { width: 17px; height: 17px; }

/* ===== Shared-collection import card ===== */
.import-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin: 8px 0 26px; border-radius: var(--radius);
  background: var(--brand-grad-soft); border: 1px solid var(--brand-1); box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.import-emoji img { width: 46px; height: 46px; }
.import-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.import-txt strong { font-size: 17px; }
.import-txt span { color: var(--text-soft); font-size: 14px; }
.import-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.import-actions .btn svg { width: 17px; height: 17px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand-1); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 650; font-size: 14px; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9);
  transition: .22s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* ===== Image error placeholder ===== */
.img-error { opacity: 0; }
.icon-cell:has(.img-error)::after,
.anim-cell:has(.img-error)::after {
  content: ""; position: absolute; inset: 30%; border-radius: 6px;
  background: repeating-linear-gradient(45deg, var(--bg-sunken), var(--bg-sunken) 4px, transparent 4px, transparent 8px);
}

/* ===== Recent searches ===== */
.recent-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 22px; }
.recent-row .lbl { font-size: 12.5px; color: var(--text-faint); font-weight: 600; }
.recent-row .clear-recent { font-size: 12.5px; color: var(--text-faint); border: 0; background: none; text-decoration: underline; cursor: pointer; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .editor-layout { grid-template-columns: 1fr; }
  .feat-grid, .price-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-preview { border-right: 0; border-bottom: 1px solid var(--border); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-actions .desktop-only { display: none; }
  .burger { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 20px; }
}
