*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #020617;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #6366f1;
  --border-subtle: #1f2937;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
  color: var(--fg);
}

body.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-shell .page { flex: 1; }

/* ================= HEADER ================= */

.header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0.65rem 1.3rem; /* puțin mai mic ca să nu fie headerul prea înalt */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* brand container (logo + text) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

/* LOGO – imagine fixă, culoare animată foarte discret cu overlay, fără flicker */
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Overlay colorat care pulsează ușor peste logo */
.brand-logo::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: conic-gradient(
    from 0deg,
    rgba(249, 115, 22, 0.0),
    rgba(249, 115, 22, 0.6),
    rgba(34, 197, 94, 0.6),
    rgba(56, 189, 248, 0.6),
    rgba(168, 85, 247, 0.6),
    rgba(249, 115, 22, 0.6)
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
  animation: logoColorSoft 9s ease-in-out infinite;
}

/* Animație super-soft: doar overlay-ul își schimbă opacitatea */
@keyframes logoColorSoft {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  40% {
    opacity: 0.55;
    transform: rotate(18deg);
  }
  60% {
    opacity: 0.4;
    transform: rotate(28deg);
  }
  100% {
    opacity: 0;
    transform: rotate(45deg);
  }
}

.brand-text h1 {
  margin: 0;
  font-size: 1.0rem;
}

.brand-text p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.nav { display: flex; gap: 0.5rem; }

.nav-link {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--fg);
}

.nav-link-active {
  background: radial-gradient(circle at 10% 0, #4f46e5 0, #6366f1 40%, #8b5cf6 100%);
  color: #f9fafb;
}

/* ================= FOOTER ================= */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #020617;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem 0.9rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ================= PAGE LAYOUT ================= */

.page {
  max-width: 1340px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2rem;
  width:100%
}

/* ================= TOOLBAR ================= */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 150px;
}

.field-wide { flex: 1; min-width: 260px; }
.field-compact { min-width: 140px; max-width: 180px; }

.field label {
  font-size: 0.75rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: #020617;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: var(--fg);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.selected-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

.primary-btn {
  background: radial-gradient(circle at 10% 0, #4f46e5 0, #6366f1 40%, #a855f7 100%);
  color: #f9fafb;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.6);
  filter: brightness(1.03);
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.secondary-btn {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--muted);
}

.secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.9);
  filter: brightness(1.05);
}

/* ================= GALLERY WRAPPER ================= */

.page-gallery .gallery {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.07) 0, #020617 55%, #000 100%);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.9rem;
}

/* Image grid 4 per row on desktop */

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .image-grid { grid-template-columns: 1fr; }
}

/* ================= CARDS ================= */

.image-card {
  background: #020617;
  border-radius: 12px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  padding: 0.45rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
  min-height: 260px; /* stabil, fără CLS */
  animation: cardIn 0.16s ease-out;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.image-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.95);
  border-color: rgba(59, 130, 246, 0.9);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.image-card-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.image-card-header label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 100%;
}

.image-card-header input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.image-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-name-full {
  font-size: 0.65rem;
  color: #6b7280;
  margin: 0;
}

.image-thumb-wrapper {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card img,
.video-player {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #020617;
}

.image-card--selected {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.6);
}

.image-meta {
  font-size: 0.65rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tag {
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.image-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: auto;
}

.image-action-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  padding: 0.32rem 0.9rem;
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.image-action-btn:hover {
  border-color: rgba(129, 140, 248, 0.95);
  background: rgba(30, 64, 175, 0.95);
}

.image-actions .image-action-btn { flex: 1 1 0; }

.image-zoom-btn {}

/* ================= PAGINATION ================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.page-info {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ================= LIGHTBOX ================= */

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.image-lightbox--visible {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.92);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.45);
}

/* ================= IDEAS LAYOUT (vechi) ================= */

.page-ideas .ideas-panel { display: block; }

.ideas-list-wrapper,
.ideas-form-wrapper {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem 1.15rem;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 70vh;
  overflow-y: auto;
}

.idea-item {
  padding: 0.55rem 0.65rem 0.45rem;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #374151;
  position: relative;
}

.idea-item h4 { margin: 0 0 0.2rem; font-size: 0.9rem; }
.idea-item p  { margin: 0 0 0.25rem; font-size: 0.82rem; }
.idea-item small { font-size: 0.7rem; color: var(--muted); }

.idea-delete {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.8rem;
  color: #fca5a5;
  cursor: pointer;
}

/* Ideas form controls less rounded */

.field-idea input,
.field-idea textarea {
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #020617;
}

.primary-btn-idea {
  border-radius: 8px;
  padding-inline: 1.1rem;
  margin-top: 0.6rem;
}

/* Muted text */
.muted { font-size: 0.8rem; color: var(--muted); }

/* ================= LOGIN ================= */

.login-page {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper { width: 100%; max-width: 420px; padding: 1.5rem; }

.login-card {
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.5rem 1.7rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.login-card h1 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.login-subtitle { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.7);
  color: #fecaca;
  font-size: 0.78rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.login-form { display: flex; flex-direction: column; gap: 0.7rem; }
.login-form label { font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }

.login-form input[type="password"] {
  background: #020617;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--fg);
}

.login-form button {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: radial-gradient(circle at 10% 0, #4f46e5 0, #6366f1 40%, #a855f7 100%);
  color: #f9fafb;
  cursor: pointer;
}

/* ================= RESPONSIVE (prima tură) ================= */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
  }

  .gallery-sidebar,
  .image-grid {
    grid-column: auto;
  }

  .page {
    padding-inline: 1rem;
  }

  .page-ideas .ideas-panel {
    grid-template-columns: 1fr;
  }

  .page-gallery .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Nexa product concept */
:root {
  --bg: #0b1020;
  --fg: #f8fafc;
  --muted: #9aa7bd;
  --accent: #6d6ff5;
  --border-subtle: rgba(148, 163, 184, .18);
}

body {
  background:
    radial-gradient(circle at 15% -10%, rgba(109,111,245,.22), transparent 35%),
    radial-gradient(circle at 90% 5%, rgba(71,215,172,.12), transparent 28%),
    #0b1020;
}

.header {
  background: rgba(11, 16, 32, .82);
  border-bottom-color: rgba(255,255,255,.08);
}

.header-inner { padding-top: .85rem; padding-bottom: .85rem; }

.brand-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #7779ff, #5254df);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background-image: none;
  box-shadow: 0 10px 30px rgba(91,92,240,.35);
}

.brand-logo::before { display: none; }
.brand-text h1 { font-size: 1.05rem; letter-spacing: -.025em; }
.brand-text p { color: #8290aa; }

.nav { padding: .25rem; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; background: rgba(255,255,255,.035); }
.nav-link { padding: .42rem .9rem; }
.nav-link-active { background: #f8fafc; color: #10162d; box-shadow: 0 4px 16px rgba(0,0,0,.22); }

.page { padding-top: 1.7rem; }
.page-gallery .gallery,
.ideas-panel,
.page-news-inner {
  background: rgba(17, 24, 45, .72);
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}

.field input, .field select, .field textarea, .folder-search {
  background: rgba(8,13,27,.82);
  border-color: rgba(255,255,255,.1);
}

.primary-btn { background: linear-gradient(135deg, #7779ff, #5b5cf0); }
.primary-btn:hover:not(:disabled) { box-shadow: 0 14px 34px rgba(91,92,240,.38); }

.image-card {
  background: rgba(10,15,29,.9);
  border-color: rgba(255,255,255,.09);
  border-radius: 16px;
  padding: .6rem;
}
.image-card:hover { border-color: rgba(119,121,255,.7); transform: translateY(-3px); }
.image-thumb-wrapper { border-radius: 11px; overflow: hidden; background: #151d35; }
.image-thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.image-actions .image-download-btn {
  margin-top: 0;
  border: 1px solid rgba(148,163,184,.75);
  background: rgba(15,23,42,.9);
  padding: .32rem .9rem;
  font-size: .72rem;
}

.footer { background: transparent; border-top-color: rgba(255,255,255,.08); }

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 20%, rgba(109,111,245,.35), transparent 36%),
    radial-gradient(circle at 80% 75%, rgba(71,215,172,.16), transparent 30%),
    #0b1020;
}
.login-wrapper { max-width: 500px; }
.login-card {
  padding: 2.4rem;
  border-radius: 26px;
  background: rgba(17,24,45,.78);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
  backdrop-filter: blur(20px);
}
.login-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #7779ff, #5254df);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(91,92,240,.4);
}
.login-card h1 { font-size: 1.8rem; letter-spacing: -.04em; }
.login-subtitle { line-height: 1.65; }
.login-form button { background: linear-gradient(135deg, #7779ff, #5b5cf0); }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; justify-content: space-between; }
  .nav-link { white-space: nowrap; }
  .footer-inner { flex-direction: column; gap: .35rem; }
}

/* Product experience v2: lighter rendering and clearer visual hierarchy */
.header,
.login-card,
.image-lightbox,
.modal-backdrop {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header {
  background: rgba(11,16,32,.97);
  contain: layout paint;
}

.product-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 1.5rem;
  padding: 2.4rem 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(71,215,172,.2), transparent 26%),
    linear-gradient(125deg, rgba(109,111,245,.2), rgba(17,24,45,.9) 48%, rgba(17,24,45,.72));
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.product-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -130px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.015);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .8rem;
  color: #8e91ff;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #47d7ac;
  box-shadow: 0 0 0 4px rgba(71,215,172,.12);
}

.product-hero h2,
.page-intro h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.product-hero h2 span { color: #898bff; }
.product-hero p,
.page-intro p {
  max-width: 600px;
  margin: 1rem 0 0;
  color: #a6b0c3;
  font-size: .95rem;
  line-height: 1.65;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  min-width: 360px;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(5,10,24,.48);
}

.hero-stats div { padding: .55rem .8rem; border-right: 1px solid rgba(255,255,255,.08); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: 1.15rem; letter-spacing: -.03em; }
.hero-stats span { display: block; margin-top: .2rem; color: #8490a7; font-size: .68rem; }

.page-intro { margin: .5rem 0 1.65rem; padding-left: .2rem; }
.page-intro h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

.toolbar {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: rgba(17,24,45,.58);
}

.field label { margin-left: .2rem; color: #8f9bb1; }
.field input, .field select, .field textarea, .folder-search {
  min-height: 38px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus, .folder-search:focus {
  border-color: rgba(119,121,255,.75);
  box-shadow: 0 0 0 3px rgba(109,111,245,.12);
}

.image-card {
  contain: layout paint;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transition: transform .1s ease, border-color .1s ease, box-shadow .1s ease;
}
.image-card:hover { box-shadow: 0 18px 38px rgba(0,0,0,.23); }
.image-action-btn { font-weight: 650; }

.folder-item { transition: background-color .1s ease, color .1s ease; }

@media (max-width: 900px) {
  .product-hero { align-items: flex-start; flex-direction: column; padding: 1.8rem; gap: 1.5rem; }
  .hero-stats { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .product-hero { padding: 1.45rem; border-radius: 20px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { display: flex; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero-stats div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ================= FOLDER SIDEBAR (GALLERY) ================= */

.gallery-sidebar {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: 420px;
  overflow-y: auto;
}

.folder-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.folder-item:hover {
  background: rgba(55, 65, 81, 0.7);
  color: var(--fg);
}

.folder-item-active {
  background: rgba(79, 70, 229, 0.18);
  color: var(--fg);
}

.folder-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-count {
  margin-left: 0.4rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.folder-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.85);
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
}

.folder-toggle-btn:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.98);
}

.folder-toggle-icon { font-size: 0.7rem; }

/* mobile sidebar accordion */
@media (max-width: 820px) {
  .gallery-sidebar,
  .image-grid {
    grid-column: auto;
  }

  .gallery-sidebar { order: 2; }

  .folder-toggle-btn { display: inline-flex; }

  .gallery-sidebar.is-collapsed .folder-list {
    display: none;
  }
}

.gallery-main {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Shared empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1rem 0;
}

/* Video card tweaks */
.video-card .video-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .gallery-sidebar {
    order: -1;
    max-height: 120px;
  }

  .folder-list {
    max-height: 100px;
  }
}

.image-download-btn {
  margin-top: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
}

/* Folder search */

.folder-search {
  width: 100%;
  margin: 0.3rem 0;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.7);
  color: #d1d5db;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .folder-list {
    max-height: 150px;
    overflow-y: auto;
  }
}

/* === Overrides: modern image lightbox === */

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 23, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.image-lightbox--visible {
  display: flex;
  animation: imageLightboxFade 0.15s ease-out;
}

.image-lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
}

.image-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.4);
}

.image-lightbox-close:hover {
  background: rgba(15,23,42,1);
}

@keyframes imageLightboxFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Folder search input restyle (override) */

.folder-search {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  outline: none;
}

.folder-search::placeholder {
  color: #9ca3af;
}

.folder-search:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.4);
}

/* Empty state for filtered folders */
.folder-empty {
  padding: 0.2rem 0.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Header + toolbar mobile tuning */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    gap: 0.75rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-text h1 { font-size: 0.9rem; }
  .brand-text p  { font-size: 0.72rem; }

  .nav {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .page { padding-inline: 1rem; }

  .page-ideas .ideas-panel {
    grid-template-columns: 1fr;
  }

  .page-gallery .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
}

/* Gallery filters & folders slider on mobile */

@media (max-width: 768px) {
  .toolbar-left {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }

  .toolbar-left .field {
    flex: 0 0 auto;
    min-width: 170px;
  }

  .toolbar-left .field-wide {
    min-width: 220px;
  }

  .toolbar-left .field label {
    font-size: 0.7rem;
  }

  .toolbar-left input,
  .toolbar-left select {
    font-size: 0.78rem;
    padding-block: 0.35rem;
    padding-inline: 0.7rem;
  }

  .gallery-sidebar {
    order: -1;
    margin-bottom: 0.75rem;
    max-height: none;
  }

  .folder-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.25rem 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .folder-list::-webkit-scrollbar { display: none; }

  .folder-item {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: max-content;
    border-radius: 999px;
    padding-inline: 0.85rem;
    padding-block: 0.35rem;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15,23,42,0.9);
  }

  .folder-item.folder-item-active {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: #f9fafb;
    border-color: transparent;
  }

  .folder-count { font-size: 0.72rem; }
}

/* ================= VIDEO ACTIONS ================= */

.video-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.video-download-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.85);
  padding: 0.28rem 0.95rem;
  font-size: 0.74rem;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.video-download-btn:hover {
  border-color: rgba(129, 140, 248, 0.95);
  background: rgba(30, 64, 175, 0.95);
}

/* Filters toggle (mobile) */

.filters-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.filters-toggle-icon { font-size: 0.75rem; }

@media (max-width: 768px) {
  /* Hide long subtitle under logo */
  .brand-text p { display: none; }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    aspect-ratio: 1 / 1;
  }

  .header-inner {
    padding: 0.6rem 0.9rem;
    gap: 0.4rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .nav-link {
    padding: 0.22rem 0.75rem;
    font-size: 0.78rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-toggle {
    display: inline-flex;
    align-self: flex-start;
    width: 100%;
    justify-content: space-between;
  }

  #optimizeBtn { display: none; }

  .toolbar-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .selected-count {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .toolbar-right .primary-btn {
    flex: 1 1 auto;
    display: inline-flex;
    justify-content: center;
    text-align: center;
  }

  .toolbar-left {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  }

  .page-gallery.filters-open .toolbar-left {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= GALLERY LAYOUT LEFT/RIGHT ================= */

.gallery-sidebar { grid-column: 2; }
.image-grid     { grid-column: 1; }

/* First layout variant (images left, folders right) */
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 0.9rem;
  align-items: flex-start;
}

.gallery-main   { grid-column: 1; }
.gallery-sidebar {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .gallery-main,
  .gallery-sidebar {
    grid-column: auto;
  }
}

/* Override: folders left, images right */

.gallery-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
}

.gallery-sidebar {
  grid-column: 1;
  align-self: stretch;
}

.gallery-main {
  grid-column: 2;
}

@media (max-width: 900px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .gallery-sidebar,
  .gallery-main {
    grid-column: auto;
  }
}

/* Desktop strict layout */

@media (min-width: 901px) {
  .gallery-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: flex-start;
  }

  .gallery-sidebar {
    grid-column: 1;
    align-self: stretch;
    margin-top: 0;
    order: 0;
  }

  .gallery-main {
    grid-column: 2;
    order: 0;
  }
}

.folder-toggle-label { display: none; }

.nav-link-news { border-color: rgba(129, 140, 248, 0.7); }

/* ================= NEWS LAYOUT (vechi) ================= */

.page-news .ideas-panel {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 1.4rem;
}

.news-item {
  padding: 0.55rem 0.65rem 0.45rem;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #374151;
  position: relative;
}

.news-item h4 { margin: 0 0 0.2rem; font-size: 0.9rem; }
.news-item p  { margin: 0 0 0.25rem; font-size: 0.82rem; }
.news-item small { font-size: 0.7rem; color: var(--muted); }

.news-item-media {
  margin: 0.4rem 0 0.35rem;
}

.news-item-media img {
  width: 100%;
  border-radius: 10px;
  display: block;
  max-height: 220px;
  object-fit: cover;
}

.news-item-actions {
  display: flex;
  justify-content: flex-end;
}

.news-delete {
  position: static;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.7);
  background: transparent;
  color: #fecaca;
  cursor: pointer;
}

.news-info-banner {
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.8rem 0.8rem;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 60%),
              #020617;
}

.news-info-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.news-info-banner .muted {
  margin-bottom: 0.6rem;
}

.news-info-media { margin-top: 0.3rem; }

.responsive-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* News form */

.field-news input,
.field-news textarea {
  border-radius: 10px;
}

.primary-btn-news {
  width: 100%;
  margin-top: 0.6rem;
}

.idea-form .primary-btn-idea,
.news-form .primary-btn-news {
  margin-top: 0.8rem;
}

.page-news-inner {
  margin: 0 auto;
  padding: 0.9rem 0.4rem 1.2rem;
}

.news-tabs {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2937;
  margin-bottom: 0.9rem;
  gap: 0.1rem;
}

.news-tab {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.82rem;
  padding: 0.24rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.news-tab-active {
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  color: #fff;
}

.news-tab-panel { display: none; }
.news-tab-panel.is-active { display: block; }

.news-form {
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #1f2937;
}

.news-form-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
}

.news-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

@media (min-width: 900px) {
  .page-news-inner {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* News page layout with 80% width container and right column */

.page-news-inner {
  width: 80%;
  margin: 0 auto;
  padding: 0.9rem 0.4rem 1.2rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.4fr) minmax(260px, 1.8fr);
  gap: 1.4rem;
  align-items: flex-start;
}

.news-main { min-width: 0; }

.news-sidebar {
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: #020617;
  padding: 0.7rem 0.8rem 0.8rem;
}

.news-sidebar-header h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.news-sidebar-header p {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-sidebar-item-title {
  font-size: 0.82rem;
  font-weight: 500;
}

.news-sidebar-item-snippet {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #9ca3af);
}

.news-sidebar-toggle {
  display: none;
  margin-bottom: 0.6rem;
}

/* Tabs styling (desktop + mobile) – deja definite sus, dublate ok */

.news-form .primary-btn-news {
  margin-top: 0.8rem;
  width: 100%;
}

/* Responsive behaviour: sidebar slide on mobile */

@media (max-width: 900px) {
  .page-news-inner {
    width: 100%;
    padding: 0.7rem 0.6rem 1rem;
  }

  .news-layout { display: block; }

  .news-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.26rem 0.9rem;
    border: 1px solid #374151;
    background: #020617;
  }

  .news-sidebar-toggle::before {
    content: "⋯";
    font-size: 1.1rem;
    margin-top: -0.05rem;
  }

  .news-sidebar {
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .news-sidebar.is-open { max-height: 60vh; }
}

/* Small ghost button */

.secondary-btn.small-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: transparent;
  color: #e5e7eb;
  opacity: 0.9;
}

.secondary-btn.small-btn:hover {
  opacity: 1;
  filter: none;
  box-shadow: none;
}

/* ================= GENERIC MODAL ================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
}

.modal-backdrop.is-open { display: flex; }

.modal-dialog {
  width: 100%;
  max-width: 520px;
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 1rem 1.1rem 1rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.modal-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.modal-dialog p.muted {
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
}

.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { color: #e5e7eb; }

.news-modal-panel { display: none; }
.news-modal-panel.is-active { display: block; }

.ideas-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.ideas-header-row h2 { margin-bottom: 0.2rem; }

.ghost-btn {
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.32rem 0.9rem;
  cursor: pointer;
}

.ghost-btn:hover { border-color: #4b5563; }

.news-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.news-header-row .news-tabs { margin-bottom: 0; }

/* ================= MODERN REDESIGN IDEAS + NEWS ================= */

/* Marketing Ideas page */

.page.page-ideas {
  display: flex;
  justify-content: center;
}

.page.page-ideas .ideas-panel {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 1.6rem;
}

.ideas-list-wrapper {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.1rem 1.25rem 1rem;
}

.ideas-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.ideas-header-row h2 {
  margin: 0 0 0.18rem;
}

.ideas-header-row p.muted {
  margin: 0;
  font-size: 0.8rem;
}

#ideasList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.85rem;
  max-height: none;
  overflow: visible;
}

.idea-item {
  position: relative;
  padding: 0.8rem 0.85rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.26) 0, #020617 55%);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.idea-item h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.idea-meta {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.idea-body {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.idea-actions {
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-end;
}

/* News page: container & header */

.page-news-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 0.8rem 1.2rem;
}

.news-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

/* News tabs panels */

.news-tab-panel {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.98);
  padding: 1rem 1.15rem 1rem;
}

.news-tab-panel h2 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.news-tab-panel p.muted {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
}

#newsList,
#newsInfoList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.85rem;
}

/* News & info cards (modern) */

.news-item {
  padding: 0.8rem 0.85rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.3) 0, #020617 55%);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.news-item h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.news-item small {
  font-size: 0.74rem;
  color: var(--muted);
}

.news-item p {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.news-item-media {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.news-item-actions {
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-end;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .page-news-inner { padding-inline: 0.6rem; }
  .ideas-list-wrapper { padding-inline: 0.9rem; }
}

/* Wider layout on desktop */

@media (min-width: 900px) {
  .page-ideas .ideas-list-wrapper,
  .page-news-inner {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1.2rem;
  }
}

@media (min-width: 1200px) {
  .ideas-list,
  #newsList,
  .news-info-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
  }
}

@media (min-width: 1600px) {
  .ideas-list,
  #newsList,
  .news-info-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Modern card hover */

.idea-item,
.news-item {
  padding: 0.8rem 0.9rem 0.75rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 60%),
    #020617;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
  position: relative;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out;
}

.idea-item:hover,
.news-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
  border-color: rgba(96, 165, 250, 0.9);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.28), transparent 60%),
    #020617;
}

.idea-item h4,
.news-item h4 {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.idea-item p,
.news-item p {
  font-size: 0.84rem;
}

/* Compact header + badges */

.idea-item-header,
.news-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.idea-title-block,
.news-item-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.idea-meta,
.news-item-header small {
  font-size: 0.7rem;
  color: var(--muted);
}

.idea-pill,
.news-item-pill {
  font-size: 0.7rem;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
  white-space: nowrap;
}

.news-item--feed .news-item-pill {
  color: #93c5fd;
  border-color: #1d4ed8;
}

.news-item--info .news-item-pill {
  color: #a5b4fc;
  border-color: #4f46e5;
}

.idea-body-wrapper,
.news-item-body-wrapper {
  position: relative;
}

.idea-body-wrapper.is-collapsed .idea-body,
.news-item-body-wrapper.is-collapsed .news-item-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-btn {
  margin-top: 0.15rem;
  border: none;
  background: transparent;
  color: #60a5fa;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
}

.link-btn:hover { text-decoration: underline; }

.idea-actions,
.news-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px solid #0f172a;
}

.ideas-header-row,
.news-header-row {
  margin-bottom: 0.85rem;
}

.ideas-toolbar,
.news-toolbar {
  margin-bottom: 0.85rem;
}

/* Layout overrides v2: center pages */

.page.page-ideas,
.page.page-news {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2.25rem;
}

.page.page-ideas .ideas-panel,
.page.page-news .page-news-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .page.page-ideas .ideas-panel,
  .page.page-news .page-news-inner {
    width: 80%;
  }
}

/* Simple vertical stacks for lists */

#ideasList,
#newsList,
.news-info-list,
#newsInfoList {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: none;
  overflow: visible;
}

/* Slightly larger cards */

.idea-item,
.news-item {
  padding: 0.9rem 1rem 0.85rem;
}

.idea-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.idea-card-header-main {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.news-item-header-left {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}


/* === Mobirom header + selection bar + ideas/news media overrides (2025-11-24) === */

/* Header + brand + animated logo (override earlier definitions) */
.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0.65rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* container pentru logo + text */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

/* texte lângă logo */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* LOGO – imagine + animație “unde” subtilă, fără flicker mare pe header */
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
  animation: none;
}

@keyframes mobiromLogoPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  }
  25% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(129, 140, 248, 0.08);
  }
  75% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.14);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
  }
}

.brand-text h1 {
  margin: 0;
  font-size: 1.0rem;
  line-height: 1.1;
}

.brand-text p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Page max width tweak */
.page {
  max-width: 1340px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2rem;
  width: 100%;
}

/* Bară selecție: text + buton pe aceeași linie */
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.4rem 0 0.6rem;
  flex-wrap: nowrap;
}

/* textul "0/12 selected..." să nu se rupă în mijloc */
.selection-bar .selected-count {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* butonul să nu se micșoreze aiurea */
.selection-bar .secondary-btn {
  flex-shrink: 0;
}

/* ========== IDEAS: media în dreapta, text în stânga ========== */

.idea-item {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
  column-gap: 0.75rem;
  align-items: flex-start;
}

/* Titlu, meta, text, acțiuni – coloana 1 */
.idea-card-header,
.idea-body-wrapper,
.idea-actions {
  grid-column: 1;
}

/* Media (img / video) – coloana 2 */
.idea-media {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: flex-end;
}

/* Dimensiune max 200px pe înălțime, ratio păstrat */
.idea-media img,
.idea-media video,
.idea-media iframe,
.idea-item img,
.idea-item video,
.idea-item iframe {
  max-height: 200px;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

/* ========== NEWS: media în dreapta, text în stânga ========== */

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
  column-gap: 0.75rem;
  align-items: flex-start;
}

/* Titlu + meta + text + acțiuni în coloana 1 */
.news-item-header,
.news-item-body-wrapper,
.news-item-actions {
  grid-column: 1;
}

/* Media (imagine / video) în coloana 2, sus */
.news-item-media {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: flex-end;
}

/* Imaginile din news: max 200px înălțime, păstrăm raportul */
.news-item-media img {
  max-height: 200px;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

/* Video responsive din news, adaptat la max 200px */
.news-item-media .responsive-video {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16 / 9;
  padding-bottom: 0;
  max-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.news-item-media .responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Pe mobile, revenim la layout pe o singură coloană (mai aerisit) */
@media (max-width: 768px) {
  .idea-item,
  .news-item {
    display: block;
  }

  .idea-media,
  .news-item-media {
    margin-top: 0.5rem;
  }
}

/* Header mobile fine-tuning override */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    gap: 0.75rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-text h1 { font-size: 0.9rem; }
  .brand-text p  { font-size: 0.72rem; }
}

/* Layout audit v3 — final rules */
body { overflow-x: hidden; }
.header, .login-card, .image-lightbox, .modal-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
.header { background: rgba(11,16,32,.98); }
.brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #7779ff, #5254df);
  background-image: none;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(91,92,240,.28);
  animation: none;
}

.page, .header-inner, .footer-inner { width: min(100%, 1388px); margin-inline: auto; }
.page { padding: 28px 24px 48px; }

.page.page-ideas,
.page.page-news {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  padding: 28px 24px 48px;
}
.page.page-ideas > *, .page.page-news > * { width: 100%; min-width: 0; }
.page.page-ideas .page-intro, .page.page-news .page-intro, .page.page-gallery .page-intro { margin: 0; padding: 8px 2px 0; }
.page.page-ideas .ideas-panel, .page.page-news .page-news-inner { width: 100%; max-width: none; margin: 0; padding: 0; }

.ideas-list-wrapper, .page-news-inner { width: 100%; max-width: none; padding: 24px; border-radius: 22px; }
.ideas-header-row, .news-header-row { width: 100%; margin: 0 0 20px; padding: 0; align-items: center; }
.ideas-header-row > div, .news-header-row > div { min-width: 0; }
.ideas-header-row h2 { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.025em; }
.ideas-header-row p.muted { margin: 0; line-height: 1.5; }

#ideasList, #newsList, #newsInfoList, .news-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.idea-item, .news-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 210px;
  padding: 20px;
  gap: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20,29,54,.98), rgba(7,12,27,.98));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: none;
  contain: layout paint;
}
.idea-item:hover, .news-item:hover {
  transform: translateY(-1px);
  border-color: rgba(119,121,255,.55);
  background: linear-gradient(145deg, rgba(24,34,65,.98), rgba(8,13,29,.98));
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
.idea-card-header, .news-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
}
.idea-card-header-main, .news-item-header-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.idea-item h4, .news-item h4 { margin: 0; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.idea-meta, .news-item-header small { flex: 0 0 auto; padding-top: 3px; font-size: .72rem; white-space: nowrap; }
.idea-body-wrapper, .news-item-body-wrapper { width: 100%; min-width: 0; }
.idea-item .idea-body, .news-item .news-item-body { margin: 0; color: #dce3ef; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.idea-actions, .news-item-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,.1);
}
.idea-media, .news-item-media { width: 100%; margin: 0; }

.news-tab-panel { padding: 24px; }
.news-tab-panel > h2 { margin: 0 0 4px; }
.news-tab-panel > p.muted { margin: 0 0 20px; line-height: 1.5; }

.gallery-layout { gap: 20px; }
.gallery-main, .gallery-sidebar { min-width: 0; }
.page-gallery .gallery { padding: 16px; }
.image-grid { gap: 14px; }
.image-card { min-width: 0; padding: 10px; }
.selection-bar { min-height: 38px; margin: 0 0 12px; }

@media (max-width: 900px) {
  .page, .page.page-ideas, .page.page-news { padding: 22px 18px 38px; }
  #ideasList, #newsList, #newsInfoList, .news-info-list { grid-template-columns: 1fr; }
  .ideas-list-wrapper, .page-news-inner, .news-tab-panel { padding: 18px; }
  .header-inner { flex-direction: column; align-items: stretch; padding: 12px 18px; }
}

@media (max-width: 620px) {
  .page, .page.page-ideas, .page.page-news { padding: 18px 14px 32px; }
  .ideas-header-row, .news-header-row { align-items: stretch; flex-direction: column; }
  .ideas-header-row .ghost-btn, .news-header-row .ghost-btn { width: 100%; min-height: 42px; }
  .idea-card-header, .news-item-header { flex-direction: column; gap: 6px; }
  .idea-item, .news-item { min-height: 0; padding: 16px; }
  .selection-bar { align-items: stretch; flex-direction: column; }
}

/* Dashboard and product interactions */
.dashboard-page { display: flex; flex-direction: column; gap: 22px; }
.dashboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 12px 2px 4px; }
.dashboard-welcome h2 { margin: 0; font-size: clamp(2rem,4vw,3.4rem); letter-spacing: -.055em; }
.dashboard-welcome p { margin: 8px 0 0; color: var(--muted); }
.dashboard-cta { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.metric-card { min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(17,24,45,.75); color: inherit; text-decoration: none; transition: transform .12s ease,border-color .12s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: rgba(119,121,255,.45); }
.metric-icon { display:grid;place-items:center;width:34px;height:34px;margin-bottom:22px;border-radius:10px;background:#6567ef;color:white;font-size:.72rem;font-weight:800; }
.metric-mint{background:#2ebf98}.metric-coral{background:#e98268}.metric-gold{background:#d0a540}
.metric-card strong { display:block;font-size:1.9rem;letter-spacing:-.04em }.metric-card small{display:block;margin-top:2px;color:#d7deeb}.metric-card em{display:block;margin-top:10px;color:#7f8ba2;font-size:.7rem;font-style:normal}
.dashboard-grid { display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:16px }
.dashboard-panel { padding:22px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(17,24,45,.7) }
.panel-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px }.panel-heading h3{margin:0;font-size:1.05rem}.panel-heading p{margin:4px 0 0;color:var(--muted);font-size:.76rem}.panel-heading a{color:#9799ff;font-size:.75rem;text-decoration:none}
.recent-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px }.recent-asset{display:flex;align-items:center;gap:12px;padding:9px;border-radius:13px;background:rgba(4,9,22,.48);color:inherit;text-decoration:none}.recent-asset img{width:64px;height:54px;border-radius:9px;object-fit:cover}.recent-asset div{min-width:0}.recent-asset strong,.recent-asset span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-asset strong{font-size:.8rem}.recent-asset span{margin-top:4px;color:var(--muted);font-size:.66rem}
.activity-list{list-style:none;margin:0;padding:0}.activity-list li{display:grid;grid-template-columns:8px 1fr auto;gap:10px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.07)}.activity-list li:last-child{border:0}.activity-list i{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#686af1}.activity-list strong,.activity-list span{display:block}.activity-list strong{font-size:.77rem}.activity-list span,.activity-list time{margin-top:4px;color:var(--muted);font-size:.64rem}

.icon-btn { width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#090f21;color:#dce3ef;cursor:pointer }
.active-filters { display:none;gap:7px;flex-wrap:wrap;margin:-5px 0 12px }.active-filters.has-filters{display:flex}.filter-chip{padding:5px 9px;border-radius:999px;background:rgba(109,111,245,.13);border:1px solid rgba(109,111,245,.25);color:#b8b9ff;font-size:.68rem}
.image-grid-list { grid-template-columns:1fr !important }.image-grid-list .image-card{display:grid;grid-template-columns:minmax(180px,260px) 1fr auto;grid-template-rows:auto 1fr auto;gap:10px 16px;min-height:180px}.image-grid-list .image-card-header{grid-column:2}.image-grid-list .image-thumb-wrapper{grid-column:1;grid-row:1/4;height:160px}.image-grid-list .image-meta{grid-column:2}.image-grid-list .image-actions{grid-column:3;grid-row:1/4;flex-direction:column;width:120px}
.upload-dialog h2{margin:.2rem 0}.drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;margin-top:18px;padding:28px;border:1px dashed rgba(119,121,255,.5);border-radius:18px;background:rgba(109,111,245,.06);cursor:pointer;transition:.12s}.drop-zone:hover,.drop-zone.is-dragging{border-color:#8f91ff;background:rgba(109,111,245,.13)}.drop-zone span{margin-top:6px;color:var(--muted);font-size:.78rem}.upload-progress{height:4px;margin-top:14px;overflow:hidden;border-radius:99px;background:#151d35}.upload-progress span{display:block;width:45%;height:100%;background:#7779ff;animation:uploadMove .8s ease-in-out infinite alternate}@keyframes uploadMove{to{transform:translateX(120%)}}
.toast-region{position:fixed;right:20px;bottom:20px;z-index:100;display:flex;flex-direction:column;gap:8px}.toast{min-width:240px;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#151d35;box-shadow:0 18px 50px rgba(0,0,0,.35);opacity:0;transform:translateY(8px);transition:.18s}.toast.is-visible{opacity:1;transform:none}.toast-error{border-color:rgba(239,100,100,.45)}
.confirm-backdrop{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:20px;background:rgba(3,7,18,.78);opacity:0;transition:.15s}.confirm-backdrop.is-open{opacity:1}.confirm-card{width:min(100%,410px);padding:24px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:#11182d;box-shadow:0 30px 90px rgba(0,0,0,.45)}.confirm-card h3{margin:0;font-size:1.2rem}.confirm-card p{color:var(--muted)}.confirm-card>div{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.danger-btn{border:0;border-radius:999px;padding:.55rem 1.2rem;background:#d95d66;color:white;cursor:pointer}

@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.image-grid-list .image-card{display:flex}.image-grid-list .image-actions{width:100%;flex-direction:row}.nav{overflow-x:auto;scrollbar-width:none}}
@media(max-width:620px){.dashboard-welcome{align-items:stretch;flex-direction:column}.dashboard-cta{justify-content:center}.metric-grid{grid-template-columns:1fr 1fr}.metric-card{padding:16px}.recent-grid{grid-template-columns:1fr}.toast-region{right:14px;bottom:80px;left:14px}.toast{min-width:0}.header{position:static}.app-shell{padding-bottom:68px}.nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:50;width:auto;padding:6px;background:rgba(11,16,32,.98);border-color:rgba(255,255,255,.13);box-shadow:0 12px 40px rgba(0,0,0,.5)}.nav-link{flex:1;text-align:center;padding:.48rem .55rem;font-size:.68rem}.footer{margin-bottom:0}}
.js-ready body { opacity: .01; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease; }
.js-ready body.page-ready { opacity: 1; transform: none; }
.js-ready body.page-leaving { opacity: .01; transform: translateY(-2px); }
.image-thumb-wrapper { position:relative; }
.image-thumb-wrapper::before { content:"";position:absolute;inset:0;background:linear-gradient(100deg,#151d35 25%,#202b49 45%,#151d35 65%);background-size:220% 100%;animation:skeleton 1.1s linear infinite; }
.image-thumb-wrapper.is-loaded::before { display:none; }
@keyframes skeleton { to { background-position-x:-220%; } }
