﻿/* Idei.club — тёмный современный дизайн */
:root {
  --bg: #0b0c10;
  --bg-2: #13151b;
  --panel: #15171e;
  --panel-2: #1b1e26;
  --text: #f2f4f8;
  --muted: #9098a9;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #ff6a1a;
  --accent-hover: #ff8c42;
  --accent-2: #e04e00;
  --accent-hot: #ff8c42;
  --danger: #ff5d7a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font);
  --logo: "Syne", "Outfit", system-ui, sans-serif;
}

body {
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #fff; }

h1, h2, h3,
.section-head h2,
.page-head h1,
.collection-hero-content h1 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* —— Header —— */
.site-header {
  background: rgba(11, 12, 16, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { padding: .7rem 0; gap: 1rem; }

.brand {
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-text {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-text span { color: var(--accent); }
.brand-mark { filter: none; }

.header-search {
  height: 42px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.header-search:focus-within {
  border-color: rgba(255, 106, 26, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.12);
}
.header-search input { padding: 0 1rem; height: 100%; }
.header-search button {
  height: 100%;
  color: var(--accent);
  font-weight: 600;
}

.header-nav { gap: .5rem; }
.nav-toggle,
.header-nav > a:not(.btn),
.header-nav .btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  min-height: 40px;
  padding: 0 .95rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.nav-toggle {
  gap: .4rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.header-nav > a:not(.btn) {
  color: var(--text);
  border: 1px solid transparent;
}
.header-nav > a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mega-nav {
  background: rgba(13, 14, 19, 0.98);
  border-top-color: var(--line);
}
.mega-panel { padding-bottom: .65rem !important; }
.mega-grid { padding-left: .65rem !important; }
.mega-col {
  padding: .42rem .75rem .18rem !important;
  gap: .25rem !important;
}
.mega-col > summary.mega-title {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.mega-title a {
  color: var(--text);
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.mega-title a:hover { color: var(--accent); }
.mega-count {
  line-height: 1 !important;
  align-self: center;
}
.mega-links a:hover { color: var(--accent); }

/* —— Buttons: one height, one radius, flat —— */
.btn {
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #1a1008;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  color: #1a1008;
  filter: none;
  transform: none;
  box-shadow: none;
}
.btn-sm {
  min-height: 36px;
  padding: 0 .9rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #ff7a92; color: #fff; }

/* —— Home hero —— */
.hero-home {
  min-height: 0;
  display: block;
  border-bottom: 0;
}
.hero-home .hero-shot {
  opacity: .62;
  filter: saturate(1.08) contrast(1.04);
}
.hero-home .hero-shade {
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(11, 12, 16, 0.22), rgba(11, 12, 16, 0.72) 75%),
    linear-gradient(180deg, rgba(11, 12, 16, 0.15) 0%, var(--bg) 100%);
}
.hero-home .hero-grid { display: none; }
.hero-home .hero-content {
  padding: 5.5rem 0 4.25rem;
  text-align: center;
  animation: none;
}
.hero-home .hero-brand-row { justify-content: center; margin-bottom: .75rem; }
.brand-hero {
  font-family: var(--font);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: none;
}
.hero-lead {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: #c9cfdb;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}
.hero-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 640px;
  height: 58px;
  margin: 0 auto;
  padding: 6px 6px 6px 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(19, 21, 27, 0.88);
  backdrop-filter: blur(10px);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search:focus-within {
  border-color: rgba(255, 106, 26, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.12);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}
.hero-search input::placeholder { color: #7d8597; }
.hero-search .btn { min-height: 44px; height: 44px; padding: 0 1.4rem; }
.hero-colors-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-top: 1.4rem;
}
.hero-colors-label {
  color: var(--muted);
  font-size: .88rem;
}
.hero-colors-row .color-filter {
  margin: 0;
  padding: 0;
  gap: .5rem;
}

/* Flat color dots everywhere */
.color-swatch {
  width: 20px;
  height: 20px;
  background: var(--swatch, #888);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.color-swatch:hover {
  transform: scale(1.18);
  filter: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(255, 255, 255, 0.5);
}
.color-swatch.is-active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent);
}

/* —— Sections —— */
.section { padding: 3.25rem 0; }
.section-soft,
.section-catalog-map,
.section-fresh {
  background: none;
  border: 0;
}
.section-catalog-map::before { display: none; }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 {
  margin: 0 0 .3rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}
.section-head p { color: var(--muted); font-size: .95rem; }
.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.catalog-map-kicker { display: none; }
.section-link {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.section-link::after { content: " →"; }
.section-link:hover { color: var(--accent); }

@keyframes ideiRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* —— Catalog sections: equal tiles, two even rows —— */
.section-catalog-map { padding-block: 3rem; }
.catalog-map-head { margin-bottom: 1.25rem; }
.catalog-map {
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr));
  gap: 12px;
}
.catalog-map-card {
  position: relative;
  grid-column: auto;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  border: 1px solid var(--line);
  box-shadow: none;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease;
}
.catalog-map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 26, 0.55);
  color: #fff !important;
}
.catalog-map-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--panel-2);
}
.catalog-map-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.catalog-map-card:hover .catalog-map-media img { transform: scale(1.05); }
.catalog-map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 106, 26, 0.35);
}
.catalog-map-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 12, 0.92) 100%);
}
.catalog-map-shine,
.catalog-map-blurb,
.catalog-map-go { display: none; }
.catalog-map-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .15rem;
  height: 100%;
  padding: .85rem .9rem;
}
.catalog-map-title {
  order: 1;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.catalog-map-meta {
  order: 2;
  display: block;
  padding: 0;
  background: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.catalog-map-meta em { font-style: normal; font-weight: 600; }

@media (max-width: 1000px) {
  .catalog-map {
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .catalog-map::-webkit-scrollbar { display: none; }
  .catalog-map-card { scroll-snap-align: start; }
}

/* —— Fresh per-section rows: same tile everywhere —— */
.section-fresh { padding-block: 3rem; }
.fresh-sections {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.fresh-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.fresh-block-title {
  margin: 0;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.fresh-block-title a { color: inherit; text-decoration: none; }
.fresh-block-title a:hover { color: var(--accent); }
.fresh-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.fresh-strip .card-wall {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  animation: none;
  transition: border-color .2s ease;
}
.fresh-strip .card-wall:hover { border-color: rgba(255, 106, 26, 0.5); }
.fresh-strip .card-wall:nth-child(n+7) { display: none; }
.fresh-strip .card-wall-link {
  display: block;
  height: 100%;
  position: relative;
}
.fresh-strip .card-wall img,
.fresh-strip .thumb-fallback {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.fresh-strip .card-wall:hover img { transform: scale(1.04); }
.fresh-strip .card-palette { display: none; }
.fresh-strip .card-wall-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.6rem .7rem .55rem;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 12, 0.85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fresh-block.is-contain .card-wall {
  background:
    conic-gradient(#1b1e26 25%, #15171e 0 50%, #1b1e26 0 75%, #15171e 0) 0 0 / 16px 16px;
}
.fresh-block.is-contain .card-wall img {
  object-fit: contain;
  padding: .5rem .5rem 1.6rem;
}
.fresh-block.is-contain .card-wall:hover img { transform: none; }

@media (max-width: 1000px) {
  .fresh-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fresh-sections { gap: 1.75rem; }
  .fresh-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fresh-strip .card-wall:nth-child(n+5) { display: none; }
  .fresh-strip .card-wall-title { font-size: .8rem; }
}

/* —— Authors of the week: 4 × 2 —— */
.authors-week-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.author-week-card {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: var(--radius);
}
@media (max-width: 720px) {
  .authors-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— Popular tags as chips —— */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 38px;
  padding: 0 .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tag-chip em {
  font-style: normal;
  font-size: .8rem;
  color: var(--muted);
}
.tag-chip:hover {
  border-color: rgba(255, 106, 26, 0.55);
  background: rgba(255, 106, 26, 0.06);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-map-card,
  .catalog-map-media img,
  .fresh-strip .card-wall img {
    transition: none !important;
  }
}

.site-footer {
  background: #090a0d;
  border-top: 1px solid var(--line);
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

.card,
.wallpaper-card,
.chip,
.mega-panel,
.tool-card,
.tool-workbench {
  background: var(--panel);
  border-color: var(--line);
}

.wallpaper-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wallpaper-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 26, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 106, 26, 0.12);
}

.home-carousel-track { gap: 12px; }
.home-carousel-card {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.home-carousel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 26, 0.5);
}
.home-carousel-card img {
  height: auto;
  aspect-ratio: 4 / 3;
}
.home-carousel-card span {
  padding: .6rem .75rem .7rem;
  font-size: .9rem;
}

.collection-row-covers { gap: 12px; }
.collection-card {
  border-radius: 12px;
  border-color: var(--line);
}
.collection-card-cover:hover { border-color: rgba(255, 106, 26, 0.5); }
.collection-card-body {
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: .75rem;
}
.collection-card em { color: var(--accent); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.collection-nav {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border-color: var(--line-strong);
  background: var(--panel);
}
@media (min-width: 1001px) {
  .section-soft .collection-carousel { display: block; }
  .section-soft .collection-nav { display: none; }
  .section-soft .collection-row-covers {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    padding: 0;
  }
}

.collection-line:hover {
  color: var(--accent);
}
.collection-line em {
  color: var(--accent-hot);
}

.modal-dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.flash-ok {
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid rgba(255, 140, 66, 0.35);
  color: #ffd7b8;
}
.flash-err {
  background: rgba(255, 93, 122, 0.12);
  border: 1px solid rgba(255, 93, 122, 0.35);
}

.prose h2 { color: var(--accent); margin-top: 1.5rem; }
.prose a { color: var(--accent); }
.prose ul { padding-left: 1.2rem; }
.license-note {
  margin: .35rem 0 .85rem;
  font-size: .86rem;
  line-height: 1.45;
}
.license-note a,
.license-note .js-ext-link { color: var(--accent); }
.license-meta {
  margin: -.35rem 0 .85rem;
  font-size: .86rem;
  line-height: 1.45;
}
.license-meta a,
.license-meta .js-ext-link { color: var(--accent); }
.js-ext-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.js-ext-link:hover { color: #fff; }
.upload-rights {
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.4;
  margin: .75rem 0 .35rem;
}
.upload-rights input { margin-top: .2rem; flex-shrink: 0; }

.tool-card {
  border-radius: var(--radius);
  box-shadow: none;
}
.tool-card:hover {
  border-color: rgba(255, 106, 26, 0.5);
  color: var(--text);
}
a.tool-card,
a.tool-card:link,
a.tool-card:visited,
a.tool-card:hover,
a.tool-card:focus {
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
a.tool-card strong { color: inherit; }
.tools-grid-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.tools-grid-compact .tool-card {
  gap: .4rem;
  padding: 1rem;
}
.tools-grid-compact .tool-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: .25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 106, 26, 0.1);
  font-size: 1.2rem;
}
.tools-grid-compact .tool-card strong { font-size: 1rem; }
.tools-grid-compact .tool-card .muted {
  font-size: .85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1000px) {
  .tools-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tools-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pager a,
.pager span {
  border-color: var(--line);
}
.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .wallpaper-card,
  .home-carousel-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .modal-dialog {
    background: #0e121a;
  }
  .modal-toolbar {
    background: rgba(10, 12, 18, .94);
    border-bottom-color: rgba(255, 106, 26, 0.14);
  }
  .modal-close {
    border-color: rgba(255, 106, 26, 0.22);
  }
  .orient-filter,
  .res-filter {
    background: rgba(10, 12, 18, .55);
    border-color: rgba(255, 106, 26, 0.14);
  }
  .orient-btn.is-active {
    background: linear-gradient(135deg, var(--accent), #ff7a2e);
    color: #1a1008;
  }
}

@media (max-width: 640px) {
  .mega-nav {
    max-height: min(70vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tool-workbench {
    padding: .9rem;
  }
  .tool-actions {
    justify-content: stretch;
  }
  .tool-actions .btn {
    flex: 1 1 auto;
    min-height: 42px;
  }
  .pbn-preview {
    grid-template-columns: 1fr !important;
  }
}

/* —— Personal + social —— */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: .35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  color: #1a1204;
  background: linear-gradient(135deg, var(--accent), #ff7a2e);
}
.dash-block { margin: 1.75rem 0; }
.home-dash-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.notif-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.notif-list li.is-unread { border-color: rgba(255, 106, 26, 0.45); box-shadow: inset 3px 0 0 var(--accent); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.week-slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  min-height: 110px;
  display: flex;
  flex-direction: column;
}
.week-slot-day {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .45rem;
  color: var(--accent);
}
.week-slot img { width: 100%; height: 80px; object-fit: cover; display: block; }
.week-slot-empty { flex: 1; display: grid; place-items: center; color: var(--muted); }
.album-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.album-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color .2s ease, transform .2s ease;
}
.album-card:hover { border-color: rgba(255, 106, 26, 0.45); transform: translateY(-2px); color: inherit !important; }
.share-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin: 1rem 0; }
.share-bar label { flex: 1 1 220px; }
.share-input, .share-bar input[type="text"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: .55rem .7rem;
}
.week-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin: 1rem 0; }
.week-plan-day { display: flex; flex-direction: column; gap: .45rem; padding: .9rem; }
.week-plan-preview { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; }
.author-week-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none !important;
  color: #fff !important;
  background: var(--panel);
}
.author-week-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
  transition: transform .4s ease;
}
.author-week-card:hover img { transform: scale(1.06); }
.author-week-rank {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  font-weight: 800;
  color: #1a1204;
  background: linear-gradient(135deg, #ff8c42, var(--accent));
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
}
.author-week-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 12, .92));
}
.author-week-score { font-size: .82rem; color: var(--accent); }
.contest-board { display: grid; gap: .65rem; }
.contest-row {
  display: grid;
  grid-template-columns: 48px 72px 1fr;
  gap: .75rem;
  align-items: center;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.contest-rank { font-family: var(--display); font-weight: 800; color: var(--accent); }
.contest-thumb img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; display: block; }
.contest-pinned { margin-bottom: 1.5rem; }
.profile-group-title {
  margin: 1.75rem 0 .85rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.profile-albums-block { margin-bottom: 2rem; }

@media (max-width: 720px) {
  .week-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contest-row { grid-template-columns: 36px 56px 1fr; }
}

/* —— Mobile header + hero —— */
@media (max-width: 640px) {
  .header-nav { gap: .3rem; }
  .nav-toggle,
  .header-nav > a:not(.btn),
  .header-nav .btn {
    height: 34px;
    min-height: 34px;
    padding: 0 .6rem;
    font-size: .8rem;
  }
  .header-search { height: 40px; }
  .hero-home .hero-content { padding: 3.25rem 0 2.5rem; }
  .hero-search { height: 52px; padding-left: .85rem; border-radius: 14px; }
  .hero-search input { font-size: 16px; }
  .hero-search .btn { min-height: 40px; height: 40px; padding: 0 1rem; }
  .hero-colors-label { width: 100%; }
  .section { padding: 2.5rem 0; }
}

/* —— Idei extras: collection hero photo visibility —— */
.collection-hero {
  background: var(--bg);
  min-height: 340px;
}
.collection-hero-media {
  background: #0b0c10;
}
.collection-hero-media img {
  opacity: .58;
  filter: saturate(1.08) contrast(1.05);
}
.collection-hero-shade {
  background:
    linear-gradient(105deg, rgba(11, 12, 16, 0.78) 8%, rgba(11, 12, 16, 0.35) 48%, rgba(11, 12, 16, 0.55)),
    linear-gradient(180deg, rgba(11, 12, 16, 0.15), rgba(11, 12, 16, 0.92));
}
.collection-hero-content h1 { color: #fff; }
.collection-hero-content .lead { color: rgba(242, 244, 248, 0.78); }
.collection-kicker {
  border-color: rgba(255, 106, 26, 0.4);
  background: rgba(255, 106, 26, 0.12);
  color: #ffd2b0;
}
.count-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.count-pill strong { color: #fff; }
.count-pill span { color: rgba(242, 244, 248, 0.7); }
.collection-hero .meta-chip {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 244, 248, 0.9);
}
.collection-hero .breadcrumbs,
.collection-hero .breadcrumbs a { color: rgba(242, 244, 248, 0.7); }
.collection-hero .breadcrumbs a:hover { color: #fff; }
.collection-hero .orient-filter,
.collection-hero .res-filter,
.collection-hero .phone-filter,
.collection-hero .color-filter {
  background: rgba(19, 21, 27, 0.72) !important;
  border-color: var(--line-strong) !important;
}
.collection-hero .orient-btn { color: var(--text) !important; }
.collection-hero .orient-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}
.collection-hero .orient-btn.is-active {
  background: var(--accent) !important;
  color: #1a1008 !important;
}

/* Brand mark / logo */
.brand-text span { color: var(--accent); }
.brand-hero .brand-dot { color: var(--accent); }

/* Header register button contrast */
.header-nav a.btn,
.header-nav a.btn.btn-sm {
  background: var(--accent) !important;
  color: #1a1008 !important;
  border: 0;
  box-shadow: none;
}
.header-nav a.btn:hover,
.header-nav a.btn.btn-sm:hover {
  background: var(--accent-hover) !important;
  color: #1a1008 !important;
}

/* Admin / dashboard / profile — Idei dark shell */
.stat-row.big {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .85rem;
  margin: 1.1rem 0 1.35rem;
}
.stat-card {
  display: grid;
  gap: .4rem;
  padding: 1.05rem 1.1rem;
  text-align: left;
  background: var(--panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: var(--text);
}
.stat-card:hover { border-color: rgba(255, 106, 26, 0.45) !important; }
.stat-card strong {
  display: block;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent) !important;
}
.stat-card span {
  display: block;
  color: var(--muted) !important;
  font-size: .86rem;
  font-weight: 500;
}

/* —— Designer profile —— */
.profile-hero {
  padding-top: 1.75rem;
  padding-bottom: 0;
}
.profile-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem 1.25rem;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 106, 26, 0.12), transparent 55%),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}
.profile-card-main {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  font-size: 2.6rem;
  border: 2px solid rgba(255, 106, 26, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.08);
  background: var(--panel-2);
  color: var(--accent);
}
.profile-card-body { min-width: 0; flex: 1; }
.profile-role {
  display: inline-flex;
  margin: 0 0 .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 26, 0.35);
  background: rgba(255, 106, 26, 0.1);
  color: #ffd2b0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-card-body h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #fff;
}
.profile-meta { margin: 0 0 .85rem; }
.profile-bio {
  margin: .75rem 0 0;
  max-width: 40rem;
  color: rgba(242, 244, 248, 0.88);
  line-height: 1.55;
}
.profile-website { margin: .65rem 0 0; }
.profile-website a {
  color: var(--accent);
  font-weight: 600;
}
.profile-website a:hover { color: #fff; }
.designer-score-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  margin: .15rem 0 .35rem;
  padding: .45rem .75rem;
  border-radius: 12px;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.3);
  color: var(--text);
}
.designer-score-badge strong { color: var(--accent); font-size: 1rem; }
.designer-score-badge span { font-weight: 600; color: #fff; }
.designer-score-badge em {
  font-style: normal;
  color: var(--muted);
  font-size: .85rem;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.profile-stat {
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.profile-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.profile-stat span {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .82rem;
}
.profile-tabs {
  margin: 0;
  padding-top: .15rem;
  border-top: 1px solid var(--line);
}
.profile-tabs .chip {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.profile-tabs .chip.active,
.profile-tabs .chip:hover {
  border-color: var(--accent);
  background: rgba(255, 106, 26, 0.12);
  color: #fff;
}

/* —— Boards grid —— */
.board-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .9rem;
}
.board-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
.board-card:hover {
  border-color: rgba(255, 106, 26, 0.45);
  transform: translateY(-2px);
  color: inherit !important;
}
.board-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  background: var(--panel-2) center / cover no-repeat;
  color: var(--muted);
  font-size: 1.8rem;
  font-weight: 800;
}
.board-card-rating {
  position: absolute;
  top: .55rem;
  left: .55rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #1a1008;
  background: var(--accent);
}
.board-card-vis {
  position: absolute;
  top: .55rem;
  right: .55rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.board-card-body {
  display: grid;
  gap: .25rem;
  padding: .85rem .95rem 1rem;
}
.board-card-body strong {
  color: #fff;
  font-size: .95rem;
  line-height: 1.25;
}
.board-card-body em {
  font-style: normal;
  color: var(--muted);
  font-size: .8rem;
}
.designer-rank-card {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
.designer-rank-card:hover { border-color: rgba(255, 106, 26, 0.45); }

/* —— Dashboard shell —— */
.dash-body { background: var(--bg); color: var(--text); }
.dash-shell { color: var(--text); gap: 1.35rem; padding-top: 1.75rem; }
.dash-side {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding: .85rem .7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dash-side-label {
  margin: .35rem .55rem .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: var(--text);
  border-radius: 10px;
  padding: .55rem .7rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.dash-side a:hover,
.dash-side a.is-active {
  background: rgba(255, 106, 26, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.dash-main { min-width: 0; }

.dash-home,
.dash-page { display: grid; gap: 1.1rem; }
.dash-welcome,
.dash-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 106, 26, 0.14), transparent 50%),
    var(--panel);
}
.dash-welcome-text,
.dash-page-head > div { min-width: 0; flex: 1; }
.dash-welcome-kicker {
  margin: 0 0 .25rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.dash-welcome h1,
.dash-page-head h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  color: #fff;
  letter-spacing: -0.03em;
}
.dash-welcome .muted,
.dash-page-head .muted { margin: 0; max-width: 34rem; }
.dash-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.dash-stat {
  display: grid;
  gap: .35rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
.dash-stat:hover {
  border-color: rgba(255, 106, 26, 0.45);
  transform: translateY(-1px);
  color: inherit !important;
}
.dash-stat em {
  font-style: normal;
  color: var(--muted);
  font-size: .82rem;
}
.dash-stat strong {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.dash-stat.has-pulse {
  border-color: rgba(255, 106, 26, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.12);
}
.dash-stat.has-pulse strong { color: var(--accent); }

.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .55rem;
}
.dash-quick a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease;
}
.dash-quick a:hover {
  border-color: var(--accent);
  background: rgba(255, 106, 26, 0.08);
  color: #fff;
}
.dash-quick a span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: rgba(255, 106, 26, 0.12);
  color: var(--accent);
  font-size: .85rem;
}

.dash-panel,
.auth-box,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
}
.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-panel-head h2 {
  margin: 0 0 .2rem;
  font-size: 1.15rem;
  color: #fff;
}
.dash-panel-head .muted { margin: 0; }
.dash-empty { margin: 0; padding: .5rem 0 .25rem; }
.dash-follow-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.dash-follow-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem .35rem .35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
}
.dash-follow-chip:hover {
  border-color: rgba(255, 106, 26, 0.45);
  color: #fff;
}
.dash-follow-chip .avatar-sm {
  width: 32px;
  height: 32px;
  font-size: .85rem;
}
.album-create-panel { margin: 0; }
.album-create-form { margin: 0; }
.album-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.album-create-form .check-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .85rem 0 1rem;
  color: var(--muted);
  font-weight: 500;
}
.auth-box input,
.auth-box textarea,
.stack-form input,
.stack-form textarea,
.panel input,
.panel textarea,
.panel select,
.album-create-form input[type="text"] {
  background: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px;
  padding: .65rem .75rem;
  width: 100%;
}
.design-tool {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.design-calc-result {
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.28);
  color: var(--text);
}
.mood-canvas-wrap,
.plan-canvas-wrap,
.light-preview-wrap {
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.planner-day {
  background: var(--panel);
  border: 1px solid var(--line);
}
.planner-day:hover { border-color: var(--accent); }
.planner-day.is-today { box-shadow: inset 0 0 0 1px var(--accent); }

@media (max-width: 900px) {
  .dash-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-create-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .profile-card-main { flex-direction: column; align-items: center; text-align: center; }
  .profile-card-body { width: 100%; }
  .profile-actions,
  .profile-tabs { justify-content: center; }
  .designer-score-badge { justify-content: center; }
  .dash-welcome,
  .dash-page-head { align-items: stretch; }
  .dash-welcome-actions { width: 100%; }
}

/* Mobile gallery fix kept from idei */
@media (max-width: 760px) {
  .modal.is-gallery .ss-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 11.5rem) !important;
    object-fit: contain;
  }
}
