* {
  box-sizing: border-box;
}

:root {
  --bg: #f4efe6;
  --ink: #181511;
  --muted: #685d4c;
  --panel: #fffaf0;
  --line: #d9cdb8;
  --accent: #c45b12;
  --accent-dark: #8e3e08;
  --good: #176b47;
  --warn: #9f2d0f;
  --shadow: 0 24px 60px rgba(68, 45, 16, 0.12);
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 191, 117, 0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(196, 91, 18, 0.18), transparent 32%),
    linear-gradient(180deg, #fbf7ef 0%, #f1e9dc 100%);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.muted,
.hint,
.tiny {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  line-height: 1.5;
}

.panel {
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(150, 110, 55, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-wrap {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  gap: 24px;
}

.auth-hero {
  max-width: 720px;
}

.auth-hero h1,
.topbar h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-card,
.studio-panel,
.side-panel,
.full-panel,
.hero-panel {
  padding: 22px;
}

.auth-card h2,
.panel-head h2,
.hero-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, #d86d1b, #b84a0d);
  color: #fff;
}

.btn-secondary {
  background: #181511;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.inline-message {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(196, 91, 18, 0.08);
  border: 1px solid rgba(196, 91, 18, 0.18);
}

.inline-message.error {
  color: var(--warn);
  background: rgba(159, 45, 15, 0.08);
  border-color: rgba(159, 45, 15, 0.22);
}

.inline-message.success {
  color: var(--good);
  background: rgba(23, 107, 71, 0.08);
  border-color: rgba(23, 107, 71, 0.22);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(150, 110, 55, 0.16);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.pill-strong strong {
  color: var(--accent-dark);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.hero-panel,
.studio-panel,
.full-panel {
  grid-column: 1 / 2;
}

.side-panel {
  grid-column: 2 / 3;
}

.full-panel {
  grid-column: 1 / -1;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 236, 208, 0.92), rgba(255, 249, 238, 0.96)),
    #fffaf0;
}

.hero-copy {
  max-width: 580px;
}

.hero-cta {
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.price-box {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.price-box strong {
  font-size: 24px;
  color: var(--accent-dark);
}

.price-box.compact strong {
  font-size: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid.one {
  grid-template-columns: 1fr;
}

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

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.toggle input {
  width: auto;
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.job-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.job-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8ddca;
}

.progress-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d86d1b, #f2aa3d);
  transition: width 0.25s ease;
}

.job-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.result-video {
  width: 100%;
  border-radius: 18px;
  background: #120f0c;
}

.stack-list,
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.list-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(196, 91, 18, 0.08);
  color: var(--accent-dark);
}

.status-badge.done {
  background: rgba(23, 107, 71, 0.12);
  color: var(--good);
}

.status-badge.error {
  background: rgba(159, 45, 15, 0.12);
  color: var(--warn);
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.card-actions button,
.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.empty-note {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 1120px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .studio-panel,
  .side-panel,
  .full-panel {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .auth-grid,
  .field-grid.two,
  .field-grid.three,
  .field-grid.four {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-panel,
  .job-row,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    justify-content: flex-start;
  }
}
