:root {
  --bg: #FBF8F1;
  --bg-alt: #F1EBDD;
  --ink: #0B0A08;
  --ink-2: #2C2A25;
  --muted: #6E6A5F;
  --line: #E5DFCF;
  --card: #FFFFFF;
  --accent: #e30613;
  --accent-2: #ffc107;
  --dark: #0F1216;
  --shadow: 0 2px 0 0 var(--ink);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Bricolage Grotesque', ui-serif, Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.35rem; }

img { max-width: 100%; display: block; }
.container-x { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: #f4efe1;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.topbar-inner a { color: var(--accent-2); font-weight: 600; }
.topbar-wa {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff !important;
  padding: 4px 12px; border-radius: 999px;
  /*background: #25D366;*/
  transition: background .15s ease, transform .15s ease;
}
.topbar-wa:hover { background: #1ebd5b; color: #fff; transform: translateY(-1px); }
.topbar-wa i { font-size: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-row {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.03em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  line-height: 1;
}
.brand-logo {
  width: 180px; height: auto; display: block;
  transition: transform .18s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); }
.brand-logo-footer { width: 160px; }
@media (max-width: 640px) { .brand-logo { width: 140px; } .brand-logo-footer { width: 130px; } }
.brand-dot {
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.nav {
  display: flex; gap: 24px; align-items: center;
  font-weight: 600; font-size: .95rem;
}
.nav a.active { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.search-form {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
}
.search-form input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: .95rem;
  padding: 8px 0;
}
.search-form button {
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  padding: 8px 18px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.search-form button:hover { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent;
  color: var(--ink); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease;
  font-family: inherit; text-decoration: none;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-lime { background: var(--accent-2); border-color: var(--ink); color: var(--ink); }
.btn-lime:hover { background: var(--ink); color: var(--accent-2); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { border-color: var(--line); }

/* ---------- Hero banner slider ---------- */
.hero-section { padding: 28px 0 40px; }
.slider-outer { position: relative; }
.slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--ink);
}
.slide {
  min-height: 460px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  color: #fff;
}
.slide-content { padding: 60px 56px; position: relative; z-index: 2; }
.slide-eyebrow {
  display: inline-block; padding: 6px 12px;
  background: var(--accent-2); color: var(--ink);
  border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px;
}
.slide h1 { color: #fff; font-size: clamp(2.25rem, 4.2vw, 3.75rem); }
.slide p { color: #EFEAD9; font-size: 1.05rem; max-width: 520px; margin: 14px 0 28px; }
.slide-image {
  position: relative; height: 100%; min-height: 460px;
}
.slide-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.slide-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,10,8,.85) 0%, rgba(11,10,8,0) 40%);
}

.slider-controls {
  position: absolute; bottom: 26px; right: 26px; display: flex; gap: 10px; z-index: 5;
}
.slider-controls button {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid #fff; background: transparent; color: #fff;
  cursor: pointer; font-size: 1rem;
}
.slider-controls button:hover { background: #fff; color: var(--ink); }
.slider-dots { position: absolute; bottom: 32px; left: 56px; display: flex; gap: 8px; z-index: 5; }
.slider-dots span {
  width: 26px; height: 4px; background: rgba(255,255,255,.35);
  border-radius: 2px; cursor: pointer; transition: .2s;
}
.slider-dots span.active { background: var(--accent-2); width: 40px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 800;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 6px 0 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.cat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}
.cat-card .cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-2); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px;
}
.cat-card:nth-child(3n) .cat-icon { background: var(--accent); color: #fff; }
.cat-card:nth-child(3n+2) .cat-icon { background: var(--ink); color: var(--accent-2); }
.cat-card h3 { font-size: 1.2rem; margin: 0; }
.cat-card .cat-count { color: var(--muted); font-size: .88rem; font-weight: 600; }
.cat-card .cat-desc { color: var(--muted); font-size: .88rem; margin-top: 4px; }

/* ---------- Asset grid ---------- */
.asset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.asset-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.asset-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.asset-thumb {
  aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg-alt);
}
.asset-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.asset-card:hover .asset-thumb img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; z-index: 2;
}
.badge-free    { background: var(--accent-2); color: var(--ink); }
.badge-premium { background: var(--accent); color: #fff; }
.badge-individual { background: var(--ink); color: var(--accent-2); font-family: var(--font-display); letter-spacing: -0.01em; font-size: .78rem; padding: 5px 12px; }
.badge-type {
  position: absolute; top: 12px; right: 12px;
  background: rgba(11,10,8,.9); color: #fff;
  padding: 5px 10px; border-radius: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}

.asset-body { padding: 16px 18px 18px; }
.asset-body h3 {
  font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 6px;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.asset-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--muted); margin-top: 8px;
}
.asset-meta .dl { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

/* ---------- Detail page ---------- */
.detail-wrap { padding: 40px 0 80px; }
.detail-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px;
}
.detail-image {
  border: 1.5px solid var(--ink); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 8px 8px 0 var(--ink);
  background: var(--bg-alt);
  position: relative;
}
.detail-image img { width: 100%; display: block; }
.detail-side { padding-top: 4px; }
.detail-side .breadcrumb { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.detail-side h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 12px; }
.detail-side p.desc { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 24px; }
.spec-list {
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 20px 22px; background: #fff; margin-bottom: 22px;
}
.spec-list dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.spec-list dt { color: var(--muted); font-weight: 600; font-size: .88rem; }
.spec-list dd { margin: 0; font-weight: 700; font-size: .95rem; }
.download-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-stack {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.cta-or {
  text-align: center; color: var(--muted); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 4px 0;
}
.locked-note {
  background: #fff5f2; border: 1.5px dashed var(--accent);
  padding: 14px 18px; border-radius: var(--radius); color: var(--ink);
  margin-top: 14px; font-size: .92rem;
}

/* ---------- Filter page ---------- */
.filter-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px;
}
.filter-panel {
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 22px 22px; background: #fff; align-self: start;
  position: sticky; top: 108px;
}
.filter-panel h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; color: var(--muted); font-family: var(--font-body); font-weight: 800; }
.filter-panel .filter-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-panel .filter-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-check {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  font-size: .95rem; cursor: pointer;
}
.filter-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.filter-panel select {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--ink);
  border-radius: 10px; background: #fff; font-family: inherit;
}

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.auth-brand {
  background: var(--dark); color: #fff;
  padding: 80px 60px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-brand h2 { color: #fff; font-size: 2.75rem; line-height: 1.05; }
.auth-brand::after {
  content: ''; position: absolute; right: -100px; bottom: -100px;
  width: 400px; height: 400px; border-radius: 999px;
  background: var(--accent); opacity: .35; filter: blur(60px);
}
.auth-form-wrap {
  padding: 80px 60px; display: flex; flex-direction: column; justify-content: center;
  max-width: 560px; margin: 0 auto; width: 100%;
}
.auth-form-wrap h1 { font-size: 2.5rem; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 8px; letter-spacing: .04em; }
.auth-form input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--ink); border-radius: 12px;
  background: #fff; font-family: inherit; font-size: 1rem;
}
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Membership ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.plan {
  border: 1.5px solid var(--ink); border-radius: var(--radius-lg);
  padding: 36px 32px; background: #fff;
  display: flex; flex-direction: column;
}
.plan.plan-featured { background: var(--dark); color: #fff; box-shadow: 10px 10px 0 var(--accent); }
.plan.plan-featured h3, .plan.plan-featured .price { color: #fff; }
.plan h3 { font-size: 1.6rem; margin: 0 0 8px; }
.plan .price { font-family: var(--font-display); font-size: 3rem; margin: 12px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan.plan-featured .price small { color: #cfc9b7; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.plan ul li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.plan.plan-featured ul li { border-color: rgba(255,255,255,.14); }
.plan ul li i { color: var(--accent); }
.plan.plan-featured ul li i { color: var(--accent-2); }

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); margin: 20px 0;
  font-weight: 600;
}
.alert-success { background: var(--accent-2); color: var(--ink); }
.alert-error   { background: #ffe5df; border-color: var(--accent); color: #7a1a05; }

/* ---------- Profile ---------- */
.profile-header {
  background: var(--dark); color: #fff; padding: 60px 0 100px;
  border-radius: 0 0 32px 32px; margin-bottom: -60px; position: relative;
}
.profile-header h1 { color: #fff; }
.profile-header .badge-pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-2); color: var(--ink); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.profile-card {
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 22px; box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Renewal banner (top) ---------- */
.renew-banner {
  background: var(--accent);
  color: #fff;
  border-bottom: 1.5px solid var(--ink);
  font-size: .94rem;
}
.renew-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  flex-wrap: wrap;
}
.renew-banner i { margin-right: 8px; }
.renew-banner-btn {
  background: #fff; color: var(--ink); border-color: #fff;
  font-weight: 700;
}
.renew-banner-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark); color: #c9c4b5; padding: 60px 0 24px;
  margin-top: 60px;
}
.site-footer .brand { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.site-footer h5 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .slide { grid-template-columns: 1fr; min-height: auto; }
  .slide-image { min-height: 240px; }
  .slide-content { padding: 40px 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .filter-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .plans { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .search-form { display: none; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .brand { font-size: 1.3rem; }
}
