:root {
  --bg: #f8fbff;
  --bg-soft: #eef7ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.98);
  --line: rgba(33, 92, 170, 0.12);
  --line-strong: rgba(33, 92, 170, 0.18);
  --text: #183153;
  --muted: #6682a9;
  --blue: #1d8fff;
  --sky: #55c7ff;
  --sky-2: #7bdcff;
  --deep: #1b5fd2;
  --green: #14b86e;
  --yellow: #f6b31c;
  --red: #ef5f7a;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(59, 120, 197, 0.12);
  --shadow-soft: 0 14px 35px rgba(59, 120, 197, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 220, 255, 0.35), transparent 26%),
    radial-gradient(circle at 100% 12%, rgba(29, 143, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 55%, #eef7ff 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(85, 199, 255, 0.03), transparent 45%),
    linear-gradient(315deg, rgba(29, 143, 255, 0.03), transparent 45%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 95, 169, 0.08);
}
.admin-topbar { position: static; }
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(29, 95, 169, 0.08);
  flex: 0 0 auto;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-face { display: none; }
.brand-title { display: grid; gap: 3px; }
.brand-title strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-title span {
  color: var(--muted);
  font-size: 0.82rem;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a, .admin-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: .18s ease;
}
.nav-links a:hover, .admin-switch:hover {
  background: rgba(29, 143, 255, 0.08);
  border-color: rgba(29, 143, 255, 0.12);
  color: var(--deep);
}
.admin-switch {
  background: linear-gradient(135deg, rgba(85, 199, 255, 0.12), rgba(29, 143, 255, 0.12));
  border-color: rgba(29, 143, 255, 0.12);
}
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--deep);
  box-shadow: var(--shadow-soft);
}

.hero { padding: 72px 0 54px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 34px;
}
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(85, 199, 255, 0.1);
  border: 1px solid rgba(85, 199, 255, 0.16);
  font-weight: 700;
  font-size: .86rem;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 0 0 6px rgba(85, 199, 255, .12);
}
h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
  margin-bottom: 20px;
}
.grad-text {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p, .lead, .section-head p, .about-card p, .card p, .contact-box p, details p {
  color: var(--muted);
  line-height: 1.75;
}
.hero p { max-width: 660px; margin-bottom: 28px; font-size: 1.03rem; }
.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 16px 34px rgba(85, 199, 255, .22);
}
.btn-ghost {
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
}
.soft-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9));
  border: 1px solid rgba(29, 95, 169, 0.08);
  box-shadow: var(--shadow);
}
.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(29, 95, 169, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card:hover {
  border-color: rgba(29, 143, 255, 0.18);
  box-shadow: 0 24px 46px rgba(59, 120, 197, 0.14);
}
.hero-visual {
  padding: 28px;
  border-radius: 34px;
}
.hero-logo {
  width: min(100%, 360px);
  display: block;
  margin: 0 auto 22px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(238,247,255,.95));
  border: 1px solid rgba(29, 95, 169, 0.08);
}
.stat-card strong {
  display: block;
  color: var(--deep);
  font-size: 1rem;
  margin-bottom: 4px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

section { padding: 52px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-head h2, .about-card h2, .contact-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin-top: 8px;
}
.mini-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(85, 199, 255, 0.1);
  border: 1px solid rgba(85, 199, 255, 0.16);
  color: var(--deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(123, 220, 255, 0.18), rgba(29, 143, 255, 0.08));
  border: 1px solid rgba(29, 143, 255, 0.12);
  margin-bottom: 16px;
  color: var(--deep);
}
.icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(29, 143, 255, 0.08);
  color: var(--deep);
  border: 1px solid rgba(29, 143, 255, 0.12);
  font-size: .78rem;
  font-weight: 800;
}
.card h3 { margin: 10px 0 8px; font-size: 1.08rem; color: var(--text); }
.media-thumb {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(123, 220, 255, 0.14), rgba(29, 143, 255, 0.08));
  color: var(--deep);
  font-weight: 800;
  letter-spacing: .04em;
}
.media-thumb img { width: 100%; height: 215px; object-fit: cover; display: block; }
.price {
  margin: 12px 0;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--deep);
  font-weight: 900;
  letter-spacing: -.04em;
}
.features {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .92rem;
}
.features li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}
.card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.small-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--deep);
  font-weight: 700;
  font-size: .86rem;
}
.danger {
  color: #b12a44;
  background: rgba(239, 95, 122, 0.08);
  border-color: rgba(239, 95, 122, 0.18);
}
.warning {
  color: #9d6b00;
  background: rgba(246, 179, 28, 0.1);
  border-color: rgba(246, 179, 28, 0.18);
}
.success {
  color: #10714e;
  background: rgba(20, 184, 110, 0.08);
  border-color: rgba(20, 184, 110, 0.18);
}
.about-box {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 18px;
}
.about-card { padding: 28px; border-radius: 30px; }
.about-points { display: grid; gap: 16px; }
.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
}

details.card { padding: 0; }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  font-weight: 800;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.35rem;
}
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; }

footer {
  padding: 28px 0 36px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .92rem;
}
.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #27d770, #1cb85f);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 20px 35px rgba(39, 215, 112, .25);
}

/* Admin */
.admin-page { background: linear-gradient(180deg, #fbfdff 0%, #f2f9ff 100%); }
.visible-admin { display: block; padding: 36px 0 60px; }
.login-card {
  max-width: 540px;
  margin: 28px auto 0;
  padding: 28px;
  border-radius: 28px;
}
.login-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.login-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.login-card h1 { font-size: 2rem; line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; }
.login-card p { color: var(--muted); line-height: 1.65; }
.admin-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  align-items: start;
}
.admin-sidebar, .admin-panel {
  padding: 18px;
  border-radius: 28px;
}
.admin-sidebar { position: sticky; top: 18px; }
.admin-title { margin-bottom: 16px; }
.admin-title h1 { font-size: 1.4rem; line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; }
.admin-title p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.admin-tabs { display: grid; gap: 8px; }
.admin-tab {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}
.admin-tab:hover, .admin-tab.active {
  background: rgba(29, 143, 255, 0.08);
  border-color: rgba(29, 143, 255, 0.12);
  color: var(--deep);
}
.admin-panel h2 {
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.full { grid-column: 1 / -1; }
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(29, 143, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(85, 199, 255, 0.12);
}
textarea { min-height: 100px; resize: vertical; }
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid rgba(29, 95, 169, 0.08);
  border-radius: 22px;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid rgba(29, 95, 169, 0.08);
  vertical-align: top;
}
th {
  color: var(--deep);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(85, 199, 255, 0.08);
}
td { color: var(--muted); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.json-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.notice {
  margin-top: 14px;
  border: 1px solid rgba(29, 143, 255, 0.12);
  background: rgba(85, 199, 255, 0.08);
  color: var(--deep);
  border-radius: 18px;
  padding: 13px 14px;
  line-height: 1.6;
  font-size: .9rem;
}
.status-line { display: none !important; }
.dot { display: none !important; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  background: #fff;
  border: 1px solid rgba(29, 95, 169, 0.12);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  color: var(--deep);
  font-weight: 800;
  transition: .2s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .hero-grid, .about-box, .contact-box, .admin-shell { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { position: static; }
}
@media (max-width: 740px) {
  .container { width: min(100% - 22px, var(--max)); }
  .nav { height: 70px; }
  .brand-title span { display: none; }
  .mobile-menu-btn { display: grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: 78px;
    left: 11px;
    right: 11px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(29, 95, 169, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .admin-switch { width: 100%; justify-content: flex-start; }
  .hero { padding-top: 44px; }
  .mini-stats, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .float-wa { width: 54px; height: 54px; border-radius: 18px; }
}


/* Image preview / lightbox */
.media-thumb {
  position: relative;
}

button.media-thumb {
  width: 100%;
  border: 0;
  cursor: zoom-in;
  font: inherit;
}

.media-thumb.has-image::after {
  content: "Lihat full";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 49, 83, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: .18s ease;
}

.media-thumb.has-image:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 22px;
}

.image-lightbox.open {
  display: grid;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 35, 66, 0.72);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(29, 95, 169, 0.12);
  box-shadow: 0 30px 80px rgba(24, 49, 83, 0.25);
}

.lightbox-dialog img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background: #f2f9ff;
}

.lightbox-caption {
  color: var(--text);
  font-weight: 800;
  text-align: center;
  padding: 2px 48px 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 95, 169, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

body.lightbox-lock {
  overflow: hidden;
}


.page-hero {
  padding-bottom: 28px;
}

.page-hero .lead {
  max-width: 760px;
  margin-top: 12px;
  font-size: 1.04rem;
}
