/* ============================================================
   LIGHT THEME — Bootstrap 5 Custom
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-muted: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* === HEADER === */
header {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100% !important;
  box-sizing: border-box !important;
}

header > div:first-child {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 10px !important;
}

header .logo {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
  flex: 1 1 auto !important;
}

header > div:nth-child(2) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.credit-badge {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: 1px solid #bfdbfe !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
}

.topup-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.topup-btn:hover { background: var(--primary-hover) !important; }

.activate-btn {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer;
}
.activate-btn:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

/* === GRID FITUR === */
.feature-grid-wrapper {
  display: block !important;
  width: 100% !important;
  padding: 20px 0 12px !important;
  margin: 0 !important;
}

.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 0 16px !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.feature-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 18px 10px !important;
  min-height: 110px !important;
  background: #fff !important;
  border: 2px solid var(--border) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  font-family: inherit !important;
}

.feature-card:hover {
  border-color: var(--primary) !important;
  background: #f8faff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12) !important;
}

.feature-card.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
}

.feature-card .feature-icon {
  font-size: 32px !important;
  line-height: 1 !important;
}

.feature-card .feature-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.feature-card.active .feature-label {
  color: #fff !important;
}

/* === TAB CONTENT === */
.tab-content { display: none !important; }
.tab-content.active { display: block !important; }

.container {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 20px 16px !important;
}

/* Hero */
.hero { text-align: center; margin-bottom: 24px; }
.hero h1 {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin: 0 0 8px !important;
}
.hero p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  margin: 0 !important;
}

/* Cards */
.card, .workspace .card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  color: var(--text) !important;
}

.card-title {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--text) !important;
  margin-bottom: 12px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form inputs */
input, textarea, select {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

input::placeholder, textarea::placeholder {
  color: #9ca3af !important;
}

/* Tombol Primary */
button.primary, .primary {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 11px 20px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

button.primary:hover, .primary:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

button.secondary, .secondary {
  background: var(--bg-muted) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
}

button.secondary:hover {
  background: #e5e7eb !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.upload-btn {
  background: #fff !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

.upload-btn:hover {
  background: var(--primary-light) !important;
}

/* Status */
.status {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  display: none;
}

.status.error {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
  display: block !important;
}

.status.success {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
  display: block !important;
}

.status.info {
  background: #dbeafe !important;
  color: #1e40af !important;
  border: 1px solid #93c5fd !important;
  display: block !important;
}

/* Progress */
.progress-container {
  display: none;
  margin-top: 16px;
}
.progress-container.active { display: block; }

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar-bg {
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Output */
.output {
  background: var(--bg-soft) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.stats {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Tombol WA */
a[href*="wa.me/6285337548960"] {
  background: #25D366 !important;
  color: #fff !important;
  padding: 12px 22px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
}

/* Tombol Blog/FAQ/Cara Kerja */
div[style*="display:grid;grid-template-columns:repeat(3"] a {
  background: #fff !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  padding: 12px 6px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  text-align: center !important;
}

div[style*="display:grid;grid-template-columns:repeat(3"] a:hover {
  background: var(--primary-light) !important;
}

/* Copyright */
#copyright-maswadi {
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border) !important;
  text-align: center !important;
  padding: 20px !important;
  font-size: 12px !important;
  background: transparent !important;
}

/* Blog/FAQ/PP: modal & list */
.modal, #loginModal > div, #topupModal > div, #activateModal > div {
  background: #fff !important;
  color: var(--text) !important;
  border-radius: 16px !important;
}

/* Markdown bold */
strong, b { color: var(--text); font-weight: 700; }

/* Link */
a:not([href*="wa.me"]) { color: var(--primary); }
a:not([href*="wa.me"]):hover { color: var(--primary-hover); }

/* HR */
hr { border-color: var(--border); }

/* Tabel */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
th {
  background: var(--bg-muted);
  color: var(--text);
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }

/* Mobile */
@media (max-width: 600px) {
  header .logo { font-size: 14px !important; }
  .hero h1 { font-size: 24px !important; }
  .feature-card { min-height: 100px !important; padding: 14px 8px !important; }
  .feature-card .feature-icon { font-size: 28px !important; }
  .feature-card .feature-label { font-size: 12px !important; }
}

/* Detector & Plagiarism result */
#detectorResult, #plagResult, #refResults {
  background: #fff !important;
  color: var(--text) !important;
  border: 2px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 20px !important;
}

/* Chat */
.chat-wrapper {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  overflow: hidden;
}
.chat-header {
  background: var(--bg-soft) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 18px !important;
}
.chat-messages {
  background: #fff !important;
  padding: 20px !important;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
}
.msg.assistant .bubble {
  background: var(--bg-soft) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  padding: 10px 14px;
  border-radius: 12px;
}
.msg.user .bubble {
  background: var(--primary-light) !important;
  color: var(--primary-hover) !important;
  border: 1px solid #bfdbfe !important;
  padding: 10px 14px;
  border-radius: 12px;
}
.chat-input-bar {
  background: var(--bg-soft) !important;
  border-top: 1px solid var(--border) !important;
  padding: 12px 16px !important;
}
.send-btn {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ============================================================
   ULTIMATE GRID — Final Override (paling akhir)
   ============================================================ */
html body div.feature-grid-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px 0 12px !important;
  margin: 0 !important;
}

html body div.feature-grid-wrapper > div.feature-grid,
html body div#featureGrid.feature-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  gap: 12px !important;
  padding: 0 16px !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 720px !important;
  box-sizing: border-box !important;
}

html body div#featureGrid > button.feature-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-column: auto !important;
  grid-row: auto !important;
  grid-area: auto !important;
  place-self: auto !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 18px 10px !important;
  min-height: 110px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

html body div#featureGrid > button.feature-card:hover {
  border-color: #2563eb !important;
  background: #f8faff !important;
  transform: translateY(-2px) !important;
}

html body div#featureGrid > button.feature-card.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

html body div#featureGrid > button.feature-card.active .feature-label {
  color: #fff !important;
  font-weight: 700 !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding: 48px 20px 32px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.hero-container {
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #bfdbfe;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #2563eb !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-hero-secondary:hover {
  border-color: #2563eb;
  background: #f0f7ff;
}

.hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}
.hero-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  background: #ffffff;
  padding: 28px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.trust-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  text-align: center;
  padding: 12px 6px;
  border-radius: 12px;
  transition: all 0.2s;
}
.trust-item:hover {
  background: #f8faff;
}

.trust-icon {
  font-size: 26px;
  margin-bottom: 6px;
  line-height: 1;
}

.trust-number {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.trust-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 700px) {
  .hero-section {
    padding: 32px 16px 24px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 12px 20px;
    font-size: 14px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 140px;
  }
  .trust-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .trust-number {
    font-size: 20px;
  }
  .trust-label {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 24px;
  }
  .hero-trust-line {
    gap: 12px;
    font-size: 12px;
  }
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-section {
  background: #ffffff;
  padding: 48px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.why-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

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

.why-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 18px;
  transition: all 0.25s;
}

.why-card:hover {
  background: #ffffff;
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.why-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.why-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-section {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding: 48px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.how-container {
  max-width: 900px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.how-step {
  flex: 1 1 220px;
  max-width: 260px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  transition: all 0.25s;
}

.how-step:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.how-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.how-step p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.how-arrow {
  font-size: 24px;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 800px) {
  .why-section,
  .how-section {
    padding: 36px 16px;
  }
  .section-title {
    font-size: 26px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .why-card {
    padding: 18px 14px;
  }
  .why-icon {
    font-size: 28px;
  }
  .why-card h3 {
    font-size: 15px;
  }
  .why-card p {
    font-size: 12px;
  }
  .how-steps {
    flex-direction: column;
    gap: 12px;
  }
  .how-arrow {
    transform: rotate(90deg);
    margin: -4px 0;
  }
  .how-step {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 22px;
  }
}

/* ============================================================
   FAQ HOMEPAGE
   ============================================================ */
.faq-home {
  background: #ffffff;
  padding: 48px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.faq-home-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-home-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-home-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-home-item:hover {
  border-color: #2563eb;
}

.faq-home-item[open] {
  background: #ffffff;
  border-color: #2563eb;
}

.faq-home-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-home-item summary::-webkit-details-marker { display: none; }

.faq-home-item summary::after {
  content: "+";
  color: #2563eb;
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-home-item[open] summary::after {
  content: "−";
}

.faq-home-item[open] summary {
  border-bottom: 1px solid #e5e7eb;
}

.faq-home-answer {
  padding: 16px 20px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.faq-home-answer a {
  color: #2563eb;
  font-weight: 600;
}

.faq-home-cta {
  text-align: center;
  margin-top: 24px;
}

.faq-home-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border: 2px solid #2563eb;
  border-radius: 10px;
  transition: all 0.2s;
}

.faq-home-cta a:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ============================================================
   FOOTER MULTI-KOLOM
   ============================================================ */
.footer-main {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 20px 0;
  border-top: 1px solid #1e293b;
  margin-top: 0;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand .footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-col ul a:hover {
  color: #60a5fa !important;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #64748b;
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 800px) {
  .faq-home {
    padding: 36px 16px;
  }
  .faq-home-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }
  .faq-home-answer {
    padding: 14px 16px;
    font-size: 13px;
  }
  .footer-main {
    padding: 32px 16px 0;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .footer-col ul a {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   CHAT-CLEAN-FIX — Preview kecil + textarea selalu visible
   ============================================================ */
.chat-input-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  background: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.chat-input-row {
  display: flex !important;
  gap: 8px !important;
  align-items: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#chatImagePreview {
  display: none;
  padding: 6px 10px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#chatImagePreview.active {
  display: flex !important;
}

#chatImageThumb {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid #d1d5db !important;
  flex-shrink: 0 !important;
  display: block !important;
}

#chatImageInfo {
  flex: 1 !important;
  min-width: 0 !important;
  font-size: 12px !important;
  color: #6b7280 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.chat-image-clear {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#chatUploadBtn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  cursor: pointer !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}
#chatUploadBtn:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

#chatImageInput {
  display: none !important;
}

#chatInput {
  flex: 1 !important;
  min-width: 0 !important;
  min-height: 42px !important;
  max-height: 120px !important;
  padding: 10px 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  resize: none !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}
#chatInput:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

#sendBtn {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  height: 42px !important;
  white-space: nowrap !important;
}
#sendBtn:hover {
  background: #1d4ed8 !important;
}

@media (max-width: 500px) {
  .chat-input-bar {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  #chatUploadBtn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 16px !important;
  }
  #chatInput {
    min-height: 38px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }
  #sendBtn {
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
  #chatImageThumb {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }
}


/* ============================================================
   CHAT-MARKDOWN-STYLE
   ============================================================ */
.bubble {
  line-height: 1.6;
  word-break: break-word;
  font-size: 14px;
}
.bubble strong {
  color: #111827;
  font-weight: 700;
}
.bubble em {
  font-style: italic;
  color: #374151;
}
.bubble code {
  background: #f3f4f6;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}
.bubble h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 12px 0 8px;
  line-height: 1.3;
}
.bubble .chat-li {
  margin: 4px 0;
  padding-left: 4px;
}
.msg.user .bubble strong,
.msg.user .bubble em {
  color: #1e40af;
}
