﻿/* ============================================================
   BERANDA PREMIUM — Ultra-Modern Library Homepage Design
   E-Perpus Kampus | 2026 Edition
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
.home-page-modern {
  --hp-blue:        #1e5ef3;
  --hp-blue-deep:   #0b2d78;
  --hp-blue-mid:    #1a4acf;
  --hp-accent:      #38bdf8;
  --hp-accent2:     #818cf8;
  --hp-gold:        #f59e0b;
  --hp-bg:          #f4f8ff;
  --hp-surface:     #ffffff;
  --hp-line:        #dbeafe;
  --hp-text:        #0f1f3d;
  --hp-muted:       #536b8a;
  --hp-soft:        #eff6ff;
  --hp-radius-lg:   22px;
  --hp-radius-md:   14px;
  --hp-radius-sm:   10px;
  --hp-shadow:      0 20px 60px rgba(14,60,165,.10), 0 4px 16px rgba(14,60,165,.06);
  --hp-shadow-card: 0 4px 20px rgba(14,60,165,.07);
  --hp-transition:  cubic-bezier(.16,1,.3,1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--hp-bg);
  padding: 0 0 20px;
}

/* Dark mode */
.theme-dark .home-page-modern {
  --hp-blue: #60a5fa; --hp-blue-deep: #0c2857; --hp-blue-mid: #1e50b3;
  --hp-accent: #38bdf8; --hp-accent2: #a5b4fc; --hp-bg: #060e1c;
  --hp-surface: #0c1a30; --hp-line: #1a3358; --hp-text: #e8f0fe;
  --hp-muted: #7b9cbf; --hp-soft: #0f2545;
  --hp-shadow: 0 20px 60px rgba(0,0,0,.4);
  --hp-shadow-card: 0 4px 20px rgba(0,0,0,.3);
}

/* ── HERO WRAPPER ──────────────────────────────────────────── */
.home-hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #040e2b 0%, #0b2d78 40%, #1341ba 70%, #1e5ef3 100%);
}
.home-hero-wrapper::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(56,189,248,.18), transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 20%, rgba(129,140,248,.22), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(30,94,243,.25), transparent 60%);
  z-index: 0;
}

/* Hero orbs */
.hero-orb-1, .hero-orb-2, .hero-orb-3 {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0; animation: hpOrbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width:420px;height:420px;top:-100px;right:10%;background:radial-gradient(circle,rgba(56,189,248,.28),transparent 70%);animation-delay:0s; }
.hero-orb-2 { width:300px;height:300px;bottom:-80px;left:5%;background:radial-gradient(circle,rgba(129,140,248,.25),transparent 70%);animation-delay:-3s; }
.hero-orb-3 { width:200px;height:200px;top:40%;left:40%;background:radial-gradient(circle,rgba(30,94,243,.2),transparent 70%);animation-delay:-5s; }
@keyframes hpOrbFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  33%      { transform:translate(30px,-20px) scale(1.05); }
  66%      { transform:translate(-20px,15px) scale(.97); }
}

/* Hero inner */
.home-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; min-height: 560px;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(56px,7vw,90px) clamp(20px,4vw,48px); gap: 48px;
}

/* Hero copy */
.home-hero-copy-new { display: flex; flex-direction: column; gap: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-bottom: 24px; padding: 7px 16px 7px 8px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 100px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  color: #93c5fd; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  animation: hpFadeSlideUp .6s cubic-bezier(.16,1,.3,1) both;
}
.hero-badge-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.3);
  animation: hpPulse 2s ease infinite;
}
@keyframes hpPulse {
  0%,100% { box-shadow:0 0 0 3px rgba(56,189,248,.3); }
  50%      { box-shadow:0 0 0 6px rgba(56,189,248,.1); }
}
.hero-headline {
  margin: 0; color: #fff; font-size: clamp(38px,4.5vw,62px);
  font-weight: 900; line-height: 1.0; letter-spacing: -.04em;
  animation: hpFadeSlideUp .7s .1s cubic-bezier(.16,1,.3,1) both;
}
.hero-subtext {
  max-width: 520px; margin: 20px 0 32px;
  color: rgba(219,234,254,.85); font-size: clamp(15px,1.6vw,17px); line-height: 1.7;
  animation: hpFadeSlideUp .7s .2s cubic-bezier(.16,1,.3,1) both;
}

/* Hero search */
.hero-search-wrap { position:relative; animation: hpFadeSlideUp .7s .3s cubic-bezier(.16,1,.3,1) both; }
.hero-search-form {
  display: flex; align-items: center; width: 100%; max-width: 580px;
  padding: 6px 6px 6px 20px;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 100px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.hero-search-form:focus-within {
  border-color: rgba(56,189,248,.7); background: rgba(255,255,255,.15);
  box-shadow: 0 0 0 4px rgba(56,189,248,.15);
}
.hero-search-icon { display:flex; align-items:center; color:#93c5fd; margin-right:10px; flex-shrink:0; }
.hero-search-input {
  flex: 1; min-width: 0; padding: 10px 0; border: none;
  background: transparent; color: #fff; font-size: 15px; outline: none; font-family: inherit;
}
.hero-search-input::placeholder { color: rgba(219,234,254,.55); }
.hero-search-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 100px;
  background: linear-gradient(135deg,#38bdf8,#1e5ef3);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .2s; white-space: nowrap; font-family: inherit;
}
.hero-search-btn:hover { transform:scale(1.04); box-shadow:0 8px 24px rgba(56,189,248,.35); }

/* Hero quick links */
.hero-quick-links { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:20px; animation: hpFadeSlideUp .7s .4s cubic-bezier(.16,1,.3,1) both; }
.hero-quick-label { color:rgba(219,234,254,.6); font-size:12px; font-weight:600; flex-shrink:0; }
.hero-quick-chip {
  padding:5px 13px; border:1px solid rgba(255,255,255,.14); border-radius:100px;
  background:rgba(255,255,255,.07); color:#bfdbfe; font-size:12.5px; font-weight:600;
  text-decoration:none; transition:all .2s;
}
.hero-quick-chip:hover { border-color:rgba(56,189,248,.5); background:rgba(56,189,248,.12); color:#38bdf8; }

/* Hero visual */
.home-hero-visual { position:relative; display:flex; align-items:center; justify-content:center; animation: hpFadeSlideUp .8s .2s cubic-bezier(.16,1,.3,1) both; }
.hero-illustration-frame { position:relative; width:100%; max-width:460px; }
.hero-illustration-frame img { width:100%; height:380px; object-fit:cover; border-radius:24px; display:block; box-shadow:0 32px 80px rgba(4,14,43,.5),0 0 0 1px rgba(255,255,255,.08); }

/* Floating cards */
.hero-float-card { position:absolute; display:flex; align-items:center; gap:10px; padding:12px 16px; border:1px solid rgba(255,255,255,.18); border-radius:14px; background:rgba(12,26,54,.75); backdrop-filter:blur(16px); color:#fff; font-size:13px; font-weight:700; white-space:nowrap; box-shadow:0 8px 32px rgba(0,0,0,.3); }
.hero-float-card-icon { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; font-size:18px; }
.hero-float-card-icon.blue  { background:rgba(30,94,243,.3); color:#93c5fd; }
.hero-float-card-icon.teal  { background:rgba(56,189,248,.25); color:#38bdf8; }
.hero-float-card-icon.gold  { background:rgba(245,158,11,.25); color:#fbbf24; }
.hero-float-card small { display:block; color:rgba(219,234,254,.6); font-size:11px; font-weight:500; margin-top:1px; }
.hero-float-1 { top:-18px; left:-30px; animation: hpFloat1 4s ease-in-out infinite; }
.hero-float-2 { bottom:30px; right:-24px; animation: hpFloat2 5s ease-in-out infinite; }
.hero-float-3 { top:50%; left:-40px; transform:translateY(-50%); animation: hpFloat1 6s ease-in-out infinite reverse; }
@keyframes hpFloat1 { 0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);} }
@keyframes hpFloat2 { 0%,100%{transform:translateY(0);}50%{transform:translateY(8px);} }
@keyframes hpFadeSlideUp { from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:translateY(0);} }

/* ── PRESERVED HERO WITH FULL-BLEED BACKGROUND SLIDES ─────── */
body.frontend-shell .home-page-modern .home-hero.hero-background-slider {
  position:relative;
  isolation:isolate;
  margin:clamp(16px,3vw,30px) auto 0;
  touch-action:pan-y;
}
body.frontend-shell .home-page-modern .hero-background-slider .home-hero-copy {
  position:relative;
  z-index:2;
  grid-column:1;
  grid-row:1;
  background:transparent;
}
body.frontend-shell .home-page-modern .hero-background-slider [data-hero-title] {
  min-height:2.1em;
}
body.frontend-shell.theme-dark .home-page-modern .hero-background-slider .home-hero-copy {
  background:transparent;
}
body.frontend-shell .home-page-modern .hero-background-slider .home-hero-media {
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  margin:0;
  isolation:isolate;
  background:#0b2d78;
}
body.frontend-shell .home-page-modern .hero-background-slider .home-hero-media::after {
  z-index:2;
  background:
    linear-gradient(90deg,rgba(5,28,78,.96) 0%,rgba(8,50,130,.90) 39%,rgba(7,39,101,.58) 66%,rgba(4,14,43,.20) 100%),
    linear-gradient(180deg,rgba(4,14,43,.16),rgba(4,14,43,.08) 55%,rgba(4,14,43,.34));
}
body.frontend-shell .home-page-modern .hero-background-slider .hero-slide-image {
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  filter:saturate(.92) contrast(1.04);
  transform:scale(1.015) translate3d(-.35%,0,0);
  transition:opacity 850ms var(--hp-transition),transform 7s cubic-bezier(.22,1,.36,1);
  will-change:opacity,transform;
}
body.frontend-shell .home-page-modern .hero-background-slider .hero-slide-image[data-hero-image="1"] {
  transform:scale(1.015) translate3d(.35%,0,0);
}
body.frontend-shell .home-page-modern .hero-background-slider .hero-slide-image.is-active {
  opacity:1;
  transform:scale(1.055) translate3d(.45%,0,0);
}
body.frontend-shell .home-page-modern .hero-background-slider .hero-slide-image[data-hero-image="1"].is-active {
  transform:scale(1.055) translate3d(-.45%,0,0);
}
.hero-background-slider .home-hero-search .btn:active { transform:translateY(1px) scale(.985); }

@media (max-width:760px) {
  body.frontend-shell .home-page-modern .home-hero.hero-background-slider {
    min-height:clamp(690px,180vw,720px);
    margin-top:0;
  }
  body.frontend-shell .home-page-modern .hero-background-slider .home-hero-copy {
    align-self:start;
    width:100%;
  }
  body.frontend-shell .home-page-modern .hero-background-slider .home-hero-media {
    min-height:0;
    max-height:none;
  }
  body.frontend-shell .home-page-modern .hero-background-slider .home-hero-media::after {
    background:
      linear-gradient(180deg,rgba(5,28,78,.96) 0%,rgba(8,50,130,.90) 48%,rgba(7,39,101,.64) 70%,rgba(4,14,43,.28) 100%),
      linear-gradient(90deg,rgba(4,14,43,.18),rgba(4,14,43,.04));
  }
}
@media (prefers-reduced-motion:reduce) {
  .hero-background-slider .hero-slide-image {
    transition:none!important;
    transform:scale(1.015)!important;
    will-change:auto;
  }
  .hero-background-slider [data-hero-copy] { will-change:auto!important; }
}

/* ── DISCOVERY RAIL ─────────────────────────────────────────── */
.home-discovery-rail-new {
  display:flex; align-items:center; gap:16px;
  max-width:1280px; margin:0 auto;
  padding:13px clamp(20px,4vw,48px);
  background:var(--hp-surface);
  border-top:1px solid var(--hp-line);
  border-bottom:1px solid var(--hp-line);
}
.discovery-label { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; color:var(--hp-muted); font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.discovery-chips { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; }
.discovery-chips::-webkit-scrollbar { display:none; }
.discovery-chip-link { display:inline-flex; align-items:center; flex-shrink:0; padding:5px 13px; border:1px solid var(--hp-line); border-radius:100px; background:var(--hp-soft); color:var(--hp-blue); font-size:12.5px; font-weight:600; text-decoration:none; transition:all .2s; white-space:nowrap; }
.discovery-chip-link:hover { border-color:var(--hp-blue); background:var(--hp-blue); color:#fff; transform:translateY(-1px); }

/* ── LAYOUT WRAPPER ─────────────────────────────────────────── */
.beranda-content { max-width:1280px; margin:0 auto; padding:0 clamp(20px,4vw,48px); }

/* ── SECTION HEADINGS ───────────────────────────────────────── */
.section-label-pill { display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; padding:5px 14px; border-radius:100px; background:var(--hp-soft); color:var(--hp-blue); font-size:11.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; border:1px solid var(--hp-line); }
.section-title-new { margin:0; color:var(--hp-text); font-size:clamp(26px,3vw,38px); font-weight:900; line-height:1.1; letter-spacing:-.035em; }
.section-desc-new { margin:10px 0 0; color:var(--hp-muted); font-size:15px; line-height:1.7; }
.section-header-row { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:28px; }
.section-view-all { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; padding:8px 16px; border:1.5px solid var(--hp-line); border-radius:100px; color:var(--hp-blue); font-size:13px; font-weight:700; text-decoration:none; transition:all .2s; white-space:nowrap; }
.section-view-all:hover { border-color:var(--hp-blue); background:var(--hp-blue); color:#fff; }

/* ── CATEGORY STRIP ─────────────────────────────────────────── */
.home-category-section { padding:52px 0 0; }
.category-grid-new { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.category-card-new { display:flex; align-items:center; gap:14px; padding:18px 20px; border:1.5px solid var(--hp-line); border-radius:var(--hp-radius-md); background:var(--hp-surface); text-decoration:none; transition:all .25s cubic-bezier(.16,1,.3,1); position:relative; overflow:hidden; }
.category-card-new:hover { border-color:var(--hp-blue); transform:translateY(-3px); box-shadow:var(--hp-shadow-card); }
.category-icon-new { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:48px; height:48px; border-radius:12px; background:var(--hp-soft); color:var(--hp-blue); font-size:22px; transition:all .25s; }
.category-card-new:hover .category-icon-new { background:linear-gradient(135deg,var(--hp-blue),var(--hp-blue-mid)); color:#fff; }
.category-info-new { min-width:0; }
.category-name-new { display:block; color:var(--hp-text); font-size:14px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:color .2s; }
.category-count-new { display:block; color:var(--hp-muted); font-size:12px; font-weight:500; margin-top:2px; }
.category-card-new:hover .category-name-new { color:var(--hp-blue); }

/* ── STATS SECTION ──────────────────────────────────────────── */
.home-stats-section { padding:52px 0 0; }
.stats-grid-new {
  display:grid; grid-template-columns:repeat(4,1fr);
  border-radius:var(--hp-radius-lg); overflow:hidden;
  background:linear-gradient(135deg,#040e2b 0%,#0b2d78 50%,#1341ba 100%);
  box-shadow:var(--hp-shadow); position:relative;
}
.stats-grid-new::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 60% 80% at 80% 50%,rgba(56,189,248,.15),transparent 60%),radial-gradient(ellipse 40% 60% at 10% 20%,rgba(129,140,248,.15),transparent 50%);
  pointer-events:none; z-index:0;
}
.stat-item-new { position:relative; z-index:1; display:flex; align-items:center; gap:16px; padding:30px 28px; border-right:1px solid rgba(255,255,255,.1); transition:background .2s; }
.stat-item-new:last-child { border-right:none; }
.stat-item-new:hover { background:rgba(255,255,255,.05); }
.stat-icon-new { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:52px; height:52px; border-radius:14px; background:rgba(255,255,255,.12); color:#fff; font-size:24px; }
.stat-info-new { min-width:0; }
.stat-number-new { display:block; color:#fff; font-size:clamp(26px,2.4vw,34px); font-weight:900; letter-spacing:-.03em; line-height:1; }
.stat-label-new { display:block; color:#93c5fd; font-size:13px; font-weight:600; margin-top:5px; }

/* ── FEATURED COLLECTIONS ───────────────────────────────────── */
.home-collections-section { padding:56px 0 0; }
.collections-grid-new { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.home-page-modern .collection-card { border:1.5px solid var(--hp-line)!important; border-radius:var(--hp-radius-md)!important; background:var(--hp-surface)!important; box-shadow:none!important; transition:all .25s cubic-bezier(.16,1,.3,1)!important; overflow:hidden; }
.home-page-modern .collection-card:hover { border-color:var(--hp-blue)!important; transform:translateY(-4px)!important; box-shadow:var(--hp-shadow-card)!important; }
.home-page-modern .book-cover { height:200px!important; border-radius:10px!important; margin:10px!important; }

/* ── DUO PANEL ──────────────────────────────────────────────── */
.home-duo-section { padding:56px 0 0; }
.duo-grid-new { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.panel-new { border:1.5px solid var(--hp-line); border-radius:var(--hp-radius-lg); background:var(--hp-surface); overflow:hidden; box-shadow:var(--hp-shadow-card); }
.panel-header-new { display:flex; align-items:center; justify-content:space-between; padding:22px 22px 0; margin-bottom:16px; }
.panel-title-group { min-width:0; }
.panel-kicker-new { display:inline-block; margin-bottom:3px; color:var(--hp-blue); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.panel-title-new { margin:0; color:var(--hp-text); font-size:20px; font-weight:900; letter-spacing:-.025em; }
.panel-link-new { display:inline-flex; align-items:center; gap:5px; flex-shrink:0; padding:6px 14px; border:1.5px solid var(--hp-line); border-radius:100px; color:var(--hp-blue); font-size:12px; font-weight:700; text-decoration:none; transition:all .2s; }
.panel-link-new:hover { border-color:var(--hp-blue); background:var(--hp-blue); color:#fff; }

/* Mini book list */
.mini-book-list { display:flex; flex-direction:column; padding:0 0 6px; }
.mini-book-item { display:flex; align-items:center; gap:14px; padding:12px 22px; border-bottom:1px solid var(--hp-line); text-decoration:none; transition:background .18s; }
.mini-book-item:last-child { border-bottom:none; }
.mini-book-item:hover { background:var(--hp-soft); }
.mini-cover-new { flex-shrink:0; width:42px; height:54px; border-radius:7px; object-fit:cover; }
.mini-cover-placeholder { flex-shrink:0; width:42px; height:54px; border-radius:7px; background:linear-gradient(135deg,#1e5ef3,#38bdf8); display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; font-weight:900; }
.mini-book-info { flex:1; min-width:0; }
.mini-book-title { display:-webkit-box; color:var(--hp-text); font-size:13.5px; font-weight:700; line-height:1.3; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.mini-book-meta { display:block; color:var(--hp-muted); font-size:11.5px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-book-badge { display:inline-flex; align-items:center; gap:4px; margin-top:5px; padding:2px 8px; border-radius:100px; background:var(--hp-soft); color:var(--hp-blue); font-size:10.5px; font-weight:600; }
.mini-chevron { flex-shrink:0; color:var(--hp-muted); font-size:16px; transition:transform .2s; }
.mini-book-item:hover .mini-chevron { transform:translateX(3px); color:var(--hp-blue); }

/* Download rank items */
.download-rank-list { display:flex; flex-direction:column; padding:0 0 6px; }
.download-rank-item { display:flex; align-items:center; gap:14px; padding:13px 22px; border-bottom:1px solid var(--hp-line); text-decoration:none; transition:background .18s; }
.download-rank-item:last-child { border-bottom:none; }
.download-rank-item:hover { background:var(--hp-soft); }
.rank-number { flex-shrink:0; width:28px; height:28px; border-radius:8px; background:var(--hp-soft); color:var(--hp-blue); font-size:12px; font-weight:900; display:flex; align-items:center; justify-content:center; transition:all .2s; }
.download-rank-item:hover .rank-number { background:var(--hp-blue); color:#fff; }
.rank-number.rank-1 { background:linear-gradient(135deg,#f59e0b,#d97706); color:#fff; }
.rank-number.rank-2 { background:linear-gradient(135deg,#94a3b8,#64748b); color:#fff; }
.rank-number.rank-3 { background:linear-gradient(135deg,#92400e,#b45309); color:#fff; }
.download-icon-new { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; background:var(--hp-soft); color:var(--hp-blue); font-size:18px; transition:all .2s; }
.download-rank-item:hover .download-icon-new { background:var(--hp-blue); color:#fff; }
.download-info-new { flex:1; min-width:0; }
.download-title-new { display:block; color:var(--hp-text); font-size:13.5px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.download-meta-new { display:block; color:var(--hp-muted); font-size:11.5px; margin-top:3px; }
.download-rating { flex-shrink:0; display:inline-flex; align-items:center; gap:3px; color:#f59e0b; font-size:12px; font-weight:700; }

/* ── SERVICES SECTION ───────────────────────────────────────── */
.home-services-section { padding:56px 0 0; }
.services-grid-new { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.service-card-new { position:relative; padding:28px 26px; border:1.5px solid var(--hp-line); border-radius:var(--hp-radius-lg); background:var(--hp-surface); overflow:hidden; transition:all .25s cubic-bezier(.16,1,.3,1); text-decoration:none; display:block; }
.service-card-new::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--hp-blue),var(--hp-accent)); transform:scaleX(0); transform-origin:left; transition:transform .3s cubic-bezier(.16,1,.3,1); }
.service-card-new:hover { border-color:var(--hp-blue); transform:translateY(-4px); box-shadow:var(--hp-shadow-card); }
.service-card-new:hover::after { transform:scaleX(1); }
.service-icon-new { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:14px; margin-bottom:20px; font-size:24px; background:var(--hp-soft); color:var(--hp-blue); transition:all .25s; }
.service-card-new:hover .service-icon-new { background:linear-gradient(135deg,var(--hp-blue),var(--hp-accent2)); color:#fff; transform:scale(1.08) rotate(-3deg); }
.service-name-new { display:block; color:var(--hp-text); font-size:17px; font-weight:800; margin-bottom:8px; letter-spacing:-.02em; }
.service-desc-new { color:var(--hp-muted); font-size:14px; line-height:1.65; margin:0; }

/* Lead card */
.service-card-new.service-lead { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:32px; background-image:linear-gradient(90deg,rgba(4,14,43,.98) 0%,rgba(8,39,101,.94) 48%,rgba(8,39,101,.66) 100%),url("../../frontend/images/hero-slides/slide-06.webp"); background-size:cover; background-position:center 42%; border-color:transparent; padding:clamp(32px,4vw,48px); }
.service-card-new.service-lead::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(56,189,248,.04),rgba(4,14,43,.18)); pointer-events:none; }
.service-card-new.service-lead::after { display:none; }
.service-lead-copy { position:relative; z-index:1; }
.service-lead-visual { position:relative; z-index:1; }
.service-card-new.service-lead .service-icon-new { width:64px; height:64px; background:rgba(255,255,255,.12); color:#38bdf8; font-size:30px; }
.service-card-new.service-lead .service-name-new { color:#fff; font-size:clamp(26px,3vw,38px); letter-spacing:-.035em; }
.service-card-new.service-lead .service-desc-new { color:#93c5fd; font-size:15px; max-width:480px; }
.service-lead-cta { display:inline-flex; align-items:center; gap:8px; margin-top:28px; padding:12px 24px; border:1.5px solid rgba(255,255,255,.25); border-radius:100px; background:rgba(255,255,255,.1); color:#fff; font-size:14px; font-weight:700; text-decoration:none; transition:all .2s; }
.service-lead-cta:hover { background:rgba(56,189,248,.2); border-color:rgba(56,189,248,.5); color:#38bdf8; }
.service-lead-feature-list { display:flex; flex-direction:column; gap:12px; }
.service-lead-feature { display:flex; align-items:center; gap:10px; padding:14px 18px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.06); color:#dbeafe; font-size:13.5px; font-weight:600; }
.service-lead-feature-icon { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:rgba(255,255,255,.1); color:#38bdf8; font-size:16px; flex-shrink:0; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.home-testimonials-section { padding:56px 0 0; }
.testimonials-grid-new { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.testimonial-card-new { display:flex; flex-direction:column; padding:26px; border:1.5px solid var(--hp-line); border-radius:var(--hp-radius-lg); background:var(--hp-surface); box-shadow:var(--hp-shadow-card); transition:all .25s cubic-bezier(.16,1,.3,1); position:relative; overflow:hidden; }
.testimonial-card-new::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--hp-blue),var(--hp-accent)); transform:scaleX(0); transform-origin:left; transition:transform .3s cubic-bezier(.16,1,.3,1); }
.testimonial-card-new:hover { border-color:var(--hp-blue); transform:translateY(-4px); box-shadow:0 16px 48px rgba(14,60,165,.12); }
.testimonial-card-new:hover::before { transform:scaleX(1); }
.testi-quote-mark { font-size:52px; line-height:.7; color:var(--hp-blue); font-family:Georgia,serif; font-weight:900; margin-bottom:14px; opacity:.3; }
.testi-text { flex:1; color:var(--hp-text); font-size:14px; line-height:1.75; margin:0 0 20px; }
.testi-stars { display:flex; gap:3px; margin-bottom:16px; }
.testi-star { color:#f59e0b; font-size:14px; }
.testi-author-row { display:flex; align-items:center; gap:12px; padding-top:16px; border-top:1px solid var(--hp-line); margin-top:auto; }
.testi-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.testi-avatar-placeholder { width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg,#1e5ef3,#818cf8); display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; font-weight:800; flex-shrink:0; }
.testi-name { display:block; color:var(--hp-text); font-size:14px; font-weight:700; }
.testi-role { display:block; color:var(--hp-muted); font-size:12px; margin-top:2px; }
.testi-empty { grid-column:1/-1; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:16px; padding:56px 32px; border:1.5px dashed var(--hp-line); border-radius:var(--hp-radius-lg); text-align:center; color:var(--hp-muted); }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.home-cta-section { padding:56px 0 48px; }
.cta-banner { position:relative; display:flex; align-items:center; justify-content:space-between; gap:32px; padding:clamp(36px,5vw,56px) clamp(32px,5vw,64px); border-radius:var(--hp-radius-lg); background-image:linear-gradient(90deg,rgba(4,14,43,.97) 0%,rgba(8,39,101,.90) 48%,rgba(8,39,101,.66) 100%),url("../../frontend/images/hero-slides/slide-01.webp"); background-size:cover; background-position:center 48%; overflow:hidden; }
.cta-banner::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(56,189,248,.04),rgba(4,14,43,.18)); pointer-events:none; }
.cta-banner-copy { position:relative; z-index:1; }
.cta-banner-title { margin:0 0 10px; color:#fff; font-size:clamp(24px,3vw,36px); font-weight:900; letter-spacing:-.03em; }
.cta-banner-subtitle { margin:0; color:#93c5fd; font-size:15px; line-height:1.65; }
.cta-banner-actions { position:relative; z-index:1; display:flex; align-items:center; gap:12px; flex-shrink:0; }
.cta-btn-primary { display:inline-flex; align-items:center; gap:8px; padding:14px 28px; border:none; border-radius:100px; background:#fff; color:#0b2d78; font-size:14px; font-weight:800; text-decoration:none; transition:all .2s; white-space:nowrap; font-family:inherit; }
.cta-btn-primary:hover { background:#dbeafe; transform:translateY(-2px); box-shadow:0 8px 32px rgba(255,255,255,.2); }
.cta-btn-secondary { display:inline-flex; align-items:center; gap:8px; padding:14px 24px; border:1.5px solid rgba(255,255,255,.25); border-radius:100px; background:transparent; color:#dbeafe; font-size:14px; font-weight:700; text-decoration:none; transition:all .2s; white-space:nowrap; }
.cta-btn-secondary:hover { border-color:rgba(56,189,248,.6); background:rgba(56,189,248,.12); color:#38bdf8; }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal-up { opacity:1;transform:none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width:1100px) {
  .home-hero-inner { grid-template-columns:1.2fr 0.8fr; }
  .collections-grid-new { grid-template-columns:repeat(3,1fr); }
  .services-grid-new { grid-template-columns:1fr 1fr; }
  .service-card-new.service-lead { grid-column:1/-1; grid-template-columns:1fr; gap:24px; }
  .testimonials-grid-new { grid-template-columns:repeat(2,1fr); }
  .stats-grid-new { grid-template-columns:repeat(2,1fr); }
  .stat-item-new:nth-child(2) { border-right:none; }
  .stat-item-new:nth-child(1),.stat-item-new:nth-child(2) { border-bottom:1px solid rgba(255,255,255,.1); }
}
@media (max-width:820px) {
  .home-hero-inner { grid-template-columns:1fr; min-height:auto; padding:48px 20px; }
  .home-hero-visual { display:none; }
  .hero-headline { font-size:clamp(34px,9vw,48px); }
  .hero-search-form { max-width:100%; }
  .category-grid-new { grid-template-columns:repeat(2,1fr); }
  .duo-grid-new { grid-template-columns:1fr; }
  .services-grid-new { grid-template-columns:1fr; }
  .testimonials-grid-new { grid-template-columns:1fr; }
  .service-card-new.service-lead { background-image:linear-gradient(180deg,rgba(4,14,43,.96),rgba(8,39,101,.88)),url("../../frontend/images/hero-slides/slide-06.webp"); background-position:68% center; }
  .cta-banner { flex-direction:column; text-align:center; background-image:linear-gradient(180deg,rgba(4,14,43,.95),rgba(8,39,101,.86)),url("../../frontend/images/hero-slides/slide-01.webp"); background-position:62% center; }
  .cta-banner-actions { justify-content:center; flex-wrap:wrap; }
  .collections-grid-new { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
  .hero-search-icon { display:none; }
  .hero-search-input { padding:10px 8px; }
  .category-grid-new { grid-template-columns:1fr; }
  .stats-grid-new { grid-template-columns:1fr; }
  .stat-item-new { border-right:none!important; border-bottom:1px solid rgba(255,255,255,.1)!important; }
  .stat-item-new:last-child { border-bottom:none!important; }
  .cta-btn-primary,.cta-btn-secondary { width:100%; justify-content:center; }
  .beranda-content { padding:0 16px; }
  .section-header-row { flex-direction:column; align-items:flex-start; }
}

/* ── HERO TRENDING SEARCHES (Inside Hero) ────────────────────── */
@media (min-width: 992px) {
  body.frontend-shell .home-page-modern .home-hero.hero-background-slider {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  }
}

.home-hero-trends {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  max-width: 680px;
  width: 100%;
  position: relative;
  z-index: 3;
}
.hero-trend-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #bfdbfe;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-trend-label .ti {
  font-size: 14px;
  color: #60a5fa;
}
.hero-trend-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 3px 0;
}
.hero-trend-chips::-webkit-scrollbar { display: none; }
.hero-trend-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 100px;
  background: #eff6ff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  color: #1e5ef3;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 15, 60, 0.10);
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
.hero-trend-chip:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b2d78;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.hero-trend-chip:active {
  transform: translateY(0);
}

body.frontend-shell.theme-dark .home-hero-trends .hero-trend-label {
  color: #93c5fd;
}
body.frontend-shell.theme-dark .home-hero-trends .hero-trend-chip {
  background: rgba(15, 37, 69, 0.92);
  border-color: rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.frontend-shell.theme-dark .home-hero-trends .hero-trend-chip:hover {
  background: #1e5ef3;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(30, 94, 243, 0.4);
}

@media (max-width: 760px) {
  .home-hero-trends {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    width: 100%;
  }
  .hero-trend-chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
