/* ============================================================
   COMPONENTS.CSS — potongan UI yang dipakai di beberapa halaman
   ============================================================ */

.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on); display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--on); }

.section { position: relative; z-index: 1; padding: 70px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }

/* ---- HERO ---- */
.hero { padding: 90px 0 70px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.01em; }
.hero h1 { font-weight: 900; }
/* Blok merah tegas di belakang frasa kunci — satu-satunya momen "brutal" di hero */
.hero h1 .accent {
  background: var(--red); color: #fff; padding: 0 .16em; margin-left: -.04em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  box-shadow: 4px 4px 0 rgba(255,255,255,0.9);
}
.hero .lede { font-size: 15px; max-width: 540px; margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-telemetry {
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim);
  display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap;
}
.hero-telemetry b { color: var(--ink); display: block; font-size: 15px; font-family: var(--f-display); }

/* ---- Device visual card (hero right side) ---- */
.device-card { padding: 26px; position: relative; overflow: hidden; }
.device-card img { width: 100%; border-radius: var(--r-md); display: block; border: 1px solid var(--line); }
.device-card .cap { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); margin-top: 12px; letter-spacing: 0.04em; }

/* ---- Feature grid (Home) ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; }
.feature-card { padding: 22px; }
.feature-card .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; margin: 0; }

/* ---- Spec sheet strip ---- */
.spec-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 5px 5px 0 rgba(236,36,37,0.16); }
.spec-cell { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-cell:last-child { border-right: none; }
.spec-cell .k { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.spec-cell .v { font-family: var(--f-display); font-weight: 800; font-size: 18px; margin-top: 6px; }

/* ---- Auth card ---- */
.auth-shell { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 420px; padding: 34px 30px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { font-size: 13px; color: var(--ink-dim); margin-bottom: 26px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-faint); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-dim); margin-top: 18px; }

/* ---- Badges reused from monitoring ---- */
.badge { font-family: var(--f-mono); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: var(--r-sm); }
.st-good { color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.45); }
.st-warn { color: var(--warn); background: rgba(255,201,60,0.12); border: 1px solid rgba(255,201,60,0.45); }
.st-bad { color: #fff; background: var(--red); border: 1px solid #FF6B6D; box-shadow: 0 0 10px rgba(236,36,37,0.6); }

/* ---- Contributor card ---- */
.contrib-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 22px; }
.contrib-card { padding: 24px; text-align: center; }
.contrib-avatar {
  width: 104px; height: 104px; border-radius: var(--r-md); margin: 0 auto 16px;
  background: linear-gradient(140deg, #FF4B4D, var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 28px; font-weight: 800; color: #fff;
  overflow: hidden; border: 2px solid #fff; box-shadow: 4px 4px 0 var(--red);
}
.contrib-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contrib-card h3 { font-size: 15px; line-height: 1.3; margin: 0; }
.contrib-role { font-family: var(--f-mono); font-size: 10px; color: var(--on); text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 0 10px; }
.contrib-card p { font-size: 12.5px; line-height: 1.5; margin: 0; }
.contrib-affil { font-size: 12px; color: var(--ink-dim); line-height: 1.45; margin: 0 0 10px; }
.contrib-exp { font-size: 12px; color: var(--ink); line-height: 1.5; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); text-align: left; }
.contrib-exp b { display: block; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 3px; }
.contrib-links { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.contrib-links a {
  width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-family: var(--f-mono); font-weight: 700; color: var(--ink-dim);
  transition: all .2s var(--ease); background: rgba(255,255,255,0.03);
}
.contrib-links a:hover {
  color: #fff; border-color: var(--red-hot); background: var(--red);
  transform: translateY(-2px);
}

/* ---- APK download page ---- */
.apk-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 34px; align-items: center; padding: 34px; }
@media (max-width: 820px) { .apk-hero { grid-template-columns: 1fr; } }
.apk-icon { width: 120px; height: 120px; border-radius: 18px; background: linear-gradient(150deg, #FF4B4D, var(--red-deep)); display: flex; align-items: center; justify-content: center; font-size: 46px; border: 2px solid #fff; box-shadow: 5px 5px 0 rgba(255,255,255,0.9), 0 20px 60px rgba(236,36,37,0.35); }
.apk-meta { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.apk-meta b { color: var(--ink); font-family: var(--f-display); display: block; font-size: 14px; }
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-dim); display: flex; gap: 10px; }
.changelog li:last-child { border-bottom: none; }
.changelog .tag { font-family: var(--f-mono); font-size: 10px; color: var(--on); flex-shrink: 0; }

/* ---- Engineer panel ---- */
.eng-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.eng-tab {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.03em;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-dim);
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; transition: all .2s var(--ease);
}
.eng-tab:hover { color: var(--ink); }
.eng-tab.active { color: #fff; background: var(--red); border-color: #FF6B6D; font-weight: 700; }
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.eng-subhead { font-family: var(--f-mono); font-size: 11px; color: var(--on); text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eng-list { display: flex; flex-direction: column; gap: 10px; }
.eng-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center;
  background: rgba(0,0,0,0.2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 13px;
}
@media (max-width: 700px) { .eng-row { grid-template-columns: 1fr; } }

.gate-note { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); margin-top: 6px; }

/* ---- LANGUAGE TOGGLE ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.lang-switch select {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  color: var(--on);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}
.lang-switch select:focus {
  border-color: #fff;
}

/* ---- REPORT MODAL & PRINT STYLES ---- */
.report-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 20px 16px; overflow-y: auto;
}
.report-modal-actions {
  display: flex; gap: 12px; margin-bottom: 14px; max-width: 800px; width: 100%;
  justify-content: flex-end; position: sticky; top: 0; z-index: 10;
}
.report-paper {
  background: #ffffff; color: #1a1a1a;
  width: 100%; max-width: 800px; padding: 28px 36px;
  border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px; line-height: 1.4;
  box-sizing: border-box;
}
.rpt-header {
  border-bottom: 3px solid #EC2425; padding-bottom: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  page-break-inside: avoid; break-inside: avoid;
}
.rpt-title { font-size: 16px; font-weight: 800; letter-spacing: 0.02em; color: #111; text-transform: uppercase; }
.rpt-sub { font-size: 10.5px; color: #555; font-weight: 500; }
.rpt-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 11.5px;
  page-break-inside: avoid; break-inside: avoid;
}
.rpt-meta-grid div { display: flex; justify-content: space-between; }
.rpt-meta-grid b { color: #334155; }
.rpt-meta-grid span { color: #0f172a; font-weight: 600; }

.rpt-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #111; margin: 14px 0 6px;
  border-left: 4px solid #EC2425; padding-left: 8px;
  page-break-inside: avoid; break-inside: avoid;
}
.rpt-table {
  width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 11px;
  page-break-inside: avoid; break-inside: avoid;
}
.rpt-table th, .rpt-table td {
  border: 1px solid #cbd5e1; padding: 6px 8px; text-align: left;
}
.rpt-table th {
  background: #f1f5f9; font-weight: 700; color: #1e293b;
}
.rpt-badge {
  display: inline-block; padding: 2px 5px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.rpt-good { background: #ececee; color: #111; }
.rpt-warn { background: #fef9c3; color: #854d0e; }
.rpt-bad  { background: #fee2e2; color: #991b1b; }

.rpt-sign-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 22px; text-align: center; font-size: 11.5px;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}
.rpt-sign-line {
  margin-top: 48px; border-top: 1px solid #64748b; padding-top: 4px; font-weight: 600; color: #1e293b;
}

@media print {
  body {
    background: #ffffff !important; color: #000000 !important;
    overflow: visible !important;
  }
  .navbar, #fx-layer, #site-pet, .site-footer, .report-modal-actions, .mon-head, .grid-top, .grid-charts, #history-chart-container, #engineer-panel {
    display: none !important;
  }
  .report-modal-overlay {
    position: static !important; inset: auto !important; background: transparent !important;
    padding: 0 !important; overflow: visible !important;
  }
  .report-paper {
    box-shadow: none !important; border: none !important; max-width: 100% !important; padding: 0 !important; width: 100% !important;
  }
}
