:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1f2630;
  --text: #f6f7f9;
  --muted: #a8b0bd;
  --line: #303946;
  --accent: #ffd34d;
  --accent-text: #171100;
  --danger: #ff6b6b;
  --ok: #65d18d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-shell,
.app-shell {
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-card,
.panel,
.pricing-card,
.job-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.auth-card {
  width: min(100%, 440px);
  padding: 2rem;
}

.brand {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  letter-spacing: 0;
}

.accent {
  color: var(--accent);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.muted {
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 1.5rem 0;
}

.tab,
.ghost {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 0.72rem 0.8rem;
}

.tab.active,
.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f141b;
  color: var(--text);
  padding: 0.85rem 0.95rem;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.primary {
  border: 0;
  border-radius: 6px;
  padding: 0.9rem 1rem;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--ok);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.88);
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
}

.app-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
}

.panel {
  padding: 1.25rem;
}

.tool-panel {
  min-height: 620px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.pricing-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.pricing-card h3,
.panel h2,
.panel h3 {
  margin: 0;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
}

.features {
  display: grid;
  gap: 0.35rem;
  min-height: 6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.job-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.job-card {
  padding: 0.85rem;
}

.job-card pre,
.result {
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f141b;
  padding: 1rem;
}

.result {
  margin-top: 1rem;
  max-height: 420px;
}

@media (max-width: 980px) {
  .layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
