:root {
  --primary: #2563EB;
  --secondary: #F1F5F9;
  --accent: #0EA5E9;
  --accent2: #14B8A6;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 12px 24px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, .06);
}

html,
body {
  height: 100%
}

body {
  background: var(--bg-soft);
  color: var(--text);
  font-family: Inter, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: var(--primary)
}

a:hover {
  color: var(--accent)
}

.text-muted {
  color: var(--muted) !important
}

.text-accent {
  color: var(--primary) !important
}

.navbar-glass {
  background: #fff !important;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, .85) !important;
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.navbar {
  transition: box-shadow .3s ease, background-color .3s ease, backdrop-filter .3s ease;
  min-height: 64px;
}

.navbar .container {
  padding: .55rem 1rem;
}

@media (min-width:992px) {
  .navbar .container {
    padding: .75rem 1.25rem;
  }
}

.navbar .navbar-brand {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: Poppins, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.brand-icon {
  color: var(--primary);
}

.navbar .nav-link {
  color: var(--text);
  position: relative;
  padding: .5rem .75rem;
  border-radius: 8px;
  transition: color .3s ease;
}

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

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .2rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
  opacity: .7;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .btn-accent {
  border-radius: 12px;
  padding: .5rem 1rem;
}

@media (max-width:991px) {
  .navbar .navbar-collapse {
    width: 100%;
  }

  .navbar .navbar-nav {
    gap: .25rem;
  }
}

.collapsing {
  transition: height .3s ease;
}

.navbar .nav-link {
  color: var(--text)
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary)
}

.navbar-dark .navbar-brand {
  letter-spacing: .6px;
  color: var(--primary)
}

.btn-accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, filter .2s ease;
}

.btn-accent:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn-outline-accent {
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 12px;
}

.btn-outline-accent:hover {
  background: rgba(37, 99, 235, .08);
  color: var(--primary)
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card .card-title {
  color: var(--text)
}

.card-subtle {
  background: var(--secondary);
  border: 1px solid var(--border)
}

.apt-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease
}

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

.apt-img {
  height: 180px;
  object-fit: cover
}

@media (min-width:992px) {
  .apt-img {
    height: 190px
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text);
  font-size: .78rem;
  white-space: nowrap;
}

.form-control,
.form-select {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  border-radius: 12px;
}

.form-control::placeholder {
  color: #94A3B8
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .20);
  border-color: rgba(37, 99, 235, .70);
}

.section-title {
  letter-spacing: .2px
}

.section-kicker {
  color: var(--muted);
  font-size: .95rem
}

.carousel-item {
  height: clamp(320px, 46vw, 560px)
}

.carousel-item>img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06)
}

.carousel-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 99, 235, .25), rgba(37, 99, 235, .05));
}

.carousel-caption {
  left: 6%;
  right: 6%;
  bottom: 18%;
  text-align: left
}

.carousel-caption h2 {
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 16px 40px rgba(15, 23, 42, .35)
}

.carousel-caption p {
  color: rgba(255, 255, 255, .92)
}

@media (max-width:576px) {
  .carousel-caption {
    bottom: 12%;
    text-align: left
  }

  .carousel-caption h2 {
    font-size: 1.75rem
  }
}

.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
  border-color: var(--border)
}

.modal-title {
  font-weight: 700
}

.table {
  color: var(--text);
  border-color: var(--border)
}

.table thead th {
  background: var(--secondary);
  border-color: var(--border);
  color: var(--text);
}

.table tbody tr {
  border-color: var(--border)
}

.footer {
  background: #1E293B;
  color: #E5E7EB;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer a {
  color: #E5E7EB;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.footer a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.footer-title {
  color: #FFFFFF;
  font-weight: 700;
}

.footer-text {
  color: #CBD5E1;
}

.footer-menu {
  display: grid;
  gap: .5rem;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: #E5E7EB;
  font-size: 20px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.social-icon:hover {
  background: #DBEAFE;
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(241, 245, 249, .15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: #94A3B8;
}

/* Admin sidebar layout */
.admin-layout {
  min-height: 100vh;
}

@media (min-width: 992px) {
  .admin-layout {
    padding-left: 260px;
  }
}

@media (max-width: 991px) {
  .admin-layout {
    padding-left: 0;
  }
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  padding: 1rem;
  background: #F8FAFC;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.brand-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E5EDFF;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.sidebar .menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  transition: background .3s ease, transform .3s ease, color .3s ease;
  position: relative;
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.sidebar .menu a:hover {
  background: #E2E8F0;
  transform: translateX(2px);
}

.sidebar .menu a.active {
  background: #DBEAFE;
  color: var(--primary);
  font-weight: 600;
}

.sidebar .menu a i {
  font-size: 18px;
  color: #475569;
}

.sidebar .menu a:hover i {
  color: #334155;
}

.sidebar .menu a.active i {
  color: var(--primary);
}

.sidebar .menu a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: var(--primary);
  border-radius: 6px;
}

.sidebar .menu a.logout:hover {
  background: #FEE2E2;
  color: #991B1B;
}

.sidebar .menu a.logout:hover i {
  color: #991B1B;
}

.admin-topbar {
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
}

.admin-topbar .brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}

.admin-topbar .actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-icon {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: .4rem .55rem;
}

.btn-icon:hover {
  background: var(--secondary);
}

.saas-card {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.saas-card .saas-icon {
  font-size: 1.4rem;
  padding: .6rem .7rem;
  border-radius: 12px;
  background: #F8FAFC;
}

.saas-card .saas-content {
  flex: 1;
}

.saas-card .saas-label {
  color: var(--muted);
}

.saas-card .saas-value {
  font-weight: 700;
  font-size: 1.75rem;
}

.card:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow);
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: .5rem;
}

.table thead th {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.table-hover tbody tr:hover {
  background: rgba(241, 245, 249, .6);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
}

.status-pending {
  background: #FEF3C7;
  color: #B45309
}

.status-lunas {
  background: #D1FAE5;
  color: #047857
}

.status-selesai {
  background: #DBEAFE;
  color: #1E40AF
}

.status-cancel {
  background: #FEE2E2;
  color: #991B1B
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0)
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-image img {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 460px);
  object-fit: cover;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
}

.trust-section .card {
  border-radius: var(--radius);
}

.stat-value {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--text);
}

.stat-label {
  color: var(--muted);
}

.detail-gallery .thumb-img {
  transition: filter .2s ease, transform .2s ease;
}

.detail-gallery .thumb-img:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.sticky-card {
  position: sticky;
  top: 88px;
}

.durasi-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem .7rem;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.durasi-card input {
  display: none;
}

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

.durasi-card input:checked+.durasi-content {
  color: var(--text);
}

.durasi-card input:checked~.durasi-content {
  border-color: rgba(37, 99, 235, .55);
}

.durasi-content {
  border: 1px dashed rgba(15, 23, 42, .10);
  border-radius: 10px;
  padding: .5rem .6rem;
}

.order-summary {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}