:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #020617;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.14);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --danger: #ef4444;
  --radius-xl: 16px;
  --radius-2xl: 22px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.85);
}
.focus-badges {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.focus-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.5);
  background: rgba(79, 70, 229, 0.08);
  color: #c7d2fe;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.focus-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

* {
  box-sizing: border-box;
}
.btn-buy {
  background: #22c55e; /* Hijau */
  border-color: #16a34a;
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.4);
  color: #e5e7eb;
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.55);
  background: #16a34a;
}

.btn-buy:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.45);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 40%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-shell {
  width: 100%;
  max-width: 1120px;
  margin: 24px auto;
  padding: 16px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #4f46e5, #06b6d4, #22c55e, #4f46e5);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(to right, rgba(15,23,42,.8), rgba(15,23,42,.4));
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.8);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: radial-gradient(circle at top left, #0b1120 0, #020617 50%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79,70,229,0.13), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.panel * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-desc {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.6);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.form-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.field label {
  color: #e5e7eb;
  font-weight: 500;
}

.field small {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.field label .required {
  color: var(--danger);
  margin-left: 3px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(to right, #020617, #020617);
  padding: 7px 10px;
  color: var(--text);
  outline: none;
  font-size: 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.55);
  background: radial-gradient(circle at top left, #020617, #020617);
}

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.85);
  transition: all 0.12s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: #e5e7eb;
}

.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #e0e7ff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #e5e7eb;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.6);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.5);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: none;
  color: var(--text-soft);
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
}

.btn-icon {
  font-size: 0.95rem;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.tag-row span {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.output-box {
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(30, 64, 175, 0.8);
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.55), rgba(15, 23, 42, 0.98));
  padding: 10px;
  max-height: 260px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  white-space: pre;
  color: #e5e7eb;
}

.output-empty {
  opacity: 0.65;
  font-style: italic;
  text-align: center;
  padding: 24px 8px;
}

.preview-box {
  margin-top: 6px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 10px;
  max-height: 140px;
  overflow: auto;
  font-size: 0.75rem;
  color: #e5e7eb;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.6);
  color: #bbf7d0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 50;
}

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.footer-note {
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

.footer-note span {
  opacity: 0.9;
}

.footer-note svg {
  width: 13px;
  height: 13px;
}

.inline-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.inline-checkbox-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

select option {
  color: #e5e7eb;
  background: #020617;
}

.history-item {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  margin-bottom: 4px;
  font-size: 0.7rem;
}

.history-item:hover {
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(59, 130, 246, 0.9);
}
