﻿:root {
  --bg: #f6f7fb;
  --ink: #0f1225;
  --panel: #ffffff;
  --line: #e9edf5;
  --muted: #667085;
  --brand: #6a4cff;
  --brand-2: #8d79ff;
  --ring: rgba(106, 76, 255, .35);
}

.dark {
  --bg: #1a1a1a;
  --ink: #f0f0f0;
  --panel: #2a2a2a;
  --line: #3a3a3a;
  --muted: #888888;
  --brand: #00aaff;
  --brand-2: #0088cc;
  --ring: rgba(0, 170, 255, .35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.top-ad {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.top-ad img,
.left-sidebar img,
.right-ad img {
  max-width: 100%;
  height: auto;
}

.left-sidebar {
  width: 160px;
  display: flex;
  justify-content: center;
}

.right-ad {
  margin-top: 20px;
}

.wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: #3a3f55;
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 160px 1fr 320px;
  gap: 24px;
  width: min(1600px, 92%);
  margin: 32px auto;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  width: min(1200px, 92%);
  margin: 32px auto;
}

.work .hero {
  background: radial-gradient(900px 400px at 20% -20%, #efeaff, transparent), radial-gradient(900px 400px at 80% 0%, #eef0ff, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 40px);
}

.hero p {
  margin: 0;
  color: #475467;
}
.hero--grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  background: linear-gradient(135deg, rgba(106, 76, 255, 0.08), rgba(109, 119, 255, 0.02));
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(106,76,255,0.1);
}
.hero__copy h1 { margin-top: 6px; }
.hero__copy p { font-size: 15px; line-height: 1.7; max-width: 720px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(106, 76, 255, 0.12);
}
.cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.hero-shortlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: #475467;
  line-height: 1.6;
}
.hero-shortlist span {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hero__panel {
  background: linear-gradient(160deg, #fff, #f9f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(106, 76, 255, 0.08);
}
.hero__panel-title {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--brand);
}
.hero__panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stat-label {
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.stat-value {
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-note {
  margin: 0;
  font-size: 12px;
  color: #475467;
}

.drop {
  margin-top: 20px;
  background: var(--panel);
  border: 2px dashed #d9def0;
  border-radius: 16px;
  padding: 34px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.drop__icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.drop input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop.active {
  outline: 4px solid var(--ring);
  border-color: rgba(106,76,255,0.5);
  box-shadow: 0 12px 40px rgba(106, 76, 255, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.grid.rendering {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.item__img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  border: 1px solid #f1f3f8;
}

.item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475467;
  margin-top: 8px;
  
}

.item__meta .tag {
  align-self: center;
}

.rename-input {
  border: none;
  background: transparent;
  font: inherit;
  width: 100%;
  margin-right: 5px;
}


.rename-input:focus {
  outline: none;
  border-bottom: 1px solid var(--brand);
}

.tag {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.item__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 32px var(--ring);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
}
.btn--sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.templates {
  margin-top: 26px;
}
.section-heading { margin-bottom: 14px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 6px;
}

.template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.template {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.template:hover {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px var(--ring);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.step-card h4 { margin: 0 0 4px; }
.step-number {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px var(--ring);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.feature-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  line-height: 1.6;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.feature-card h4 {
  margin: 0 0 8px;
}
.feature-card.badge-card {
  position: relative;
}
.feature-card.badge-card .badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(106, 76, 255, 0.12);
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(106,76,255,0.2);
  margin-bottom: 8px;
}
.feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.feature-link:hover .feature-card {
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: rgba(106,76,255,0.22);
}
.hero-cta-secondary {
  margin-top: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.hero-badge .badge-soft {
  margin: 0;
}
.content-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  line-height: 1.65;
}
.content-panel p,
.content-panel li {
  margin: 6px 0 10px;
}

.sidebar {
  position: sticky;
  top: 66px;
  height: calc(100dvh - 86px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  background: linear-gradient(180deg, #fff, #fafbff);
}

.panel__title {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.group {
  margin-bottom: 14px;
}

.label {
  display: block;
  font-size: 12px;
  color: #475467;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ADDED: Generic input styling */
.input,
input[type=text],
input[type=email],
input[type=url],
input[type=password],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

input[type=range] {
  width: 100%;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  vertical-align: middle;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  cursor: pointer;
  background: #e5e7f0;
  inset: 0;
  border-radius: 999px;
  transition: .2s;
}

.switch span:after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.switch input:checked+span {
  background: var(--brand);
}

.switch input:checked+span:after {
  transform: translateX(20px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dfe3ef;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--ring);
}
.chip:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.hint {
  margin-top: 10px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 32px;
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 37, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.loader.hidden {
  display: none;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader__text {
  color: #fff;
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-sidebar {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }
  .hero--grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}

.rename-input {
  border: 1px dashed var(--brand);
  background: rgba(106, 76, 255, 0.08);
  color: var(--ink);
  font: inherit;
  border-radius: 6px;
  width: 100%;
  padding: 4px 6px;
  margin-right: 5px;
  cursor: text;
  transition: all 0.2s ease;
}

.rename-input:hover {
  background: rgba(106, 76, 255, 0.15);
}

.rename-input:focus {
  background: #fff;
  border: 1px solid var(--brand);
  outline: none;
}
/* ---------- Responsive Mobile Drawer Menu (fixed blur fix) ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  z-index: 200;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.overlay.show {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -260px;
    width: 240px;
    height: 100vh;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 20px;
    gap: 18px;
    border-left: 1px solid var(--line);
    box-shadow: -6px 0 18px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 150;
  }

  .nav.open {
    right: 0;
  }

  .nav a,
  .nav button {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    background: none;
    border: none;
    padding: 10px 0;
  }

  .nav a:hover {
    color: var(--brand);
  }

  .topbar .wrap {
    justify-content: space-between;
  }
}

body.nav-open {
  overflow: hidden;
}
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .nav { position: fixed; right: -260px; transition: right 0.3s; }
  .nav.open { right: 0; }
  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); }
  [x-cloak] { display: none !important; }
}
/* Alpine responsive menu fix */
[x-cloak] { display: none !important; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 250;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  padding: 80px 24px;
  gap: 20px;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.25);
  z-index: 300;
}

.mobile-menu a,
.mobile-menu button {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  border: none;
  background: none;
}

.mobile-menu a:hover {
  color: var(--brand);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 350;
  }
}
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top svg {
  stroke-width: 2.5;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-2);
}
.tip-progress {
  margin-top: 8px;
  width: 100%;
  height: 4px;
  background: #e5e7f0;
  border-radius: 999px;
  overflow: hidden;
}

.tip-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 10s linear;
}
.tip-box {
  margin-top: 18px;
  background: #f6f8ff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: #333;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: background .3s, transform .3s;
}
.tip-box:hover {
  background: #eef1ff;
  transform: translateY(-2px);
}

.tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tip-title {
  margin: 0;
  font-weight: 700;
  color: var(--brand);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.next-tip-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  transition: transform .2s ease;
}
.next-tip-btn:hover {
  transform: rotate(90deg);
}

.fade-in {
  animation: fadeIn .6s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Download page grids fix */
.blog-grid {
    display: grid;
    /* Use auto-fit for flexible column counting based on available space */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-info {
    padding: 18px 20px 24px;
}

.blog-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.blog-info .excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-date {
    font-size: 13px;
    color: #999;
}

.blog-side-list {
    list-style: none;
    padding: 0;
}

.blog-side-list li {
    margin: 10px 0;
}

.blog-side-list a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.blog-side-list a:hover {
    text-decoration: underline;
}
/* BLOG HEADER */
.blog-header {
    margin-bottom: 30px;
    text-align: left;
}

.blog-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 800;
    color: var(--ink);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

/* FEATURED IMAGE */
.blog-featured {
    margin-bottom: 40px;
    width: 100%;
}

.blog-featured img {
    width: 100%;
    height: auto; /* Fixes squeezed image */
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: block;
}

/* ARTICLE CONTENT */
.blog-article {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .blog-article { padding: 20px; }
}

.blog-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2b3040;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5 {
    color: var(--ink);
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-content h2 { font-size: 1.8rem; }
.blog-content h3 { font-size: 1.4rem; }

.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-content a:hover {
    color: var(--ink);
}

.blog-content blockquote {
    border-left: 4px solid var(--brand);
    background: #f7f7fb;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content pre {
    background: #111;
    color: #eee;
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    margin-bottom: 24px;
}

.blog-content code {
    background: #f0f0f5;
    color: #d14343;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}
.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* TAGS */
.blog-tags {
    margin-top: 30px;
}

.blog-tags .tag {
    display: inline-block;
    background: #f3f3f3;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #555;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
/* ------------------------------------------
   MOBILE: Move Conversion Settings on top
------------------------------------------ */
@media (max-width: 900px) {

  .responsive-stack {
    display: flex;
    flex-direction: column;
  }

  /* Set order for mobile */
  .responsive-stack .sidebar {
    order: 1; /* FIRST */
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }

  .responsive-stack .work {
    order: 2; /* AFTER sidebar */
  }

  .left-sidebar {
    display: none !important;
  }
}

/* Feedback modal + FAB */
.feedback-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 450;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
}

.feedback-fab.show {
  opacity: 1;
  transform: translateY(0);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 18, 37, 0.45);
  backdrop-filter: blur(4px);
  z-index: 500;
  padding: 14px;
}

.feedback-modal.hidden {
  display: none;
}

.feedback-card {
  width: min(420px, 100%);
  background: #fff;
  color: #0f1225;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  position: relative;
}

.dark .feedback-card {
  background: #2b2b2b;
  color: #f0f0f0;
}

.feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
}

.feedback-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.feedback-card p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.dark .feedback-card p {
  color: #cbd5e1;
}

.feedback-card label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 700;
}

.feedback-card input,
.feedback-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: inherit;
}

.dark .feedback-card input,
.dark .feedback-card textarea {
  background: #1e1e1e;
  border-color: #333;
}

.feedback-card textarea {
  min-height: 110px;
  resize: vertical;
}

.feedback-user {
  margin-bottom: 6px;
}

.feedback-gate {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f8f9ff;
}

.feedback-gate.hidden {
  display: none;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 22px;
  color: #d1d5db;
  cursor: pointer;
  transition: color .2s ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #fbbf24;
}

.feedback-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.feedback-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

.feedback-status.error {
  color: #d14343;
}

/* =========================================================
   Shared Header + Navigation (Global across all routes)
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(10px);
}

.header-shell {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.topbar .header-shell {
  display: grid;
  align-items: center;
  justify-content: initial;
  padding: 0;
}

.header-left,
.header-right,
.header-center {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-left { gap: 12px; }
.header-center { justify-content: center; gap: 20px; }
.header-right { justify-content: flex-end; gap: 10px; }

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.nav-link.active,
.nav-link:hover {
  color: var(--brand);
}

.nav-link--button {
  padding: 0;
}

.nav-item .chevron,
.mobile-accordion-toggle .chevron {
  transition: transform .2s ease;
}

.nav-item.is-open .chevron,
.mobile-accordion-toggle.is-open .chevron {
  transform: rotate(180deg);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1f2937;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.credits-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.credits-link__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: #efeaff;
}

.credits-count {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efeaff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(1100px, 92vw);
  max-height: min(68vh, 620px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.14);
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1500;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-item.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-col h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #98a2b3;
  text-transform: uppercase;
}

.dropdown-panel .dropdown-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #344054;
  padding: 9px;
  border-radius: 10px;
  transition: background .2s ease;
}

.dropdown-panel .dropdown-item:hover,
.dropdown-panel .dropdown-item:focus-visible {
  background: #f3f0ff;
}

.dropdown-panel .dropdown-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.dropdown-panel .dropdown-item small {
  color: #667085;
  font-size: 11px;
}

.dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #efeaff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  z-index: 1600;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 92vw);
  background: #fff;
  box-shadow: -20px 0 42px rgba(17, 24, 39, 0.18);
  z-index: 1700;
  overflow: hidden;
}

.mobile-nav__content {
  height: 100%;
  overflow: auto;
  padding: 18px 16px 28px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.mobile-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mobile-nav__title {
  font-size: 14px;
  font-weight: 800;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mobile-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.mobile-link,
.mobile-credit-link {
  display: block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  padding: 11px 0;
}

.mobile-credit-link {
  color: var(--brand);
  margin-top: 8px;
}

.mobile-accordion-toggle {
  width: 100%;
  border: none;
  background: none;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.mobile-accordion {
  border-left: 2px solid var(--line);
  padding-left: 10px;
  margin: 4px 0 6px 4px;
  max-height: min(45vh, 420px);
  overflow: auto;
}

.mobile-category {
  margin: 12px 0 6px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #98a2b3;
  text-transform: uppercase;
  font-weight: 800;
}

.mobile-sublink {
  display: block;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px dashed #eceff5;
}

.mobile-sublink__name {
  display: block;
  font-size: 14px;
  color: #111827;
  font-weight: 700;
}

.mobile-sublink__meta {
  display: block;
  font-size: 12px;
  color: #667085;
}

.mobile-btn {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .dropdown-panel {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 1024px) {
  .header-shell {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .desktop-nav,
  .desktop-actions {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

.feedback-status.success {
  color: #18794e;
}

.promo-slot-placeholder,
.promo-slot {
  display: block;
  cursor: pointer;
}

.promo-slot-placeholder img,
.promo-slot img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ad-placeholder-box {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: rgba(106, 76, 255, 0.05);
  color: var(--ink);
  transition: all 0.2s ease;
}

.ad-placeholder-box:hover {
  border-color: var(--brand);
  background: rgba(106, 76, 255, 0.1);
}

.ad-placeholder-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.ad-placeholder-sub {
  font-size: 12px;
  color: var(--muted);
}

.promo-shell {
  width: 100%;
  min-height: 140px;
}

/* Dropzone tweaks */
.drop {
  border: 2px dashed rgba(106, 76, 255, 0.4);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(106,76,255,0.08), rgba(106,76,255,0.02));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.drop--emphasized {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.drop:hover, .drop:focus-within {
  border-color: rgba(106, 76, 255, 0.7);
  box-shadow: 0 16px 40px rgba(106, 76, 255, 0.12);
  transform: translateY(-1px);
}

.drop__left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.drop__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #6A4CFF;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}

.drop__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.drop__subtitle {
  margin: 4px 0 6px;
}

.drop__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.chip--soft {
  background: rgba(106, 76, 255, 0.12);
  color: #6A4CFF;
  border: 1px solid rgba(106, 76, 255, 0.2);
}

.drop__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.drop__btn {
  min-width: 150px;
}

.xsmall {
  font-size: 12px;
}

@media (max-width: 720px) {
  .drop--emphasized {
    flex-direction: column;
    align-items: flex-start;
  }
  .drop__cta {
    width: 100%;
    align-items: flex-start;
  }
  .drop__btn {
    width: 100%;
  }
}

/* Bookmark banner */
.bookmark-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 10px);
  background: #6A4CFF;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  z-index: 9999;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bookmark-banner.bookmark-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  animation: bookmark-fade-in 0.3s ease;
}

.bookmark-banner.hidden {
  display: none;
}

.bookmark-close {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.bookmark-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

@keyframes bookmark-fade-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ADDED BUTTON GROUP & TOAST */
.btn-group {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.btn-group button {
  flex: 1;
  background: #fff;
  border: none;
  border-right: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.btn-group button:last-child {
  border-right: none;
}
.btn-group button.active,
.btn-group button:hover {
  background: rgba(106, 76, 255, 0.08);
  color: var(--brand);
}
.btn-group button.active {
  background: var(--brand);
  color: #fff;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  background: #d14343;
}


.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
  display: none; 
}

/* Alpine x-show handles display */
.dropdown-menu { display:none; }


.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
  margin: 0 !important;
}

.dropdown-item:hover {
  background: #f6f7fb;
  color: var(--brand);
}

.chevron {
  transition: transform 0.2s;
}

/* Alpine Utility */
[x-cloak] { display: none !important; }

/* Ensure dropdown is click-only: force hide if not managed by JS */
/* .dropdown-menu { display: none; } REMOVED: Breaks Alpine x-show */
/* Only show when Alpine applies display:block via x-show */


.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
  display: none; /* default closed, Alpine will override inline */
}

/* ===== Desktop hover dropdown (FORCE OPEN) ===== */
.desktop-nav .dropdown--hover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* trigger */
.desktop-nav .dropdown--hover > .dropdown-toggle {
  background: none;
  border: 0;
  cursor: default;
  font: inherit;
  color: #3a3f55;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-left: 16px;
  line-height: 1;
}

/* chevron */
.desktop-nav .dropdown--hover > .dropdown-toggle .chev {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  transition: transform .15s ease;
  transform-origin: 50% 50%;
}

/* menu base */
.desktop-nav .dropdown--hover > .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  padding: 8px 0;
  z-index: 1000;

  /* IMPORTANT: force closed state */
  display: none !important;
}

/* OPEN on hover or keyboard focus */
.desktop-nav .dropdown--hover:hover > .dropdown-menu,
.desktop-nav .dropdown--hover:focus-within > .dropdown-menu {
  display: block !important;
}

/* rotate chevron when open */
.desktop-nav .dropdown--hover:hover > .dropdown-toggle .chev,
.desktop-nav .dropdown--hover:focus-within > .dropdown-toggle .chev {
  transform: rotate(180deg);
}

/* items */
.desktop-nav .dropdown--hover .dropdown-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  margin: 0 !important;
  white-space: nowrap;
}
.desktop-nav .dropdown--hover .dropdown-item:hover {
  background: #f6f7fb;
  color: var(--brand);
}
/* 1) Nu mai lăsa "spațiu gol" între trigger și meniu */
.desktop-nav .dropdown--hover > .dropdown-menu {
  top: 100% !important;     /* era calc(100% + 10px) */
  margin-top: 10px;         /* păstrăm distanța vizuală, dar controlată */
}

/* 2) Creează un "hover bridge" invizibil între buton și meniu */
.desktop-nav .dropdown--hover::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;             /* zona tampon */
  background: transparent;
}

/* 3) Asigură-te că meniul se deschide și când e hover pe el */
.desktop-nav .dropdown--hover:hover > .dropdown-menu,
.desktop-nav .dropdown--hover:focus-within > .dropdown-menu,
.desktop-nav .dropdown--hover > .dropdown-menu:hover {
  display: block !important;
}
