/* ════════════════════════════════════════════════
   PKA CONFESSIONS — style.css (Refactored)
   Design system: Clean White + Blue Gradient
   All pages share this stylesheet
════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────
   RESET & ROOT
──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Colors ── */
  --primary: #2563eb;
  --primary-dk: #1d4ed8;
  --primary-lt: #3b82f6;
  --teal: #0ea5e9;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f59e0b;

  /* ── Gradients ── */
  --grad: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .72) 0%, rgba(14, 165, 233, .72) 100%);

  /* ── Backgrounds ── */
  --bg: #ffffff;
  --bg2: #f0f6ff;
  --bg3: #e8f0fe;
  --card: #ffffff;

  /* ── Borders ── */
  --border: rgba(37, 99, 235, .10);
  --border2: rgba(37, 99, 235, .22);

  /* ── Text ── */
  --text: #0f172a;
  --text2: #1e3a5f;
  --muted: #4b6a9b;
  --faint: #94afd4;

  /* ── Shadows ── */
  --shadow: 0 20px 60px rgba(37, 99, 235, .10);
  --shadow2: 0 8px 30px rgba(37, 99, 235, .22);

  /* ── Misc ── */
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--bg);
  color: var(--text2);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

textarea,
select,
input {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ────────────────────────────────────────────────
   LAYOUT
──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ────────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-14px) rotate(1deg);
  }

  66% {
    transform: translateY(-6px) rotate(-1deg);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-18px) rotate(-1deg);
  }

  75% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes pulseBtn {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .45);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes orbitSlow {
  from {
    transform: rotate(0deg) translateX(180px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(180px) rotate(-360deg);
  }
}

@keyframes orbitFast {
  from {
    transform: rotate(180deg) translateX(120px) rotate(-180deg);
  }

  to {
    transform: rotate(540deg) translateX(120px) rotate(-540deg);
  }
}

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.feed-item-anim {
  animation: feedSlideIn 0.35s ease forwards;
}

.fade-up {
  opacity: 0;
  animation: fadeInUp .9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: .2s;
}

.delay-2 {
  animation-delay: .35s;
}

.delay-3 {
  animation-delay: .6s;
}

/* ────────────────────────────────────────────────
   SHARED COMPONENTS
──────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(37, 99, 235, .08);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.25;
}

.section-title span {
  color: var(--primary);
}

.section-sub {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 12px;
  line-height: 1.75;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.deco-line {
  display: flex;
  gap: 6px;
  margin: 18px 0 22px;
  list-style: none;
}

.deco-line li {
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.deco-line li:nth-child(1) {
  width: 30px;
}

.deco-line li:nth-child(2) {
  width: 16px;
  opacity: .6;
}

.deco-line li:nth-child(3) {
  width: 10px;
  opacity: .35;
}

.deco-line li:nth-child(4) {
  width: 6px;
  opacity: .18;
}

/* ────────────────────────────────────────────────
   BUTTONS (global)
──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: pulseBtn 3s ease-in-out infinite;
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  animation: none;
}

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

.btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(37, 99, 235, .35);
  border-radius: 6px;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.btn-sm {
  padding: 8px 18px;
  font-size: .8rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(37, 99, 235, .35);
  border-radius: 6px;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-ghost:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ────────────────────────────────────────────────
   NAVBAR
──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(37, 99, 235, .08), 0 4px 24px rgba(37, 99, 235, .07);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
  /* FIX: Removed brightness(0) filter that was turning logo completely black */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  padding: 8px 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 5px;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--grad);
  border-radius: 1px;
  transition: left var(--transition), right var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  left: 12px;
  right: 12px;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  left: 12px;
  right: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  /* background: var(--grad); */
  border: none;
  border-radius: 5px;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-fb svg {
  flex-shrink: 0;
}

.btn-fb:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  transition: border-color var(--transition);
}

.hamburger:hover {
  border-color: var(--primary);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 0 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .36s var(--ease), padding .36s var(--ease);
}

.mobile-menu.open {
  display: flex;
  max-height: 400px;
  padding: 8px 20px 20px;
}

.mobile-link {
  padding: 12px 0;
  color: var(--text2);
  font-size: .87rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: var(--primary);
}

/* ────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(96, 165, 250, .22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(14, 165, 233, .12) 0%, transparent 55%),
    linear-gradient(170deg, #f0f7ff 0%, #ffffff 50%, #f8faff 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  right: -100px;
  top: -100px;
  background: radial-gradient(circle, rgba(96, 165, 250, .18) 0%, rgba(37, 99, 235, .07) 50%, transparent 70%);
  animation: floatA 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: 100px;
  background: radial-gradient(circle, rgba(14, 165, 233, .13) 0%, transparent 65%);
  animation: floatB 18s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  left: 30%;
  bottom: -50px;
  background: radial-gradient(circle, rgba(16, 185, 129, .09) 0%, transparent 65%);
  animation: floatB 22s ease-in-out infinite 5s;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseBtn 2s ease-in-out infinite;
}

.hero-title {
  /* font-family: 'Syne', sans-serif; */
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  animation: pulseBtn 3s ease-in-out infinite;
}

.hero-btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .32);
  animation: none;
}

.hero-btn-icon {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(37, 99, 235, .3);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}

.hero-btn-secondary:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, .12);
  pointer-events: none;
}

.hero-ring-1 {
  width: 480px;
  height: 480px;
  animation: spin 60s linear infinite;
}

.hero-ring-2 {
  width: 340px;
  height: 340px;
  border-style: dashed;
  animation: spin 40s linear infinite reverse;
}

.hero-orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  pointer-events: none;
}

.hero-orbit-dot-1 {
  animation: orbitSlow 8s linear infinite;
}

.hero-orbit-dot-2 {
  animation: orbitFast 5s linear infinite;
}

/* Stat floats */
.stat-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(37, 99, 235, .12);
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}

.stat-float-1 {
  left: -30px;
  top: 50px;
  animation-delay: 0s;
}

.stat-float-2 {
  right: -30px;
  bottom: 60px;
  animation-delay: -2.5s;
}

.stat-float-3 {
  left: 10%;
  bottom: -10px;
  animation-delay: -1.5s;
}

.sfi {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sfi-blue {
  background: rgba(37, 99, 235, .10);
}

.sfi-teal {
  background: rgba(14, 165, 233, .10);
}

.sfi-green {
  background: rgba(16, 185, 129, .10);
}

.sft {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sfn {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.sfn-teal {
  color: var(--teal);
}

.sfn-green {
  color: var(--green);
}

.sfl {
  font-size: .67rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Hero Phone mockup ── */
.hero-phone {
  position: relative;
  z-index: 1;
  width: 290px;
  background: rgba(255, 255, 255, .97);
  border: 1.5px solid rgba(37, 99, 235, .2);
  border-radius: 16px;
  padding: 16px 16px 20px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, .16), 0 2px 12px rgba(37, 99, 235, .10);
  animation: float 7s ease-in-out infinite 1s;
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.phone-url {
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  padding: 3px 10px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
}

.phone-clock {
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.phone-dots {
  display: flex;
  gap: 5px;
}

.phone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.phone-dot-r {
  background: #ff5f57;
}

.phone-dot-y {
  background: #ffbd2e;
}

.phone-dot-g {
  background: #28ca42;
}

.phone-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  background: var(--bg2);
  border-radius: 8px;
  padding: 8px 10px;
}

.feed-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.feed-cat {
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.feed-time {
  font-size: .6rem;
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-text {
  font-size: .7rem;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(37, 99, 235, .06);
}

.feed-img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.feed-heart {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
}

.feed-code {
  font-size: .62rem;
  font-family: monospace;
  color: var(--primary);
  opacity: .7;
}

.hero-shape-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,20 1440,40 L1440,80 L0,80 Z' fill='black'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,20 1440,40 L1440,80 L0,80 Z' fill='black'/%3E%3C/svg%3E") no-repeat;
  mask-size: cover;
  pointer-events: none;
  z-index: 2;
}

/* ────────────────────────────────────────────────
   HOW IT WORKS SECTION
──────────────────────────────────────────────── */
.steps-section {
  padding: 90px 0 100px;
  background: var(--bg2);
}

.steps-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 30px rgba(37, 99, 235, .07);
}

.step-card {
  padding: 32px 28px;
  position: relative;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.step-card:last-child {
  border-right: none;
}

.step-card:hover {
  background: rgba(37, 99, 235, .02);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover::before {
  opacity: 1;
}

.step-num {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--primary);
  opacity: .15;
  border-radius: 1px;
}

.ud {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.ud-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(37, 99, 235, .08);
}

.ud .step-icon {
  margin-bottom: 0;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 7px;
  line-height: 1.3;
}

.step-card p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ────────────────────────────────────────────────
   FORM SECTION
──────────────────────────────────────────────── */
.form-section {
  padding: 90px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, .07) 0%, transparent 70%);
  pointer-events: none;
}

.form-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, .05) 0%, transparent 70%);
  pointer-events: none;
}

.form-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-section-title {
  text-align: left;
}

.form-section-title .section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.form-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 340px;
}

.form-visual-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(37, 99, 235, .07) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 8s ease-in-out infinite;
}

.form-visual-icon {
  width: 140px;
  height: 140px;
  background: rgba(37, 99, 235, .08);
  border: 2px solid rgba(37, 99, 235, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-box {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  border-color: #92a8d9;
  cursor: pointer;
  transition: 0.3s;
}

.upload-box:hover {
  border-color: #2563eb;
}

.upload-box span {
  color: #2563eb;
  font-weight: 600;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
}

#previewImage {
  max-width: 100%;
  border-radius: 10px;
}

#removeImageBtn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 16px;
  cursor: pointer;
  line-height: 26px;
  text-align: center;
  transition: 0.2s;
}

#removeImageBtn:hover {
  background: #ef4444;
}

.form-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 36px 38px;
  box-shadow: 0 8px 40px rgba(37, 99, 235, .09);
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  font-size: .77rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(37, 99, 235, .05);
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 5px;
  transition: all .18s;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, .09);
}

.tab-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

textarea {
  width: 100%;
  padding: 12px 16px;
  min-height: 145px;
  background: #f4f8ff;
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 7px;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.65;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  background: #fff;
}

textarea::placeholder {
  color: rgba(37, 99, 235, .3);
}

.char-count {
  text-align: right;
  font-size: .7rem;
  color: var(--faint);
  margin-top: 6px;
  transition: color .2s;
}

.char-count.warn {
  color: var(--orange);
}

.btn-submit {
  width: 100%;
  justify-content: center;
}

.form-hint {
  margin-top: 12px;
  font-size: .77rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

/* ────────────────────────────────────────────────
   ABOUT SECTION
──────────────────────────────────────────────── */
.about-section {
  padding: 90px 0;
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: center;
}

.border-rds {
  border-radius: 50%;
  border: 2px dashed #83a4ea;
  padding: 12px;
  animation: float 10s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(37, 99, 235, .12);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.about-image-wrap {
  width: 100%;
  height: 100%;
}

/* Định nghĩa chuyển động bay */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
    /* Bay lên 15px */
  }
}

.about-title {
  /* font-family: 'Syne', sans-serif; */
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 0;
}

.about-text p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(37, 99, 235, .08);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.stat-label {
  font-size: .73rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ────────────────────────────────────────────────
   RECENT CONFESSIONS
──────────────────────────────────────────────── */
.recent-section {
  padding: 90px 0 100px;
  background: var(--bg);
}

.recent-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.see-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ────────────────────────────────────────────────
   CONFESSION CARDS GRID
──────────────────────────────────────────────── */
.confessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.confession-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── CARD ── */
.c-card {
  background: var(--card);
  border: 2px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, .06);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition), opacity 0.4s ease;
  opacity: 0;
}

.c-card.card-visible {
  opacity: 1;
}

.c-card:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, .13);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .28);
}

.c-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.c-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.c-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Heart button */
.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 4px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  transition: all .18s;
  white-space: nowrap;
}

.heart-btn:hover {
  border-color: #f87171;
  color: #f87171;
  background: rgba(248, 113, 113, .07);
}

.heart-btn.liked {
  border-color: #f87171;
  color: #f87171;
  background: rgba(248, 113, 113, .08);
}

.heart-btn.liked svg {
  animation: heartPop .3s ease;
}

/* Category pill */
.cat-pill {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  letter-spacing: .02em;
}

.cat--0 {
  background: rgba(37, 99, 235, .10);
  color: #2563eb;
}

.cat--1 {
  background: rgba(239, 68, 68, .10);
  color: #dc2626;
}

.cat--2 {
  background: rgba(217, 119, 6, .10);
  color: #b45309;
}

.cat--3 {
  background: rgba(5, 150, 105, .10);
  color: #059669;
}

.cat--4 {
  background: rgba(124, 58, 237, .10);
  color: #7c3aed;
}

.cat--5 {
  background: rgba(8, 145, 178, .10);
  color: #0891b2;
}

/* Code badge */
.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: .68rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.code-badge:hover {
  background: rgba(37, 99, 235, .14);
}

.code-badge.copied {
  background: rgba(16, 185, 129, .1);
  color: var(--green);
  border-color: rgba(16, 185, 129, .25);
}

.c-date {
  font-size: .68rem;
  color: var(--faint);
  white-space: nowrap;
}

.c-content {
  font-size: .87rem;
  color: var(--text2);
  line-height: 1.7;
}

mark {
  background: rgba(250, 204, 21, .35);
  color: inherit;
  border-radius: 2px;
  padding: 1px 2px;
}

/* Lookup status */
.lookup-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.status--approved {
  background: rgba(16, 185, 129, .10);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, .22);
}

.status--pending {
  background: rgba(245, 158, 11, .10);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, .22);
}

.status--rejected {
  background: rgba(239, 68, 68, .10);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, .22);
}

/* ────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, .7);
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 50px 0 60px;
}

.footer-col--wide {
  grid-column: auto;
}

.footer-logo img {
  width: 270px;
  height: auto;
  /* FIX: Use brightness invert for dark footer */
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.75;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: .85rem;
  color: rgba(255, 255, 255, .48);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: rgba(255, 255, 255, .9);
}

.footer-socials iframe {
  border-radius: 8px;
  overflow: hidden;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, .24);
  font-size: .82rem;
}

/* ────────────────────────────────────────────────
   TOAST
──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.55;
  z-index: 9999;
  box-shadow: 0 14px 50px rgba(37, 99, 235, .16);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  pointer-events: auto;
}

.toast.toast-visible {
  animation: toastIn .3s ease forwards;
}

.toast.toast-hidden {
  animation: toastOut .3s ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-body {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
  transition: color var(--transition);
}

.toast-close:hover {
  color: var(--text);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(37, 99, 235, .2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ────────────────────────────────────────────────
   SEARCH PAGE — Hero
──────────────────────────────────────────────── */
.search-hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 70% -5%, rgba(96, 165, 250, .20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(14, 165, 233, .10) 0%, transparent 55%),
    linear-gradient(170deg, #f0f7ff 0%, #ffffff 50%, #f8faff 100%);
}

.search-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0,30 C240,90 480,0 720,45 C960,90 1200,10 1440,45 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: cover;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0,30 C240,90 480,0 720,45 C960,90 1200,10 1440,45 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat;
  mask-size: cover;
  pointer-events: none;
}

.search-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.search-hero-orb-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .17) 0%, rgba(37, 99, 235, .07) 50%, transparent 70%);
  animation: floatA 12s ease-in-out infinite;
  pointer-events: none;
}

.search-hero-orb-2 {
  position: absolute;
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .11) 0%, transparent 65%);
  animation: floatB 16s ease-in-out infinite 2s;
  pointer-events: none;
}

.search-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.search-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.search-hero-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseBtn 2s ease-in-out infinite;
}

.search-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.search-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-hero-sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto 38px;
  line-height: 1.75;
}

/* ── Search Bar ── */
.search-bar-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1.5px solid rgba(37, 99, 235, .2);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(37, 99, 235, .12);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10), 0 12px 40px rgba(37, 99, 235, .14);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 16px;
  gap: 10px;
}

.search-input-icon {
  flex-shrink: 0;
  color: var(--faint);
  transition: color .2s;
}

.search-bar:focus-within .search-input-icon {
  color: var(--primary);
}

#searchInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .92rem;
  color: var(--text);
  padding: 16px 0;
}

#searchInput::placeholder {
  color: var(--faint);
}

#clearBtn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--faint);
  cursor: pointer;
  border-radius: 4px;
  transition: color .2s;
  flex-shrink: 0;
}

#clearBtn:hover {
  color: var(--text);
}

#clearBtn.visible {
  display: flex;
  align-items: center;
}

.search-divider {
  width: 1px;
  background: rgba(37, 99, 235, .15);
  margin: 10px 0;
}

#categorySelect {
  border: none;
  outline: none;
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  min-width: 160px;
}

.search-submit-btn {
  background: var(--grad);
  border: none;
  color: #fff;
  padding: 0 26px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  opacity: .9;
}

.search-submit-btn:active {
  transform: scale(.97);
}

/* Quick stats */
.search-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.search-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(37, 99, 235, .06);
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 20px;
  padding: 5px 12px;
}

.search-stat-pill strong {
  color: var(--primary);
  font-weight: 800;
}

/* ── Results Section ── */
.results-section {
  padding: 50px 0 100px;
  background: var(--bg2);
  min-height: 300px;
}


.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.results-count {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.results-count strong {
  color: var(--primary);
  font-weight: 800;
  font-size: .92rem;
}

.cat-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Empty / Initial states */
.empty-state,
.initial-state {
  text-align: center;
  padding: 70px 20px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .07);
  border: 1.5px solid rgba(37, 99, 235, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state h3,
.initial-state-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text2);
  margin-bottom: 8px;
}

.empty-state p,
.initial-state-sub {
  font-size: .87rem;
  color: var(--muted);
}

.trending-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.trending-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .77rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .18s;
}

.trending-chip:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.single-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, .09);
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: .05em;
  margin-bottom: 18px;
}

/* ────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    min-height: 420px;
  }

  .stat-float-1 {
    left: -20px;
    top: 20px;
  }

  .stat-float-2 {
    right: -20px;
    bottom: 40px;
  }

  .stat-float-3 {
    display: none;
  }

  .hero-ring-1 {
    width: 420px;
    height: 420px;
  }

  .hero-ring-2 {
    width: 300px;
    height: 300px;
  }

  .hero-shape-bottom {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .step-card:last-child {
    border-bottom: none;
  }

  .step-card::before {
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
  }

  .form-section-inner {
    grid-template-columns: 1fr;
  }

  .form-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-col--wide {
    grid-column: 1 / -1;
  }

  .confessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-inner {
    padding: 0 20px;
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .btn-fb span {
    display: none;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-layout {
    padding: 0 20px;
    gap: 40px;
  }

  .hero-phone {
    width: 268px;
    padding: 16px 14px;
  }

  .hero-ring-1 {
    width: 340px;
    height: 340px;
  }

  .hero-ring-2 {
    width: 240px;
    height: 240px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    justify-content: center;
    width: 75%
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .stat-float-1 {
    left: -8px;
    top: 40px;
    transform: scale(.88);
    transform-origin: left top;
  }

  .stat-float-2 {
    right: -8px;
    bottom: 28px;
    transform: scale(.88);
    transform-origin: right bottom;
  }

  .steps-section,
  .form-section,
  .about-section,
  .recent-section {
    padding: 60px 0;
  }

  .form-card {
    padding: 24px 20px;
  }

  .recent-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 0 50px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col--wide {
    grid-column: 1 / -1;
  }

  .footer-socials iframe {
    width: 100%;
    max-width: 100%;
  }

  .search-hero {
    padding: 110px 0 40px;
  }

  .results-section {
    padding: 0 0 50px;
  }

  .search-bar {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 10px;
  }

  .search-bar:focus-within {
    box-shadow: none;
    border-color: transparent;
  }

  .search-input-wrap {
    background: #fff;
    border: 1.5px solid rgba(37, 99, 235, .2);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .09);
  }

  #categorySelect {
    background: #fff;
    border: 1.5px solid rgba(37, 99, 235, .2);
    border-radius: 10px;
    padding: 14px 16px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .09);
  }

  .search-divider {
    display: none;
  }

  .search-submit-btn {
    border-radius: 10px;
    justify-content: center;
    padding: 16px;
    width: 100%;
  }

  .results-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .phone-topbar {
    gap: 6px;
  }

  .nav-logo img {
    width: 118px;
  }

  /* Chỉ ẩn grid ở trang index (trong recent-confessions), không ảnh hưởng search */
  #recent-confessions .confessions-grid {
    display: none;
  }

  .mobile-carousel-wrap {
    display: block;
    /* hiện carousel trên mobile */
  }

  #recent-confessions .confession-col:nth-child(2),
  #recent-confessions .confession-col:nth-child(3) {
    display: contents;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
    text-align: left;
  }

  .footer-col--wide {
    grid-column: 1 / -1;
  }

  .footer-socials iframe {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-phone {
    width: 240px;
  }

  /* Trang search: 1 cột trên mobile nhỏ */
  .results-section .confessions-grid {
    grid-template-columns: 1fr;
  }

  .results-section .confession-col:nth-child(2),
  .results-section .confession-col:nth-child(3) {
    display: contents;
  }

  .stat-float {
    transform: scale(.80) !important;
  }

  .stat-float-1 {
    transform-origin: left top !important;
  }

  .stat-float-2 {
    transform-origin: right bottom !important;
  }
}

/* ────────────────────────────────────────────────
   CONFESSION CARD — Attached image
──────────────────────────────────────────────── */
.c-card-image {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .12);
  background: #f1f5f9;
}

.c-card-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  transition: transform .35s ease;
  cursor: zoom-in;
}

.c-card-image img:hover {
  transform: scale(1.025);
}

/* ── Facebook view button ── */
.fb-view-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #1877f2;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: background 0.18s, transform 0.15s;
  margin: 0 auto;
  margin-top: 14px;
}

.fb-view-btn:hover {
  background: #1464d8;
  transform: translateY(-1px);
}

.fb-view-btn svg {
  flex-shrink: 0;
}

/* Lightbox overlay for image zoom */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn .18s ease;
}

.img-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  object-fit: contain;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==== CỐ ĐỊNH STAT-FLOAT BÁM CHẶT VÀO HERO-PHONE MỌI MÀN HÌNH ==== */
.hero-visual .stat-float-1 {
  top: 50px !important;
  left: 50% !important;
  right: auto !important;
  /* Đẩy sang trái tâm 190px (đè mép trái điện thoại) */
  margin-left: -250px !important;
}

.hero-visual .stat-float-2 {
  bottom: 220px !important;
  left: 50% !important;
  right: auto !important;
  /* Đẩy sang phải tâm 30px (đè mép phải điện thoại) */
  margin-left: 100px !important;
}

.hero-visual .stat-float-3 {
  bottom: -24px !important;
  left: 50% !important;
  right: auto !important;
  /* Nằm giữa mép dưới */
  margin-left: -210px !important;
  display: flex !important;
  /* Bỏ ẩn thẻ thứ 3 trên mobile */
}

/* Đảm bảo khi mobile thu nhỏ thẻ (scale), nó thu nhỏ từ tâm 
   để không bị lệch khỏi điện thoại */
@media (max-width: 768px) {

  .hero-visual .stat-float-1,
  .hero-visual .stat-float-2,
  .hero-visual .stat-float-3 {
    transform-origin: center center !important;
  }
}

@media (max-width: 480px) {

  /* Kéo sát lại một chút xíu nữa vì điện thoại thu nhỏ trên mobile */
  .hero-visual .stat-float-1 {
    margin-left: -220px !important;
  }

  .hero-visual .stat-float-2 {
    margin-left: 70px !important;
  }

  .hero-visual .stat-float-3 {
    margin-left: -188px !important;
  }
}

@media (max-width: 480px) {

  .border-rds {
    display: none;
  }

  /* Reset text-align kế thừa từ .hero-layout ở 1024px */
  .hero-layout {
    text-align: left !important;
  }

  .search-hero-sub,
  .section-label,
  .search-hero h1,
  .hero-title,
  .hero-sub {
    text-align: left !important;
    /* Reset margin auto để search-hero-sub không bị căn giữa theo block */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* hero-sub cũng dùng margin: auto ở 1024px */
  .hero-sub {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

}

/* ════════════════════════════════════════════════
   MOBILE CAROUSEL — Recent Confessions
════════════════════════════════════════════════ */
.mobile-carousel-wrap {
  display: none;
  /* ẩn trên desktop */
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.mobile-carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  padding: 8px 4px 16px;
}

.mobile-carousel-track {
  gap: 14px;
}

.mobile-carousel-track .c-card {
  width: calc(95vw - 32px);
  flex-shrink: 0;
  opacity: 1 !important;
  animation: none !important;
  height: auto;
  overflow: visible;
  scroll-snap-align: start;
}

.mobile-carousel-track .c-card-image {
  display: block;
}

/* ── CAROUSEL BUTTONS ── */
.mobile-carousel-wrap {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(10, 80, 231, 0.25);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s, background 0.2s;
}

.carousel-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}

.carousel-btn-prev {
  left: -14px;
}

.carousel-btn-next {
  right: -14px;
}