/* ==========================================================================
   SHARELY - PAGE-SPECIFIC SCOPED STYLES (pages.css)
   White Premium Theme & Full Width Section Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HOME PAGE (.home-*)
   Continuous narrative: hero → how it works → explore preview → trust/safety → guides → CTA
   Every section is 100% full screen width edge-to-edge.
   -------------------------------------------------------------------------- */
.home-hero-section {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding: 64px 0 80px 0;
  overflow: clip;
  background: transparent;
  border-bottom: none;
  box-sizing: border-box;
}

.home-hero-section .container {
  padding-left: clamp(28px, 6vw, 84px);
  padding-right: clamp(28px, 6vw, 84px);
}

@media (min-width: 992px) {
  .home-hero-section {
    padding: 96px 0 120px 0;
  }
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .home-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.home-tagline-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.08);
  align-self: flex-start;
}

.home-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
  text-wrap: balance;
}

.home-hero-title span {
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Smart Search Suggestions Dropdown (Center Bar) */
.hero-search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
  text-align: left;
}

.hero-search-recent-header {
  padding: 8px 18px 4px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.hero-search-suggestion-item {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.hero-search-suggestion-item:hover,
.hero-search-suggestion-item.is-selected {
  background: #F8FAFC;
}

.hero-search-suggestion-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-search-suggestion-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-search-suggestion-title {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-suggestion-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-suggestion-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(79, 70, 229, 0.08);
  color: #4F46E5;
  flex-shrink: 0;
}

.hero-search-suggestion-item mark {
  background: rgba(79, 70, 229, 0.16);
  color: #4F46E5;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 700;
}

.hero-search-empty-note {
  padding: 20px 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .home-hero-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero-search-btn {
    width: 100%;
  }
}

/* Floating Real Prototype Link Preview (Pure CSS + Inline SVG, GPU-composited translate3d) */
.home-hero-mockup-wrapper {
  position: relative;
  perspective: 1600px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  padding: 44px 36px;
  box-sizing: border-box;
}

.home-mockup-connector-svg {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 1;
}

/* Floating Platform Icon Chips (Brand-colored, gentle multi-frequency floating, GPU-composited) */
.home-floating-chip {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #FFFFFF;


  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
  user-select: none;
  cursor: default;
  will-change: transform, opacity;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.home-floating-chip:hover {
  border-color: rgba(11, 18, 32, 0.25);
  box-shadow: 0 16px 36px -6px rgba(11, 18, 32, 0.12);
}

.home-floating-chip svg {
  flex-shrink: 0;
}

/* Scoped Brand Colors for Floating Chips */
.chip-yt svg { color: #FF0000; fill: #FF0000; }
.chip-ig svg { color: #E4405F; stroke: #E4405F; }
.chip-gh svg { color: #181717; fill: #181717; }
.chip-tg svg { color: #26A5E4; fill: #26A5E4; }
.chip-dc svg { color: #5865F2; fill: #5865F2; }
.chip-wa svg { color: #25D366; fill: #25D366; }
.chip-li svg { color: #0A66C2; fill: #0A66C2; }
.chip-x svg { color: #000000; fill: #000000; }
.chip-sp svg { color: #1DB954; fill: #1DB954; }
.chip-fb svg { color: #1877F2; fill: #1877F2; }

/* ==========================================
   DESKTOP HERO FLOATING CHIPS (min-width: 768px)
   Movement: 8-14px up/down, 3-5px sideways
   ========================================== */
@media (min-width: 768px) {
  .chip-yt {
    top: -24px;
    left: -20px;
    animation: float-chip-yt 7.2s ease-in-out -1.2s infinite alternate;
  }

  .chip-ig {
    top: -44px;
    left: 36%;
    animation: float-chip-ig 8.6s ease-in-out -3.6s infinite alternate;
  }

  .chip-gh {
    top: -20px;
    right: -20px;
    animation: float-chip-gh 6.8s ease-in-out -0.8s infinite alternate;
  }

  .chip-tg {
    top: 24%;
    left: -48px;
    animation: float-chip-tg 8.2s ease-in-out -2.4s infinite alternate;
  }

  .chip-dc {
    top: 22%;
    right: -48px;
    animation: float-chip-dc 7.6s ease-in-out -4.3s infinite alternate;
  }

  .chip-wa {
    top: 60%;
    left: -42px;
    animation: float-chip-wa 8.8s ease-in-out -1.9s infinite alternate;
  }

  .chip-li {
    top: 56%;
    right: -42px;
    animation: float-chip-li 6.4s ease-in-out -3.0s infinite alternate;
  }

  .chip-x {
    bottom: -22px;
    left: -6px;
    animation: float-chip-x 8.0s ease-in-out -0.5s infinite alternate;
  }

  .chip-sp {
    bottom: -44px;
    left: 44%;
    animation: float-chip-sp 7.4s ease-in-out -3.3s infinite alternate;
  }

  .chip-fb {
    bottom: -20px;
    right: -8px;
    animation: float-chip-fb 8.4s ease-in-out -4.8s infinite alternate;
  }
}

@keyframes float-chip-yt {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(4px, -13px, 0); opacity: 1; }
}

@keyframes float-chip-ig {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-3px, -11px, 0); opacity: 1; }
}

@keyframes float-chip-gh {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-4px, -14px, 0); opacity: 1; }
}

@keyframes float-chip-tg {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(5px, -12px, 0); opacity: 1; }
}

@keyframes float-chip-dc {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-4px, -10px, 0); opacity: 1; }
}

@keyframes float-chip-wa {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(3px, -12px, 0); opacity: 1; }
}

@keyframes float-chip-li {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-3px, -13px, 0); opacity: 1; }
}

@keyframes float-chip-x {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(4px, -11px, 0); opacity: 1; }
}

@keyframes float-chip-sp {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-4px, -9px, 0); opacity: 1; }
}

@keyframes float-chip-fb {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-3px, -12px, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-floating-chip,
  .home-mockup-card,
  .home-hero-mock .chip,
  .mock-card {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .home-hero-section {
    padding: 48px 0 68px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    text-align: center !important;
  }

  .home-hero-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 44px !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .home-hero-grid > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  /* 1. Eyebrow pill */
  .home-tagline-kicker {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    padding: 6px 14px !important;
    margin: 0 auto 20px auto !important;
    width: fit-content !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: var(--radius-pill, 9999px) !important;
    text-transform: uppercase !important;
  }

  .home-tagline-kicker span,
  .home-tagline-kicker .kicker-dot {
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    min-height: 5px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    display: inline-block !important;
    font-size: 0 !important;
  }

  /* 2. Hero heading */
  .home-hero-title {
    font-size: 30px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    margin: 0 auto 22px auto !important;
    word-break: break-word !important;
  }

  .home-hero-title br {
    display: none !important;
  }

  .home-hero-title span {
    display: block !important;
    margin-top: 10px !important;
    background: linear-gradient(135deg, #4F46E5 0%, #2563EB 50%, #0284C7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  /* 3. Subtext / description */
  .home-hero-desc {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: var(--text-muted, #64748B) !important;
    max-width: 92% !important;
    margin: 0 auto 32px auto !important;
    text-align: center !important;
  }

  /* 4. Buttons */
  .home-hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 16px !important;
    gap: 14px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
    align-items: center !important;
  }

  .home-hero-ctas .btn {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-pill, 9999px) !important;
    text-align: center !important;
  }

  .home-hero-ctas .btn-secondary {
    background: #FFFFFF !important;
    border: 1px solid var(--border-card, #CBD5E1) !important;
    color: var(--text-main, #0F172A) !important;
  }

  .home-hero-mock,
  .home-hero-mockup-wrapper { 
    position: relative !important; 
    margin: 8px 12px 12px 12px !important;   /* comfortable vertical & side gaps */
    padding: 52px 12px !important;           /* 52px top & bottom padding inside the wrapper so chips and 3D card have room */
    overflow: visible !important;
    box-sizing: border-box !important;
    width: auto !important;
  }

  .home-hero-mock .mock-card,
  .home-mockup-card,
  .mock-card {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    margin: 0 auto !important;
    transform: none !important;
    animation: none !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 16px 36px -8px rgba(79, 70, 229, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.05) !important;
  }

  .home-hero-mock .chip,
  .home-floating-chip,
  .chip {
    position: absolute !important;
    z-index: 3 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04) !important;
    background: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    will-change: transform, opacity !important;
  }

  .home-hero-mock .chip svg,
  .home-floating-chip svg {
    width: 20px !important;
    height: 20px !important;
  }

  .home-hero-mock .chip:nth-child(1),
  .home-floating-chip.chip-yt {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    animation: mobile-float-tl 6.8s ease-in-out -1.2s infinite alternate !important;
  }        /* top-left outside card */

  .home-hero-mock .chip:nth-child(2),
  .home-floating-chip.chip-gh {
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    animation: mobile-float-tr 7.8s ease-in-out -3.6s infinite alternate !important;
  }       /* top-right outside card */

  .home-hero-mock .chip:nth-child(3),
  .home-floating-chip.chip-x {
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    display: inline-flex !important;
    animation: mobile-float-bl 8.4s ease-in-out -0.8s infinite alternate !important;
  }     /* bottom-left outside card */

  .home-hero-mock .chip:nth-child(4),
  .home-floating-chip.chip-fb {
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    animation: mobile-float-br 7.2s ease-in-out -4.2s infinite alternate !important;
  }    /* bottom-right outside card */

  .home-hero-mock .chip:nth-child(n+5),
  .chip-ig, .chip-tg, .chip-dc, .chip-wa, .chip-li, .chip-sp {
    display: none !important;
  }        /* hide any extra chips */

  .home-mockup-connector-svg {
    display: none !important;
  }

  .home-mockup-prototype-canvas {
    height: 160px !important;
  }

  .prototype-browser-bar {
    padding: 8px 12px !important;
  }

  .prototype-url-pill {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
  }

  .prototype-channel-name {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
  }

  .prototype-channel-meta {
    font-size: 0.7rem !important;
  }

  .home-mockup-body {
    padding: 16px 14px !important;
    box-sizing: border-box !important;
  }

  .home-mockup-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .home-mockup-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  .home-mockup-platform {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
  }

  .home-mockup-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
    border-top: 1px solid var(--border-subtle) !important;
    font-size: 0.78rem !important;
  }
}

/* Mobile Floaty Animations (5-9s loop, movement 4-8px up/down, 1-3px sideways, ease-in-out alternate) */
@keyframes mobile-float-tl {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(2px, -6px, 0); opacity: 1; }
}

@keyframes mobile-float-tr {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-2px, -7px, 0); opacity: 1; }
}

@keyframes mobile-float-bl {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(2px, -5px, 0); opacity: 1; }
}

@keyframes mobile-float-br {
  0% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(-2px, -6px, 0); opacity: 1; }
}

/* Center Prototype Card — Premium 3D Card */
.home-hero-mockup-wrapper .card-3d,
.card-3d {
  position: relative;
  width: 400px;
  max-width: 100%;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid rgba(79,70,229,0.08);
  border-radius: 28px;
  box-shadow:
    0 40px 80px rgba(79,70,229,0.12),
    0 20px 40px rgba(0,0,0,0.06),
    0 0 0 1px rgba(255,255,255,0.9) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.4s ease;
  will-change: transform;
  z-index: 5;
  text-align: left;
  box-sizing: border-box;
}

.home-hero-mockup-wrapper .card-3d:hover,
.card-3d:hover {
  border-color: rgba(79,70,229,0.08);
  box-shadow:
    0 50px 100px rgba(79,70,229,0.18),
    0 25px 50px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.9) inset;
}

/* ---- Browser Bar ---- */
.card-3d .browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.card-3d .dots { display: flex; gap: 6px; }
.card-3d .dot { width: 11px; height: 11px; border-radius: 50%; }
.card-3d .dot.red { background: #FF5F57; }
.card-3d .dot.yellow { background: #FEBC2E; }
.card-3d .dot.green { background: #28C840; }

.card-3d .url-pill {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  color: #64748B;
  text-align: center;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.card-3d .live-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #16A34A;
  background: rgba(34,197,94,0.12);
  padding: 4px 10px;
  border-radius: 100px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---- Top Gradient (Premium Indigo/Violet) ---- */
.card-3d .card-top {
  padding: 26px 24px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 60%, #A855F7 100%);
  position: relative;
  overflow: hidden;
}
.card-3d .card-top::before {
  content: '';
  position: absolute;
  top: -60%; left: -40%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.25), transparent 55%);
  animation: shine 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes shine {
  0% { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(6%, -4%) rotate(8deg); }
}

.card-3d .channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.card-3d .channel-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.22);


  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.card-3d .channel-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
}
.card-3d .channel-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 3px;
  margin-bottom: 0;
  font-weight: 500;
}

/* ---- Animated Bar Chart ---- */
.card-3d .bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}
.card-3d .bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.4));
  animation: barGrow 2.4s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.card-3d .bar:nth-child(1)  { height: 32%; animation-delay: 0s;    }
.card-3d .bar:nth-child(2)  { height: 55%; animation-delay: 0.1s;  }
.card-3d .bar:nth-child(3)  { height: 42%; animation-delay: 0.2s;  }
.card-3d .bar:nth-child(4)  { height: 72%; animation-delay: 0.3s;  }
.card-3d .bar:nth-child(5)  { height: 50%; animation-delay: 0.4s;  }
.card-3d .bar:nth-child(6)  { height: 88%; animation-delay: 0.5s;  }
.card-3d .bar:nth-child(7)  { height: 62%; animation-delay: 0.6s;  }
.card-3d .bar:nth-child(8)  { height: 45%; animation-delay: 0.7s;  }
.card-3d .bar:nth-child(9)  { height: 78%; animation-delay: 0.8s;  }
.card-3d .bar:nth-child(10) { height: 58%; animation-delay: 0.9s;  }
@keyframes barGrow {
  0%   { transform: scaleY(0.75); opacity: 0.75; }
  100% { transform: scaleY(1);    opacity: 1;    }
}

/* ---- Bottom White Area ---- */
.card-3d .card-bottom {
  padding: 24px;
  background: #FFFFFF;
}
.card-3d .card-bottom .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.card-3d .card-bottom h4 {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin: 0;
}
.card-3d .tags { display: flex; gap: 6px; }
.card-3d .tag {
  font-size: 10px;
  font-weight: 700;
  color: #4F46E5;
  background: rgba(99,102,241,0.1);
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.card-3d .desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 18px;
}
.card-3d .divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.card-3d .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-3d .footer-left {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}
.card-3d .footer-right {
  font-size: 12px;
  color: #4F46E5;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ═══════════════════════════════════════════════════════════════
   PROPER QUICK SUBMIT SEARCH SECTION (Clean Compact Spacing)
   ═══════════════════════════════════════════════════════════════ */
.home-quick-submit-section,
.home-quick-submit-wrap {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 48px 0;
  box-shadow: none;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .home-quick-submit-section,
  .home-quick-submit-wrap {
    padding: 56px 0;
  }
}

.home-quick-submit-box {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.home-quick-submit-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 760px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-pill, 9999px);
  padding: 6px 8px 6px 20px;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
  margin: 0 auto;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-quick-submit-form:focus-within {
  border-color: var(--color-accent, #4F46E5);
  box-shadow: 0 12px 30px -5px rgba(79, 70, 229, 0.14), 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.home-quick-submit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748B);
  flex-shrink: 0;
}

.home-quick-submit-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-main, #0F172A);
  outline: none;
  padding: 0 4px;
  box-sizing: border-box;
}

.home-quick-submit-input::placeholder {
  color: var(--text-muted, #94A3B8);
}

.home-quick-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill, 9999px);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, box-shadow 0.15s ease;
}

.home-quick-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.home-quick-submit-btn:active {
  transform: translateY(0);
}

.home-quick-submit-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  width: 100%;
  text-align: center;
}

.home-quick-submit-hint-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #475569);
  white-space: nowrap;
}

.home-quick-submit-hint-item svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .home-quick-submit-section,
  .home-quick-submit-wrap {
    padding: 56px 0 64px 0 !important;
  }

  .home-quick-submit-box {
    padding: 0 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-hints {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 24px !important;
    font-size: 11.5px !important;
    color: var(--text-secondary) !important;
  }

  .home-quick-submit-hint-item {
    font-size: 11.5px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .home-quick-submit-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 6px 8px 6px 16px !important;
    border-radius: var(--radius-pill, 9999px) !important;
    min-height: 52px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-icon {
    display: flex !important;
    margin-right: 8px !important;
  }

  .home-quick-submit-input {
    flex: 1 !important;
    height: 40px !important;
    font-size: 14px !important;
    padding: 0 !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
  }

  .home-quick-submit-btn {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-pill, 9999px) !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }
}

@media (max-width: 479px) {
  .home-quick-submit-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    border-radius: 16px !important;
    gap: 10px !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-icon {
    display: none !important;
  }

  .home-quick-submit-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    text-align: left !important;
    border: 1px solid var(--border-subtle, #E2E8F0) !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-btn {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Section Header Flex (Title/Subtitle on left, View all on right) */
.home-section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 640px) {
  .home-section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
}

.home-section-header-left {
  max-width: 640px;
}

.home-section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-light);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.home-section-view-all:hover {
  transform: translateX(3px);
  background: rgba(79, 70, 229, 0.18);
  color: var(--color-accent);
}

/* Top Contributors Grid & Cards */
.home-contributors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

@media (min-width: 640px) {
  .home-contributors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .home-contributors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1300px) {
  .home-contributors-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
}

.home-contributor-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.home-contributor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
}

.home-contributor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.home-contributor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-contributor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-contributor-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.home-contributor-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Scroll reveal helper */
.home-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.home-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Full Width Home Narrative Sections */
.home-section {
  width: 100%;
  max-width: 100%;
  padding: 64px 0;
  position: relative;
  box-sizing: border-box;
  border-top: none;
  border-bottom: none;
}

@media (min-width: 992px) {
  .home-section {
    padding: 80px 0;
  }
}

@media (max-width: 767px) {
  .home-section,
  #home-popular-section,
  #home-explore-section,
  #home-steps-section,
  #home-trust-section,
  #home-guides-section,
  .footer-page-hero,
  .content-section,
  .legal-section {
    padding: 40px 0 !important;
  }

  .home-section .container,
  #home-popular-section .container,
  #home-explore-section .container,
  #home-steps-section .container,
  #home-trust-section .container,
  #home-guides-section .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section heading, subline, "View all ->" link: stack vertically */
  .home-section-header-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .home-section-header-left {
    max-width: 100% !important;
    width: 100% !important;
  }

  .home-section-view-all {
    margin-top: 4px !important;
    align-self: flex-start !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
  }

  .home-section-header {
    text-align: left !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }

  .home-section-kicker {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 6px !important;
  }

  .home-section-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 8px !important;
  }

  .home-section-subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* FIX 3: TALLER LINK CARDS ON POPULAR & EXPLORE SECTIONS */
#home-popular-section .poster-card-body,
#home-explore-section .poster-card-body {
  padding: 24px 22px;
}

#home-popular-section .poster-card-title,
#home-explore-section .poster-card-title {
  margin-bottom: 10px;
  line-height: 1.4;
}

#home-popular-section .poster-card-desc,
#home-explore-section .poster-card-desc {
  line-height: 1.6;
  margin-bottom: 18px;
}

#home-popular-section .poster-card-meta,
#home-explore-section .poster-card-meta {
  padding-top: 14px;
}

.home-section-alt {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.home-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.home-section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.home-trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  height: 20px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(99, 102, 241, 0.85);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: none;
  margin-left: 8px;
}

.home-trending-pill svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2.2;
  flex-shrink: 0;
  display: inline-block;
}

#home-explore-section .home-section-kicker {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .home-trending-pill {
    font-size: 10px;
    height: 18px;
    line-height: 18px;
    padding: 0 7px;
  }

  .home-trending-pill svg {
    width: 10px;
    height: 10px;
  }
}

.home-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.home-section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   HOW IT WORKS COLLAPSIBLE & ENLARGED TITLE
   -------------------------------------------------------------------------- */
.home-steps-title {
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .home-steps-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 12px !important;
  }
}

.home-steps-header {
  margin-bottom: 0 !important;
}

.home-steps-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  position: relative;
}

.home-steps-toggle-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(79, 70, 229, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent, #4F46E5);
  cursor: pointer;
  padding: 0;
  position: relative;
  outline: none;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              border-color 0.2s ease,
              background-color 0.2s ease;
  box-sizing: border-box;
}

.home-steps-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12), 0 2px 4px rgba(15, 23, 42, 0.04);
  background: #FFFFFF;
}

.home-steps-toggle-btn:active {
  transform: translateY(0);
}

.home-steps-toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent, #4F46E5);
  outline-offset: 3px;
}

.home-steps-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent, #4F46E5);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.home-steps-toggle-btn.is-open .home-steps-chevron {
  transform: rotate(180deg);
}

/* Calm, subtle attention effect (pulse ring + gentle bounce every few seconds) */
.home-steps-toggle-btn.is-attention {
  animation: steps-prompt-bounce 3.8s ease-in-out infinite;
}

.home-steps-toggle-btn.is-attention:hover {
  animation-play-state: paused;
}

.home-steps-toggle-btn.is-attention::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 70, 229, 0.35);
  animation: steps-ring-pulse 3.8s ease-in-out infinite;
  pointer-events: none;
}

.home-steps-toggle-btn.is-open,
.home-steps-toggle-btn:not(.is-attention) {
  animation: none !important;
}

.home-steps-toggle-btn.is-open::after,
.home-steps-toggle-btn:not(.is-attention)::after {
  display: none !important;
}

@keyframes steps-prompt-bounce {
  0%, 72%, 100% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(3px);
  }
  84% {
    transform: translateY(-1px);
  }
  90% {
    transform: translateY(1.5px);
  }
}

@keyframes steps-ring-pulse {
  0%, 68% {
    transform: scale(0.96);
    opacity: 0;
  }
  76% {
    transform: scale(1.12);
    opacity: 0.55;
  }
  94%, 100% {
    transform: scale(1.26);
    opacity: 0;
  }
}

/* Collapsible wrapper (height + opacity animation ~400-500ms, ease-in-out) */
.how-it-works-collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 480ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 420ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 480ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: grid-template-rows, opacity;
  width: 100%;
}

.how-it-works-collapsible > .how-it-works-collapsible-inner {
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.how-it-works-collapsible.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.home-steps-body {
  width: 100%;
  padding-top: 8px;
  padding-bottom: 64px;
}

@media (max-width: 767px) {
  .home-steps-body {
    padding-top: 4px;
    padding-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-steps-toggle-btn,
  .home-steps-toggle-btn::after,
  .home-steps-chevron,
  .how-it-works-collapsible {
    animation: none !important;
    transition: none !important;
  }
}

.home-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .home-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1280px) {
  .home-steps-grid {
    gap: 36px;
  }
}

.home-step-card {
  background: #4F46E5;
  border: 1px solid #4F46E5;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

@media (min-width: 992px) {
  .home-step-card {
    padding: 30px 38px;
  }
}

.home-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-3d);
}

.home-step-card .home-step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.home-step-card .home-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.home-step-card .home-step-desc {
  font-size: 0.95rem;
  color: #FFFFFF;
  opacity: 0.92;
  line-height: 1.55;
}

/* Explore Preview & Honest Empty State */
.home-explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 640px) {
  .home-explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .home-explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Popular Links Controls & Tabs (Fix 4) */
.home-popular-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated, #F1F5F9);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-pill, 9999px);
  padding: 3px;
  gap: 2px;
}

.home-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #64748B);
  padding: 5px 14px;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.home-tab-btn:hover {
  color: var(--text-main, #0F172A);
}

.home-tab-btn.is-active {
  background: #FFFFFF;
  color: var(--color-accent, #4F46E5);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.home-popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

@media (min-width: 640px) {
  .home-popular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .home-popular-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  #home-popular-grid .poster-card,
  .home-popular-grid .poster-card {
    
    
  }
}

@media (min-width: 1400px) {
  .home-popular-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.home-popular-grid.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

/* FIX 3: TALLER EMPTY STATE BOXES WITH GENEROUS SPACING */
.home-empty-state {
  text-align: center;
  padding: 56px 36px;
  min-height: 290px;
  justify-content: center;
  background: #FFFFFF;
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-xl);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-empty-state {
    padding: 68px 48px;
    min-height: 330px;
  }
}

.home-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-accent-light, #EEF2FF);
  color: var(--color-accent, #4F46E5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.home-empty-icon svg {
  width: 26px;
  height: 26px;
}

.home-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.45;
}

.home-empty-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 440px;
}

/* Trust & Safety Section */
.home-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 640px) {
  .home-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .home-trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1280px) {
  .home-trust-grid {
    gap: 32px;
  }
}

.home-trust-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

@media (min-width: 992px) {
  .home-trust-card {
    padding: 24px 34px;
  }
}

.home-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.home-trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.home-trust-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.home-trust-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Guides Section */
.home-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .home-guides-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1280px) {
  .home-guides-grid {
    gap: 36px;
  }
}

.home-guide-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.home-guides-grid .home-guide-card:nth-child(1) {
  background: #F7F8FF;   /* ultra-light lavender tint */
  border: 1px solid #EEF0FF;
}

.home-guides-grid .home-guide-card:nth-child(2) {
  background: #F5FDF9;   /* ultra-light mint tint */
  border: 1px solid #E8FBF1;
}

.home-guides-grid .home-guide-card:nth-child(3) {
  background: #FFFDF5;   /* ultra-light cream tint */
  border: 1px solid #FFF8E5;
}

@media (min-width: 992px) {
  .home-guide-card {
    padding: 26px 38px;
  }
}

.home-guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-3d);
}

.home-guide-readtime {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.home-guide-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.home-guide-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.home-guide-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* CTA Section */
.home-section:has(.home-cta-card) .container {
  padding-left: clamp(12px, 2vw, 24px);
  padding-right: clamp(12px, 2vw, 24px);
}

.home-cta-card {
  background: radial-gradient(ellipse at top right, #EEF2FF 0%, #FFFFFF 80%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transform: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.home-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.home-cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. SUBMIT PAGE (.submit-*)
   -------------------------------------------------------------------------- */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .submit-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.submit-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.submit-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.submit-step-indicator.is-active {
  color: var(--text-main);
}

.submit-step-indicator.is-completed {
  color: var(--color-success);
}

.submit-step-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: inherit;
}

.submit-step-indicator.is-active .submit-step-badge {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.submit-step-indicator.is-completed .submit-step-badge {
  background: var(--color-success);
  color: #FFFFFF;
  border-color: var(--color-success);
}

.submit-step-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-step-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.submit-preview-container {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.submit-detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 8px;
}

/* Inline URL Status Indicator */
.submit-url-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 22px;
  transition: opacity 0.25s ease;
}

.submit-url-status.is-checking {
  color: var(--text-secondary);
}

.submit-url-status.is-verified {
  color: var(--color-success);
  font-weight: 600;
}

.submit-url-status.is-error {
  color: var(--color-danger);
  font-weight: 600;
}

.submit-status-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: submit-spin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.submit-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.submit-status-dot.dot-success {
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.submit-status-dot.dot-danger {
  background: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

@keyframes submit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.preview-poster-spinner {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: inherit;
  transition: opacity 0.2s ease;
}

.preview-poster-spinner .spinner-ring {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: submit-spin 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   3. EXPLORE PAGE (.explore-*)
   -------------------------------------------------------------------------- */
.explore-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .explore-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.explore-search-input {
  max-width: 380px;
}

.explore-filters-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. LINK SHOWCASE PAGE (.link-*)
   -------------------------------------------------------------------------- */
.link-layout {
  max-width: 860px;
  margin: 0 auto;
}

.link-header-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.link-poster-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  object-fit: cover;
  background: #F1F5F9;
}

.link-details-body {
  padding: 32px;
  background: #FFFFFF;
}

.link-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.link-comments-section {
  margin-top: 48px;
}

.link-comment-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   5. SAFETY INTERSTITIAL PAGE (.safety-*)
   -------------------------------------------------------------------------- */
.safety-interstitial-card {
  max-width: 560px;
  margin: 30px auto 48px auto;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.safety-timer-badge {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}

.safety-destination-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 18px 0 24px 0;
}

/* --------------------------------------------------------------------------
   6. DASHBOARD & ADMIN (.dash-*, .admin-*)
   -------------------------------------------------------------------------- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

/* CSS-Only Bar Chart */
.dash-chart-container {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.dash-css-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding-top: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.dash-chart-bar {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
}

.dash-chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

/* Table styles */
.data-table-wrapper {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge.status-pending { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid rgba(217, 119, 6, 0.2); }
.status-badge.status-approved { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(5, 150, 105, 0.2); }
.status-badge.status-rejected { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid rgba(220, 38, 38, 0.2); }

/* --------------------------------------------------------------------------
   7. LONG-FORM & POLICY TYPOGRAPHY (.prose-content)
   High-contrast, clean, 800+ word readability on white surfaces
   -------------------------------------------------------------------------- */
.prose-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.prose-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 28px;
  margin-bottom: 12px;
}

.prose-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.prose-content ul, .prose-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-secondary);
}

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

.prose-content a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}

.prose-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 12px 18px;
  margin: 24px 0;
  background: var(--bg-surface-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   8. AUTHENTICATION PAGE (.auth-* & .auth-page)
   Standalone Full-Screen Shell: No navbar, no footer, perfectly centered.
   Soft premium radial gradients + faint grid + floating chips.
   ========================================================================== */

/* Standalone Auth Page Shell (.auth-page) */
body.auth-page {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #ffffff;
  color: #0b1220;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

body.auth-page .site-header,
body.auth-page .mobile-nav-drawer,
body.auth-page .site-footer,
body.auth-page .footer-ad-strip,
body.auth-page .ad-slot-wrapper {
  display: none !important;
}

body.auth-page .auth-stage,
body.auth-page .stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 44px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(6px);
  animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Full-width stage and background */
.auth-stage,
.stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 18% 22%, rgba(99, 102, 241, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(79, 70, 229, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(248, 250, 255, 0.9) 0%, transparent 70%);
  overflow: hidden;
  box-sizing: border-box;
}

/* Faint 56px grid overlay masked radially */
.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 56px 56px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.55) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Floating Platform Chips Layer (8 Chips) */
.auth-chips-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.auth-chip {
  position: fixed;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  pointer-events: none;
  animation: floaty 7.5s ease-in-out infinite;
  box-sizing: border-box;
  z-index: 2;
}

.auth-chip.big {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.auth-chip svg {
  width: 22px;
  height: 22px;
}

.auth-chip.big svg {
  width: 26px;
  height: 26px;
}

/* 8 Floating Chips Positions & Durations */
.auth-chip-yt { top: 8%; left: 4%; animation-duration: 7.5s; animation-delay: -1.2s; }
.auth-chip-ig { top: 14%; right: 4%; animation-duration: 8.2s; animation-delay: -3.5s; }
.auth-chip-tg { top: 44%; left: 9%; animation-duration: 6.8s; animation-delay: -2.1s; }
.auth-chip-dc { top: 44%; right: 9%; animation-duration: 8.9s; animation-delay: -4.8s; }
.auth-chip-li { top: 74%; left: 15%; animation-duration: 7.2s; animation-delay: -5.4s; }
.auth-chip-x  { top: 74%; right: 15%; animation-duration: 8.5s; animation-delay: -1.8s; }
.auth-chip-wa { bottom: 6%; left: 4%; animation-duration: 7.9s; animation-delay: -3.0s; }
.auth-chip-sp { bottom: 6%; right: 13%; animation-duration: 6.5s; animation-delay: -6.0s; }

@keyframes floaty {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

/* Main Auth Card */
.auth-card {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #e6eaf2;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.08), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  position: relative;
  overflow: hidden;
  z-index: 10;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   PART 3 — LEFT SHOWCASE PANEL
   -------------------------------------------------------------------------- */
.auth-showcase {
  background: radial-gradient(120% 90% at 0% 0%, #eef0ff 0%, #f8f9ff 45%, #ffffff 100%);
  border-right: 1px solid #e6eaf2;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px 0 0 26px;
  position: relative;
  box-sizing: border-box;
}

.auth-showcase-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-showcase-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #0b1220;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.auth-showcase-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
}

.auth-showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.auth-showcase-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.auth-showcase-heading {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #0b1220;
  max-width: 290px;
  margin: 2px 0 0 0;
}

.auth-showcase-subtext {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  max-width: 300px;
  margin: 0;
}

/* 3D Poster Preview Card */
.auth-poster-wrap {
  perspective: 1100px;
  margin-top: 18px;
}

.auth-poster {
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 32px -8px rgba(79, 70, 229, 0.10), 0 4px 10px rgba(15, 23, 42, 0.04);
  transform: perspective(1100px) rotateY(-3.5deg) rotateX(1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-sizing: border-box;
}

.auth-poster:hover {
  transform: perspective(1100px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 18px 38px -8px rgba(79, 70, 229, 0.16), 0 6px 14px rgba(15, 23, 42, 0.06);
}

/* 16/9 Thumbnail */
.auth-poster-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 50%, #818cf8 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-poster-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.94);


  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  padding: 2.5px 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #4f46e5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.auth-poster-glyph {
  width: 40px;
  height: 40px;
  color: #ffffff;
  filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.35));
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header row below thumbnail */
.auth-poster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 2px 8px 2px;
  gap: 8px;
}

.auth-poster-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-poster-name {
  font-size: 13px;
  font-weight: 800;
  color: #0b1220;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-poster-platform {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-poster-verified-badge {
  flex-shrink: 0;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 9999px;
  padding: 2.5px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Three status pill rows */
.auth-poster-status-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.auth-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.auth-status-pill-dark {
  background: #0b1220;
  color: #ffffff;
}

.auth-status-pill-light {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.auth-status-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   PART 4 — RIGHT AUTH PANEL
   -------------------------------------------------------------------------- */
.auth-panel {
  padding: 34px 44px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  border-radius: 0 26px 26px 0;
  box-sizing: border-box;
}

/* Segmented Control */
.auth-segmented {
  position: relative;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
}

.auth-segmented-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.auth-segmented[data-view="signin"] .auth-segmented-pill {
  transform: translateX(100%);
}

.auth-tab-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 9999px;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
  user-select: none;
}

.auth-tab-btn[aria-selected="true"] {
  color: #0b1220;
  font-weight: 700;
}

/* Views Container - Stacked in single grid area to prevent layout shift */
.auth-views {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.auth-view {
  grid-area: 1 / 1;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
  width: 100%;
}

.auth-view.is-active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

#auth-signup-view:not(.is-active) {
  opacity: 0;
  transform: translateX(18px);
  visibility: hidden;
  pointer-events: none;
}

#auth-signin-view:not(.is-active) {
  opacity: 0;
  transform: translateX(-18px);
  visibility: hidden;
  pointer-events: none;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1220;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-subtext {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 18px;
}

/* Fields & Form Controls */
.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-field {
  margin-bottom: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b1220;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-label-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-label-link:hover {
  text-decoration: underline;
  color: #4338ca;
}

.auth-input {
  height: 40px;
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid #e6eaf2;
  padding: 0 14px;
  font-size: 0.9rem;
  color: #0b1220;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.auth-input.has-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.13) !important;
}

.auth-error-msg {
  font-size: 11px;
  color: #dc2626;
  margin-top: 2px;
  display: none;
  font-weight: 500;
}

.auth-error-msg.is-visible {
  display: block;
}

/* Checkbox Row */
.auth-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 0 12px 0;
  font-size: 0.8rem;
  color: #475569;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: #4f46e5;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-checkbox-label a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}

/* Primary Button */
.auth-submit-btn {
  height: 42px;
  width: 100%;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.36);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 14px 0;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6eaf2;
}

.auth-divider span {
  padding: 0 10px;
}

/* Google Button */
.auth-google-btn {
  height: 42px;
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid #e6eaf2;
  background: #ffffff;
  color: #0b1220;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07);
}

.auth-google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-footer-link-wrap {
  text-align: center;
  margin-top: 16px;
  font-size: 0.825rem;
  color: #475569;
}

.auth-switch-link {
  color: #4f46e5;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-switch-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   PART 5 — WELCOME OVERLAY
   -------------------------------------------------------------------------- */
.auth-welcome-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 0 26px 26px 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 32px;
  text-align: center;
  opacity: 0;
  transform: scale(0.985);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.auth-welcome-overlay.is-active {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  pointer-events: auto;
}

.auth-welcome-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(5, 150, 105, 0.25);
  box-shadow: 0 10px 24px -4px rgba(5, 150, 105, 0.2), 0 2px 6px rgba(5, 150, 105, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  margin-bottom: 20px;
}

.auth-welcome-icon-ring svg {
  width: 30px;
  height: 30px;
}

.auth-welcome-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b1220;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-welcome-subtext {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 24px;
}

.auth-welcome-btn {
  width: 100%;
  max-width: 280px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.auth-welcome-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.36);
}

.auth-welcome-back-link {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.auth-welcome-back-link:hover {
  color: #0b1220;
}

/* Local Demo Switcher (Bottom-Left) */
.auth-demo-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.auth-demo-switcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12);
}

.auth-demo-badge {
  background: #eef2ff;
  color: #4f46e5;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Auth Mobile Header (Hidden on Desktop) */
.auth-mobile-header {
  display: none;
}

/* --------------------------------------------------------------------------
   PART 8 — RESPONSIVE & REDUCED MOTION RULES
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .auth-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .auth-showcase {
    display: none;
  }

  .auth-panel {
    border-radius: 20px;
    width: 100%;
    padding: 30px 28px 26px;
  }

  .auth-welcome-overlay {
    border-radius: 0 0 20px 20px;
  }

  .auth-chips-layer {
    pointer-events: none;
  }

  .auth-chip {
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
  }
}

@media (max-width: 767px) {
  /* Auth Card Header on Mobile */
  .auth-mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 44px !important;
    padding: 0 16px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #e6eaf2 !important;
  }

  .auth-mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0b1220 !important;
    text-decoration: none !important;
  }

  .auth-mobile-brand img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
  }

  .auth-mobile-back {
    font-size: 13px !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 8px 0 !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .auth-mobile-back:hover {
    color: #0b1220 !important;
  }

  .auth-stage,
  .stage,
  body.auth-page .auth-stage,
  body.auth-page .stage {
    padding: 24px 16px !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .auth-card {
    grid-template-columns: 1fr !important;
    margin: 24px 16px !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .auth-showcase {
    display: none !important;
  }

  .auth-panel {
    border-radius: 20px !important;
    padding: 20px 18px 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-segmented {
    margin-bottom: 16px !important;
    padding: 3px !important;
  }

  .auth-segmented-pill {
    top: 3px !important;
    bottom: 3px !important;
    left: 3px !important;
  }

  .auth-tab-btn {
    font-size: 12.5px !important;
    padding: 8px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .auth-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }

  .auth-subtext {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  .auth-form {
    display: flex !important;
    flex-direction: column !important;
  }

  .auth-field {
    margin-bottom: 10px !important;
    gap: 4px !important;
  }

  .auth-label {
    font-size: 11.5px !important;
  }

  .auth-input {
    font-size: 13px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
  }

  .auth-checkbox-row {
    margin: 4px 0 10px 0 !important;
  }

  .auth-checkbox-label {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .auth-checkbox-label span {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }

  .auth-submit-btn {
    font-size: 13.5px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin-top: 10px !important;
    border-radius: 10px !important;
  }

  .auth-divider {
    margin: 12px 0 !important;
    font-size: 11px !important;
  }

  .auth-google-btn {
    font-size: 13px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
  }

  .auth-footer-link-wrap {
    font-size: 12px !important;
    margin-top: 12px !important;
  }

  .auth-switch-link {
    font-size: 12px !important;
  }

  .auth-chip {
    opacity: 0.35 !important;
    pointer-events: none !important;
  }

  .auth-demo-switcher {
    bottom: 12px !important;
    left: 12px !important;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page .auth-stage,
  body.auth-page .stage {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .auth-chip {
    animation: none !important;
    transform: none !important;
  }

  .auth-poster {
    transform: none !important;
    transition: none !important;
  }

  .auth-poster:hover {
    transform: none !important;
  }

  .auth-segmented-pill,
  .auth-view,
  .auth-welcome-overlay {
    transition: none !important;
  }
}

/* ==========================================================================
   FOOTER PAGES SCOPED STYLES
   White Premium Theme, Edge-to-Edge Layout, Crisp Typography
   ========================================================================== */

.footer-page-wrapper {
  width: 100%;
  min-height: calc(100vh - 280px);
  background: #FFFFFF;
  color: var(--text-main);
  animation: footerPageFade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Hero Header for Footer Pages */
.footer-page-hero {
  width: 100%;
  background: radial-gradient(circle at 50% 0%, #EEF2FF 0%, #F8FAFC 60%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 64px 24px 44px 24px;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer-page-hero {
    padding: 84px 24px 56px 24px;
  }
}

.footer-page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.08);
}

.footer-page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 14px;
  text-wrap: balance;
}

.footer-page-subline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Page Body Container */
.footer-page-body {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer-page-body {
    padding: 64px 24px 112px 24px;
  }
}

.footer-prose-section {
  margin-bottom: 48px;
}

.footer-prose-section:last-child {
  margin-bottom: 0;
}

.footer-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-section-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-prose-p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-prose-p:last-child {
  margin-bottom: 0;
}

.footer-prose-list {
  margin: 16px 0 24px 0;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-prose-list li {
  margin-bottom: 10px;
}

.footer-prose-list li strong {
  color: var(--text-main);
}

/* Highlight Box / Callout */
.footer-callout {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-accent);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.footer-callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-callout p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Card Grids for Safety / Features */
.footer-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}

@media (min-width: 640px) {
  .footer-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.footer-info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-info-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-info-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Forms for Contact, Advertise, Report - Completely Stable */
.footer-form-card,
.footer-form-card:hover {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-top: 24px;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

@media (min-width: 768px) {
  .footer-form-card,
  .footer-form-card:hover {
    padding: 40px 36px;
    transform: none !important;
  }
}

.footer-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-form-input,
.footer-form-select,
.footer-form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-form-input:focus,
.footer-form-select:focus,
.footer-form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.footer-form-textarea {
  min-height: 130px;
  resize: vertical;
}

.footer-form-submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-form-submit-btn:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.footer-form-submit-btn:active {
  transform: translateY(0);
}

/* Creator Note Highlight Banner */
.footer-creator-box {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
}

.footer-creator-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-creator-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-creator-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Bottom CTA Banner */
.footer-page-cta {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-top: 56px;
}

.footer-page-cta-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-page-cta-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.footer-page-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   SHARELY - ANALYTICS DASHBOARD STYLES
   ========================================================================== */
.analytics-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 128px;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.analytics-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-md);
}

.analytics-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.analytics-card-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0;
  line-height: 1.15;
}

.analytics-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(241, 245, 249, 0.9);
  padding-top: 8px;
  margin-top: auto;
}

.analytics-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.analytics-trend-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.analytics-trend-badge.direction-up {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.analytics-trend-badge.direction-down {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.12);
}

.analytics-trend-badge.direction-neutral {
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
}

.analytics-filter-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.analytics-filter-btn:hover {
  color: var(--text-main);
}

.analytics-filter-btn.is-active {
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.chart-toggle-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.chart-toggle-btn:hover {
  color: var(--text-main);
}

.chart-toggle-btn.is-active {
  background: #FFFFFF;
  color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* Tooltip on Chart Bar Hover */
.chart-bar-col {
  position: relative;
}

.chart-bar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.chart-bar-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

.chart-bar-col:hover .chart-bar-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chart-bar-fill {
  width: 100%;
  max-width: 22px;
  border-radius: 4px 4px 0 0;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.chart-bar-fill.is-active {
  background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
}

.chart-bar-fill.is-empty {
  background: #E2E8F0;
}

/* Today's Clicks Badge on Public Cards */
.badge-clicks-today {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   SHARELY - FULL-WIDTH PROFESSIONAL DASHBOARD STYLES
   Animating transform and opacity exclusively for water-smooth motion.
   ========================================================================== */
.dash-page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
  box-sizing: border-box;
}

.dash-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.dash-page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.dash-page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User Details Strip */
.dash-user-strip {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-user-strip:hover {
  transform: translateY(-1px);
}

.dash-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.dash-user-info-body {
  flex: 1;
  min-width: 220px;
}

.dash-user-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.dash-user-display-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
}

.dash-user-private-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6366F1;
  background: #EEF2FF;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
}

.dash-user-meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dash-user-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-user-meta-sep {
  color: var(--text-muted);
}

.dash-user-signout-wrapper {
  flex-shrink: 0;
}

.dash-signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #DC2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
  background: #FFFFFF !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dash-signout-btn:hover {
  transform: translateY(-1px);
  background: #FEF2F2 !important;
  color: #B91C1C !important;
}

/* 3 Stats Row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .dash-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.2);
}

.dash-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-stat-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.dash-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-icon-wrap.is-success {
  background: #ECFDF5;
  color: #059669;
}

.dash-stat-icon-wrap.is-accent {
  background: #EEF2FF;
  color: #4F46E5;
}

.dash-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.dash-stat-number.stat-success {
  color: #059669;
}

.dash-stat-number.stat-accent {
  color: #4F46E5;
}

.dash-stat-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Panel Containers */
.dash-panel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-panel-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.dash-panel-subheading {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Dashboard Segmented Navigation Tabs */
.dash-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 24px;
  width: fit-content;
  max-width: 100%;
}

.dash-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease, color 0.18s ease;
  font-family: inherit;
  user-select: none;
}

.dash-tab-btn:hover:not(.is-active) {
  color: var(--text-main);
  opacity: 0.9;
}

.dash-tab-btn.is-active {
  background: #FFFFFF;
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.dash-tab-badge {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1;
}

/* Tab Panes */
.dash-tab-pane {
  animation: dashFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Empty State */
.dash-empty-box {
  background: #FFFFFF;
  border: 2px dashed var(--border-subtle);
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
  margin: 12px 0;
}

.dash-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.dash-empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.dash-empty-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

/* Links Table */
.dash-table-container {
  overflow-x: auto;
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.dash-links-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.dash-links-table th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: #F8FAFC;
  white-space: nowrap;
}

.dash-links-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-main);
  vertical-align: middle;
  background: #FFFFFF;
}

.dash-links-table tr:last-child td {
  border-bottom: none;
}

.dash-link-title-text {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.dash-link-url-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-platform-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid #E2E8F0;
}

.dash-category-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #F8FAFC;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.dash-td-clicks {
  font-weight: 800;
  color: #0284C7;
  font-size: 1.1rem;
}

.dash-actions-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dash-copy-btn:hover {
  transform: translateY(-1px);
}

.btn-danger-soft {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-danger-soft:hover {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  transform: translateY(-1px);
}

.btn-danger-solid {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: 1px solid #DC2626 !important;
  font-weight: 700 !important;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
}

.btn-danger-solid:hover {
  background: #B91C1C !important;
  border-color: #B91C1C !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   DASHBOARD SETTINGS PANEL STYLES
   ========================================================================== */
.dash-settings-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dash-settings-section {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 28px;
}

.dash-settings-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.dash-settings-section-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}

.dash-settings-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.dash-settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-settings-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-badge-readonly {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-settings-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dash-settings-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.dash-settings-input:focus:not(:disabled) {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.dash-settings-input.is-readonly,
.dash-settings-input:disabled {
  background: #F8FAFC;
  color: #64748B;
  border-color: #E2E8F0;
  cursor: not-allowed;
}

.dash-settings-helper {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-feedback-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  animation: dashFadeIn 0.2s ease;
}

.dash-feedback-msg.is-success {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.dash-feedback-msg.is-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Active Session Card */
.dash-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-session-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.dash-session-content {
  flex: 1;
  min-width: 200px;
}

.dash-session-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.dash-session-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.dash-session-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.dash-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

/* Danger Zone */
.dash-danger-zone {
  border-color: rgba(220, 38, 38, 0.25);
  background: #FFFDFD;
}

.dash-danger-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dash-danger-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #DC2626;
  margin: 0 0 4px 0;
}

.dash-danger-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 580px;
  line-height: 1.5;
}

/* ==========================================================================
   DASHBOARD MODALS (CONFIRMATION DIALOGS)
   ========================================================================== */
.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: dashFadeIn 0.2s ease;
  box-sizing: border-box;
}

.dash-modal-box {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  animation: dashModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes dashModalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.dash-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.dash-modal-close:hover {
  color: var(--text-main);
  background: #F1F5F9;
}

.dash-modal-body {
  padding: 24px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.dash-modal-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.dash-modal-warning-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FEF2F2;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.dash-modal-list {
  margin: 10px 0 0 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dash-modal-list li {
  margin-bottom: 6px;
}

.dash-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ARTICLE & CONTENT LIBRARY STYLES
   ========================================================================== */

.article-page-body {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 96px 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .article-page-body {
    padding: 64px 24px 112px 24px;
  }
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-badge-cat {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-prose h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-prose p {
  margin-bottom: 22px;
}

.article-prose ul,
.article-prose ol {
  margin: 18px 0 26px 0;
  padding-left: 28px;
}

.article-prose li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.article-prose li strong {
  color: var(--text-main);
}

.article-prose a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-prose a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

.article-callout {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-accent);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.article-callout-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-callout p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.article-faq-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px dashed var(--border-subtle);
}

.article-faq-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.article-faq-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.article-faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.article-faq-a {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.article-nav-box {
  background: radial-gradient(circle at 50% 0%, #EEF2FF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  margin-top: 64px;
  text-align: center;
}

.article-nav-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-nav-box p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ARTICLES INDEX GRID */
.articles-index-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px 24px;
  box-sizing: border-box;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  border-color: rgba(79, 70, 229, 0.3);
}

.article-card-header {
  margin-bottom: 16px;
}

.article-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.article-card:hover .article-card-title {
  color: var(--color-accent);
}

.article-card-excerpt {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-card-link {
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.article-card:hover .article-card-link {
  gap: 8px;
}

.articles-search-bar {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 36px auto;
}

.articles-search-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.articles-search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.footer-quiet-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-quiet-link:hover {
  color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════════
   ULTIMATE MOBILE VIEW STYLES (≤ 767px and ≤ 480px)
   Strictly mobile-only. Zero desktop impact (≥ 1024px unaffected).
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* 1. Hero Section (Mobile Stacking & Sizing) */
  .home-hero-section {
    padding: 48px 0 68px 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .home-hero-section .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .home-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }

  .home-hero-title {
    font-size: clamp(26px, 7vw, 30px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 22px !important;
    word-break: break-word !important;
  }

  .home-hero-desc {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 32px !important;
    max-width: 100% !important;
  }

  .home-hero-ctas {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }

  .home-hero-ctas .btn {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 0.92rem !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mockup Wrapper & Pure Floating Chips (Safely Contained, Max 4 Chips) */
  .home-hero-mockup-wrapper {
    min-height: auto !important;
    height: auto !important;
    padding: 52px 12px !important;
    margin: 8px auto 12px auto !important;
    perspective: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .home-mockup-connector-svg,
  .chip-ig,
  .chip-tg,
  .chip-dc,
  .chip-wa,
  .chip-li,
  .chip-sp {
    display: none !important;
  }

  .home-floating-chip {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    position: absolute !important;
    z-index: 10 !important;
  }

  .home-floating-chip svg {
    width: 16px !important;
    height: 16px !important;
  }

  .chip-yt {
    top: 6px !important;
    left: 6px !important;
    bottom: auto !important;
    right: auto !important;
  }

  .chip-gh {
    top: 6px !important;
    right: 6px !important;
    bottom: auto !important;
    left: auto !important;
  }

  .chip-x {
    bottom: 6px !important;
    left: 6px !important;
    top: auto !important;
    right: auto !important;
  }

  .chip-fb {
    bottom: 6px !important;
    right: 6px !important;
    top: auto !important;
    left: auto !important;
  }

  .home-hero-mockup-wrapper .card-3d,
  .card-3d {
    width: 280px !important;
    max-width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow:
      0 20px 40px rgba(79,70,229,0.12),
      0 10px 20px rgba(0,0,0,0.05),
      0 0 0 1px rgba(255,255,255,0.9) inset !important;
    text-align: left !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
  }

  .card-3d .browser-bar {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .card-3d .dots {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .card-3d .dot {
    width: 8px !important;
    height: 8px !important;
  }

  .card-3d .url-pill {
    min-width: 0 !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }

  .card-3d .live-badge {
    font-size: 8px !important;
    padding: 3px 7px !important;
    flex-shrink: 0 !important;
  }

  .card-3d .card-top {
    padding: 16px !important;
  }

  .card-3d .channel-row {
    gap: 10px !important;
  }

  .card-3d .channel-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
    font-size: 18px !important;
  }

  .card-3d .channel-info {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .card-3d .channel-info h3 {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-3d .channel-info p {
    font-size: 10.5px !important;
    color: rgba(255,255,255,0.85) !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-3d .bar-chart {
    height: 44px !important;
    margin-top: 14px !important;
    gap: 4px !important;
  }

  .card-3d .bar {
    border-radius: 4px 4px 0 0 !important;
  }

  .card-3d .card-bottom {
    padding: 16px !important;
  }

  .card-3d .card-bottom .row {
    margin-bottom: 8px !important;
    gap: 6px !important;
  }

  .card-3d .card-bottom h4 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    line-height: 1.25 !important;
  }

  .card-3d .tags {
    gap: 4px !important;
  }

  .card-3d .tag {
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    line-height: 1.2 !important;
  }

  .card-3d .desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin-bottom: 12px !important;
  }

  .card-3d .divider {
    margin-bottom: 10px !important;
  }

  .card-3d .footer-row {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .card-3d .footer-left,
  .card-3d .footer-right {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  /* 2. Quick Submit Strip (Mobile) */
  .home-quick-submit-section,
  .home-quick-submit-wrap {
    padding: 56px 0 64px 0 !important;
  }

  .home-quick-submit-section .home-section-header {
    margin-bottom: 32px !important;
  }

  .home-quick-submit-section .home-section-kicker {
    margin-bottom: 14px !important;
  }

  .home-quick-submit-section .home-section-title {
    margin-bottom: 12px !important;
  }

  .home-quick-submit-section .home-section-subtitle {
    margin-bottom: 8px !important;
  }

  .home-quick-submit-box {
    padding: 0 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-quick-submit-form {
    min-height: 50px !important;
    padding: 6px 8px 6px 14px !important;
    border-radius: 9999px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-input {
    height: 38px !important;
    line-height: 38px !important;
    font-size: 14px !important;
    padding: 0 8px 0 0 !important;
  }

  .home-quick-submit-btn {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }

  .home-quick-submit-hints {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 24px !important;
    width: 100% !important;
  }

  .home-quick-submit-hint-item {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  /* 3. Section Titles, Eyebrows & Spacing */
  .home-tagline-kicker {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .home-section-kicker,
  .footer-page-badge,
  .home-guide-readtime,
  .article-badge-cat,
  .article-card-tag,
  .category-page-kicker {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .home-section-title,
  .footer-page-title {
    font-size: clamp(20px, 5.5vw, 24px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 8px !important;
    word-break: break-word !important;
  }

  .home-section-subtitle,
  .footer-page-subline {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  .home-section-header {
    margin-bottom: 24px !important;
    text-align: left !important;
  }

  .home-section-header-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .home-section-header-left {
    width: 100% !important;
  }

  .home-section-view-all {
    align-self: flex-start !important;
    margin-top: 4px !important;
    font-size: 12.5px !important;
    padding: 5px 12px !important;
  }

  .home-section,
  #home-categories-section,
  #home-popular-section,
  #home-explore-section,
  #home-steps-section,
  #home-trust-section,
  #home-guides-section,
  #home-cta-section {
    padding: 40px 0 !important;
  }

  /* 4. Grids on 480-767px (2 Columns for Link Grids, 1 Column for Narrative Cards) */
  .home-categories-grid,
  .home-popular-grid,
  .home-explore-grid,
  #explore-grid,
  .dash-links-grid,
  .category-page-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .home-steps-grid,
  .home-trust-grid,
  .home-guides-grid,
  .home-contributors-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* 5. Explore Controls & Filter Bar (Mobile Stack) */
  .explore-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .explore-controls > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  #explore-search-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .explore-filters-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  #explore-filter-category,
  #explore-filter-platform,
  #explore-sort-select,
  .form-select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  #explore-results-count {
    font-size: 12px !important;
    margin-top: 4px !important;
  }

  /* 6. Narrative Cards (Steps, Trust, Guides, CTA) */
  .home-step-card,
  .home-trust-card,
  .home-guide-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .home-step-number {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
  }

  .home-step-title,
  .home-trust-title,
  .home-guide-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }

  .home-step-desc,
  .home-trust-desc,
  .home-guide-summary {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }

  .home-cta-card {
    padding: 36px 16px !important;
    border-radius: 16px !important;
  }

  .home-cta-title {
    font-size: clamp(20px, 6vw, 24px) !important;
    line-height: 1.25 !important;
  }

  .home-cta-desc {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* 7. Submit Page Mobile Tuning */
  .submit-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .submit-preview-container {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .submit-progress-bar {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  /* 8. User Dashboard & Settings (mobile: stack vertically, full width, 16px gap) */
  .dash-profile-strip,
  .dash-user-strip,
  .dash-header-row,
  .dash-header-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 16px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-stats-row,
  .dash-stats-grid,
  .dash-settings-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .dash-stat-card,
  .dash-panel-card,
  .dash-settings-section,
  .dash-session-card {
    padding: 16px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-stat-number {
    font-size: 24px !important;
    font-weight: 800 !important;
  }

  .dash-tabs-bar {
    overflow-x: auto !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .dash-tab-btn {
    white-space: nowrap !important;
    font-size: 13px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
  }

  .dash-settings-field {
    gap: 6px !important;
    width: 100% !important;
  }

  .dash-settings-label,
  .form-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  .dash-settings-input,
  .dash-settings-input-group input,
  .form-input,
  .form-select {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    width: 100% !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .dash-settings-input-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .dash-settings-input-group .btn,
  .dash-settings-input-group button {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
  }

  /* Delete Account block: red border, comfortable padding, button 44px tall */
  .dash-danger-zone {
    border: 1.5px solid #FCA5A5 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    background: #FFFDFD !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-danger-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .dash-danger-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #DC2626 !important;
  }

  .dash-danger-desc {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .dash-danger-header button,
  .dash-danger-header .btn-danger-solid,
  #dash-open-delete-account-btn {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
  }

  /* 9. Articles & Content Library */
  .article-page-body,
  .articles-index-container {
    padding: 24px 16px 40px 16px !important;
  }

  .article-prose {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .article-prose h2 {
    font-size: 20px !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
  }

  .article-prose h3 {
    font-size: 17px !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
  }

  .article-callout {
    padding: 16px 14px !important;
    margin: 20px 0 !important;
    border-radius: 12px !important;
  }

  .article-faq-heading {
    font-size: 20px !important;
    margin-bottom: 16px !important;
  }

  .article-faq-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .article-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .article-card-title {
    font-size: 16px !important;
  }

  .article-card-excerpt {
    font-size: 13px !important;
  }

  .articles-search-bar {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .articles-search-input {
    width: 100% !important;
    height: 44px !important;
    font-size: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL MOBILE OVERRIDES (≤ 767px & < 480px)
   Strictly scoped to mobile only. Desktop (≥ 1024px) untouched.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Explore Search and Filters (Mobile) */
  .explore-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
  }

  .explore-controls > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }

  #explore-search-input,
  .explore-search-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-subtle, #E2E8F0) !important;
    box-sizing: border-box !important;
  }

  .explore-filters-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #explore-filter-category,
  #explore-filter-platform,
  #explore-sort-select,
  .explore-filters-group select,
  .explore-filters-group .form-select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-subtle, #E2E8F0) !important;
    background-color: #FFFFFF !important;
    box-sizing: border-box !important;
  }

  #explore-results-count,
  .explore-results-count {
    font-size: 12px !important;
    color: var(--text-muted) !important;
  }

  /* 2 Columns for Link Grids on Mobile */
  .home-categories-grid,
  .home-popular-grid,
  .home-explore-grid,
  #explore-grid,
  #explore-links-grid,
  .dash-links-grid,
  .category-page-grid,
  .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .home-steps-grid,
  .home-trust-grid,
  .home-guides-grid,
  .home-contributors-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* Link Cards Mobile Styling */
  .poster-card {
    padding: 12px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .poster-card-canvas,
  .poster-card-image-wrap,
  .poster-preview-img {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
  }

  .poster-card-title {
    font-size: 15px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
  }

  .poster-card-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
  }

  .poster-badge-platform,
  .poster-card-chip,
  .poster-cat-badge {
    font-size: 10.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .poster-clicks-indicator,
  .poster-clicks-count {
    font-size: 11.5px !important;
  }

  .poster-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .poster-card-actions .btn,
  .poster-card-actions a.btn {
    min-height: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    font-size: 13px !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EXTRA COMPACT MOBILE (< 480px: 360px, 390px, 414px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 479px) {
  /* Quick Submit Form Vertical Stack (< 480px) */
  .home-quick-submit-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-icon {
    display: none !important;
  }

  .home-quick-submit-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    text-align: left !important;
    background: #F8FAFC !important;
    border: 1px solid var(--border-subtle, #E2E8F0) !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .home-quick-submit-btn {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  /* Hero CTAs Vertical Stack */
  .home-hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 14px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
  }

  .home-hero-ctas .btn {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  /* Popular Tabs Full-Width Stack */
  .home-popular-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .home-tabs {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .home-tab-btn {
    flex: 1 !important;
    text-align: center !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    min-height: 40px !important;
  }
}

/* ==========================================================================
   MOBILE SPECIFIC PAGE STYLES (≤640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* 1. Home Page */
  .home-hero-section {
    padding: 48px 0 68px 0 !important;
  }

  .home-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 44px !important;
  }

  .home-tagline-kicker {
    font-size: 10px !important;
    padding: 6px 14px !important;
    margin-bottom: 20px !important;
  }

  .home-hero-title {
    font-size: 24px !important;
    line-height: 1.15 !important;
    margin-bottom: 22px !important;
  }

  .home-hero-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 32px !important;
  }

  .home-hero-ctas {
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }

  .home-hero-ctas .btn {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    font-size: 13px !important;
  }

  .home-hero-mockup-wrapper,
  .home-hero-mock {
    padding: 52px 12px !important;
    min-height: auto !important;
    margin: 8px 0 12px 0 !important;
  }

  .home-mockup-card {
    transform: none !important;
    animation: none !important;
    border-radius: 12px !important;
  }

  .home-floating-chip,
  .auth-chip {
    animation: none !important;
    transform: none !important;
  }

  .home-quick-submit-section,
  .home-quick-submit-wrap {
    padding: 56px 0 64px 0 !important;
  }

  .home-quick-submit-form {
    padding: 14px !important;
    border-radius: 10px !important;
    gap: 12px !important;
    flex-direction: column !important;
  }

  .home-quick-submit-input {
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    background: #F8FAFC !important;
    border: 1px solid var(--border-subtle) !important;
  }

  .home-quick-submit-btn {
    height: 36px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    width: 100% !important;
  }

  .home-section,
  #home-popular-section,
  #home-explore-section,
  #home-steps-section,
  #home-trust-section,
  #home-guides-section {
    padding: 24px 0 !important;
  }

  /* Universal 2-Column Grid for Link Cards on Mobile */
  .home-popular-grid,
  .home-explore-grid,
  .home-categories-grid,
  .explore-grid,
  .dash-links-grid,
  .links-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    
    
  }

  .home-section-header-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .home-section-view-all {
    font-size: 12px !important;
    padding: 4px 10px !important;
  }

  .home-steps-grid,
  .home-trust-grid,
  .home-guides-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-step-card,
  .home-trust-card,
  .home-guide-card {
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }

  .home-step-number {
    font-size: 1.8rem !important;
    margin-bottom: 6px !important;
  }

  .home-step-title,
  .home-trust-title,
  .home-guide-title {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .home-step-desc,
  .home-trust-desc,
  .home-guide-summary {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  .home-cta-card {
    padding: 24px 16px !important;
    border-radius: 14px !important;
  }

  .home-cta-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .home-cta-desc {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }

  /* 2. Submit Page */
  .submit-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .submit-progress-bar {
    margin-bottom: 16px !important;
    gap: 4px !important;
  }

  .submit-step-indicator {
    font-size: 11px !important;
    gap: 4px !important;
  }

  .submit-step-badge {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }

  .submit-preview-container {
    order: 2 !important;
    position: static !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
  }

  /* 3. Dashboard (User & Admin) */
  .dash-header,
  .dash-profile-card {
    padding: 12px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .dash-avatar,
  .user-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .dash-stats-grid,
  .admin-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .dash-stat-box,
  .admin-stat-box,
  .skeleton-stat-card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }

  .dash-stat-value,
  .admin-stat-value {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .data-table-wrapper,
  .dash-table-wrap,
  .admin-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-subtle) !important;
    
    
  }

  .data-table,
  .dash-table,
  .admin-table {
    width: 100% !important;
    min-width: 520px !important;
    font-size: 12px !important;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px !important;
  }

  .admin-action-btn,
  .table-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .admin-action-btn button,
  .table-actions button,
  .table-actions a {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
  }

  /* 4. Link Details Page */
  .link-layout {
    width: 100% !important;
    padding: 0 !important;
  }

  .link-header-card {
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  .link-poster-hero {
    aspect-ratio: 16 / 10 !important;
    max-height: 220px !important;
  }

  .link-details-body {
    padding: 14px !important;
  }

  .link-share-bar {
    gap: 6px !important;
    margin: 12px 0 !important;
    padding: 10px 0 !important;
  }

  .safety-interstitial-card {
    padding: 16px 12px !important;
    margin: 16px auto !important;
    border-radius: 12px !important;
  }

  .safety-timer-badge {
    font-size: 2rem !important;
    margin: 10px 0 !important;
  }

  /* 5. Auth / Login / Signup Pages */
  .auth-card {
    grid-template-columns: 1fr !important;
    border-radius: 16px !important;
    width: 100% !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-md) !important;
  }

  .auth-showcase {
    display: none !important;
  }

  .auth-panel {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    width: 100% !important;
  }

  .auth-segmented {
    height: 36px !important;
    margin-bottom: 14px !important;
  }

  .auth-tab-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }

  /* 6. Long-form / Prose Content */
  .prose-content {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .prose-content h1 {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  .prose-content h2 {
    font-size: 18px !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
  }

  .prose-content h3 {
    font-size: 15px !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
  }

  .prose-content p, .prose-content ul {
    margin-bottom: 12px !important;
  }
}

/* ==========================================================================
   MOBILE PUBLIC PAGES SIZE & LAYOUT OVERRIDES (<= 767px ONLY)
   ========================================================================== */
@media (max-width: 767px) {
  /* 0. No horizontal page scroll anywhere + Mobile speed optimizations (Fix 3) */
  html {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  
  }
  body {
    width: 100% !important;
    max-width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  
  }

  *,
  *::before,
  *::after {
    will-change: auto !important;
    transition-duration: 0.12s !important;
  }

  .site-header,
  .nav-floating,
  .mobile-nav-drawer,
  .poster-badge-platform,
  .poster-card-chip,
  .poster-cat-badge,
  .home-floating-chip,
  .card-3d,
  .modal-overlay,
  .dash-modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .home-reveal,
  .reveal-on-scroll,
  .poster-card {
    animation: none !important;
    transition: opacity 0.12s ease, transform 0.12s ease !important;
    will-change: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .poster-card,
  .home-step-card,
  .home-trust-card,
  .home-guide-card,
  .article-card,
  .footer-info-card,
  .safety-layer-card,
  .explore-controls,
  .home-quick-submit-form,
  .home-cta-card {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  }

  #home-explore-section,
  #home-steps-section,
  #home-trust-section,
  #home-guides-section,
  .home-section:has(.home-cta-card),
  .site-footer {
    
    
  }

  body:has(.mobile-nav-drawer.is-open),
  html:has(.mobile-nav-drawer.is-open) {
    overflow: hidden !important;
  }

  /* FIX 2: FULL SCREEN MENU, ALIGNMENT AND LOOK */
  .mobile-nav-drawer {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
    padding: 68px 20px 24px !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-nav-drawer.is-open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
    padding: 68px 20px 24px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* Clean round 40x40px close button at top-right inside open menu, no black square outline */
  .mobile-drawer-close-btn {
    position: fixed !important;
    top: 14px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: #F1F5F9 !important;
    border: 1px solid var(--border-subtle, #E2E8F0) !important;
    color: var(--text-main, #0F172A) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10002 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-drawer-close-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-drawer-close-btn:focus,
  .mobile-drawer-close-btn:focus-visible,
  .mobile-drawer-close-btn:active,
  .mobile-menu-btn:focus,
  .mobile-menu-btn:focus-visible,
  .mobile-menu-btn:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Menu links: left-aligned [icon] Text, 48px high, 16px font, 20px icon, 12px radius, 0 14px padding */
  .mobile-nav-link,
  .mobile-nav-safety-row a,
  .mobile-safety-pill,
  #mobile-auth-actions .mobile-nav-link,
  #mobile-auth-actions a:not(.btn):not(.btn-primary),
  #mobile-auth-actions button:not(.btn):not(.btn-primary),
  .mobile-categories-toggle {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .mobile-nav-link > span,
  .mobile-nav-safety-row a > span,
  .mobile-safety-pill > span,
  #mobile-auth-actions .mobile-nav-link > span {
    text-align: left !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
  }

  .mobile-nav-link svg,
  .mobile-categories-toggle svg,
  .mobile-nav-safety-row svg,
  .mobile-nav-safety-row a svg,
  .mobile-safety-pill svg,
  #mobile-auth-actions .mobile-nav-link svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .mobile-nav-link.is-active,
  .mobile-nav-link[aria-current="page"],
  .mobile-nav-safety-row a.is-active,
  .mobile-safety-pill.is-active,
  #mobile-auth-actions .mobile-nav-link.is-active {
    background: #EEF2FF !important;
    color: #4F46E5 !important;
  }

  .mobile-nav-safety-row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-nav-divider {
    margin: 4px 0 !important;
    width: 100% !important;
  }

  #mobile-auth-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 12px !important;
    margin-top: auto !important;
    border-top: 1px solid var(--border-subtle, #E2E8F0) !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-drawer a.btn-primary,
  #mobile-auth-actions .btn-primary,
  #mobile-auth-actions a[href="/submit"] {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  /* FIX 1 & B) HEADER AND ZERO EXTRA GAP BELOW HEADER */
  .site-header {
    position: sticky !important;
    top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1000 !important;
  }

  .nav-floating,
  .header-container {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 6px 8px 0 8px !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    border-radius: 14px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  }

  /* Remove extra 50-76px top padding under sticky header on all public pages */
  main,
  #main-content,
  .main-content,
  .explore-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Collapse empty ad containers so they never add vertical gaps */
  div.container:has(> .ad-slot-wrapper:only-child),
  div.container.home-reveal:has(> .ad-slot-container:not(.is-filled)) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  .brand-logo-img,
  .site-logo img {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }

  .brand-link,
  .brand-link span,
  .site-logo,
  .site-logo .logo-text {
    font-size: 15px !important;
    gap: 8px !important;
  }

  .mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .mobile-menu-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* C & FIX 4) GLOBAL TEXT SIZES, BUTTONS & SECTION BREATHING SPACE */
  .home-section-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .home-section-subtitle {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .home-section-kicker,
  .home-tagline-kicker {
    font-size: 10.5px !important;
  }

  .home-hero-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }

  .home-hero-title span {
    margin-top: 4px !important;
  }

  .home-hero-desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }

  .btn,
  .btn-md {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 13.5px !important;
    padding: 0 14px !important;
  }

  .btn-lg {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
  }

  .btn-sm {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 12.5px !important;
    padding: 0 14px !important;
  }

  /* FIX 4: Home page sections clear breathing space (not stuck together) */
  .home-section,
  section.home-section,
  #home-categories-section,
  #home-popular-section,
  #home-explore-section,
  #home-steps-section,
  #home-trust-section,
  #home-guides-section,
  #home-cta-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--border-subtle, #E2E8F0) !important;
  }

  .home-section:has(.home-cta-card),
  #home-cta-section {
    padding-top: 32px !important;
    padding-bottom: 36px !important;
    margin-bottom: 12px !important;
  }

  .container,
  .home-section .container,
  #home-popular-section .container,
  #home-explore-section .container,
  #home-steps-section .container,
  #home-trust-section .container,
  #home-guides-section .container,
  .home-hero-section .container,
  .home-quick-submit-section .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-section-header,
  .home-section-header-flex {
    margin-bottom: 18px !important;
    gap: 8px !important;
  }

  /* D) HOME PAGE SECTIONS */
  /* 1. Hero (top padding 16px so content starts ~12-16px below header) */
  .home-hero-section {
    padding: 16px 0 28px 0 !important;
    margin-top: 0 !important;
    overflow: hidden !important;
  }

  .home-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
  }

  .home-hero-grid > div:first-child {
    padding: 0 !important;
  }

  .home-tagline-kicker {
    padding: 4px 10px !important;
    margin: 0 auto 10px auto !important;
  }

  .home-hero-ctas {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .home-hero-ctas .btn {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 136px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
  }

  .home-hero-mockup-wrapper,
  .home-hero-mock {
    min-height: 0 !important;
    padding: 16px 4px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .home-hero-mockup-wrapper .card-3d,
  .home-hero-mockup-wrapper #card,
  .home-mockup-card,
  .home-hero-mock .mock-card {
    width: 92% !important;
    max-width: 92% !important;
    margin: 0 auto !important;
  }

  .home-floating-chip,
  .home-hero-mock .chip {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
  }

  .home-floating-chip svg,
  .home-hero-mock .chip svg {
    width: 15px !important;
    height: 15px !important;
  }

  .home-floating-chip.chip-yt {
    top: 2px !important;
    left: 2% !important;
  }

  .home-floating-chip.chip-gh {
    top: 2px !important;
    right: 2% !important;
  }

  .home-floating-chip.chip-x {
    bottom: 2px !important;
    left: 2% !important;
  }

  .home-floating-chip.chip-fb {
    bottom: 2px !important;
    right: 2% !important;
  }

  /* 2. Quick submit box */
  .home-quick-submit-section,
  .home-quick-submit-wrap {
    padding: 28px 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--border-subtle, #E2E8F0) !important;
  }

  .home-quick-submit-section .home-section-header {
    margin-bottom: 16px !important;
  }

  .home-quick-submit-box {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .home-quick-submit-form {
    gap: 8px !important;
  }

  .home-quick-submit-input {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 14px !important;
    padding: 0 12px 0 36px !important;
  }

  .home-quick-submit-icon {
    left: 12px !important;
    top: 21px !important;
  }

  .home-quick-submit-btn {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
  }

  .home-quick-submit-hints {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 12px !important;
    margin-top: 12px !important;
  }

  .home-quick-submit-hint-item {
    font-size: 12px !important;
    gap: 4px !important;
  }

  .home-quick-submit-hint-item svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* 3. "All links" / Popular & Complete Directory (2 cards per row, 12px gap) */
  .home-popular-grid,
  .home-explore-grid,
  #home-popular-grid,
  #home-explore-grid,
  #explore-links-grid,
  #explore-results-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .poster-card,
  .skeleton-card,
  .skeleton-poster-card {
    border-radius: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .poster-thumbnail-wrapper,
  .skeleton-thumbnail {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
  }

  .poster-badge-platform {
    top: 6px !important;
    left: 6px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
  }

  .poster-card-body,
  #home-popular-section .poster-card-body,
  #home-explore-section .poster-card-body,
  .skeleton-body,
  .skeleton-card > div:last-child {
    padding: 8px !important;
  }

  .poster-card-title,
  #home-popular-section .poster-card-title,
  #home-explore-section .poster-card-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .poster-card-desc,
  #home-popular-section .poster-card-desc,
  #home-explore-section .poster-card-desc {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .poster-card-meta {
    font-size: 11px !important;
    padding-top: 6px !important;
    gap: 4px !important;
  }

  .poster-cat-link,
  .poster-card-meta a {
    font-size: 11px !important;
    max-width: 55% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .poster-clicks-indicator,
  .poster-clicks-count {
    font-size: 11px !important;
    gap: 3px !important;
  }

  .poster-clicks-indicator svg {
    width: 12px !important;
    height: 12px !important;
  }

  .poster-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .poster-card-actions .btn,
  .poster-card-actions a.btn {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    font-size: 11.5px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
  }

  /* Empty-state card ("No links submitted yet") */
  .home-popular-grid > div:not(.poster-card):not(.skeleton-card),
  .home-explore-grid > div:not(.poster-card):not(.skeleton-card),
  .explore-empty-state,
  #explore-empty {
    grid-column: 1 / -1 !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .home-popular-grid > div:not(.poster-card):not(.skeleton-card) > div:first-child,
  .home-explore-grid > div:not(.poster-card):not(.skeleton-card) > div:first-child,
  .explore-empty-state > div:first-child {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto 8px auto !important;
  }

  .home-popular-grid > div:not(.poster-card):not(.skeleton-card) h3,
  .home-explore-grid > div:not(.poster-card):not(.skeleton-card) h3,
  .explore-empty-state h3 {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .home-popular-grid > div:not(.poster-card):not(.skeleton-card) p,
  .home-explore-grid > div:not(.poster-card):not(.skeleton-card) p,
  .explore-empty-state p {
    font-size: 12.5px !important;
    margin-bottom: 12px !important;
  }

  .home-popular-grid > div:not(.poster-card):not(.skeleton-card) .btn,
  .home-explore-grid > div:not(.poster-card):not(.skeleton-card) .btn,
  .explore-empty-state .btn {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 13px !important;
    width: auto !important;
    display: inline-flex !important;
  }

  /* "See more links" button & "View all top clicked" chip */
  #home-popular-section .container > div:last-child,
  #home-explore-section .container > div:last-child {
    margin-top: 20px !important;
  }

  #home-popular-section .container > div:last-child .btn,
  #home-explore-section .container > div:last-child .btn {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    font-size: 13px !important;
    padding: 0 16px !important;
    width: auto !important;
  }

  .home-popular-controls {
    margin-top: 4px !important;
  }

  .home-section-view-all,
  #home-popular-view-all {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  /* 4. Steps */
  .home-steps-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-step-card {
    padding: 14px !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 12px !important;
  }

  .home-step-number {
    font-size: 24px !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
  }

  .home-step-title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .home-step-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  /* 5. Trust cards */
  .home-trust-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .home-trust-card {
    padding: 12px !important;
    min-height: 0 !important;
    border-radius: 12px !important;
  }

  .home-trust-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
  }

  .home-trust-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .home-trust-title {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .home-trust-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  #home-trust-section .container > div:last-child {
    margin-top: 20px !important;
  }

  /* 6. Guides */
  .home-guides-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 28px !important;
  }

  #home-guides-section .home-guides-grid + div {
    margin-top: 28px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--border-subtle, #E2E8F0) !important;
  }

  .home-guide-card {
    padding: 14px !important;
    min-height: 0 !important;
    border-radius: 12px !important;
    gap: 8px !important;
  }

  .home-guide-readtime {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .home-guide-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .home-guide-summary {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
  }

  .home-guide-link {
    font-size: 12px !important;
  }

  /* 7. FAQ */
  .faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .faq-question {
    font-size: 14px !important;
    padding: 12px 14px !important;
    line-height: 1.35 !important;
  }

  .faq-answer,
  .faq-answer-inner {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .faq-answer-inner {
    padding: 0 14px 12px 14px !important;
  }

  /* 8. CTA card */
  .home-cta-card {
    padding: 22px 18px !important;
    border-radius: 16px !important;
    margin-bottom: 8px !important;
  }

  .home-cta-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .home-cta-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .home-cta-card .btn {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 14px !important;
  }

  /* E & FIX 3) EXPLORE PAGE (/explore) */
  .explore-header {
    padding: 16px 0 14px 0 !important;
    margin-bottom: 14px !important;
  }

  .main-content > .footer-page-hero + .container {
    padding-top: 16px !important;
    padding-bottom: 36px !important;
  }

  .explore-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }

  .explore-search-wrapper,
  .explore-controls > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .explore-filters-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #explore-filter-category,
  .explore-filters-group > select:first-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #explore-filter-platform,
  #explore-sort-select {
    grid-column: span 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .explore-controls .form-input,
  .explore-controls .form-select,
  #explore-search-input,
  #explore-filter-category,
  #explore-filter-platform,
  #explore-sort-select {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #explore-search-input {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #explore-category-chips,
  #explore-categories-bar,
  .explore-categories-bar,
  .explore-category-chips {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    padding-bottom: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #explore-category-chips::-webkit-scrollbar,
  #explore-categories-bar::-webkit-scrollbar,
  .explore-categories-bar::-webkit-scrollbar,
  .explore-category-chips::-webkit-scrollbar {
    display: none !important;
  }

  #explore-category-chips .explore-category-chip-btn,
  #explore-category-chips .explore-category-chip-skeleton,
  .explore-category-chip-btn,
  .explore-category-chip-skeleton,
  #explore-categories-bar .explore-cat-chip,
  .explore-cat-chip {
    flex: 0 0 auto !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .explore-category-chip-btn .tabular-nums,
  .explore-cat-chip-count {
    font-size: 10.5px !important;
    padding: 1px 6px !important;
    line-height: 1.2 !important;
  }

  #explore-results-count {
    font-size: 12px !important;
  }

  /* F) PAGES: About, Articles, Safety, Privacy, Terms, Contact, Link, Submit */
  .footer-page-hero,
  .safety-hero,
  .contact-hero {
    padding: 16px 14px 20px 14px !important;
    margin-top: 0 !important;
  }

  .footer-page-badge {
    font-size: 10.5px !important;
    padding: 4px 10px !important;
    margin-bottom: 8px !important;
  }

  .footer-page-title,
  .safety-hero h1,
  .contact-hero h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  .footer-page-subline,
  .safety-hero p,
  .contact-hero p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .footer-page-body {
    padding: 20px 14px 32px !important;
  }

  .footer-prose-section {
    margin-bottom: 22px !important;
  }

  .footer-section-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }

  .footer-prose-p,
  .footer-prose-list li {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 8px !important;
  }

  .footer-cards-grid,
  .safety-layer-grid,
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }

  .footer-info-card,
  .safety-layer-card,
  .contact-info-card,
  .contact-form-card,
  .footer-form-card {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .footer-info-card-icon,
  .safety-layer-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  .footer-info-card-title {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .footer-info-card-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  .footer-callout,
  .safety-honest-box {
    padding: 12px 14px !important;
    margin: 16px 0 !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
  }

  .footer-page-cta {
    padding: 18px 14px !important;
    margin-top: 20px !important;
    border-radius: 14px !important;
  }

  .footer-page-cta-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .footer-page-cta-desc {
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }

  .footer-page-cta-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .footer-page-cta-btns .btn {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  /* Articles Index & Article Prose */
  .articles-index-container,
  .article-container,
  .article-page-body {
    padding: 16px 14px 32px !important;
  }

  .articles-search-bar {
    margin-bottom: 14px !important;
  }

  .articles-search-input {
    height: 40px !important;
    font-size: 13px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
  }

  .articles-grid,
  .article-related-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .article-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  .article-card-tag {
    font-size: 10px !important;
    padding: 2px 8px !important;
    margin-bottom: 6px !important;
  }

  .article-card-title {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .article-card-excerpt {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .article-card-footer {
    padding-top: 8px !important;
    font-size: 11.5px !important;
  }

  .article-title {
    font-size: 21px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .article-prose {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .article-prose h2 {
    font-size: 17px !important;
    margin: 20px 0 8px !important;
  }

  .article-prose h3 {
    font-size: 15px !important;
    margin: 16px 0 6px !important;
  }

  /* G) SHARED FOOTER (Normal horizontal text, compact 2-column layout) */
  .site-footer {
    padding: 28px 0 22px 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .site-footer .container,
  .site-footer .footer-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-footer,
  .site-footer * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
  }

  .footer-brand,
  .footer-col.brand-col {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-grid > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  .site-footer .brand-link,
  .site-footer .site-logo {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
  }

  .site-footer .brand-logo-img,
  .site-footer .site-logo img {
    width: 24px !important;
    height: 24px !important;
  }

  .site-footer .brand-link span,
  .site-footer .logo-text {
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  .footer-brand p,
  .footer-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  .footer-heading {
    font-size: 11.5px !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
  }

  .footer-nav-list,
  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  .footer-nav-link,
  .footer-nav-list a,
  .footer-link {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    display: inline-block !important;
  }

  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding-top: 14px !important;
    padding-bottom: 4px !important;
    font-size: 11.5px !important;
    width: 100% !important;
  }

  .footer-bottom > div,
  .footer-credits {
    font-size: 11.5px !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    white-space: normal !important;
  }
}

/* ==========================================================================
   TASK 1 & TASK 2: MOBILE MENU SLIDE & HOME HERO BREATHING SPACE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  /* Scroll locking while menu is open */
  body:has(.mobile-nav-drawer.is-open),
  html:has(.mobile-nav-drawer.is-open) {
    overflow: hidden !important;
  }

  /* --------------------------------------------------------------------------
     TASK 1: PROFESSIONAL MENU DESIGN + SMOOTH SIDE SLIDE
     -------------------------------------------------------------------------- */

  /* Full Screen Drawer - Closed state sits off-screen on the right */
  .mobile-nav-drawer {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    max-width: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 64px 16px 0 16px !important;
    gap: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9999 !important;
    -webkit-overflow-scrolling: touch !important;

    /* Base soft gradient + two soft glow circles */
    background-color: #FFFFFF !important;
    background-image:
      radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.18), transparent 45%),
      radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.14), transparent 50%),
      linear-gradient(160deg, #FFFFFF 0%, #F5F7FF 55%, #EEF2FF 100%) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;

    /* A) Smooth Slide Off-Screen Closed State (flowing water, no jerk) */
    transform: translate3d(100%, 0, 0) !important;
    opacity: 1 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.38s cubic-bezier(0.55, 0, 0.2, 1), visibility 0s linear 0.38s !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Fine pattern grid lines via ::before */
  .mobile-nav-drawer::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background-image:
      linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 85%) !important;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 85%) !important;
  }

  /* Big faded Sharely logo watermark in bottom-right corner via ::after */
  .mobile-nav-drawer::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background-image: url('/logo.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right -40px bottom 90px !important;
    background-size: 220px auto !important;
    opacity: 0.07 !important;
  }

  /* Interactive contents sit above decorative layers */
  .mobile-nav-drawer > *,
  .mobile-nav-link,
  #mobile-auth-actions,
  .mobile-drawer-close-btn,
  .mobile-nav-safety-row,
  .mobile-nav-divider {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Open state - smooth slide into view */
  .mobile-nav-drawer.is-open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s !important;
  }

  /* Close button: 36x36px, top 14px, right 16px, background #FFFFFF, 1px border #E2E8F0, soft shadow */
  .mobile-drawer-close-btn {
    position: fixed !important;
    top: 14px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #0F172A !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 10002 !important;
  }

  .mobile-drawer-close-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    stroke: #0F172A !important;
    stroke-width: 2.2 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .mobile-drawer-close-btn:focus,
  .mobile-drawer-close-btn:focus-visible,
  .mobile-drawer-close-btn:active {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
  }

  /* Wave effect for content - Closed initial state */
  .mobile-nav-link,
  #mobile-auth-actions > *,
  .mobile-nav-drawer a.btn-primary {
    opacity: 0 !important;
    transform: translateX(24px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
    transition-delay: 0s !important;
  }

  /* Wave effect - Open state */
  .mobile-nav-drawer.is-open .mobile-nav-link,
  .mobile-nav-drawer.is-open #mobile-auth-actions > *,
  .mobile-nav-drawer.is-open a.btn-primary {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  /* Stagger delays on open */
  .mobile-nav-drawer.is-open > a.mobile-nav-link:nth-of-type(1) {
    transition-delay: 120ms !important;
  }
  .mobile-nav-drawer.is-open > a.mobile-nav-link:nth-of-type(2) {
    transition-delay: 170ms !important;
  }
  .mobile-nav-drawer.is-open > a.mobile-nav-link:nth-of-type(3) {
    transition-delay: 220ms !important;
  }
  .mobile-nav-drawer.is-open > a.mobile-nav-link:nth-of-type(4) {
    transition-delay: 270ms !important;
  }
  .mobile-nav-drawer.is-open #mobile-auth-actions > *:nth-child(1) {
    transition-delay: 320ms !important;
  }
  .mobile-nav-drawer.is-open #mobile-auth-actions > *:nth-child(2) {
    transition-delay: 370ms !important;
  }
  .mobile-nav-drawer.is-open #mobile-auth-actions > *:nth-child(3),
  .mobile-nav-drawer.is-open a.btn-primary {
    transition-delay: 420ms !important;
  }

  /* Menu links: row height 44px, font 15px, weight 600, color #0F172A, gap 12px, padding 0 10px, radius 12px */
  .mobile-nav-link,
  .mobile-nav-safety-row a,
  .mobile-safety-pill,
  #mobile-auth-actions a:not(.btn-primary) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    gap: 12px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Icon in soft rounded square 32x32px (background #EEF2FF, icon color #4F46E5, radius 10px, icon size 18px) */
  .mobile-nav-link svg,
  .mobile-nav-safety-row a svg,
  .mobile-safety-pill svg,
  #mobile-auth-actions a:not(.btn-primary) svg {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    background: #EEF2FF !important;
    color: #4F46E5 !important;
    stroke: #4F46E5 !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .mobile-nav-link > span,
  .mobile-nav-safety-row a > span,
  .mobile-safety-pill > span,
  #mobile-auth-actions a:not(.btn-primary) > span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: inherit !important;
    text-align: left !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
  }

  /* Active link: background #FFFFFF, 1px border #C7D2FE, text #4F46E5, soft shadow, small purple dot on right */
  .mobile-nav-link.is-active,
  .mobile-nav-link[aria-current="page"],
  .mobile-nav-safety-row a.is-active,
  .mobile-safety-pill.is-active,
  #mobile-auth-actions a:not(.btn-primary).is-active {
    background: #FFFFFF !important;
    border: 1px solid #C7D2FE !important;
    color: #4F46E5 !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08) !important;
  }

  .mobile-nav-link:not(.is-active)::after {
    display: none !important;
  }

  .mobile-nav-link.is-active::after,
  .mobile-nav-link[aria-current="page"]::after,
  .mobile-nav-safety-row a.is-active::after,
  .mobile-safety-pill.is-active::after,
  #mobile-auth-actions a:not(.btn-primary).is-active::after {
    content: "" !important;
    display: block !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    border-radius: 50% !important;
    background: #4F46E5 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* Divider and Bottom Area */
  .mobile-nav-divider {
    border: none !important;
    border-top: 1px solid rgba(148, 163, 184, 0.35) !important;
    margin: 10px 0 !important;
    height: 0 !important;
    width: 100% !important;
  }

  #mobile-auth-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-sizing: border-box !important;
  }

  /* "Submit link" button */
  .mobile-nav-drawer a.btn-primary,
  #mobile-auth-actions .btn-primary,
  #mobile-auth-actions a[href="/submit"] {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(135deg, #4F46E5, #6366F1) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.5) !important;
    padding: 0 16px !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }

  .mobile-nav-drawer a.btn-primary svg,
  #mobile-auth-actions .btn-primary svg,
  #mobile-auth-actions a[href="/submit"] svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    stroke-width: 2.2 !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .mobile-nav-drawer,
    .mobile-nav-drawer.is-open {
      transition: opacity 0.2s ease !important;
      transform: none !important;
    }
    .mobile-nav-drawer {
      opacity: 0 !important;
      visibility: hidden !important;
    }
    .mobile-nav-drawer.is-open {
      opacity: 1 !important;
      visibility: visible !important;
    }
    .mobile-nav-link,
    #mobile-auth-actions > *,
    .mobile-nav-drawer a.btn-primary {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
      transition-delay: 0s !important;
    }
  }

  /* --------------------------------------------------------------------------
     TASK 2: HOME HERO, A LITTLE MORE SPACE (Home page only, mobile)
     -------------------------------------------------------------------------- */
  .home-hero-section {
    padding: 20px 0 36px !important;
    margin-bottom: 24px !important;
  }

  .home-tagline-kicker {
    margin-bottom: 16px !important;
  }

  .home-hero-title {
    margin-bottom: 8px !important;
  }

  .home-hero-title span {
    display: block !important;
    margin-top: 4px !important;
    margin-bottom: 14px !important;
  }

  .home-hero-desc {
    margin-bottom: 22px !important;
    line-height: 1.6 !important;
  }

  .home-hero-grid {
    gap: 32px !important;
  }

  .home-hero-ctas {
    gap: 10px !important;
    margin-bottom: 32px !important;
  }

  /* Mockup card: 32px space above card, chips 12px distance from edges, 14px vertical gap */
  .home-hero-mockup-wrapper,
  .home-hero-mock {
    padding: 44px 12px !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .home-hero-mockup-wrapper .card-3d,
  .home-hero-mockup-wrapper #card,
  .home-mockup-card,
  .home-hero-mock .mock-card {
    width: calc(100% - 24px) !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }

  /* Floating chips: 12px distance from card edges, 14px vertical gap to card */
  .home-floating-chip,
  .home-hero-mock .chip {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 9px !important;
    z-index: 10 !important;
  }

  .home-floating-chip svg,
  .home-hero-mock .chip svg {
    width: 16px !important;
    height: 16px !important;
  }

  .home-floating-chip.chip-yt {
    top: 2px !important;
    left: 12px !important;
  }

  .home-floating-chip.chip-gh {
    top: 2px !important;
    right: 12px !important;
  }

  .home-floating-chip.chip-x {
    bottom: 2px !important;
    left: 12px !important;
  }

  .home-floating-chip.chip-fb {
    bottom: 2px !important;
    right: 12px !important;
  }

  /* Inside mockup card: top bar padding 10px, body padding 14px, gap 8px, bottom row padding-top 12px */
  .card-3d .browser-bar {
    padding: 10px !important;
  }

  .card-3d .card-top {
    padding: 14px !important;
  }

  .card-3d .card-bottom {
    padding: 14px !important;
  }

  .card-3d .card-bottom .row {
    margin-bottom: 8px !important;
    gap: 8px !important;
  }

  .card-3d .card-bottom h4 {
    margin-bottom: 0 !important;
  }

  .card-3d .card-bottom .desc {
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    line-height: 1.45 !important;
  }

  .card-3d .card-bottom .divider {
    margin-bottom: 8px !important;
    margin-top: 0 !important;
  }

  .card-3d .card-bottom .footer-row {
    padding-top: 12px !important;
  }
}

@media (max-width: 767px) {
  .home-trending-pill {
    font-size: 10px !important;
    height: 18px !important;
    line-height: 18px !important;
    padding: 0 7px !important;
  }

  .home-trending-pill svg {
    width: 10px !important;
    height: 10px !important;
  }

  #home-explore-section .home-section-kicker {
    white-space: nowrap !important;
  }
}




/* ==========================================================
   HOME PREMIUM 3D SECTIONS  (CSS only, paste at END of home.css)
   Top of page stays white. From "Three steps" downward every
   section gets its own soft premium tint + calm slow animation.
   ========================================================== */

@keyframes hp-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- 1. Three steps: soft lavender ---------- */
#home-steps-section {
  background: linear-gradient(120deg, #F4F5FF 0%, #ECEBFF 35%, #F6F0FF 70%, #EEF3FF 100%) !important;
  background-size: 240% 240% !important;
  animation: hp-drift 22s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
#home-steps-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
#home-steps-section .container { position: relative; z-index: 1; }

#home-steps-section .home-step-card {
  border: 0 !important;
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -10px 20px rgba(0,0,0,0.10) inset,
    0 18px 30px -12px rgba(79,70,229,0.45),
    0 6px 12px rgba(15,23,42,0.08) !important;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
#home-steps-section .home-step-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
#home-steps-section .home-step-card:nth-child(1) { background: linear-gradient(145deg, #6366F1 0%, #4338CA 100%) !important; }
#home-steps-section .home-step-card:nth-child(2) { background: linear-gradient(145deg, #8B5CF6 0%, #6D28D9 100%) !important; }
#home-steps-section .home-step-card:nth-child(3) { background: linear-gradient(145deg, #3B82F6 0%, #1D4ED8 100%) !important; }
#home-steps-section .home-step-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -10px 20px rgba(0,0,0,0.10) inset,
    0 28px 44px -14px rgba(79,70,229,0.55),
    0 8px 16px rgba(15,23,42,0.10) !important;
}
#home-steps-section .home-step-card .home-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 18px;
  font-size: 1.35rem;
  opacity: 1;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 6px 12px rgba(0,0,0,0.14);
}

/* ---------- 2. Trust & Safety: soft sky ---------- */
#home-trust-section {
  background: linear-gradient(120deg, #F0F8FF 0%, #EAF4FF 40%, #EFF9F7 75%, #F1F6FF 100%) !important;
  background-size: 240% 240% !important;
  animation: hp-drift 26s ease-in-out infinite;
}
#home-trust-section .home-trust-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%) !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  border-radius: 22px !important;
  box-shadow:
    0 1px 0 #FFFFFF inset,
    0 14px 28px -14px rgba(37,99,235,0.28),
    0 4px 10px rgba(15,23,42,0.05) !important;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
#home-trust-section .home-trust-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 #FFFFFF inset,
    0 24px 36px -14px rgba(37,99,235,0.35),
    0 6px 12px rgba(15,23,42,0.06) !important;
}
#home-trust-section .home-trust-icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 14px -4px rgba(0,0,0,0.22);
}
#home-trust-section .home-trust-icon svg { stroke: #FFFFFF; }
#home-trust-section .home-trust-card:nth-child(1) .home-trust-icon { background: linear-gradient(145deg, #6366F1, #4338CA); }
#home-trust-section .home-trust-card:nth-child(2) .home-trust-icon { background: linear-gradient(145deg, #8B5CF6, #6D28D9); }
#home-trust-section .home-trust-card:nth-child(3) .home-trust-icon { background: linear-gradient(145deg, #14B8A6, #0F766E); }
#home-trust-section .home-trust-card:nth-child(4) .home-trust-icon { background: linear-gradient(145deg, #F472B6, #DB2777); }

/* ---------- 3. Guides + FAQ: soft violet-grey ---------- */
#home-guides-section {
  background: linear-gradient(120deg, #F7F5FF 0%, #F1F3FF 40%, #F8F4FF 75%, #F3F6FF 100%) !important;
  background-size: 240% 240% !important;
  animation: hp-drift 28s ease-in-out infinite;
}
#home-guides-section .home-guide-card {
  border-radius: 22px !important;
  box-shadow:
    0 1px 0 #FFFFFF inset,
    0 14px 26px -14px rgba(99,102,241,0.30),
    0 4px 10px rgba(15,23,42,0.05) !important;
}
#home-guides-section .home-guide-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 #FFFFFF inset,
    0 24px 36px -14px rgba(99,102,241,0.38),
    0 6px 12px rgba(15,23,42,0.06) !important;
}

/* ---------- 4. Call to action: rich premium card + floating logo ---------- */
.home-section:has(.home-cta-card) {
  background: linear-gradient(120deg, #EEF0FF 0%, #E7E9FF 40%, #F1ECFF 75%, #EAF1FF 100%) !important;
  background-size: 240% 240% !important;
  animation: hp-drift 24s ease-in-out infinite;
  padding-top: clamp(56px, 7vw, 96px) !important;
  padding-bottom: clamp(56px, 7vw, 96px) !important;
}
.home-section:has(.home-cta-card) .home-cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 80px) !important;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 90% 90%, rgba(56,189,248,0.35) 0%, rgba(56,189,248,0) 45%),
    linear-gradient(135deg, #4F46E5 0%, #6D28D9 55%, #2563EB 100%) !important;
  border: 0 !important;
  border-radius: 32px !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -14px 28px rgba(0,0,0,0.12) inset,
    0 34px 60px -22px rgba(79,70,229,0.60),
    0 10px 20px rgba(15,23,42,0.10) !important;
}
.home-section:has(.home-cta-card) .home-cta-card > * { position: relative; z-index: 2; }

/* faint Sharely logos floating slowly inside the card */
.home-section:has(.home-cta-card) .home-cta-card::before,
.home-section:has(.home-cta-card) .home-cta-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  background: url("/assets/img/logo.svg") center / contain no-repeat;
  filter: saturate(0.9);
  pointer-events: none;
}
.home-section:has(.home-cta-card) .home-cta-card::before {
  width: clamp(110px, 16vw, 210px);
  height: clamp(110px, 16vw, 210px);
  left: 6%;
  top: 14%;
  opacity: 0.22;
  animation: hp-float-a 11s ease-in-out infinite;
}
.home-section:has(.home-cta-card) .home-cta-card::after {
  width: clamp(80px, 11vw, 150px);
  height: clamp(80px, 11vw, 150px);
  right: 7%;
  bottom: 12%;
  opacity: 0.18;
  animation: hp-float-b 14s ease-in-out infinite;
}
@keyframes hp-float-a {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50%      { transform: translate(14px, -18px) rotate(6deg); }
}
@keyframes hp-float-b {
  0%, 100% { transform: translate(0, 0) rotate(10deg); }
  50%      { transform: translate(-16px, 14px) rotate(-6deg); }
}

.home-section:has(.home-cta-card) .home-section-kicker {
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: 0.14em;
  margin-bottom: 14px !important;
}
.home-section:has(.home-cta-card) .home-cta-title {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 14px rgba(15,23,42,0.18);
}
.home-section:has(.home-cta-card) .home-cta-desc {
  color: rgba(255,255,255,0.88) !important;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  line-height: 1.65;
}
.home-section:has(.home-cta-card) .home-cta-card .btn {
  background: #FFFFFF !important;
  color: #4338CA !important;
  border: 0 !important;
  padding: 18px 40px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 1px 0 #fff inset, 0 16px 28px -10px rgba(15,23,42,0.45), 0 4px 8px rgba(15,23,42,0.12);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.home-section:has(.home-cta-card) .home-cta-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 #fff inset, 0 22px 34px -10px rgba(15,23,42,0.5), 0 6px 12px rgba(15,23,42,0.14);
}

/* ---------- Mobile: lighter, still bubbly ---------- */
@media (max-width: 767px) {
  #home-steps-section .home-step-card,
  #home-trust-section .home-trust-card,
  #home-guides-section .home-guide-card { border-radius: 20px !important; }
  #home-steps-section .home-step-card:hover,
  #home-trust-section .home-trust-card:hover,
  #home-guides-section .home-guide-card:hover { transform: none; }
  #home-steps-section .home-step-card .home-step-number { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 14px; }
  .home-section:has(.home-cta-card) .home-cta-card { border-radius: 26px !important; padding: 64px 22px !important; min-height: 340px; }
  .home-section:has(.home-cta-card) .home-cta-card .btn { padding: 16px 30px; }
  .home-section:has(.home-cta-card) .home-cta-title { margin-bottom: 18px; }
  .home-section:has(.home-cta-card) .home-cta-desc { margin-bottom: 32px; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #home-steps-section,
  #home-trust-section,
  #home-guides-section,
  .home-section:has(.home-cta-card) { animation: none !important; }
  .home-section:has(.home-cta-card) .home-cta-card::before,
  .home-section:has(.home-cta-card) .home-cta-card::after { animation: none !important; }
  #home-steps-section .home-step-card,
  #home-trust-section .home-trust-card,
  #home-guides-section .home-guide-card { transition: none; }
}




.animation-paused { animation-play-state: paused !important; }
