:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --accent: #d97706;
  --accent-hover: #b45309;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #eab308;
  --warning-bg: #fef9c3;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  --container-max: 1240px;
}

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

/* 1. ANTI OVERFLOW & FLUID TYPOGRAPHY */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: clamp(14.5px, 0.92rem + 0.15vw, 16.5px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-wrap: break-word;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container-max), calc(100% - clamp(1.25rem, 4vw, 3.5rem)));
  margin-inline: auto;
  min-width: 0;
}

.hidden {
  display: none !important;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.6rem, 1.2vw, 0.9rem) 0;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand-logo-img {
  height: clamp(30px, 4vw, 38px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-product-tag {
  display: inline-block;
  background: var(--navy);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.brand-domain-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem clamp(0.65rem, 1.5vw, 1.25rem);
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.35rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(0.84rem, 1vw, 0.95rem);
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

/* BUTTONS & 44PX TOUCH TARGETS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem clamp(0.95rem, 1.8vw, 1.25rem);
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  max-width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
}

.btn-lg {
  min-height: 48px;
  padding: 0.8rem clamp(1.1rem, 2.2vw, 1.6rem);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  background: var(--surface-soft);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* HERO */
.hero {
  padding: clamp(2.25rem, 5vw, 4.25rem) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
}

.hero-content,
.hero-card {
  min-width: 0;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(1.55rem, 2.8vw + 0.5rem, 2.65rem);
  line-height: 1.2;
  margin-bottom: 0.95rem;
}

.hero-lead {
  color: #cbd5e1;
  font-size: clamp(0.94rem, 1.1vw, 1.06rem);
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  color: #e2e8f0;
}

.hero-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.module-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--surface-soft);
  min-width: 0;
}

.module-tag {
  background: var(--navy);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.module-item strong {
  display: block;
  font-size: 0.9rem;
}

.module-item p {
  font-size: 0.81rem;
  color: var(--text-muted);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price-highlight {
  display: block;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--primary);
}

.price-unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* SECTIONS */
.section {
  padding: clamp(2.5rem, 5vw, 4.25rem) 0;
}

.bg-soft {
  background: var(--surface-soft);
}

.bg-dark {
  background: var(--navy);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  font-size: clamp(1.35rem, 2.2vw + 0.3rem, 2rem);
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.feature-card {
  background: var(--surface);
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}

.feature-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.45rem;
  color: var(--navy);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CAT DEMO SHELL & SECURITY SHOWCASE */
.security-banner-strip {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 1.5rem;
  border: 1px solid #334155;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.security-strip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.security-strip-header h4 {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  color: #f8fafc;
  margin: 0;
}

.security-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
}

.security-chip-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  min-width: 0;
}

.security-chip-item strong {
  display: block;
  font-size: 0.84rem;
  color: #38bdf8;
  margin-bottom: 0.25rem;
}

.security-chip-item span {
  display: block;
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.anti-cheat-notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  text-align: left;
  margin: 1.1rem 0;
  font-size: 0.82rem;
}

.anti-cheat-notice-header strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.35rem;
}

.anti-cheat-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.anti-cheat-list li + li {
  margin-top: 0.25rem;
}

/* VIOLATION BANNER */
.exam-violation-alert {
  background: #fef2f2;
  border-bottom: 2px solid #ef4444;
  color: #991b1b;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.exam-violation-alert .alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.exam-violation-alert .alert-text {
  flex: 1;
}

.btn-dismiss-alert {
  background: transparent;
  border: none;
  color: #991b1b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  border-radius: 4px;
}

.btn-dismiss-alert:hover {
  background: rgba(239, 68, 68, 0.1);
}

.cat-brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cat-topbar-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cat-topbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cat-security-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.74rem;
}

.security-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.cat-security-indicator.violated .security-dot-live {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.security-status-text {
  color: #cbd5e1;
  font-weight: 600;
}

.violation-count-badge {
  background: #334155;
  color: #94a3b8;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
}

.cat-security-indicator.violated .violation-count-badge {
  background: #ef4444;
  color: #fff;
}

/* Seleksi dan proteksi teks ujian */
#cat-exam-selectable-zone.anti-cheat-locked {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.text-warning {
  color: #d97706 !important;
}

/* CAT DEMO SHELL */
.cat-shell {
  background: var(--surface);
  border: 2px solid #cbd5e1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
}

.cat-intro {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  text-align: center;
}

.cat-intro-box {
  max-width: 680px;
  margin: 0 auto;
}

.cat-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.cat-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  margin: 1.35rem 0;
  text-align: left;
}

.cat-meta-grid > div {
  background: var(--surface-soft);
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 0;
}

.cat-meta-grid span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cat-meta-grid strong {
  font-size: 0.9rem;
  display: block;
}

.cat-intro-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.input-inline {
  width: 100%;
  max-width: 440px;
  text-align: left;
  font-size: 0.88rem;
}

.input-inline input {
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* CAT EXAM WORKSPACE */
.cat-topbar {
  background: var(--navy);
  color: #fff;
  padding: clamp(0.75rem, 1.8vw, 1rem) clamp(0.9rem, 2vw, 1.35rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cat-user-info {
  min-width: 0;
}

.cat-user-info strong {
  display: block;
  font-size: clamp(0.85rem, 1.1vw, 0.96rem);
}

.cat-user-info span {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: block;
}

.cat-timer-box {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cat-timer-box span {
  font-size: 0.76rem;
  color: #cbd5e1;
}

.cat-timer-box strong {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

.cat-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 460px;
}

.cat-question-panel {
  padding: clamp(1rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.cat-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat-q-number {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  margin-right: 0.5rem;
}

.cat-q-category {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cat-q-body {
  padding: clamp(0.95rem, 2vw, 1.35rem) 0;
  flex: 1;
}

.cat-q-text {
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.cat-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cat-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--surface);
  cursor: pointer;
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.4;
  transition: background 0.12s, border-color 0.12s;
}

.cat-option-btn:hover {
  background: var(--surface-soft);
}

.cat-option-btn.selected {
  border-color: var(--primary);
  background: #eff6ff;
  font-weight: 600;
}

.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid #94a3b8;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.cat-option-btn.selected .opt-letter {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cat-q-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.65rem;
}

.cat-q-footer > #btn-prev-q {
  justify-self: start;
}

.cat-q-footer > #btn-next-q {
  justify-self: end;
}

.doubt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  background: var(--warning-bg);
  color: #854d0e;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid #fde047;
  user-select: none;
}

.doubt-toggle input {
  width: 16px;
  height: 16px;
}

.cat-sidebar {
  padding: clamp(1rem, 2vw, 1.3rem);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
}

.cat-sidebar-header strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.cat-legend {
  display: flex;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 3px;
}

.dot-answered { background: var(--success); }
.dot-doubt { background: var(--warning); }
.dot-empty { background: #cbd5e1; }

.cat-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 0.5rem;
}

.nav-num-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.nav-num-btn.active {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.nav-num-btn.answered {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.nav-num-btn.doubt {
  background: var(--warning);
  color: #0f172a;
  border-color: #ca8a04;
}

.cat-progress-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* CAT RESULT */
.cat-result {
  padding: clamp(1.1rem, 2.8vw, 1.85rem);
}

.result-summary-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  margin-bottom: 1.5rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.score-circle {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  text-align: center;
  min-width: min(100%, 150px);
}

.score-circle small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.score-circle strong {
  display: block;
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
  line-height: 1.1;
  color: var(--navy);
}

.pass-badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.pass-badge.pass {
  background: var(--success-bg);
  color: var(--success);
}

.pass-badge.fail {
  background: var(--danger-bg);
  color: var(--danger);
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.stat-box {
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.stat-box span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.stat-box strong {
  font-size: 1.15rem;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.result-cta-banner {
  background: var(--surface);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.result-cta-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.review-section h4 {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.95rem;
  background: var(--surface);
  min-width: 0;
}

.review-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-status {
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.review-status.ok {
  background: var(--success-bg);
  color: var(--success);
}

.review-status.err {
  background: var(--danger-bg);
  color: var(--danger);
}

.review-exp {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* PRICING GRID & COMPARISON TABLE */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
  gap: clamp(1rem, 2vw, 1.3rem);
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  min-width: 0;
}

.price-card.popular {
  border: 2px solid var(--primary);
}

.price-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.price-card.popular .price-badge {
  background: var(--primary);
  color: #fff;
}

.price-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.price-target {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.price-value {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.95rem;
  line-height: 1.2;
}

.price-value small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.price-spec-pill {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.76rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.price-table-sub {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
}

/* SPEC SWITCHER TABS & CARDS */
.spec-tab-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto 1.5rem;
}

.spec-tab-btn {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.spec-tab-btn:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.spec-tab-btn.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.15);
}

.tab-badge {
  position: absolute;
  top: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tab-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.tab-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.tab-limit {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.15rem;
}

.tier-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.tier-summary-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.tier-summary-main h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0.35rem 0 0.15rem;
}

.tier-summary-main p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tier-summary-note {
  background: var(--surface-soft);
  border: 1px dashed #cbd5e1;
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  text-align: right;
}

.tier-summary-note span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tier-summary-note strong {
  display: block;
  font-size: 0.86rem;
  color: var(--navy);
}

/* PRICE CARD IMPROVEMENT (STRIKE, SAVINGS BADGE) */
.price-strike-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.text-strike {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

.savings-chip {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.savings-desc-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  color: #166534;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.badge-mini {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.savings-text {
  color: #15803d;
  font-weight: 700;
  font-size: 0.76rem;
}

.price-features {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.87rem;
}

/* SERVER SPECS TABLE */
.server-specs-wrap {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.server-specs-head {
  margin-bottom: 1rem;
}

.server-specs-head h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.server-specs-head p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.specs-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.85rem;
  text-align: left;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.specs-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-tag {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.spec-tag.popular {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}

/* RESPONSIVE COMPARISON TABLE WRAPPER */
.comparison-table-wrap {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.86rem;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
}

.faq-item p {
  padding: 0.35rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ORDER SECTION */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: center;
}

.order-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.order-logo-dark {
  height: clamp(32px, 3.5vw, 40px);
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.order-info,
.order-form {
  min-width: 0;
}

.pill-light {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  border-color: rgba(255, 255, 255, 0.2);
}

.order-info h2 {
  font-size: clamp(1.35rem, 2.2vw + 0.3rem, 2rem);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.order-info p {
  color: #cbd5e1;
  margin-bottom: 1.2rem;
}

.contact-card {
  background: var(--navy-light);
  border: 1px solid #334155;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-form {
  background: var(--surface);
  color: var(--text);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-radius: var(--radius);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.order-form h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  max-width: 100%;
}

.order-summary-preview {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  margin-bottom: 0.95rem;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  background: #020617;
  color: #94a3b8;
  padding: 2.5rem 0 5.25rem;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo-img {
  height: clamp(30px, 3.5vw, 38px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.footer strong {
  color: #fff;
}

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

.footer a:hover {
  color: #fbbf24;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* FLOATING SMART CHAT ASSISTANT "DEREMA" (PROFESSIONAL B2B) */
.chat-widget {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.35rem);
  bottom: clamp(0.75rem, 2vw, 1.35rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: calc(100vw - 24px);
}

.chat-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  background: var(--surface);
  color: var(--navy);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.45rem 1.15rem 0.45rem 0.55rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  max-width: 100%;
}

.chat-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.chat-toggle-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
}

.chat-toggle-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy);
  color: #fbbf24;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fbbf24;
}

.chat-toggle-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface);
}

.chat-toggle-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.chat-toggle-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy);
}

.chat-toggle-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.chat-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-panel {
  width: clamp(320px, 92vw, 410px);
  max-width: calc(100vw - 24px);
  height: min(600px, 80vh);
  height: min(600px, 80dvh);
  max-height: 82vh;
  max-height: 82dvh;
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0.75rem;
  animation: chatSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.chat-header-avatar-frame {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chat-header-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
  background: #1e293b;
}

.chat-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy);
  color: #fbbf24;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fbbf24;
}

.chat-online-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f172a;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-header-name-row strong {
  font-size: 0.98rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.chat-b2b-pill {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.chat-status-text {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.chat-header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

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

.chat-close-trigger {
  font-size: 1.1rem;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  min-height: 140px;
  padding: 0.95rem;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  outline: none;
}

.chat-msg-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 90%;
}

.chat-msg-row.bot {
  align-self: flex-start;
}

.chat-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
  margin-top: 2px;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.chat-msg-row.bot .chat-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chat-msg-row.user .chat-bubble {
  background: var(--primary);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.chat-msg-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 0 0.35rem;
}

.chat-msg-row.user .chat-msg-meta {
  text-align: right;
}

.chat-typing {
  padding: 0.35rem 1rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.typing-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  animation: chatPulse 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.typing-label {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.chat-quick-replies {
  padding: 0.5rem 0.8rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  max-height: 96px;
  overflow-y: auto;
}

.quick-reply-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  background: #f1f5f9;
  color: var(--navy);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  text-align: left;
}

.quick-reply-chip:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.chat-summary-bar {
  padding: 0.6rem 0.85rem;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}

.chat-summary-bar.highlight {
  background: #dcfce7;
  border-top-color: #4ade80;
}

.chat-summary-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.chat-summary-text {
  font-size: 0.74rem;
  color: #166534;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-chat-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  background: #15803d;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.22);
  transition: background 0.15s, transform 0.1s;
}

.btn-chat-wa:hover {
  background: #166534;
  transform: translateY(-1px);
}

.chat-input-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-bar input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.87rem;
  font-family: inherit;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.btn-chat-send {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

/* =========================================================
   BREAKPOINTS MULTI-RESOLUSI (320px -> 1920px+)
   ========================================================= */

/* Desktop Lebar (1440px - 1920px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }

  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cat-workspace {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .chat-panel {
    width: 400px;
    height: min(600px, 78dvh);
  }
}

/* Laptop Standar (1120px - 1439px) */
@media (min-width: 1120px) and (max-width: 1439px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-workspace {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

/* Mobile Standar & Tablet Kecil (<= 767px) */
@media (max-width: 767px) {
  .nav-inner {
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 0.35rem;
  }

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

  .cat-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cat-topbar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cat-security-indicator {
    flex: 1;
    justify-content: space-between;
  }

  .cat-workspace {
    grid-template-columns: 1fr;
  }

  .cat-question-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cat-q-footer {
    grid-template-columns: 1fr 1fr;
  }

  .cat-q-footer > .doubt-toggle {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
  }

  .cat-q-footer > #btn-prev-q,
  .cat-q-footer > #btn-next-q {
    width: 100%;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: min(500px, 78dvh);
    max-height: 82dvh;
  }

  /* Quick replies horizontal scroll di HP agar hemat ruang vertikal saat keyboard muncul */
  .chat-quick-replies {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .quick-reply-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Mobile Kecil (320px - 389px) */
@media (max-width: 389px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cat-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cat-topbar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cat-timer-box {
    width: 100%;
    justify-content: space-between;
  }

  .cat-q-footer {
    grid-template-columns: 1fr;
  }

  .chat-toggle-label {
    font-size: 0.82rem;
  }
}
