:root {
  --brand-950: #0c2228;
  --brand-900: #12363d;
  --brand-800: #1d5861;
  --brand-700: #2c7a86;
  --brand-500: #71b8b4;
  --sand-050: #fbf6ee;
  --sand-100: #f3ead8;
  --sand-200: #e6d2aa;
  --ink-900: #16262d;
  --ink-700: #546a72;
  --line-soft: rgba(22, 38, 45, 0.08);
  --shadow-soft: 0 18px 45px rgba(16, 34, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(230, 210, 170, 0.22), transparent 22%),
    radial-gradient(circle at top right, rgba(113, 184, 180, 0.14), transparent 25%),
    linear-gradient(180deg, #f9f5ee 0%, #f4edde 52%, #fbf8f1 100%);
  color: var(--ink-900);
}

.navbar-semar {
  background: rgba(12, 34, 40, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-semar .navbar-brand,
.navbar-semar .nav-link {
  color: #fff !important;
}

.navbar-semar .nav-link {
  opacity: 0.82;
  font-weight: 500;
}

.navbar-semar .nav-link:hover {
  opacity: 1;
}

.btn-brand,
.btn-outline-brand,
.btn-light-pill {
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
}

.btn-brand {
  background: var(--brand-800);
  color: #fff;
  border: none;
}

.btn-brand:hover {
  background: var(--brand-950);
  color: #fff;
}

.btn-outline-brand {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-brand:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.btn-light-pill {
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink-900);
}

.hero-shell,
.support-band,
.form-panel,
.detail-panel,
.admin-card,
.empty-card {
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.hero-shell {
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(12, 34, 40, 0.98), rgba(29, 88, 97, 0.92)),
    var(--brand-900);
  color: #fff9f0;
}

.hero-shell-compact {
  padding: 0.25rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy {
  padding: 2rem;
}

.hero-copy-compact {
  padding: 1.5rem 1.5rem 1.25rem;
}

.hero-copy h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  margin: 0.75rem 0;
}

.hero-copy p,
.muted-on-dark {
  color: rgba(255, 249, 240, 0.82);
}

.hero-copy p {
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero-copy-compact p {
  margin-left: auto;
  margin-right: auto;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.metric-grid-compact {
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  padding: 0.8rem 0.9rem;
}

.metric-card strong {
  display: block;
  font-size: 1.1rem;
}

.hero-side {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 1.5rem;
}

.hero-image-card {
  overflow: hidden;
  border-radius: 1.35rem;
  height: 100%;
  min-height: 420px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 22, 0.15), rgba(8, 18, 22, 0.65));
}

.hero-floating {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(12, 34, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.trust-pill {
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-700);
  max-width: 42rem;
}

.service-card,
.package-card,
.info-card,
.form-panel,
.detail-panel,
.admin-card,
.empty-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
}

.service-card,
.package-card,
.info-card {
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.package-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(16, 34, 40, 0.12);
}

.service-accent {
  height: 8px;
  background: linear-gradient(90deg, var(--brand-700), var(--sand-200));
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 88, 97, 0.12);
  color: var(--brand-800);
  font-weight: 700;
}

.packages-carousel {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.packages-carousel-top {
  margin-bottom: 1.5rem;
}

.packages-carousel .carousel-indicators {
  margin-bottom: 0.9rem;
}

.packages-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
}

.package-spotlight {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-soft);
}

.package-spotlight-media {
  height: 100%;
  min-height: 420px;
}

.package-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-spotlight-body {
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.package-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(29, 88, 97, 0.08);
  color: var(--ink-700);
  font-size: 0.95rem;
}

.package-spotlight-price {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--brand-900);
}

.packages-carousel .carousel-control-prev,
.packages-carousel .carousel-control-next {
  width: 8%;
}

.packages-carousel .carousel-control-prev-icon,
.packages-carousel .carousel-control-next-icon {
  background-color: rgba(12, 34, 40, 0.55);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  background-size: 50% 50%;
}

.package-card img,
.detail-image {
  width: 100%;
  object-fit: cover;
}

.package-card img {
  height: 240px;
}

.detail-image {
  height: 420px;
  border-radius: 1.25rem;
}

.search-panel {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.search-panel .form-control,
.form-panel .form-control,
.form-panel .form-select,
.admin-card .form-control {
  border-radius: 1rem;
  border: 1px solid #d6d5cf;
  padding: 0.85rem 1rem;
}

.price-tag {
  color: var(--brand-900);
  font-weight: 700;
}

.admin-card-compact {
  padding: 0.9rem !important;
}

.admin-table-compact th,
.admin-table-compact td {
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
}

.admin-table-compact th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-700);
}

.admin-table-compact td {
  font-size: 0.94rem;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-sidebar {
  position: sticky;
  top: 5.5rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-sidebar-link {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  font-weight: 600;
}

.admin-sidebar-link:hover {
  color: var(--brand-900);
  background: rgba(29, 88, 97, 0.08);
}

.admin-sidebar-link.is-active {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: #fff;
  border-color: transparent;
}

.admin-dark-outline {
  border-color: rgba(12, 34, 40, 0.18);
  color: var(--ink-900);
  background: #fff;
}

.admin-dark-outline:hover {
  background: rgba(12, 34, 40, 0.08);
  color: var(--ink-900);
}

.package-preview-card {
  max-width: 420px;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.package-preview-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.support-band {
  background:
    linear-gradient(130deg, rgba(12, 34, 40, 0.96), rgba(29, 88, 97, 0.92));
  color: #fff9f0;
  padding: 2rem;
}

.support-band-media {
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.08);
}

.support-band-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-badge-ready,
.status-badge-auth {
  background: rgba(25, 135, 84, 0.14);
  color: #11663f;
}

.status-badge-qr,
.status-badge-starting {
  background: rgba(255, 193, 7, 0.18);
  color: #866300;
}

.status-badge-disconnected,
.status-badge-fail,
.status-badge-none,
.status-badge-no_configurado {
  background: rgba(220, 53, 69, 0.12);
  color: #8b1f2d;
}

.wa-qr-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.wa-qr-card img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-semar {
  background: #10282f;
  color: rgba(255, 249, 240, 0.85);
}

.footer-semar a {
  color: #fff;
  text-decoration: none;
}

.page-shell {
  padding: 2.25rem 0 3rem;
}

.sticky-summary {
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 991.98px) {
  .hero-copy {
    padding: 1.5rem 1.25rem 1rem;
  }

  .hero-copy-compact {
    padding: 1.25rem 1rem 1rem;
  }

  .hero-side {
    padding-top: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .package-spotlight-media {
    min-height: 280px;
  }

  .package-spotlight-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }
}
