/**
 * Biru SaaS — Front Energy Theme (Design System)
 * File: /assets/css/front-energy.css
 * Modern dark-mode palette, Space Grotesk & Inter typography, high-contrast neon accents.
 */

:root {
  --ink: #0a0a0a;
  --surface: #141414;
  --surface2: #1c1c1c;
  --surface3: #242424;
  --line: #2a2a2a;
  --line-light: #383838;
  --text: #f2f2f0;
  --muted: #999999;
  --muted2: #666666;
  --accent: #22d66b;
  --accent-dark: #16a750;
  --accent-soft: #12321f;
  --accent-glow: rgba(34, 214, 107, 0.25);
  --orange: rgb(239, 160, 64);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 84px 0;
}

@media (max-width: 640px) {
  section { padding: 52px 0; }
}

/* ==========================================================================
   NAVBAR & LOGO (with .slash-sela)
   ========================================================================== */

nav.front-nav, nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  color: #ffffff;
}

/* Brand slash separator - .slash-sela */
.slash-sela {
  color: rgba(239, 160, 64, 0); /* Diminta: rgba(239, 160, 64, 0) */
  color: rgb(239, 160, 64);      /* Fallback agar simbol '/' terlihat jelas (#efa040) */
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
  transform: translateY(-0.5px);
  text-shadow: 0 0 10px rgba(239, 160, 64, 0.35);
}

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

.navlinks a:hover {
  color: #ffffff;
}

.navcta {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .navlinks { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #08130c !important;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #3ee27f;
  border-color: #3ee27f;
  color: #08130c !important;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text) !important;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #454545;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-block, .btn-full {
  width: 100%;
}

/* ==========================================================================
   HERO & MOCKUP
   ========================================================================== */

.hero {
  padding: 72px 0 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #1f5c37;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 auto 18px;
  max-width: 820px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 30px;
}

.herobtns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.compat {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: 13.5px;
  margin-bottom: 56px;
}

.compat span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.appmock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.appmock.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .appmock { grid-template-columns: 1fr; max-width: 520px; }
}

.appmock-topbar {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.appmock-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.appside {
  border-right: 1px solid var(--line);
  padding: 16px 0;
}

@media (max-width: 760px) {
  .appside { display: none; }
}

.appside h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
  padding: 0 16px 8px;
}

.appside .item {
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  cursor: default;
}

.appside .item.active {
  background: var(--surface2);
  color: #fff;
  border-left: 2px solid var(--accent);
}

.appmain {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 300px;
}

.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
}

.bubble.bot {
  background: var(--surface2);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}

.bubble.user {
  background: var(--accent);
  color: #08130c;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}

.mockopts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mockopts span {
  border: 1px solid #1f5c37;
  color: var(--accent);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
}

.seq {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.seq.show {
  opacity: 1;
  transform: none;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  background: var(--surface2);
  padding: 12px 15px;
  border-radius: 12px;
  border-bottom-left-radius: 3px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: biru-blink 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes biru-blink {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .appmock { transition: none; opacity: 1; transform: none; }
  .seq { transition: none; opacity: 1; transform: none; }
  .typing { display: none; }
}

/* ==========================================================================
   STAT STRIP & FEATURES
   ========================================================================= */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  background: var(--surface);
}

.statrow {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.statitem b {
  display: block;
  font-family: 'Space Grotesk';
  font-size: 25px;
  color: #fff;
}

.statitem span {
  font-size: 12.5px;
  color: var(--muted);
}

.shead {
  max-width: 600px;
  margin-bottom: 50px;
}

.shead.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.shead h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 14px;
}

.shead p {
  color: var(--muted);
  font-size: 16px;
}

.deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.deep.rev {
  direction: rtl;
}

.deep.rev > * {
  direction: ltr;
}

@media (max-width: 860px) {
  .deep { grid-template-columns: 1fr; }
}

.deep h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.deep p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.flowbox {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  align-self: flex-start;
}

.flowarrow {
  color: var(--accent);
  font-size: 13px;
  padding-left: 16px;
}

.dropzone {
  border: 1.5px dashed #2f6b47;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.dropzone .bar {
  height: 5px;
  background: var(--surface2);
  border-radius: 100px;
  margin: 14px auto 0;
  max-width: 180px;
  overflow: hidden;
}

.dropzone .bar i {
  display: block;
  height: 100%;
  width: 68%;
  background: var(--accent);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .fgrid { grid-template-columns: 1fr; }
}

.fcard {
  background: var(--surface);
  padding: 26px 22px;
}

.ficon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}

.fcard h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff;
}

.fcard p {
  font-size: 13.5px;
  color: var(--muted);
}

.trip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .trip { grid-template-columns: 1fr; }
}

.tcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}

.tcard .tag {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.tcard h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.tcard p {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   PRICING, TESTIMONIAL, FAQ, CTA & FOOTER
   ========================================================================== */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .pgrid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.pcard.pop {
  border-color: var(--accent);
  position: relative;
}

.pop-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--accent);
  color: #08130c;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.pcard h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.pcard .sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.pcard .price {
  font-family: 'Space Grotesk';
  font-size: 32px;
  color: #fff;
  margin-bottom: 22px;
}

.pcard .price span {
  font-size: 14px;
  color: var(--muted);
  font-family: 'Inter';
  font-weight: 400;
}

.plist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}

.plist li {
  font-size: 14px;
  display: flex;
  gap: 9px;
}

.plist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.plist li.off {
  color: #555;
}

.plist li.off::before {
  content: "–";
  color: #3a3a3a;
}

.pcard .btn {
  justify-content: center;
  width: 100%;
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .tgrid { grid-template-columns: 1fr; }
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.quote p {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.quote .who {
  font-size: 13px;
  color: var(--muted);
}

.placeholder-note {
  font-size: 12.5px;
  color: var(--muted2);
  margin-top: 18px;
}

.faqlist {
  max-width: 760px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 640px;
}

.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 28px;
}

.ctabtns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 calc(30px + env(safe-area-inset-bottom, 0px));
}

.fcols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}

@media (max-width: 760px) {
  .fcols { grid-template-columns: 1fr 1fr; }
}

.fcols h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
  margin-bottom: 14px;
}

.fcols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.fcols a:hover {
  color: #fff;
}

.fbottom {
  font-size: 13px;
  color: #555;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ==========================================================================
   AUTHENTICATION & FORMS (login.php & register.php)
   ========================================================================== */

.front-auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 20px;
  background: radial-gradient(circle at 50% 15%, rgba(34, 214, 107, 0.05) 0%, transparent 60%), var(--ink);
}

.front-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.front-auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.front-auth-header .logo {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-flex;
}

.front-auth-header h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.front-auth-header p {
  color: var(--muted);
  font-size: 14px;
}

.front-form-group {
  margin-bottom: 18px;
}

.front-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.front-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.front-input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted2);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}

.front-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s ease;
  outline: none;
}

.front-input:focus {
  border-color: var(--accent);
  background: #1f1f1f;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.front-input.is-valid {
  border-color: var(--accent);
}

.front-input.is-invalid {
  border-color: var(--danger);
}

.front-input::placeholder {
  color: #555555;
}

.front-input-feedback {
  font-size: 12.5px;
  margin-top: 6px;
  display: block;
}

.front-input-feedback.valid, .front-feedback-success {
  color: var(--accent);
}

.front-input-feedback.invalid, .front-feedback-danger {
  color: #f87171;
}

.front-input-feedback.loading {
  color: var(--muted);
}

.front-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.front-alert-danger {
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.front-alert-success {
  background: var(--accent-soft);
  border: 1px solid #1f5c37;
  color: #86efac;
}

.front-alert i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Demo switch box in login */
.front-demo-box {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 22px;
}

.front-demo-box-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.front-demo-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.front-demo-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
}

.front-demo-btn:hover {
  background: #252525;
  border-color: var(--accent);
  color: #ffffff;
}

/* Bonus Credit Card in register */
.front-bonus-box {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.front-bonus-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(239, 160, 64, 0.15);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.front-bonus-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.front-bonus-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   WIDGET DEMO PAGES (widget-card-demo.php & widget-full-demo.php)
   ========================================================================== */

.demo-top-strip {
  background: #0d0d0d;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-top-strip a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.demo-top-strip a:hover {
  color: #3ee27f;
}

.demo-client-site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.demo-client-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-client-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #1f5c37;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}

.code-box-dark {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  position: relative;
}

.copy-btn-dark {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.copy-btn-dark:hover {
  border-color: var(--accent);
  color: #ffffff;
}

.widget-frame-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.widget-frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
}

.widget-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px rgba(34, 214, 107, 0.6);
}

.badge-tag-dark {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ==========================================================================
   ENHANCED MOBILE RESPONSIVE OPTIMIZATIONS (Beranda & Front Pages)
   ========================================================================== */

/* Anti Horizontal Scroll */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  
  section {
    padding: 48px 0;
  }
  
  /* Hero */
  .hero {
    padding: 44px 0 0;
  }
  .hero h1 {
    font-size: clamp(25px, 6.5vw, 36px);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero p.lead {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .eyebrow {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  
  /* Hero Buttons */
  .herobtns {
    gap: 10px;
    margin-bottom: 32px;
  }
  
  /* Compatibility row */
  .compat {
    gap: 12px 18px;
    font-size: 12.5px;
    margin-bottom: 36px;
  }
  
  /* Stats Grid (2 columns on mobile) */
  .statrow {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 14px !important;
    text-align: center;
  }
  .statitem {
    min-width: 0;
  }
  .statitem b {
    font-size: 22px;
  }
  .statitem span {
    font-size: 11.5px;
    line-height: 1.3;
  }
  
  /* Deep Dive Sections */
  .deep {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .deep h3 {
    font-size: 22px;
    line-height: 1.25;
  }
  .deep p {
    font-size: 14.5px;
    line-height: 1.55;
  }
  .visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  .flowbox, .flowarrow, .dropzone {
    max-width: 100% !important;
    font-size: 13px !important;
    word-break: break-word !important;
  }
  
  /* Section Headers */
  .shead {
    margin-bottom: 32px;
  }
  .shead h2 {
    font-size: 24px;
    line-height: 1.2;
  }
  .shead p {
    font-size: 14.5px;
  }
  
  /* Feature Grid */
  .fgrid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    border: none;
    border-radius: 0;
  }
  .fcard {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 18px;
  }
  
  /* Pricing Cards */
  .pgrid {
    grid-template-columns: 1fr !important;
    max-width: 380px !important;
    margin: 0 auto;
    gap: 22px !important;
  }
  .pcard {
    padding: 24px 20px;
  }
  .pcard .price {
    font-size: 28px;
  }
  
  /* Testimonials */
  .tgrid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .quote {
    padding: 20px 18px;
  }
  .quote p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* FAQ */
  .faqlist details {
    padding: 16px 16px;
    font-size: 14px;
  }
  .faqlist summary {
    font-size: 15px;
    line-height: 1.35;
  }
  
  /* CTA Box */
  .cta {
    padding: 36px 18px;
    border-radius: 16px;
  }
  .cta h2 {
    font-size: 22px;
    line-height: 1.25;
  }
  .cta p {
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  /* Navbar */
  .navrow {
    padding: 12px 16px;
  }
  .logo img, .nav-logo-img {
    height: 28px !important;
  }
  .navcta {
    gap: 6px;
  }
  .navcta .btn {
    padding: 7px 12px !important;
    font-size: 12.5px !important;
  }
  
  /* Full Width Stacked Buttons for Mobile */
  .herobtns {
    flex-direction: column;
    width: 100%;
    max-width: 290px;
    margin: 0 auto 28px;
  }
  .herobtns .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .ctabtns {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .ctabtns .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }
  
  /* App Mockup on Mobile */
  .appmock {
    margin: 0 4px;
    border-radius: 10px 10px 0 0;
  }
  .appmain {
    padding: 14px 12px;
  }
  .bubble {
    max-width: 90% !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
  }
  .mockopts {
    gap: 6px;
    flex-wrap: wrap;
  }
  .mockopts span {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  /* Footer Columns */
  .fcols {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 14px !important;
  }
  .fcols > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }
  .fcols h5 {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .fcols a {
    font-size: 13px;
    margin-bottom: 8px;
    padding: 2px 0;
  }
  .fbottom {
    font-size: 12px;
    line-height: 1.45;
  }
}
