:root {
  --bg: #0b0b10;
  --card: #141420;
  --text: #f0f0ff;
  --muted: #9c9cc9;
  --border: rgba(255,255,255,0.08);
  --accent: #7c3aed;
  --accentLight: #a78bfa;
  --success: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 520px;
  margin: auto;
  min-height: 100vh;
  padding-bottom: 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accentLight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.title { font-weight: 700; }
.subtitle { font-size: 12px; color: var(--muted); }

.credits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

main { padding: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.cardTitle {
  font-weight: 800;
  margin-bottom: 10px;
}

.label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

textarea {
  width: 100%;
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #1a1a2a;
  color: var(--text);
  resize: none;

  /* Bigger text */
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;

  /* Taller default height */
  min-height: 110px;
}

textarea::placeholder {
  color: var(--muted);
  font-size: 17px;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn.secondary {
  background: #1a1a2a;
}

.btn.full { width: 100%; }

.cost {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.styles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.style {
  border-radius: 16px;
  padding: 12px;
  background: #1a1a2a;
  border: 1px solid var(--border);
  cursor: pointer;
}

.style.selected {
  border-color: var(--accent);
}

.hidden { display: none; }

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  color: var(--accentLight);
}