/* ============================================================
   home.css — Complete rewrite  |  Blue × Indigo
   ============================================================ */

/* ── Fiverr-style Nav ── */
.fiverr-nav {
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
}

.nav-topbar {
  height: 54px;
  width: 100%;
  display: flex;
  align-items: center;
}

.nav-topbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Search bar in nav */
.home-search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-search:focus-within {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

.home-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.88rem;
  padding: 5px 0;
  min-width: 0;
}

.home-search-input::placeholder { color: var(--text-3); }

.home-search-btn {
  width: auto;
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Become a freelancer / Pricing */
.nav-link {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }

/* Language */
.nav-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.nav-lang:hover { border-color: var(--border-2); color: var(--text); }

/* Log in */
.nav-link-outline {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link-outline:hover { border-color: var(--blue-border); color: var(--blue); text-decoration: none; }

/* Join */
.nav-btn-green {
  background: linear-gradient(135deg, var(--blue-h), var(--indigo-h));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: filter 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(96,180,255,0.25);
}

.nav-btn-green:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }

/* Messages icon */
.nav-icon-btn {
  position: relative;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  color: var(--text-2);
}

.nav-icon-btn:hover { background: var(--surface); color: var(--text); text-decoration: none; }

.nav-notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg);
}

/* Logout / ghost */
.btn-ghost-nav {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-ghost-nav:hover { background: var(--surface); color: var(--text); }

/* ── Categories bar ── */
.nav-cats {
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
}

.nav-cats-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  height: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-cats-inner::-webkit-scrollbar { display: none; }

.nav-cat-link {
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-cat-link:hover {
  color: var(--text);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* Nav fav (removed but keep class safe) */
.nav-fav {
  color: var(--blue) !important;
  border: 1px solid var(--blue-border);
  background: var(--blue-dim);
  border-radius: 8px;
}

/* ── Hero ── */
.home-hero {
  background:
    radial-gradient(ellipse 70% 80% at 15% 60%, rgba(96,180,255,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 88% 30%, rgba(165,180,252,0.1) 0%, transparent 60%),
    var(--bg-2);
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ── A. Aurora background blobs ── */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.42;
  will-change: transform;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

.aurora__blob--1 {
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, #60b4ff 0%, #3b9eff 40%, transparent 70%);
  top: -130px;
  left: -100px;
  animation-duration: 20s;
}

.aurora__blob--2 {
  width: 520px;
  height: 420px;
  background: radial-gradient(circle, #818cf8 0%, #6366f1 40%, transparent 70%);
  top: 40px;
  right: -100px;
  animation-duration: 26s;
  animation-delay: -9s;
}

.aurora__blob--3 {
  width: 440px;
  height: 360px;
  background: radial-gradient(circle, #34d399 0%, #10b981 40%, transparent 70%);
  bottom: -80px;
  left: 36%;
  animation-duration: 32s;
  animation-delay: -16s;
}

/* Light mode: richer, more saturated blobs for contrast on pale bg */
[data-theme="light"] .aurora__blob--1 {
  background: radial-gradient(circle, #2b8fef 0%, #1d6fc7 40%, transparent 70%);
  opacity: 0.38;
}
[data-theme="light"] .aurora__blob--2 {
  background: radial-gradient(circle, #5b50e0 0%, #4338ca 40%, transparent 70%);
  opacity: 0.32;
}
[data-theme="light"] .aurora__blob--3 {
  background: radial-gradient(circle, #059669 0%, #047857 40%, transparent 70%);
  opacity: 0.28;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(28px, -22px) scale(1.04); }
  66%  { transform: translate(-18px, 26px) scale(0.97); }
  100% { transform: translate(18px, 8px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob { animation: none; }
}

/* ── E. Notification bell pulse ── */
@keyframes bell-shake {
  0%, 100% { transform: rotate(0deg); }
  15%      { transform: rotate(-15deg); }
  30%      { transform: rotate(15deg); }
  45%      { transform: rotate(-10deg); }
  60%      { transform: rotate(10deg); }
  75%      { transform: rotate(-6deg); }
  90%      { transform: rotate(6deg); }
}

#notifBell.bell-pulse {
  animation: bell-shake 0.6s ease;
  filter: drop-shadow(0 0 8px rgba(96, 180, 255, 0.7));
}

@media (prefers-reduced-motion: reduce) {
  #notifBell.bell-pulse { animation: none; filter: none; }
}

/* ── Full-page aurora (fixed behind all sections) ── */
.page-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  will-change: transform;
  animation: aurora-drift 30s ease-in-out infinite alternate;
}

.page-aurora__blob--1 {
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, #60b4ff 0%, #3b9eff 35%, transparent 70%);
  top: -180px;
  left: -160px;
  animation-duration: 26s;
}

.page-aurora__blob--2 {
  width: 620px;
  height: 520px;
  background: radial-gradient(circle, #818cf8 0%, #6366f1 35%, transparent 70%);
  top: 35vh;
  right: -160px;
  animation-duration: 33s;
  animation-delay: -11s;
}

.page-aurora__blob--3 {
  width: 560px;
  height: 460px;
  background: radial-gradient(circle, #34d399 0%, #10b981 35%, transparent 70%);
  top: 62vh;
  left: 18%;
  animation-duration: 38s;
  animation-delay: -21s;
}

.page-aurora__blob--4 {
  width: 500px;
  height: 420px;
  background: radial-gradient(circle, #f472b6 0%, #ec4899 35%, transparent 70%);
  bottom: -80px;
  right: 18%;
  animation-duration: 30s;
  animation-delay: -16s;
}

[data-theme="light"] .page-aurora__blob { opacity: 0.12; }
[data-theme="light"] .page-aurora__blob--1 { background: radial-gradient(circle, #2b8fef 0%, #1d6fc7 35%, transparent 70%); }
[data-theme="light"] .page-aurora__blob--2 { background: radial-gradient(circle, #5b50e0 0%, #4338ca 35%, transparent 70%); }
[data-theme="light"] .page-aurora__blob--3 { background: radial-gradient(circle, #059669 0%, #047857 35%, transparent 70%); }
[data-theme="light"] .page-aurora__blob--4 { background: radial-gradient(circle, #be185d 0%, #9d174d 35%, transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  .page-aurora__blob { animation: none; }
}

/* ── RTL (Arabic) layout fixes ── */
[dir="rtl"] body {
  font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

[dir="rtl"] .hero-cta-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

[dir="rtl"] .home-hero-badges,
[dir="rtl"] .hero-avatar-row,
[dir="rtl"] .hero-stats,
[dir="rtl"] .hero-card-actions,
[dir="rtl"] .hero-card-top {
  direction: rtl;
}

[dir="rtl"] .home-search {
  direction: rtl;
}

[dir="rtl"] .home-search-input {
  text-align: right;
}

[dir="rtl"] .cat-scroll-btn--left { order: 2; }
[dir="rtl"] .cat-scroll-btn--right { order: 0; }

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 36px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Left bubble card ── */
.home-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(12, 12, 22, 0.72);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 36px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.32), 0 2px 10px rgba(0,0,0,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
[data-theme="light"] .home-hero-left {
  background: rgba(255,255,255,0.84);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 2px 10px rgba(0,0,0,0.06);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--blue-border);
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.home-hero-title {
  font-size: 44px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

.home-hero-sub { font-size: 1rem; margin: 0; line-height: 1.7; }

.home-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Right bubble card ── */
.home-hero-card {
  background: rgba(12, 12, 22, 0.72) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 36px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.32), 0 2px 10px rgba(0,0,0,0.14) !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease;
}
[data-theme="light"] .home-hero-card {
  background: rgba(255,255,255,0.84) !important;
  border-color: rgba(0,0,0,0.07) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 2px 10px rgba(0,0,0,0.06) !important;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-icon { font-size: 1.4rem; line-height: 1; color: var(--blue); }

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stats {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  gap: 4px;
}

.hero-stat-divider { width: 1px; height: 36px; background: var(--border); flex: 0 0 auto; }

.hero-stat-value {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── Left bubble: avatar stack row ── */
.hero-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2px;
}
[data-theme="light"] .hero-avatar-row { border-top-color: rgba(0,0,0,0.06); }

.hero-avatars {
  display: flex;
  align-items: center;
}
.hero-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(12,12,22,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  margin-left: -9px;
  flex-shrink: 0;
}
[data-theme="light"] .hero-avatar-circle { border-color: rgba(255,255,255,0.9); }
.hero-avatars .hero-avatar-circle:first-child { margin-left: 0; }
.hero-avatar-circle:nth-child(1) { background: linear-gradient(135deg, #60b4ff, #818cf8); }
.hero-avatar-circle:nth-child(2) { background: linear-gradient(135deg, #34d399, #60b4ff); }
.hero-avatar-circle:nth-child(3) { background: linear-gradient(135deg, #f472b6, #818cf8); }
.hero-avatar-circle:nth-child(4) { background: linear-gradient(135deg, #fbbf24, #f472b6); }

.hero-avatar-stat { flex: 1; }
.hero-avatar-count {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.hero-avatar-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-cta-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue, #60b4ff), var(--indigo, #818cf8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(96,180,255,0.38);
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.hero-cta-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(96,180,255,0.5);
  text-decoration: none;
}

/* ── Right bubble: action buttons row ── */
.hero-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
[data-theme="light"] .hero-card-actions { border-top-color: rgba(0,0,0,0.06); }

.hero-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
[data-theme="light"] .hero-action-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
.hero-action-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
[data-theme="light"] .hero-action-btn:hover { background: rgba(0,0,0,0.08); }
.hero-action-btn.primary {
  background: linear-gradient(135deg, var(--blue, #60b4ff), var(--indigo, #818cf8));
  border-color: transparent;
  color: #fff;
  flex: 2;
}
.hero-action-btn.primary:hover { opacity: 0.92; }

/* ── Hero Notch Search ── */
.hero-notch-outer {
  max-width: 1140px;
  margin: 0 auto 44px;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}

.hero-notch-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(22, 22, 38, 0.78);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 8px 8px 28px;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.42),
    0 2px 8px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  max-width: 820px;
  margin: 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-notch-search:focus-within {
  border-color: rgba(96,180,255,0.45);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.42),
    0 0 0 3px rgba(96,180,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

[data-theme="light"] .hero-notch-search {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.hero-notch-icon {
  font-size: 1.05rem;
  opacity: 0.4;
  flex-shrink: 0;
}

.hero-notch-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 11px 0;
  min-width: 0;
}

.hero-notch-input::placeholder { color: var(--text-3); }

.hero-notch-btn {
  background: linear-gradient(135deg, var(--blue, #60b4ff) 0%, var(--indigo, #818cf8) 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 38px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(96,180,255,0.32);
  transition: opacity 0.18s, transform 0.15s;
  letter-spacing: 0.01em;
}

.hero-notch-btn:hover { opacity: 0.9; transform: scale(1.02); }

/* ── Main / Categories ── */
.home-main {
  padding: 48px 24px 80px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-section-sub {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ── Category scroll ── */
.cat-scroll-wrap {
  position: relative;
  margin: 0 -4px;
}

.categories-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.categories-grid::-webkit-scrollbar { display: none; }

.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s, background 0.2s;
}

.cat-scroll-btn--left  { left:  -14px; }
.cat-scroll-btn--right { right: -14px; }
.cat-scroll-btn:hover  { background: var(--surface-2); }

/* ── Fiverr-style category card ── */
.cat-card {
  flex: 0 0 180px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.cat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  text-decoration: none;
  color: #fff;
}

.cat-card-top {
  padding: 14px 14px 10px;
  flex: 0 0 auto;
}

.cat-card-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cat-card-bottom {
  flex: 1;
  min-height: 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CSS Art ── */
.cat-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.cat-art--code { flex-direction: column; gap: 5px; padding: 10px 12px; align-items: flex-start; }
.code-screen {
  width: 100%;
  background: #0f172a;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: monospace;
  font-size: 0.58rem;
  line-height: 1.7;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
}
.code-row { white-space: nowrap; overflow: hidden; }
.code-kw  { color: #818cf8; }
.code-var { color: #60b4ff; }
.code-fn  { color: #4ade80; }
.code-str { color: #fbbf24; }
.code-op  { color: #94a3b8; }
.code-cursor { display: inline-block; width: 5px; height: 10px; background: #60b4ff; animation: blink 1s infinite; margin-top: 2px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.cat-art--design { position: relative; }
.design-canvas { position: relative; width: 130px; height: 100px; }
.design-blob { position: absolute; }

.cat-art--video { gap: 8px; align-items: flex-end; padding: 10px 12px; }
.vid-phone { width: 48px; height: 82px; border-radius: 10px; background: #1e293b; border: 2px solid rgba(255,255,255,.15); overflow: hidden; flex: 0 0 auto; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.vid-phone--2 { width: 40px; height: 68px; opacity:.85; }
.vid-screen { width: 100%; height: 65%; background: linear-gradient(135deg,#1e293b,#334155); position: relative; display: flex; align-items: flex-end; padding: 4px 5px; }
.vid-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vid-play-btn { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1e293b; display: grid; place-items: center; font-size: .55rem; }
.vid-bars { width: 100%; z-index: 1; }

.cat-art--marketing { align-items: flex-end; gap: 5px; padding: 8px 12px; position: relative; }
.mkt-chart { display: flex; align-items: flex-end; gap: 4px; }
.mkt-bar { width: 13px; border-radius: 3px 3px 0 0; flex: 0 0 auto; }
.mkt-trend { position: absolute; top: 8px; right: 8px; font-size: .65rem; font-weight: 900; color: #16a34a; background: rgba(22,163,74,.12); padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(22,163,74,.25); }

.cat-art--writing { padding: 10px 12px; align-items: flex-start; }
.writing-doc { width: 100%; background: #fff; border-radius: 7px; padding: 9px 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.writing-title-bar { height: 7px; width: 50%; background: #1e293b; border-radius: 3px; margin-bottom: 7px; }
.writing-line { height: 4px; background: #e2e8f0; border-radius: 2px; margin-bottom: 4px; }
.writing-cursor { color: #2563eb; font-weight: 900; font-size: .75rem; animation: blink 1s infinite; }

.cat-art--music { gap: 12px; }
.music-mic { display: flex; flex-direction: column; align-items: center; }
.mic-head { width: 26px; height: 35px; border-radius: 13px; background: linear-gradient(135deg,#a78bfa,#7c3aed); box-shadow: 0 2px 8px rgba(124,58,237,.4); }
.mic-stand { width: 3px; height: 16px; background: #7c3aed; opacity:.7; }
.mic-base { width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg,transparent,#7c3aed,transparent); }
.music-waves { display: flex; align-items: center; gap: 4px; }
.mwave { width: 5px; border-radius: 3px; background: linear-gradient(180deg,#c084fc,#818cf8); animation: wave 1.2s ease-in-out infinite; flex: 0 0 auto; }
.mwave:nth-child(2){animation-delay:.1s} .mwave:nth-child(3){animation-delay:.2s} .mwave:nth-child(4){animation-delay:.3s} .mwave:nth-child(5){animation-delay:.2s} .mwave:nth-child(6){animation-delay:.1s}
@keyframes wave { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(.4)} }

.cat-art--business { flex-direction: column; gap: 7px; padding: 10px 12px; }
.biz-profile { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 9px; padding: 7px 9px; width: 100%; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.biz-avatar-lg { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#60b4ff,#818cf8); flex: 0 0 auto; }
.biz-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.biz-name-bar { height: 6px; width: 65%; background: #1e293b; border-radius: 3px; }
.biz-role-bar { height: 4px; width: 40%; background: #cbd5e1; border-radius: 3px; }
.biz-metrics { display: flex; gap: 6px; width: 100%; }
.biz-metric { flex: 1; border-radius: 7px; padding: 5px 7px; text-align: center; }
.biz-metric-val { font-size: .8rem; font-weight: 900; }
.biz-metric-lbl { font-size: .58rem; color: #475569; font-weight: 600; }

.cat-art--ai { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
.ai-chat { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.ai-bubble { padding: 4px 8px; border-radius: 9px; font-size: 0.56rem; font-weight: 600; max-width: 90%; line-height: 1.4; }
.ai-bubble--bot { background: #fff; color: #1e293b; border-radius: 9px 9px 9px 2px; box-shadow: 0 1px 3px rgba(0,0,0,.1); align-self: flex-start; }
.ai-bubble--user { background: #2563eb; color: #fff; border-radius: 9px 9px 2px 9px; align-self: flex-end; }
.ai-bubble--typing { display: flex; gap: 3px; align-items: center; padding: 7px 9px; }
.ai-dot { width: 4px; height: 4px; border-radius: 50%; background: #94a3b8; animation: typing .9s ease-in-out infinite; }
.ai-dot:nth-child(2){animation-delay:.2s} .ai-dot:nth-child(3){animation-delay:.4s}
@keyframes typing { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

.cat-art--photo { gap: 8px; }
.photo-polaroid { display: flex; flex-direction: column; background: #fff; border-radius: 5px; padding: 4px 4px 10px; box-shadow: 0 3px 12px rgba(0,0,0,.15); transform: rotate(-4deg); flex: 0 0 auto; }
.photo-polaroid--2 { transform: rotate(4deg); margin-top: 8px; }
.photo-img { width: 56px; height: 56px; border-radius: 3px; }
.photo-caption { height: 3px; width: 36px; background: #e2e8f0; border-radius: 2px; margin: 3px auto 0; }

.cat-art--finance { gap: 8px; }
.fin-donut { width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(#22c55e 0% 45%, #86efac 45% 72%, #4ade80 72% 100%); box-shadow: inset 0 0 0 18px #d4f0d4; flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(34,197,94,.3)); }
.fin-stats { display: flex; flex-direction: column; gap: 5px; }
.fin-stat-row { display: flex; align-items: center; gap: 4px; font-size: .62rem; color: #1e293b; font-weight: 600; }
.fin-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }

.cat-art--lifestyle { position: relative; }
.leaf { position: absolute; border-radius: 50% 0; background: linear-gradient(135deg,#4ade80,#2dd4bf); }
.leaf--1 { width: 38px; height: 55px; top: 8px; left: 18px; transform: rotate(-20deg); opacity:.9; }
.leaf--2 { width: 28px; height: 42px; top: 20px; left: 52px; transform: rotate(30deg); opacity:.75; }
.leaf--3 { width: 22px; height: 35px; top: 10px; left: 70px; transform: rotate(-10deg); opacity:.6; }
.lifestyle-circle { position: absolute; bottom: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); }

.cat-art--data { flex-direction: column; align-items: center; gap: 4px; }
.data-chart { background: #fff; border-radius: 7px; padding: 7px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.data-kpi { font-size: .9rem; font-weight: 900; color: #ea580c; }

/* ── How it works section ── */
.how-section {
  background:
    radial-gradient(ellipse 60% 70% at 90% 50%, rgba(96,180,255,0.07) 0%, transparent 65%),
    var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  transition: background 0.3s ease;
}

.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.how-text { display: flex; flex-direction: column; gap: 20px; }

.how-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.how-sub { max-width: 420px; line-height: 1.7; }

.how-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }

.how-step { display: flex; align-items: flex-start; gap: 14px; }

.how-step-num {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
  display: grid; place-items: center;
  flex: 0 0 auto;
}

.how-step-title { font-weight: 800; font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }

.how-video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  box-shadow: var(--shadow-blue);
  background: var(--bg);
  aspect-ratio: 16 / 9;
}

.how-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.how-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,13,23,0.4);
  border: none; cursor: pointer;
  transition: background 0.2s;
}

[data-theme="light"] .how-play-btn { background: rgba(240,244,255,0.4); }
.how-play-btn:hover { background: rgba(10,13,23,0.25); }
.how-play-btn.hidden { display: none; }

.how-play-icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-h), var(--indigo-h));
  display: grid; place-items: center;
  font-size: 1.4rem; color: #fff;
  box-shadow: 0 4px 24px rgba(96,180,255,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.how-play-btn:hover .how-play-icon { transform: scale(1.1); box-shadow: 0 6px 32px rgba(96,180,255,0.65); }

.how-video-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,0.1); display: none; }
.how-video-bar.visible { display: block; }
.how-video-progress { height: 100%; background: linear-gradient(90deg, var(--blue), var(--indigo)); width: 0%; transition: width 0.1s linear; }

/* ── Favorites panel ── */
.fav-panel {
  position: fixed;
  bottom: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 8px 14px;
  z-index: 999;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fav-header { font-weight: 700; font-size: 0.8rem; color: var(--text); margin-bottom: 0; }
.fav-body   { display: flex; align-items: center; gap: 8px; }
.fav-count  { font-size: 0.78rem; color: var(--text-2); }
.fav-panel-link { font-size: 0.78rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.fav-panel-link:hover { color: var(--indigo); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-card  { display: none; }
  .home-search     { max-width: 260px; }
  .how-inner       { grid-template-columns: 1fr; gap: 32px; }
  .how-title       { font-size: 1.5rem; }
}

@media (max-width: 700px) {
  .home-hero-title { font-size: 32px; }
  .home-search     { display: none; }
  .categories-grid { gap: 8px; }
  .how-title       { font-size: 1.3rem; }
}