/* ============================================================
   User4Des — Stylesheet
   Dark premium, Arabic RTL, single file
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0b0b12;
  --bg-card:   #111119;
  --bg-card2:  #17171f;

  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --primary:       #6366f1;
  --primary-hover: #4f52d4;
  --primary-glow:  rgba(99, 102, 241, 0.35);

  --green:  #22c55e;
  --blue:   #3b82f6;
  --yellow: #f59e0b;
  --purple: #a855f7;

  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim:   #4b5563;

  --nav-h:  68px;
  --max-w:  1160px;
  --r:      16px;
  --r-sm:   10px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.22s;
}

/* ── base ──────────────────────────────── */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── buttons ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background var(--t) var(--ease),
              box-shadow  var(--t) var(--ease),
              transform   var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── grad text ───────────────────────────── */

.grad-text {
  background: linear-gradient(130deg, var(--primary) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── section base ────────────────────────── */

.section { padding-block: 24px; }

.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.section-tag-lg {
  font-size: 1.4rem;
  padding: 8px 28px;
  letter-spacing: 0.01em;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-inline: auto;
}

/* ════════════════════════════════════════
   NAV
═══════════════════════════════════════ */

.nav-wrap {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(11, 11, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t) var(--ease);
}

.nav-wrap.scrolled { background: rgba(11, 11, 18, 0.97); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

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

/* ════════════════════════════════════════
   HERO
═══════════════════════════════════════ */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 32px) 40px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(99, 102, 241, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 110%, rgba(168, 85, 247, 0.11) 0%, transparent 60%);
}

/* desktop: 2-col */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── hero visual ────────────────────────── */

.hero-visual {
  position: relative;
  height: 380px;
}

/* main browser card */
.hv-browser {
  background: var(--bg-card2);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  height: 100%;
}

.hv-chrome {
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.hv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.hv-url {
  margin-inline-start: 10px;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 3px 12px;
  border-radius: var(--r-pill);
}

.hv-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hv-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hv-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
}

.hv-metric strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.hv-metric span {
  font-size: 11px;
  color: var(--text-dim);
}

.hv-metric.accent strong { color: var(--green); }

/* mini bar chart */
.hv-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
}

.hv-chart span {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--primary), rgba(99, 102, 241, 0.25));
  border-radius: 4px 4px 0 0;
  animation: chartGrow 0.8s var(--ease) both;
}

.hv-chart span:nth-child(1) { animation-delay: 0.05s; }
.hv-chart span:nth-child(2) { animation-delay: 0.1s;  }
.hv-chart span:nth-child(3) { animation-delay: 0.15s; }
.hv-chart span:nth-child(4) { animation-delay: 0.2s;  }
.hv-chart span:nth-child(5) { animation-delay: 0.25s; }
.hv-chart span:nth-child(6) { animation-delay: 0.3s;  }
.hv-chart span:nth-child(7) { animation-delay: 0.35s; }

@keyframes chartGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

/* row list */
.hv-rows { display: flex; flex-direction: column; gap: 7px; }

.hv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.hv-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}

.hv-line {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  flex: 1;
}

.hv-line.short { max-width: 38%; }
.hv-line.long  { max-width: 65%; }

.hv-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.hv-pill.done { background: rgba(34, 197, 94, 0.14); color: var(--green); }
.hv-pill.pend { background: rgba(245, 158, 11, 0.14); color: var(--yellow); }

/* floating cards */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hv-float {
  position: absolute;
  background: rgba(23, 23, 35, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: floatY 4s ease-in-out infinite;
  z-index: 2;
}

.hv-f1 {
  bottom: -16px;
  left: -28px;
  animation-delay: 0s;
}

.hv-f2 {
  top: -18px;
  right: 20px;
  animation-delay: 2s;
}

.hv-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.green-icon  { background: rgba(34, 197, 94,  0.15); color: var(--green);  }
.purple-icon { background: rgba(168, 85, 247, 0.15); color: var(--purple); }

.hv-float strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}

.hv-float span {
  font-size: 11px;
  color: var(--text-dim);
}

/* ════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */

.stats-bar {
  border-block: 1px solid var(--border);
  background: var(--bg-card);
  padding-block: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat {
  padding-inline: 16px;
  border-inline-end: 1px solid var(--border);
}

.stat:last-child { border-inline-end: none; }

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ════════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t) var(--ease),
              transform   var(--t) var(--ease),
              box-shadow  var(--t) var(--ease);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

.service-card.featured {
  border-color: rgba(99, 102, 241, 0.28);
}

/* card padding (below the visual header) */
.service-card h3,
.service-card > p,
.card-features,
.card-link {
  padding-inline: 28px;
}

.service-card h3  { padding-top: 20px; font-size: 1.18rem; font-weight: 800; margin-bottom: 10px; }
.service-card > p { padding-bottom: 0;  color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; margin-bottom: 18px; }
.card-features    { margin-bottom: 22px; }
.card-link        { padding-bottom: 28px; display: inline-flex; margin-top: auto; }

/* ── card visual header ───────────────── */

.card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}

.cv-green  { background: linear-gradient(135deg, rgba(34, 197, 94,  0.1), rgba(34, 197, 94,  0.02)); color: var(--green);  border-bottom: 1px solid rgba(34, 197, 94,  0.12); }
.cv-blue   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.02)); color: var(--blue);   border-bottom: 1px solid rgba(59, 130, 246, 0.12); }
.cv-yellow { background: linear-gradient(135deg, rgba(245,158, 11, 0.1), rgba(245,158, 11, 0.02));  color: var(--yellow); border-bottom: 1px solid rgba(245,158, 11, 0.12); }
.cv-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.02)); color: var(--purple); border-bottom: 1px solid rgba(168, 85, 247, 0.12); }

/* card badge */
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}

/* ── mini visual elements inside card headers ── */

/* WhatsApp card visual */
.cv-msg-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.cv-msg {
  font-size: 12px;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.18);
  color: var(--green);
  padding: 6px 12px;
  border-radius: 12px 12px 2px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-msg-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding-inline-start: 2px;
}

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

/* store product grid */
.cv-store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.cv-store-grid span {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  display: block;
}

.cv-store-grid span:nth-child(2) { opacity: 0.6; }
.cv-store-grid span:nth-child(3) { opacity: 0.8; }
.cv-store-grid span:nth-child(4) { opacity: 0.5; }

/* google sheet */
.cv-sheet {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 90px;
}

.sheet-header {
  height: 10px;
  background: rgba(245, 158, 11, 0.3);
  border-radius: 3px;
  display: block;
}

.sheet-row {
  height: 7px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 3px;
  display: block;
}

.sheet-row.short { width: 65%; }

/* code lines */
.cv-code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100px;
}

.cline {
  height: 7px;
  border-radius: 3px;
  display: block;
}

.c1 { background: rgba(168, 85, 247, 0.5); width: 60%; }
.c2 { background: rgba(99,  102, 241, 0.4); width: 85%; }
.c3 { background: rgba(168, 85, 247, 0.3); width: 45%; }
.c4 { background: rgba(99,  102, 241, 0.25); width: 70%; }

/* card features */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-features li i { color: var(--green); font-size: 11px; flex-shrink: 0; }

.card-link {
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.93rem;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}

.card-link:hover { gap: 12px; }

/* ════════════════════════════════════════
   PACKAGES
═══════════════════════════════════════ */

.packages-section {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pkg-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t) var(--ease),
              transform   var(--t) var(--ease),
              box-shadow  var(--t) var(--ease);
}

.pkg-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.3);
}

.pkg-card.pkg-popular {
  border-color: var(--primary);
  background: linear-gradient(155deg, rgba(99,102,241,0.07) 0%, var(--bg) 60%);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 24px 64px rgba(99,102,241,0.18);
  transform: scale(1.03);
  z-index: 1;
}

.pkg-card.pkg-popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.pkg-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.pkg-name {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-align: center;
}

.pkg-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
  text-align: center;
}

.pkg-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pkg-price strong {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.pkg-price span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pkg-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pkg-features li i {
  color: var(--green);
  font-size: 11px;
  flex-shrink: 0;
}

.pkg-feat-na {
  opacity: 0.38;
  text-decoration: line-through;
}

.pkg-feat-na i {
  color: var(--text-dim) !important;
}

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

.packages-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* ════════════════════════════════════════
   HOW WE WORK
═══════════════════════════════════════ */

.how-section {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.step {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  text-align: center;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.step-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.22);
  line-height: 1;
  margin-bottom: 16px;
}

.step-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 10px; flex: 1; }

.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }

.step-arrow { display: none; color: var(--text-dim); font-size: 13px; transition: transform 0.25s; margin-inline-start: auto; }

.step-sep {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t) var(--ease),
              transform   var(--t) var(--ease),
              box-shadow  var(--t) var(--ease);
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #0d0d1a);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s var(--ease);
}

.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.ptag {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-info { padding: 18px 20px; }
.portfolio-info h4 { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.portfolio-info p  { color: var(--text-muted); font-size: 0.88rem; }

/* ── CSS mock browser frame (for placeholders) ── */

.mock-frame {
  width: 100%;
  height: 100%;
  background: var(--bg-card2);
  display: flex;
  flex-direction: column;
}

.mock-chrome {
  background: var(--bg-card);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mock-url-bar {
  margin-inline-start: 8px;
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}

.mock-body { flex: 1; padding: 10px; overflow: hidden; }

/* store mock */
.mock-store { display: flex; flex-direction: column; gap: 8px; }

.ms-nav {
  height: 16px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 4px;
}

.ms-hero-bar {
  height: 30px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
  border-radius: 6px;
}

.ms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.ms-product {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ms-img {
  display: block;
  height: 28px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
}

.ms-lbl {
  display: block;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  width: 70%;
}

/* whatsapp mock */
.mock-wa {
  display: flex;
  gap: 8px;
}

.mw-sidebar {
  width: 36%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-inline-end: 1px solid var(--border);
  padding-inline-end: 8px;
}

.mw-contact {
  height: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
}

.mw-contact.active {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.mw-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: flex-end;
}

.mw-bubble {
  height: 14px;
  border-radius: 8px;
  width: 65%;
}

.mw-bubble.sent {
  background: rgba(34, 197, 94, 0.15);
  align-self: flex-start;
}

.mw-bubble.recv {
  background: rgba(99, 102, 241, 0.15);
  align-self: flex-end;
}

.mw-bubble.short  { width: 42%; }
.mw-bubble.long   { width: 78%; }

/* ════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */

.testimonials-section {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.testimonials-section .section-header {
  margin-bottom: 28px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.testimonial:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.testimonial p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  position: relative;
  padding-block-start: 20px;
}

.testimonial p::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  right: 0;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.45;
  font-family: Georgia, serif;
}

.testimonial footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial footer strong { font-weight: 800; font-size: 0.95rem; }
.testimonial footer span   { color: var(--text-dim); font-size: 0.85rem; }

.testimonials-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.t-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-hover);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.t-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .testimonial {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  .testimonial.t-active {
    opacity: 1;
    pointer-events: auto;
  }
  .testimonials-dots { display: flex; }
}

/* ════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */

.cta-section {
  padding-block: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(99, 102, 241, 0.11) 0%, transparent 70%);
}

.cta-inner { position: relative; }

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-block: 28px 16px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 180px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--t) var(--ease);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ════════════════════════════════════════
   BOTTOM NAV (mobile)
═══════════════════════════════════════ */

.bottom-nav {
  display: none;
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  background: rgba(17, 17, 25, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-block: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 200;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding-block: 6px;
  transition: color var(--t) var(--ease);
}

.bottom-nav a i { font-size: 20px; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--primary); }

/* ════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.1s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.22s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: none; }

/* ════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* ── tablet 900px ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text  { align-items: center; }
  .hero-visual { display: none; }

  .services-grid     { grid-template-columns: 1fr; }
  .packages-grid     { grid-template-columns: 1fr; }
  .pkg-card.pkg-popular { transform: none; box-shadow: 0 0 0 1px rgba(99,102,241,0.3); }
  .portfolio-grid    { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .stat:nth-child(2) { border-inline-end: none; }
  .stat:nth-child(3) { border-block-start: 1px solid var(--border); }
  .stat:nth-child(4) { border-block-start: 1px solid var(--border); border-inline-end: none; }

  .steps-grid { flex-direction: column; gap: 8px; }
  .step-sep   { display: none; }

  .how-section .section-header { margin-bottom: 16px; }
  .how-section .section-header h2 { font-size: 1.1rem; }

  .step { padding: 14px 16px; cursor: pointer; }
  .step-trigger { flex-wrap: nowrap; gap: 10px; }
  .step-arrow { display: block; }
  .step h3 { font-size: 0.9rem; margin-bottom: 0; }
  .step-num { font-size: 1.4rem; margin-bottom: 0; flex-shrink: 0; }

  .step-body { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
  .step-body p { font-size: 0.82rem; line-height: 1.6; padding-top: 10px; }
  .step.open .step-body { max-height: 200px; }
  .step.open .step-arrow { transform: rotate(180deg); }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ── mobile 600px ── */
@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .nav-links {
    display: none;
    position: fixed;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    background: rgba(11, 11, 18, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    z-index: 199;
  }

  .nav-links.open { display: flex; }
  .nav-links a    { padding: 12px 16px; border-radius: var(--r-sm); font-size: 16px; }

  .nav-cta    { display: none; }
  .nav-toggle { display: flex; margin-inline-start: auto; }

  .bottom-nav { display: grid; }
  .site-footer { padding-bottom: 80px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .section { padding-block: 32px; }
  .section-header { margin-bottom: 20px; }

  .pkg-card { padding: 18px 16px; }
  .pkg-subtitle { margin-bottom: 14px; }
  .pkg-price { margin-bottom: 14px; padding-bottom: 14px; }
  .pkg-features { margin-bottom: 16px; gap: 7px; }

  .service-card h3 { padding-top: 12px; }
  .service-card > p { margin-bottom: 10px; }
  .card-features { margin-bottom: 14px; }
  .card-link { padding-bottom: 16px; }

  .hero { padding-block: calc(var(--nav-h) + 32px) 32px; min-height: unset; }

  .site-footer { padding-block: 24px 16px; text-align: center; }
  .footer-top { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 16px; }
  .footer-desc { display: none; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .footer-links a { font-size: 13px; }
  .footer-bottom { padding-top: 12px; font-size: 12px; }

  .stats-bar { padding-block: 8px; margin-block: 0; }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .stat:nth-child(2) { display: none; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-block-start: none; border-inline-end: 1px solid var(--border); }
  .stat:last-child   { border-inline-end: none; }
  .stat { padding-inline: 6px; }
  .stat strong { font-size: 1rem; margin-bottom: 2px; }
  .stat span   { font-size: 10px; }

  .cta-section { padding-block: 40px; }
  .cta-section p { margin-bottom: 24px; }
}

/* ════════════════════════════════════════
   ANNOUNCE BAR
═══════════════════════════════════════ */

:root { --bar-h: 44px; }

.announce-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--bar-h);
  background: linear-gradient(90deg, #15803d 0%, #0d9488 55%, #1d4ed8 100%);
  z-index: 300;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.announce-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.announce-icon { color: rgba(255,255,255,0.9); font-size: 15px; flex-shrink: 0; }

.announce-text {
  color: rgba(255,255,255,0.95);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.announce-text strong { color: #fff; font-weight: 900; font-size: 14.5px; }

.announce-sep { color: rgba(255,255,255,0.3); font-size: 12px; flex-shrink: 0; }

.announce-offer {
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  margin-inline-start: auto;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
}

.announce-cta:hover { background: rgba(255,255,255,0.3); }

.announce-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color var(--t) var(--ease);
  line-height: 1;
}

.announce-close:hover { color: #fff; }

/* nav + hero offset when bar open */
body.has-bar .nav-wrap { top: var(--bar-h); }
body.has-bar .hero { padding-block-start: calc(var(--nav-h) + var(--bar-h) + 24px); }
html:has(body.has-bar) { scroll-padding-top: calc(var(--nav-h) + var(--bar-h)); }

@media (max-width: 640px) {
  .announce-sep, .announce-offer { display: none; }
  .announce-text { font-size: 12px; }
  .announce-cta { padding: 4px 10px; font-size: 12px; }
}

/* ════════════════════════════════════════
   LOGO SUBTITLE
═══════════════════════════════════════ */

.logo-text-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1;
}

.logo-img-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ════════════════════════════════════════
   WHATSY GIFT BADGE (inside pkg cards)
═══════════════════════════════════════ */

.pkg-whatsy-gift {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px dashed rgba(34, 197, 94, 0.32);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.pkg-whatsy-gift .gift-icon {
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.pkg-whatsy-gift .gift-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pkg-whatsy-gift .gift-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green);
}

.pkg-whatsy-gift .gift-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(34, 197, 94, 0.65);
}

/* ════════════════════════════════════════
   WHATSY PLANS SECTION
═══════════════════════════════════════ */

.whatsy-plans-section {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.whatsy-cta-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, var(--bg) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r);
  padding: 28px 32px;
  flex-wrap: wrap;
}

.whatsy-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #22c55e;
  flex-shrink: 0;
}

.whatsy-cta-text {
  flex: 1;
  min-width: 180px;
}

.whatsy-cta-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.whatsy-cta-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.whatsy-cta-btn {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .whatsy-cta-banner { padding: 20px; gap: 16px; }
  .whatsy-cta-btn { width: 100%; justify-content: center; }
}

.section-tag-green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.whatsy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}

.wa-plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t) var(--ease),
              transform   var(--t) var(--ease),
              box-shadow  var(--t) var(--ease);
}

.wa-plan-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.3);
}

.wa-plan-card.wa-popular {
  border-color: var(--green);
  background: linear-gradient(155deg, rgba(34,197,94,0.07) 0%, var(--bg) 60%);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2), 0 24px 64px rgba(34,197,94,0.12);
  transform: scale(1.04);
  z-index: 1;
}

.wa-plan-card.wa-popular:hover { transform: scale(1.04) translateY(-4px); }

.wa-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}

.wa-plan-name {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 3px;
  color: var(--green);
}

.wa-plan-subtitle {
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: 18px;
}

.wa-plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 2px;
}

.wa-plan-price strong {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.wa-plan-price .wp-currency {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wa-plan-period {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.wa-plan-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  flex: 1;
}

.wa-plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.wa-plan-features li i { color: var(--green); font-size: 10px; flex-shrink: 0; }

.wa-plan-card .btn { width: 100%; justify-content: center; }

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,197,94,0.35);
}

@media (max-width: 1000px) {
  .whatsy-grid { grid-template-columns: repeat(2, 1fr); }
  .wa-plan-card.wa-popular { transform: none; box-shadow: 0 0 0 1px rgba(34,197,94,0.25); }
}

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

/* ── Services Compact (4-col) ─────────────────── */
.services-compact {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
}
.services-compact .service-card {
  padding: 1.2rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
}
.services-compact .service-card .card-link {
  margin-top: auto !important;
}
.services-compact .service-card .svc-icon {
  font-size: 1.6rem !important;
  margin-bottom: .5rem !important;
}
.services-compact .service-card h3 {
  font-size: 1rem !important;
  margin-bottom: .35rem !important;
}
.services-compact .service-card p {
  font-size: .82rem !important;
  line-height: 1.5 !important;
}
.services-compact .service-card ul {
  font-size: .8rem !important;
}
@media (max-width: 900px) {
  .services-compact { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .services-compact { grid-template-columns: 1fr !important; }
}



/* ── Portfolio Marquee ────────────────────────── */
@keyframes pf-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.pf-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@keyframes pf-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pf-track .pf-card {
  animation: pf-fadein 0.3s ease both;
}

.pf-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pf-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pf-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pf-card {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(99,102,241,.25);
  border-color: var(--primary);
}

.pf-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #0d0d1a);
  flex-shrink: 0;
}

.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.pf-card:hover .pf-thumb img {
  transform: scale(1.05);
}

.pf-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2rem;
  color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
}

.pf-info {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  text-align: center;
}

.pf-tag {
  display: inline-block;
  margin-inline: auto;
  background: rgba(99,102,241,.15);
  color: var(--primary);
  font-size: .72rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-bottom: .55rem;
}

.pf-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .3rem;
}

.pf-info p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.pf-swipe-hint { display: none; }

@keyframes pf-nudge {
  0%,100% { transform: translateX(0); opacity: .5; }
  50%      { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 600px) {
  .pf-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    user-select: none;
    pointer-events: none;
  }
  .pf-swipe-arrow {
    font-size: 20px;
    line-height: 1;
    color: var(--text-muted);
    animation: pf-nudge 1.6s ease-in-out infinite;
  }
  .pf-swipe-arrow:first-child { animation-direction: reverse; }

  .pf-track { grid-template-columns: 1fr; gap: 14px; }
  .pf-thumb { height: auto; }
}
