:root{
  --bg:#0b0e11;
  --card:#1a1f26;
  --muted: rgba(255,255,255,0.65);
  --border: rgba(255,255,255,0.10);
}

body{
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #fff;
  padding: 40px;
}

.container{
  max-width: 560px;
  margin: 0 auto;
}

h1{ margin: 0 0 14px 0; }
label{
  margin-top: 12px;
  display:block;
  font-size: 14px;
  opacity: 0.9;
}

input, select, textarea{
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: var(--card);
  color: #fff;
  outline: none;
}

textarea{ min-height: 90px; resize: none; }

.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.row{
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 6px;
}

.dropZone{
  margin-top: 10px;
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 16px;
  text-align:center;
  opacity: 0.75;
  background: rgba(255,255,255,0.03);
}

.dropZone.dragOver{
  border-color: rgba(250,204,21,0.9);
  box-shadow: 0 0 0 6px rgba(250,204,21,0.10);
}

.btn{
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn.dark{
  background: linear-gradient(135deg, #0f1115, #2b2f36);
  color:#fff;
}

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

.output{
  margin-top: 18px;
}

.outputHeader{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sub{
  font-size: 12px;
  opacity: 0.6;
}

.resultWrap{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  overflow:hidden;
}

#resultImg{
  width: 100%;
  display:block;
}

.actions{
  margin-top: 10px;
  display:grid;
  gap: 10px;
}

/* Hidden export root */
.exportRoot{
  position: fixed;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* IG export card: 1080x1350 */
.exportCard{
  width: 1080px;
  height: 1350px;
  background: linear-gradient(180deg, #3a3a39 0%, #151a20 100%);

  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.exportHeader{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
}

.leftHeader{
  display:flex;
  gap: 10px;
  align-items:center;
}

.pill{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(59,130,246,0.20);
  border: 1px solid rgba(59,130,246,0.35);
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 16px;
}

.pill.ghost{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.dateTop{
  font-size: 16px;
  opacity: 0.65;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.hero{
  margin-top: 18px;
  height: 740px;
  border-radius: 22px;
  border: 2px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  overflow:hidden;
  display:grid;
  place-items:center;
  position: relative; /* REQUIRED for overlay */
}

/* Title overlay on image */
.heroTitle{
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.4px;
  opacity: 0.85;

  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.hero img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.heroPlaceholder{
  opacity: 0.55;
  font-weight: 800;
  font-size: 20px;
}

.details{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.detail{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}

.detail span{
  opacity: 0.7;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 16px;
  text-transform: uppercase;
}

.detail b{
  font-size: 18px;
  font-weight: 900;
}

.notesBox{
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}

.notesLabel{
  opacity: 0.7;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 16px;
  text-transform: uppercase;
}

.notesText{
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

.exportFooter{
  margin-top: 18px;
  display:flex;
  justify-content: flex-end;
}

.watermark{
  font-size: 16px;
  opacity: 0.5;
  font-weight: 900;
  letter-spacing: 0.6px;
}
.detail b{
  font-size: 18px;
  font-weight: 900;
}
