:root {
  --primary: #1E51A0;
  --primary-hover: #2660BD;
  --primary-dark: #12336B;
  --accent: #F5A623;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text: #333333;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --danger: #DC2626;
  --success: #16A34A;
  --warning: #F59E0B;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 15px;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 14px;
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,137,123,.12);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }
.qris-box { display: flex; justify-content: center; margin: 16px 0; }
.qris-box img { max-width: 220px; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; background: #fff; }
.payment-countdown {
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0;
  font-size: 14px; text-align: center;
}
.payment-countdown-time { font-variant-numeric: tabular-nums; font-size: 16px; }
.payment-countdown.expired { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.content-page-body { font-size: 15px; line-height: 1.8; color: var(--text); margin-top: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* HEADER */
.site-header {
  background: #1A4991; border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: #fff; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.logo-mark-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { color: #fff; }
.logo-text-1 { color: #fff; font-weight: 800; }
.logo-text-2 { color: var(--accent); font-weight: 800; }
.nav-desktop { display: flex; gap: 24px; margin-left: auto; }
.nav-desktop a { color: rgba(255,255,255,.9); font-weight: 500; font-size: 14px; }
.nav-desktop a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.header-actions .btn-outline:hover { background: #fff; color: #1A4991; }
.btn-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.btn-icon:hover { background: rgba(255,255,255,.15); }
.badge-dot {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff; font-size: 10px;
  padding: 1px 5px; border-radius: 10px; font-weight: 700;
}
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 4px; padding: 8px; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.15); background: #1A4991; }
.mobile-menu a { padding: 10px 0; color: rgba(255,255,255,.9); font-weight: 500; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; border: 1px solid transparent;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-accent { background: var(--accent); color: #333; }
.btn-accent:hover { background: #ffb300; color: #333; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0F0FE 100%);
  padding: 64px 0 56px;
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 42px; line-height: 1.2; margin-bottom: 16px; color: #101B34; }
.hero-content > p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.search-bar { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37,99,235,.14); }
.search-bar input { border: none; padding: 12px 8px 12px 16px; font-size: 15px; background: transparent; }
.search-bar input:focus { box-shadow: none; }
.search-bar-btn {
  width: 46px; height: 46px; padding: 0 !important; flex-shrink: 0;
  border-radius: 50%; display: grid; place-items: center;
  background: #2563EB; border-color: #2563EB;
}
.search-bar-btn:hover { background: #1D4ED8; }
.search-bar-btn .icon-search { width: 18px; height: 18px; }

/* HERO BADGES (Aman & Terpercaya / Harga Transparan / Dukungan 24/7) */
.hero-badges { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #fff; padding: 6px 12px 6px 6px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow);
}
.hero-badge-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(37,99,235,.12);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-badge-icon span[class^="icon-"] { width: 12px; height: 12px; }

.hero-image { position: relative; }
.hero-illustration {
  position: relative; height: 340px;
  background: #fff;
  border-radius: 24px; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 20px 45px rgba(37,99,235,.16);
  border: 1px solid rgba(37,99,235,.1);
}
.hero-illustration-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.hero-illustration-img.active { opacity: 1; z-index: 1; }
.hero-illustration-empty {
  background: linear-gradient(160deg, #DBEAFE 0%, #EDE9FE 100%);
}
.hero-illustration-placeholder { width: 64px; height: 64px; opacity: .4; }
.hero-slide-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.hero-slide-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); transition: all .3s; }
.hero-slide-dot.active { background: #fff; width: 18px; border-radius: 4px; }

.hero-float {
  position: absolute; width: 48px; height: 48px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  animation: heroFloat 4s ease-in-out infinite;
}
.hero-float span { width: 20px; height: 20px; }
.hero-float-1 { top: -14px; right: 40px; animation-delay: 0s; }
.hero-float-2 { bottom: 30px; left: -16px; animation-delay: .6s; }
.hero-float-3 { top: 50%; right: -14px; animation-delay: 1.2s; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 767px) { .hero-float { display: none; } }

/* Logged-in users on mobile: skip the marketing headline/badges, go straight to search */
@media (max-width: 767px) {
  .hero-loggedin .hero-content h1,
  .hero-loggedin .hero-content > p,
  .hero-loggedin .hero-badges { display: none; }
}

/* SECTIONS */
.section { padding: 48px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; }
.link-more { font-weight: 600; font-size: 14px; }

/* CATEGORY GRID */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.category-card {
  border-radius: 16px;
  padding: 16px 10px; text-align: center; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.category-card:hover { background: var(--bg); transform: translateY(-3px); }
.category-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; overflow: hidden;
}
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-icon span { font-size: 24px; }
.category-name { font-weight: 600; font-size: 13px; color: var(--text); }
.category-count { font-size: 11px; color: var(--text-muted); }

/* SERVICE GRID */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.service-card {
  background: #fff; border-radius: 18px;
  overflow: hidden; transition: all .2s; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-thumb { aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .service-thumb img { transform: scale(1.05); }
.service-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-muted); font-size: 40px; }
.service-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.service-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.service-provider { font-size: 12px; color: var(--text-muted); }
.service-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.service-price { font-weight: 700; color: #2563EB; font-size: 15px; }
.service-rating { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }

/* FEATURES */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 32px; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 24px 18px;
  text-align: center; border: 1px solid var(--border);
}
.feature-card span { font-size: 32px; color: var(--primary); display: block; margin-bottom: 12px; }
.feature-card h4 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); }

/* CTA */
.cta-section { background: #1A4991; color: #fff; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; }
.cta-box h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,.85); }

/* AUTH */
.auth-section { padding: 60px 20px; background: var(--bg); min-height: calc(100vh - 68px); }
.auth-card {
  max-width: 420px; margin: 0 auto; background: #fff;
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.auth-card-wide { max-width: 560px; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted); }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-group label .req { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.form-card h3 { margin-bottom: 16px; font-size: 18px; }
.settings-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.settings-section-head h3 { margin-bottom: 0; }
.hero-banner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.hero-banner-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.hero-banner-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.hero-banner-item form { padding: 8px; }
.hero-banner-item .btn { width: 100%; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-slider { position: absolute; inset: 0; background: #D1D5DB; border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:focus + .switch-slider { box-shadow: 0 0 0 3px rgba(0,137,123,.2); }

/* ALERTS */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px auto; max-width: 1200px; font-size: 14px; font-weight: 500; }
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.main-content > .container > .alert { margin: 16px 0; }

/* BADGES */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.badge-primary { background: #CCFBF1; color: #115E59; }
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-orange { background: #FFEDD5; color: #9A3412; }
.badge-secondary { background: #F3F4F6; color: #374151; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 12px; font-weight: 600; }

/* SERVICE DETAIL */
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }
.service-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.service-detail-main h1 { font-size: 28px; margin-bottom: 12px; }
.service-detail-meta { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.provider-mini { display: flex; align-items: center; gap: 10px; }
.avatar-mini { width: 44px; height: 44px; min-width: 44px; flex-shrink: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; overflow: hidden; color: var(--primary); }
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.provider-name { font-weight: 600; display: block; }
.service-rating-big { font-weight: 700; }
.service-gallery { margin-bottom: 24px; }
.gallery-main { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.gallery-main.placeholder { display: grid; place-items: center; background: var(--bg); font-size: 60px; color: var(--text-muted); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb:hover { border-color: var(--primary); }
.service-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 12px 16px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.service-description { line-height: 1.6; word-wrap: break-word; }
.service-description p { margin: 0 0 8px; }
.service-description h3, .service-description h4 { margin: 14px 0 6px; line-height: 1.4; }
.service-description ul, .service-description ol { margin: 4px 0 12px; padding-left: 22px; }
.service-description li { margin: 0 0 2px; padding: 0; }
.service-description li:last-child { margin-bottom: 0; }
.service-description ul { list-style: disc; }
.service-description ol { list-style: decimal; }
.service-description > :first-child { margin-top: 0; }
.service-description > :last-child { margin-bottom: 0; }
.service-detail-sidebar { position: sticky; top: 88px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.package-tabs { display: flex; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 16px; }
.pkg-btn { flex: 1; border: none; background: none; padding: 8px; font-weight: 600; border-radius: 6px; color: var(--text-muted); font-size: 13px; }
.pkg-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.pkg-panel { display: none; }
.pkg-panel.active { display: block; }
.pkg-price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.pkg-features { list-style: none; margin-bottom: 20px; }
.pkg-features li { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.pkg-features span { color: var(--primary); }

/* REVIEW */
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-stars { display: inline-flex; gap: 2px; }

/* ORDER */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.order-sidebar, .order-detail-sidebar { position: sticky; top: 88px; }
.summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.summary-card h3 { margin-bottom: 16px; font-size: 17px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px; color: var(--primary); }
.package-selector { display: grid; gap: 10px; }
.pkg-option { display: block; cursor: pointer; }
.pkg-option input { display: none; }
.pkg-option-body {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 16px;
  transition: all .2s;
}
.pkg-option input:checked + .pkg-option-body { border-color: var(--primary); background: #E0F2F1; }
.pkg-option-body strong {
  font-size: 15px; font-weight: 700; color: var(--text);
  padding-right: 16px; border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.pkg-option-details { display: flex; flex-direction: column; gap: 2px; }
.pkg-option-body span { color: var(--primary); font-weight: 700; font-size: 15px; }
.pkg-option-body small { color: var(--text-muted); font-size: 12px; }

.paytype-selector { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .paytype-selector { grid-template-columns: 1fr; } }
.paytype-option { display: block; cursor: pointer; }
.paytype-option input { display: none; }
.paytype-option-body {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; height: 100%;
  display: flex; flex-direction: column; gap: 4px;
  transition: all .2s;
}
.paytype-option input:checked + .paytype-option-body { border-color: var(--primary); background: #E0F2F1; }
.paytype-option-body strong { font-size: 15px; color: var(--text); }

.payment-methods { display: grid; gap: 10px; }
.payment-option { display: block; cursor: pointer; }
.payment-option input { display: none; }
.payment-option-body { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px; transition: all .2s; }
.payment-option input:checked + .payment-option-body { border-color: var(--primary); background: #E0F2F1; }
.payment-option-body strong { display: block; }
.payment-option-body small { color: var(--text-muted); font-size: 12px; }

/* ORDER LIST */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-list-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: var(--text); transition: all .2s;
}
.order-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.order-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 20px; }
.file-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.file-type { background: var(--bg); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-right: 8px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px;
}
.stat-card > span { font-size: 28px; color: var(--primary); }
.stat-card strong { display: block; font-size: 20px; }
.stat-card small { color: var(--text-muted); font-size: 12px; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* PROFILE */
.profile-avatar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar-lg { width: 80px; height: 80px; min-width: 80px; flex-shrink: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; overflow: hidden; color: var(--primary); font-size: 32px; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.provider-header { display: flex; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }

/* SERVICE MANAGE */
.service-manage-list { display: flex; flex-direction: column; gap: 12px; }
.service-manage-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 16px; align-items: center; }
.service-manage-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--text-muted); flex-shrink: 0; }
.service-manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-manage-body { flex: 1; }
.service-manage-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* TABLE */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.footer-edit-form { min-width: 320px; max-width: 460px; margin-top: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--bg); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #FAFAFA; }
.filter-inline select { width: auto; padding: 6px 12px; }
.form-inline-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.form-inline-edit input, .form-inline-edit select { width: auto; padding: 6px 10px; font-size: 13px; }

/* SUCCESS */
.success-icon { font-size: 72px; color: var(--success); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state span { font-size: 56px; display: block; margin-bottom: 12px; }

/* RICH TEXT TOOLBAR */
.rte-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--bg); }
.rte-toolbar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.rte-btn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.rte-btn:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.form-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }

/* FOOTER */
.site-footer {
  background: #1A4991;
  padding: 40px 0 0;
  margin-top: 60px;
  color: #fff;
}
.footer-card {
  padding: 0 0 24px;
}
.footer-card-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .logo-text { color: #fff; font-size: 22px; }
.footer-brand .logo-text-1 { color: #fff; }
.footer-brand .logo-text-2 { color: var(--accent); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.85); margin: 12px 0 18px; line-height: 1.6; }
.footer-search { display: flex; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 5px; border-radius: 999px; max-width: 300px; }
.footer-search input { background: transparent; border: none; color: #fff; padding: 8px 6px 8px 12px; font-size: 13px; }
.footer-search input::placeholder { color: rgba(255,255,255,.7); }
.footer-search input:focus { box-shadow: none; }
.footer-search button {
  width: 34px; height: 34px; flex-shrink: 0; border: none; border-radius: 50%;
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.footer-search button .icon-search {
  width: 15px; height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300695C' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-list { list-style: none; }
.footer-item-plain { margin-bottom: 10px; padding-left: 14px; position: relative; }
.footer-item-plain::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6); }
.footer-item-plain a { color: rgba(255,255,255,.85); font-size: 14px; }
.footer-item-plain a:hover { color: #fff; }
.footer-item-icon { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-item-icon-circle { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.footer-item-icon-circle svg { width: 18px; height: 18px; }
.footer-item-icon a { color: #fff; font-size: 14px; font-weight: 500; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 28px; padding-top: 18px; text-align: center; font-size: 13px; color: rgba(255,255,255,.75); }

/* BOTTOM NAV (Mobile) */
.bottom-nav { display: none; }
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.error-page h1 { font-size: 80px; color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .service-detail-layout, .order-layout, .order-detail-layout { grid-template-columns: 1fr; }
  .service-detail-sidebar, .order-sidebar, .order-detail-sidebar { position: static; }
  .hero-content h1 { font-size: 32px; }
  .footer-card-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.active { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero { padding: 28px 0 24px; }
  .hero-loggedin { padding: 18px 0 20px; }
  .hero-illustration { height: 220px; }
  .hero-content h1 { font-size: 26px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .category-icon { width: 44px; height: 44px; }
  .category-icon span { font-size: 18px; }
  .category-name { font-size: 11.5px; }
  .category-count { font-size: 10px; }
  .search-bar { padding: 4px; }
  .search-bar input { padding: 10px 6px 10px 14px; font-size: 14px; }
  .search-bar-btn { width: 40px; height: 40px; }
  .search-bar-btn .icon-search { width: 16px; height: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { flex-direction: column; text-align: center; }
  .footer-card { padding: 0 0 18px; }
  .footer-card-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 32px 0; }
  .header-actions .btn { display: none; }
  .header-actions .btn-icon { display: none; }
  .service-manage-item { flex-wrap: wrap; }

  /* "Jasa Pilihan" on homepage: 4 cards per row, kept to 2 rows via the 8-item query limit */
  .service-grid-home { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .service-grid-home .service-thumb-placeholder { font-size: 20px; }
  .service-grid-home .service-body { padding: 8px 6px; gap: 3px; }
  .service-grid-home .service-title { font-size: 11px; min-height: 28px; line-height: 1.3; }
  .service-grid-home .service-provider { display: none; }
  .service-grid-home .service-meta { padding-top: 5px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .service-grid-home .service-price { font-size: 11px; }
  .service-grid-home .service-rating { font-size: 9px; }

  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    z-index: 99; box-shadow: 0 -2px 10px rgba(0,0,0,.05);
  }
  .bottom-nav-item {
    flex: 1; text-align: center; padding: 8px 4px 10px;
    color: var(--text-muted); font-size: 10px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .bottom-nav-item span:first-child { font-size: 20px; }
  .bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); }

  /* Floating center button (Pesanan) */
  .bottom-nav-item-float { padding-top: 0; position: relative; }
  .bottom-nav-float-circle {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: grid; place-items: center;
    margin: -26px auto 2px;
    box-shadow: 0 0 0 6px rgba(0,137,123,.12), 0 8px 18px rgba(0,137,123,.4);
  }
  .bottom-nav-float-circle .icon-order-white { width: 24px; height: 24px; }
  .bottom-nav-item-float span:last-child { color: var(--primary); font-weight: 600; }

  body { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { gap: 12px; font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
}
/* ============ PAYMENT METHOD ICONS & CARDS (used on the public checkout page) ============ */
.payment-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.payment-card { position: relative; cursor: pointer; display: block; }
.payment-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.payment-card-inner {
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px;
  transition: all .2s ease; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
}
.payment-card-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--pm-color, var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.payment-card:hover .payment-card-inner { border-color: var(--pm-color, var(--primary)); box-shadow: var(--shadow-md); }
.payment-card:hover .payment-card-inner::before { transform: scaleX(1); }
.payment-card input:checked + .payment-card-inner { border-color: var(--pm-color, var(--primary)); background: #F0FDFA; box-shadow: var(--shadow-md); }
.payment-card input:checked + .payment-card-inner::before { transform: scaleX(1); }
.payment-card input:checked + .payment-card-inner .pm-check { background: var(--pm-color, var(--primary)); border-color: var(--pm-color, var(--primary)); }
.payment-card input:checked + .payment-card-inner .pm-check::after { transform: scale(1); }

.pm-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.pm-logo i { display: none; } /* icons are drawn as inline SVG via ::before so no external icon font is required */
.pm-logo::before {
  content: ''; width: 100%; height: 100%; background-repeat: no-repeat;
  background-position: center; background-size: 20px 20px; border-radius: 10px;
}
.pm-logo-midtrans { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.pm-logo-midtrans::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z'/%3E%3C/svg%3E"); }
.pm-logo-pakasir { background: linear-gradient(135deg, #F59E0B, #D97706); }
.pm-logo-pakasir::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M13 2 3 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E"); }
.pm-logo-bank { background: linear-gradient(135deg, #00897B, #00695C); }
.pm-logo-bank::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 2 8v2h20V8zM4 12v8H2v2h20v-2h-2v-8h-2v8h-2v-8h-2v8h-2v-8h-2v8H8v-8H6v8H4z'/%3E%3C/svg%3E"); }
.pm-logo-qris { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.pm-logo-qris::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 3h8v8H3zm2 2v4h4V5zm8-2h8v8h-8zm2 2v4h4V5zM3 13h8v8H3zm2 2v4h4v-4zm8-2h2v2h-2zm4 0h2v2h-2zm-4 4h2v2h-2zm4 0h2v2h-2zm-4 2h2v2h-2zm4 0h2v2h-2z'/%3E%3C/svg%3E"); }
.pm-logo-saldo { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.pm-logo-saldo::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 18v1a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v1h-9a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h9zm-9-2h10V8H12v8zm4-2.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/%3E%3C/svg%3E"); }

.pm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D1D5DB; background: #fff; display: grid; place-items: center; transition: all .2s; flex-shrink: 0; }
.pm-check::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s; }
.pm-title { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.pm-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: block; }

.payment-card[data-method="midtrans"] { --pm-color: #2563EB; }
.payment-card[data-method="pakasir"]  { --pm-color: #F59E0B; }
.payment-card[data-method="bank"]     { --pm-color: #00897B; }
.payment-card[data-method="qris"]     { --pm-color: #7C3AED; }
.payment-card[data-method="saldo"]    { --pm-color: #7C3AED; }
.payment-card.disabled { opacity: .55; cursor: not-allowed; }
.payment-card.disabled .payment-card-inner { pointer-events: none; }

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

/* ============ CARI JASA / SEARCH PAGE ============ */
.search-head { margin-bottom: 20px; }
.search-head h1 { font-size: 24px; margin-bottom: 4px; }

.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }

.filter-sidebar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  position: sticky; top: 84px;
}
.filter-sidebar .form-group:last-of-type { margin-bottom: 0; }
.filter-sidebar .form-row { gap: 12px; }

/* Native <details>/<summary> — collapsed on mobile, forced open on desktop below.
   No form control involved, so there's nothing that can leak through global
   input/select/checkbox styles. */
.filter-details summary.filter-toggle-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--text); user-select: none;
  list-style: none;
}
.filter-details summary.filter-toggle-label::-webkit-details-marker { display: none; }
.filter-details summary.filter-toggle-label::marker { content: ''; }
.filter-toggle-label-text { display: inline-flex; align-items: center; gap: 8px; }
.filter-toggle-label-text span[class^="icon-"] { width: 16px; height: 16px; }
.filter-toggle-caret {
  width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s; margin-top: -3px;
}
.filter-details[open] summary.filter-toggle-label .filter-toggle-caret { transform: rotate(-135deg); margin-top: 3px; }

.filter-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 899px) {
  .search-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .search-results { order: 1; }
  .filter-sidebar { order: 2; }
}

@media (min-width: 900px) {
  .filter-details summary.filter-toggle-label { display: none; }
  .filter-details .filter-form { display: block; margin-top: 0; padding-top: 0; border-top: none; }
}

/* ============ CHAT / PESAN ============ */
.chat-inbox-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.chat-card { display: flex; flex-direction: column; }
.chat-thread-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.chat-back { font-size: 20px; color: var(--text); text-decoration: none; flex-shrink: 0; line-height: 1; }
.chat-thread-head > div { flex: 1; min-width: 0; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; min-height: 280px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: 75%; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px;
}
.chat-bubble-row.mine .chat-bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-bubble-row.mine .chat-bubble-time { color: rgba(255,255,255,.75); }
.chat-bubble-name { display: block; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.chat-bubble p { font-size: 14px; line-height: 1.5; margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-bubble-time { display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.chat-input-row { display: flex; gap: 8px; margin-top: 16px; }
.chat-input-row input { flex: 1; }

@media (max-width: 768px) {
  .chat-thread { max-height: 60vh; }
}
