:root {
  --ink: #14110d;
  --muted: #62584d;
  --surface: #fffdf9;
  --canvas: #fffbf4;
  --line: #e8dcc4;
  --coral: #d99a12;
  --coral-deep: #b87708;
  --teal: #9a6507;
  --black: #0b0907;
  --gold: #f3bc25;
  --shadow: 0 24px 65px rgba(18, 12, 4, .13);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
a { color: inherit; }
.nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  background: var(--black);
  border-bottom: 1px solid #34230f;
  height: 76px;
  justify-content: space-between;
  margin: 0;
  padding: 0 max(calc((100vw - 1164px) / 2), 28px);
}
.wordmark {
  color: #f8f5ee;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -.05em;
  text-decoration: none;
}
.wordmark span { color: var(--gold); }
.nav-subtitle {
  color: #d9bf83;
  font-size: .9rem;
  font-weight: 600;
}
main { margin: 0 auto; max-width: 1220px; padding: 44px 28px 68px; }
.intro {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.02fr .98fr;
  margin-bottom: 46px;
  min-height: 400px;
}
.intro h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  letter-spacing: -.075em;
  line-height: 1.03;
  margin: 14px 0 18px;
  max-width: 680px;
}
.tag {
  color: var(--coral-deep);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .15em;
  margin: 0;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.62; max-width: 560px; }
.brand-showcase {
  background: radial-gradient(circle at 50% 45%, #30200c, #090807 70%);
  border: 1px solid #30200d;
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(10px, 2vw, 18px);
}
.intro img {
  aspect-ratio: 1;
  border-radius: 28px;
  display: block;
  height: auto;
  max-height: 475px;
  object-fit: cover;
  width: 100%;
}
.feature-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.feature-strip span, .chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 650;
  padding: 10px 15px;
}
.workspace { align-items: start; display: grid; gap: 20px; grid-template-columns: .93fr 1.07fr; }
.creator, .preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 7px 25px rgba(16, 42, 67, .035);
  padding: 26px;
}
.creator {
  background: linear-gradient(155deg, #100d09 0%, #201508 100%);
  border-color: #38250e;
  color: #f9f5ea;
  box-shadow: 0 22px 58px rgba(14, 10, 6, .2);
}
.creator-brand {
  align-items: center;
  background: rgba(255, 190, 38, .08);
  border: 1px solid rgba(240, 183, 35, .25);
  border-radius: 17px;
  display: flex;
  gap: 14px;
  margin: -8px -8px 24px;
  padding: 10px;
}
.creator-brand img {
  border-radius: 11px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}
.creator-brand strong { color: #f7bd25; display: block; font-size: .96rem; margin-bottom: 5px; }
.creator-brand span { color: #deca9d; display: block; font-size: .79rem; }
.creator .tag { color: var(--gold); }
.creator .panel-header h2 { color: #fffaf0; }
.creator .chip {
  background: rgba(244, 187, 34, .12);
  border-color: rgba(244, 187, 34, .35);
  color: #f3c250;
}
.creator label { color: #e7d9bc; }
.creator input, .creator textarea {
  background: #fffdf8;
  border-color: #594329;
}
.creator input:focus, .creator textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 188, 37, .2);
}
.creator .dropzone {
  background: rgba(244, 187, 34, .06);
  border-color: rgba(244, 187, 34, .45);
}
.creator .dropzone span { color: #cbb994; }
.creator .selected-images span {
  background: rgba(243, 188, 37, .14);
  color: #f3c250;
}
.creator .status { color: #d7c49e; }
.creator .status.success { color: #f3c250; }
.creator .status.error { color: #ff988b; }
.preview-panel {
  background: linear-gradient(180deg, #fffdfa, #fbf4e9);
  border-color: #dfcdab;
}
.preview-accent {
  align-items: center;
  background: #0c0a07;
  border-radius: 14px;
  color: #f2b820;
  display: flex;
  font-size: .7rem;
  font-weight: 720;
  justify-content: space-between;
  letter-spacing: .13em;
  margin: -8px -8px 23px;
  padding: 12px 16px;
  text-transform: uppercase;
}
.preview-accent strong { color: #fff7e5; font-size: .92rem; letter-spacing: -.02em; text-transform: none; }
.panel-header { align-items: start; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 23px; }
.panel-header h2 { font-size: 1.43rem; letter-spacing: -.045em; margin: 8px 0 0; }
.chip { background: #fff3d4; border-color: #ecd093; color: #875503; white-space: nowrap; }
.fields { display: grid; gap: 14px; }
.fields.two { grid-template-columns: repeat(2, 1fr); }
label {
  color: var(--ink);
  display: block;
  font-size: .88rem;
  font-weight: 650;
  margin-bottom: 16px;
}
input, textarea {
  background: #fff;
  border: 1px solid #ddd2c5;
  border-radius: 12px;
  color: var(--ink);
  display: block;
  font: inherit;
  font-weight: 450;
  margin-top: 8px;
  padding: 13px 14px;
  transition: border .16s, box-shadow .16s;
  width: 100%;
}
textarea { line-height: 1.5; resize: vertical; }
input:focus, textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(238, 103, 87, .13);
  outline: none;
}
.dropzone {
  background: #fff8f2;
  border: 1px dashed #dfcbbb;
  border-radius: 14px;
  cursor: pointer;
  padding: 16px;
}
.dropzone input { border: 0; margin: 0 0 8px; padding: 0; }
.dropzone span { color: var(--muted); display: block; font-size: .8rem; font-weight: 450; }
.selected-images { display: flex; flex-wrap: wrap; gap: 7px; margin: -7px 0 16px; }
.selected-images span { background: #eef4f4; border-radius: 7px; color: var(--teal); font-size: .76rem; padding: 6px 9px; }
.form-actions { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.action {
  background: linear-gradient(120deg, #d79008, #f4bb22);
  border: 0;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-size: .96rem;
  font-weight: 700;
  padding: 15px 22px;
  transition: background .17s, transform .17s;
  width: 100%;
}
.action:hover:not(:disabled) { background: linear-gradient(120deg, #bd7703, #e7a711); transform: translateY(-1px); }
.action:disabled { cursor: wait; opacity: .62; }
.action.secondary { background: linear-gradient(120deg, #16110b, #33210c); margin-top: 15px; }
.clear-button {
  background: rgba(244, 187, 34, .07);
  border: 1px solid rgba(244, 187, 34, .42);
  border-radius: 12px;
  color: #e8cc91;
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 650;
  padding: 14px 18px;
  transition: border .17s, background .17s, color .17s;
}
.clear-button:hover:not(:disabled) { background: rgba(244, 187, 34, .15); border-color: var(--gold); color: #f3c250; }
.clear-button:disabled { cursor: wait; opacity: .55; }
.text-link { color: var(--coral-deep); font-size: .86rem; font-weight: 650; text-decoration: none; }
.empty-preview {
  align-items: center;
  background: radial-gradient(circle at 50% 20%, #fff7e6, #fbf2e5);
  border: 1px dashed #d7be90;
  border-radius: 17px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  height: 530px;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.empty-preview strong { color: var(--ink); font-size: 1.05rem; }
.empty-preview p { line-height: 1.55; max-width: 340px; }
#page-preview {
  background: white;
  border: 1px solid #d7be90;
  border-radius: 16px;
  display: block;
  height: 630px;
  width: 100%;
}
.hidden { display: none !important; }
.approval {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 17px;
}
.approval-check { align-items: center; display: flex; font-weight: 500; gap: 10px; margin: 0; }
.approval-check input { flex: 0 0 auto; height: 18px; margin: 0; width: 18px; }
.status { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: 13px 0 0; min-height: 20px; }
.status.success { color: var(--teal); }
.status.error { color: #c53a2e; }
.status a { font-weight: 700; }
.history-panel {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: 0 10px 35px rgba(18, 12, 4, .055);
  margin-top: 28px;
  padding: clamp(22px, 3.5vw, 32px);
}
.history-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.history-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -.055em;
  margin: 10px 0 8px;
}
.history-lead { color: var(--muted); line-height: 1.55; margin: 0; }
.outline-button {
  background: #fff6e1;
  border: 1px solid #deb85c;
  border-radius: 11px;
  color: #725004;
  cursor: pointer;
  font-weight: 690;
  padding: 12px 17px;
  white-space: nowrap;
}
.history-empty {
  background: #fbf3e5;
  border: 1px dashed #dbc398;
  border-radius: 16px;
  color: var(--muted);
  padding: 29px;
  text-align: center;
}
.history-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.history-card {
  background: linear-gradient(145deg, #100d09, #241707);
  border: 1px solid #3e2a12;
  border-radius: 18px;
  color: #fff8eb;
  padding: 19px;
}
.history-top { align-items: start; display: flex; gap: 13px; justify-content: space-between; }
.history-category {
  color: #d3b877;
  font-size: .7rem;
  font-weight: 720;
  letter-spacing: .13em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.history-info h3 {
  display: -webkit-box;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.history-badge {
  border-radius: 99px;
  flex: 0 0 auto;
  font-size: .67rem;
  font-weight: 750;
  padding: 7px 10px;
  text-transform: uppercase;
}
.history-badge.draft { background: rgba(243, 188, 37, .15); color: #efc057; }
.history-badge.published { background: rgba(30, 158, 105, .2); color: #76dba8; }
.history-price { color: var(--gold); font-size: 1.4rem; font-weight: 730; letter-spacing: -.04em; margin: 18px 0; }
.history-actions { display: flex; gap: 9px; }
.history-link, .history-edit {
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 680;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}
.history-link { background: var(--gold); color: #181107; flex: 1; }
.history-edit {
  background: transparent;
  border: 1px solid #6a5127;
  color: #f4e4bc;
  cursor: pointer;
}
.history-edit:disabled { cursor: wait; opacity: .6; }
.price-editor {
  border-top: 1px solid #3d2d17;
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr auto;
  margin-top: 15px;
  padding-top: 15px;
}
.price-editor input { margin: 0; padding: 11px; }
.save-price {
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  color: #17110a;
  cursor: pointer;
  font-weight: 700;
  padding: 0 14px;
}
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}
.steps article { border-top: 1px solid var(--line); padding-top: 22px; }
.steps strong { color: var(--coral); font-size: .84rem; }
.steps h2 { font-size: 1.15rem; margin: 11px 0 7px; }
.steps p { color: var(--muted); font-size: .92rem; line-height: 1.54; margin: 0; }
.dashboard-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 25px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 30px 28px 42px;
}
.dashboard-footer .wordmark { color: var(--ink); }
.dashboard-footer p { font-size: .86rem; }
@media (max-width: 980px) {
  .intro, .workspace { grid-template-columns: 1fr; }
  .intro img { max-height: 370px; order: -1; }
}
@media (max-width: 620px) {
  .nav, main, .dashboard-footer { padding-left: 18px; padding-right: 18px; }
  main { padding-top: 28px; }
  .intro { gap: 22px; margin-bottom: 30px; }
  .fields.two, .steps, .history-grid { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .creator, .preview-panel { border-radius: 20px; padding: 19px; }
  .creator-brand, .preview-accent { margin-left: 0; margin-right: 0; }
  .panel-header { flex-direction: column; }
  .history-heading { flex-direction: column; }
  #page-preview { height: 540px; }
  .dashboard-footer { align-items: start; flex-direction: column; gap: 10px; }
}
