/* ====================================================================
   HOME DASHBOARD — $1M ARR QUALITY
   Prefix: home-
   v6.1 — Added onboarding modal styles (.home-ob-*)
   ==================================================================== */

/* PAGE SHELL */
.home-shell {
  position: relative;
  background: linear-gradient(165deg, #f8f6ff 0%, #f0f4ff 35%, #f5f3ff 65%, #eef2ff 100%);
  min-height: calc(100vh - 80px);
  padding: 0;
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes homeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes homePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes homeShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes homeRingFill {
  from { stroke-dashoffset: 251; }
}
@keyframes homeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes homeGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Onboarding-specific animations ── */
@keyframes homeObFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes homeObSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes homeObFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes homeObSparkle1 {
  0%, 100% { opacity: 0.3; transform: translate(0, 0) scale(0.8); }
  50% { opacity: 1; transform: translate(-4px, -6px) scale(1.2); }
}
@keyframes homeObSparkle2 {
  0%, 100% { opacity: 0.2; transform: translate(0, 0) scale(0.7); }
  50% { opacity: 0.9; transform: translate(5px, -4px) scale(1.1); }
}
@keyframes homeObSparkle3 {
  0%, 100% { opacity: 0.4; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.7; transform: translate(-3px, 5px) scale(0.9); }
}
@keyframes homeObRingPulse1 {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.15); opacity: 0.05; }
}
@keyframes homeObRingPulse2 {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.25); opacity: 0.02; }
}

.home-animate-in {
  animation: homeSlideIn 0.5s ease-out both;
}
.home-animate-in:nth-child(1) { animation-delay: 0s; }
.home-animate-in:nth-child(2) { animation-delay: 0.06s; }
.home-animate-in:nth-child(3) { animation-delay: 0.12s; }
.home-animate-in:nth-child(4) { animation-delay: 0.18s; }
.home-animate-in:nth-child(5) { animation-delay: 0.24s; }
.home-animate-in:nth-child(6) { animation-delay: 0.3s; }
.home-animate-in:nth-child(7) { animation-delay: 0.36s; }
.home-animate-in:nth-child(8) { animation-delay: 0.42s; }

/* ── GLASS CARD (base) ── */
.home-glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(124,58,237,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03), 0 0 30px rgba(124,58,237,0.03);
  transition: all 300ms ease-out;
  position: relative;
  overflow: hidden;
}
.home-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cc-primary-600,#7c3aed), var(--cc-secondary-600,#3b82f6), var(--cc-accent-600,#10b981));
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 300ms ease;
}
.home-glass-card:hover {
  border-color: rgba(124,58,237,0.15);
  box-shadow: 0 8px 28px rgba(124,58,237,0.07), 0 0 40px rgba(124,58,237,0.05);
}
.home-glass-card:hover::before { opacity: 1; }

/* ── SECTION HEADERS ── */
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.home-section-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.home-section-icon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(59,130,246,0.07) 100%);
  border-radius: 10px;
  color: var(--cc-primary-600,#7c3aed);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.home-section-title {
  font-family: var(--cc-font-display,'Space Grotesk',sans-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--cc-neutral-800,#1e293b);
  margin: 0;
}
.home-section-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cc-primary-600,#7c3aed);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 200ms ease;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
}
.home-section-link:hover {
  background: rgba(124,58,237,0.06);
  color: var(--cc-primary-700,#6d28d9);
  transform: translateX(2px);
  text-decoration: none;
}

/* ── GRIDS ── */
.home-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}
.home-grid-full { margin-bottom: 1.5rem; }

/* ====================================================================
   HERO
   ==================================================================== */
.home-hero {
  position: relative;
  padding: 2rem 0 1.5rem;
  overflow: hidden;
}
.home-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.home-hero-text { flex: 1; }
.home-hero-greeting {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cc-primary-600,#7c3aed);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.home-hero-title {
  font-family: var(--cc-font-display,'Space Grotesk',sans-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero-subtitle {
  font-size: 0.88rem;
  color: var(--cc-neutral-500,#64748b);
  margin: 0;
  max-width: 500px;
  line-height: 1.6;
}
.home-hero-stats {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
}
.home-hero-stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.82) 100%);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(124,58,237,0.1);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  text-align: center;
  min-width: 105px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 300ms ease-out;
  cursor: default;
}
.home-hero-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.2);
}
.home-hero-stat-number {
  font-family: var(--cc-font-display,'Space Grotesk',sans-serif);
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cc-primary-600,#7c3aed), var(--cc-secondary-600,#3b82f6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.home-hero-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cc-neutral-500,#64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====================================================================
   SMART ALERTS
   ==================================================================== */
.home-alerts-strip {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.home-alert {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  transition: all 250ms ease-out;
  cursor: pointer;
  text-decoration: none;
}
.home-alert:hover {
  transform: translateX(4px);
  text-decoration: none;
}
.home-alert-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.home-alert-body { flex: 1; min-width: 0; }
.home-alert-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.1rem;
  line-height: 1.3;
}
.home-alert-desc {
  font-size: 0.72rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0.8;
}
.home-alert-action {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 200ms ease;
}

/* Alert variants */
.home-alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border: 1.5px solid rgba(245,158,11,0.2);
}
.home-alert-warning .home-alert-icon { background: rgba(245,158,11,0.15); color: #d97706; }
.home-alert-warning .home-alert-title { color: #92400e; }
.home-alert-warning .home-alert-desc { color: #a16207; }
.home-alert-warning .home-alert-action { background: rgba(245,158,11,0.15); color: #92400e; }
.home-alert-warning:hover { border-color: rgba(245,158,11,0.4); }
.home-alert-warning:hover .home-alert-action { background: #f59e0b; color: white; }

.home-alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  border: 1.5px solid rgba(239,68,68,0.15);
}
.home-alert-danger .home-alert-icon { background: rgba(239,68,68,0.12); color: #dc2626; }
.home-alert-danger .home-alert-title { color: #991b1b; }
.home-alert-danger .home-alert-desc { color: #b91c1c; }
.home-alert-danger .home-alert-action { background: rgba(239,68,68,0.12); color: #991b1b; }
.home-alert-danger:hover { border-color: rgba(239,68,68,0.3); }
.home-alert-danger:hover .home-alert-action { background: #ef4444; color: white; }

.home-alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 1.5px solid rgba(59,130,246,0.15);
}
.home-alert-info .home-alert-icon { background: rgba(59,130,246,0.12); color: #2563eb; }
.home-alert-info .home-alert-title { color: #1e3a8a; }
.home-alert-info .home-alert-desc { color: #1d4ed8; }
.home-alert-info .home-alert-action { background: rgba(59,130,246,0.12); color: #1e3a8a; }
.home-alert-info:hover { border-color: rgba(59,130,246,0.3); }
.home-alert-info:hover .home-alert-action { background: #3b82f6; color: white; }

.home-alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border: 1.5px solid rgba(16,185,129,0.15);
}
.home-alert-success .home-alert-icon { background: rgba(16,185,129,0.12); color: #059669; }
.home-alert-success .home-alert-title { color: #065f46; }
.home-alert-success .home-alert-desc { color: #047857; }
.home-alert-success .home-alert-action { background: rgba(16,185,129,0.12); color: #065f46; }
.home-alert-success:hover { border-color: rgba(16,185,129,0.3); }

/* Live dot */
.home-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: homeBlink 1.5s ease-in-out infinite;
  margin-right: 0.3rem;
}

/* ====================================================================
   BRAND HEALTH RING
   ==================================================================== */
.home-brand-health {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.home-ring-container {
  position: relative;
  width: 80px; height: 80px;
  flex-shrink: 0;
}
.home-brand-health-info { flex: 1; }
.home-brand-health-title {
  font-family: var(--cc-font-display,'Space Grotesk',sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cc-neutral-800,#1e293b);
  margin: 0 0 0.25rem;
}
.home-brand-health-desc {
  font-size: 0.78rem;
  color: var(--cc-neutral-500,#64748b);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.home-brand-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ====================================================================
   CAROUSEL
   ==================================================================== */
.home-carousel-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.15) transparent;
}
.home-carousel-track::-webkit-scrollbar { height: 5px; }
.home-carousel-track::-webkit-scrollbar-track { background: transparent; }
.home-carousel-track::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.12); border-radius: 3px; }

.home-carousel-item {
  flex: 0 0 175px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1.5px solid rgba(124,58,237,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 300ms ease-out;
  cursor: pointer;
  position: relative;
}
.home-carousel-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.2);
}
.home-carousel-img-wrap {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
}
.home-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.home-carousel-item:hover .home-carousel-img { transform: scale(1.06); }
.home-carousel-network {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.home-carousel-label {
  padding: 0.5rem 0.65rem 0.15rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--cc-neutral-800,#1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-carousel-date {
  padding: 0 0.65rem 0.45rem;
  font-size: 0.62rem;
  color: var(--cc-neutral-400,#94a3b8);
}

/* ====================================================================
   SOCIAL NETWORKS
   ==================================================================== */
.home-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.home-social-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: white;
  border: 1.5px solid rgba(124,58,237,0.06);
  transition: all 250ms ease-out;
}
.home-social-chip:hover {
  border-color: rgba(124,58,237,0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.home-social-chip-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.home-social-chip-info { display: flex; flex-direction: column; }
.home-social-chip-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cc-neutral-800,#1e293b);
}
.home-social-chip-status { font-size: 0.65rem; font-weight: 600; }
.home-social-chip-status.connected { color: var(--cc-accent-600,#10b981); }
.home-social-chip-status.disconnected { color: var(--cc-neutral-400,#94a3b8); }

/* ====================================================================
   POSTS (published & scheduled)
   ==================================================================== */
.home-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.home-posts-list-real {
  display: flex;
  flex-direction: column;
}
.home-post-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(124,58,237,0.04);
  transition: all 250ms ease-out;
}
.home-post-item:hover {
  background: rgba(124,58,237,0.02);
  border-color: rgba(124,58,237,0.1);
  transform: translateX(3px);
}
.home-post-thumb {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.03);
}
.home-post-network-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.home-post-info { flex: 1; min-width: 0; }
.home-post-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cc-neutral-800,#1e293b);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-post-meta {
  font-size: 0.65rem;
  color: var(--cc-neutral-400,#94a3b8);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.home-post-status {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.home-post-status.published { background: rgba(16,185,129,0.1); color: #059669; }
.home-post-status.scheduled { background: rgba(59,130,246,0.1); color: #2563eb; }
.home-posts-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--cc-neutral-400,#94a3b8);
  font-size: 0.8rem;
}
.home-posts-empty i {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  display: block;
  opacity: 0.5;
}

/* ====================================================================
   CTA BAND (for PREMIUM — purple bg)
   ==================================================================== */
.home-cta-card {
  background: linear-gradient(135deg, var(--cc-primary-600,#7c3aed) 0%, var(--cc-secondary-600,#3b82f6) 100%);
  border-radius: 20px;
  padding: 1.75rem 2.25rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(124,58,237,0.25);
  margin-bottom: 1.5rem;
}
.home-cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -15%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.home-cta-card::after {
  content: '';
  position: absolute;
  bottom: -35%; left: -8%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.home-cta-text { flex: 1; position: relative; z-index: 1; }
.home-cta-title {
  font-family: var(--cc-font-display,'Space Grotesk',sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  color: white;
}
.home-cta-subtitle {
  font-size: 0.82rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
  max-width: 380px;
}
.home-cta-actions {
  display: flex;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── SHARED BUTTON BASE ── */
.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 300ms ease-out;
  text-decoration: none !important;
  border: none;
}

/* ── On DARK backgrounds (CTA band with purple bg) ── */
.home-cta-btn-primary {
  background: white;
  color: var(--cc-primary-600,#7c3aed) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.home-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  color: var(--cc-primary-700,#6d28d9) !important;
}
.home-cta-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white !important;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.home-cta-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  color: white !important;
}

/* ====================================================================
   BUTTONS ON LIGHT BACKGROUNDS (FREE hero, upgrade card, etc.)
   ==================================================================== */
.home-btn-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 300ms ease-out;
  text-decoration: none !important;
  border: none;
  white-space: nowrap;
}
.home-btn-upgrade:hover {
  transform: translateY(-3px);
  text-decoration: none !important;
}

/* Primary: purple→blue gradient bg, white text (matching gallery-new-empty-btn) */
.home-btn-upgrade-primary {
  background: linear-gradient(135deg, var(--cc-primary-600, #7c3aed) 0%, var(--cc-secondary-600, #3b82f6) 100%);
  color: white !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.home-btn-upgrade-primary:hover {
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.4);
  color: white !important;
}

/* Secondary: outline on light bg */
.home-btn-upgrade-secondary {
  background: white;
  color: var(--cc-primary-600,#7c3aed) !important;
  border: 1.5px solid rgba(124,58,237,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-btn-upgrade-secondary:hover {
  background: rgba(124,58,237,0.04);
  border-color: rgba(124,58,237,0.4);
  color: var(--cc-primary-700,#6d28d9) !important;
  box-shadow: 0 4px 16px rgba(124,58,237,0.12);
}

/* ====================================================================
   BRAND SUMMARY
   ==================================================================== */
.home-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}
.home-brand-logo-placeholder {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cc-primary-600,#7c3aed), var(--cc-secondary-600,#3b82f6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}
.home-brand-info { flex: 1; min-width: 0; }
.home-brand-name {
  font-family: var(--cc-font-display,'Space Grotesk',sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cc-neutral-800,#1e293b);
  margin: 0 0 0.15rem;
}
.home-brand-sector { font-size: 0.72rem; color: var(--cc-neutral-500,#64748b); margin: 0 0 0.3rem; }
.home-brand-desc {
  font-size: 0.75rem;
  color: var(--cc-neutral-600,#475569);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-brand-colors { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.home-brand-swatch {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 200ms ease;
}
.home-brand-swatch:hover { transform: scale(1.15); }
.home-btn-edit-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cc-primary-600,#7c3aed);
  background: rgba(124,58,237,0.06);
  border: 1.5px solid rgba(124,58,237,0.18);
  border-radius: 9px;
  cursor: pointer;
  transition: all 250ms ease-out;
  text-decoration: none;
  margin-top: 0.6rem;
}
.home-btn-edit-brand:hover {
  background: rgba(124,58,237,0.1);
  border-color: var(--cc-primary-500,#8b5cf6);
  color: var(--cc-primary-700,#6d28d9);
  text-decoration: none;
  transform: translateY(-1px);
}


/* ====================================================================
   ONBOARDING MODAL — v6.1
   Premium glassmorphism modal for company profile setup
   ==================================================================== */

/* Overlay container (flex centered) */
.home-ob-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: homeObFadeIn 0.3s ease-out;
}

/* Backdrop — blur + dark overlay */
.home-ob-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  cursor: pointer;
}

/* Modal card */
.home-ob-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, rgba(255,255,255,0.97) 0%, rgba(248,246,255,0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(124,58,237,0.12);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow:
    0 24px 64px rgba(15,23,42,0.12),
    0 8px 24px rgba(124,58,237,0.08),
    0 0 0 1px rgba(255,255,255,0.6) inset;
  animation: homeObSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: center;
  overflow: hidden;
}

/* Top gradient bar */
.home-ob-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--cc-primary-600, #7c3aed),
    var(--cc-secondary-600, #3b82f6),
    var(--cc-accent-600, #10b981));
  border-radius: 24px 24px 0 0;
}

/* Close button */
.home-ob-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  z-index: 2;
}
.home-ob-close-btn:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
  transform: scale(1.1);
}

/* ── Icon cluster (main icon + rings + sparkles) ── */
.home-ob-icon-cluster {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  /* Ensure the cluster is a proper centering context */
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-ob-icon-main {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cc-primary-600, #7c3aed) 0%, var(--cc-secondary-600, #3b82f6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
  animation: homeObFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}

/* Pulsing rings behind icon — centered absolutely relative to cluster */
.home-ob-icon-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 58, 237, 0.12);
  pointer-events: none;
  z-index: 0;
}
.home-ob-icon-ring-1 {
  width: 72px;
  height: 72px;
  margin-top: -36px;
  margin-left: -36px;
  animation: homeObRingPulse1 3s ease-in-out infinite;
}
.home-ob-icon-ring-2 {
  width: 92px;
  height: 92px;
  margin-top: -46px;
  margin-left: -46px;
  animation: homeObRingPulse2 3s ease-in-out infinite 0.5s;
}

/* Floating sparkle particles — positioned relative to cluster center */
.home-ob-spark {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.home-ob-spark-1 {
  top: 2px;
  right: 4px;
  animation: homeObSparkle1 2.8s ease-in-out infinite;
}
.home-ob-spark-2 {
  bottom: 6px;
  left: 4px;
  animation: homeObSparkle2 3.2s ease-in-out infinite 0.4s;
}
.home-ob-spark-3 {
  top: 14px;
  left: 8px;
  animation: homeObSparkle3 2.5s ease-in-out infinite 0.8s;
}

/* Title */
.home-ob-title {
  font-family: var(--cc-font-display, 'Space Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.home-ob-subtitle {
  font-size: 0.88rem;
  color: var(--cc-neutral-500, #64748b);
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 340px;
}

/* Benefits list */
.home-ob-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.home-ob-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.home-ob-benefit-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms ease;
}
.home-ob-benefit:hover .home-ob-benefit-icon {
  background: rgba(124, 58, 237, 0.12);
  transform: scale(1.08);
}
.home-ob-benefit-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cc-neutral-700, #334155);
}

/* Action buttons */
.home-ob-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

/* Primary CTA — gradient purple→blue (matches gallery-new-empty-btn) */
.home-ob-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--cc-font-display, 'Space Grotesk', sans-serif);
  background: linear-gradient(135deg, var(--cc-primary-600, #7c3aed) 0%, var(--cc-secondary-600, #3b82f6) 100%);
  color: white !important;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
  transition: all 300ms ease-out;
  position: relative;
  overflow: hidden;
}
.home-ob-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transition: left 600ms ease;
}
.home-ob-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.4);
  color: white !important;
  text-decoration: none !important;
}
.home-ob-btn-primary:hover::before {
  left: 100%;
}

/* Secondary CTA — ghost / text-only feel */
.home-ob-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cc-neutral-400, #94a3b8);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 250ms ease;
}
.home-ob-btn-secondary:hover {
  color: var(--cc-neutral-600, #475569);
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
}

/* Footer note */
.home-ob-footer-note {
  font-size: 0.68rem;
  color: var(--cc-neutral-400, #94a3b8);
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}


/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 992px) {
  .home-hero-inner { flex-direction: column; align-items: flex-start; }
  .home-hero-stats { width: 100%; }
  .home-grid-2 { grid-template-columns: 1fr; }
  .home-cta-card { flex-direction: column; text-align: center; padding: 1.5rem; }
  .home-cta-text { text-align: center; }
  .home-cta-subtitle { max-width: 100%; }
  .home-cta-actions { justify-content: center; }
}
@media (max-width: 768px) {
  .home-hero-stat-card { min-width: 90px; padding: 0.75rem 0.85rem; }
  .home-hero-stat-number { font-size: 1.35rem; }
  .home-carousel-item { flex: 0 0 150px; }
  .home-carousel-img-wrap { height: 150px; }
  .home-cta-actions { flex-direction: column; width: 100%; }
  .home-cta-btn, .home-btn-upgrade { justify-content: center; width: 100%; }
  .home-alert { flex-wrap: wrap; }

  /* Onboarding modal responsive */
  .home-ob-card {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
    max-width: 100%;
  }
  .home-ob-title { font-size: 1.15rem; }
  .home-ob-subtitle { font-size: 0.82rem; }
  .home-ob-btn-primary { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
}
@media (max-width: 576px) {
  .home-hero-stats { flex-wrap: wrap; }
  .home-hero-stat-card { flex: 1; min-width: 85px; }
  .home-brand-health { flex-direction: column; align-items: flex-start; }

  .home-ob-overlay { padding: 1rem; }
  .home-ob-card { padding: 1.75rem 1.25rem 1.25rem; }
  .home-ob-benefits { max-width: 100%; }
}