/* Aurora Studio */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0c11;
  --panel: #12151d;
  --panel-2: #171b26;
  --border: #232936;
  --border-soft: #1c212d;
  --text: #e9edf5;
  --muted: #8b93a7;
  --muted-2: #626b80;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 55%, #22d3ee 120%);
  --danger: #f87171;
  --ok: #34d399;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 380px at 15% -8%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(700px 380px at 90% -12%, rgba(34, 211, 238, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
textarea, input, select { font: inherit; color: var(--text); }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  height: 62px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs a {
  padding: 7px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); background: var(--panel-2); }

.top-actions { display: flex; align-items: center; gap: 12px; }
.credits-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s;
}
.credits-chip:hover { border-color: var(--accent); }
.credits-chip svg { color: #fbbf24; }
.credits-chip b { font-weight: 600; }
.credits-chip.bump { animation: bump 0.4s ease; }
@keyframes bump { 30% { transform: scale(1.12); } }

.avatar-wrap { position: relative; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 210px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop 0.14s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-5px); } }
.menu-head { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.menu-name { font-weight: 600; font-size: 14px; }
.menu-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
}
.menu-item:hover { background: var(--panel); }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 26px 28px 60px; }
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.view-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.view-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.create-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px;
}

/* ---------- form ---------- */
.field { margin-bottom: 18px; }
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.field-head label { font-weight: 600; font-size: 13px; letter-spacing: 0.2px; }
.char-count { color: var(--muted-2); font-size: 11.5px; }
.field-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.prompt-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.prompt-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.prompt-box.shake { animation: shake 0.4s ease; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.prompt-box textarea {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  resize: vertical;
  padding: 12px 14px 6px;
  min-height: 92px;
  font-size: 14px;
}
.prompt-tools {
  display: flex;
  gap: 6px;
  padding: 6px 8px 8px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
}
.tool-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

#negPrompt, .input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 13px;
  outline: 0;
  font-size: 13.5px;
  resize: vertical;
}
#negPrompt:focus, .input:focus { border-color: var(--accent); }
.hint { color: var(--muted-2); font-size: 11.5px; margin-top: 6px; }

.select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 13px;
  outline: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b93a7' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.segmented {
  display: flex;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  transition: all 0.15s;
}
.segmented button.on { background: #262c3b; color: var(--text); }

/* style cards */
.style-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.style-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  aspect-ratio: 4 / 3.1;
  background: var(--panel-2);
  transition: border-color 0.15s, transform 0.12s;
}
.style-card:hover { transform: translateY(-1px); }
.style-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-card .sc-name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 4px 5px;
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.style-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22); }
.style-card.on::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 17px;
  height: 17px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.advanced { margin-bottom: 18px; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  margin-bottom: 14px;
}
.advanced summary:hover { color: var(--text); }

/* generate button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px;
  border-radius: var(--radius);
  transition: transform 0.12s, filter 0.15s, opacity 0.15s;
  font-family: var(--font-display);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-cost {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-body);
}
.gen-spinner, .spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
  flex: none;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- output panel ---------- */
.output { min-height: 540px; display: flex; flex-direction: column; }

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.empty-state .big-icon { font-size: 40px; opacity: 0.85; }
.empty-state h3 { color: var(--text); font-family: var(--font-display); font-size: 17px; }
.empty-state p { font-size: 13px; max-width: 320px; }

/* progress */
.progress-wrap { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; }
.progress-stage { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.progress-stage .spin { border-color: rgba(139, 92, 246, 0.3); border-top-color: var(--accent); }
.progress-pct { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.progress-bar {
  height: 6px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.65s linear;
}
.shimmer-grid { display: grid; gap: 12px; flex: 1; }
.shimmer-grid.g1 { grid-template-columns: 1fr; }
.shimmer-grid.g2 { grid-template-columns: 1fr 1fr; }
.shimmer-grid.g4 { grid-template-columns: 1fr 1fr; }
.shimmer-cell {
  border-radius: var(--radius);
  background: linear-gradient(110deg, #161a24 30%, #1e2433 45%, #161a24 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }
.btn-cancel {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.btn-cancel:hover { color: var(--danger); border-color: var(--danger); }

/* results */
.results-wrap { display: flex; flex-direction: column; gap: 14px; animation: fadeup 0.35s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.results-grid { display: grid; gap: 12px; }
.results-grid.g1 { grid-template-columns: 1fr; }
.results-grid.g2 { grid-template-columns: 1fr 1fr; }
.results-grid.g4 { grid-template-columns: 1fr 1fr; }
.img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
}
.img-card img { width: 100%; display: block; object-fit: cover; }
.img-card .actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.18s;
}
.img-card:hover .actions { opacity: 1; }
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(18, 21, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9edf5;
  transition: background 0.15s, transform 0.12s;
}
.icon-btn:hover { background: rgba(139, 92, 246, 0.85); transform: translateY(-1px); }
.icon-btn.faved { color: #fb7185; }
.icon-btn svg { width: 15px; height: 15px; }

.results-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
}
.chip {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
}

.gen-failed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed rgba(248, 113, 113, 0.4);
  border-radius: var(--radius);
  padding: 40px;
}
.gen-failed h3 { color: var(--danger); font-family: var(--font-display); }

/* ---------- explore ---------- */
.masonry { columns: 4 240px; column-gap: 14px; }
.x-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--panel-2);
  cursor: pointer;
}
.x-card img { width: 100%; display: block; }
.x-card .x-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  gap: 8px;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 0.18s;
}
.x-card:hover .x-overlay { opacity: 1; }
.x-prompt {
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.x-foot { display: flex; align-items: center; justify-content: space-between; }
.x-author { color: var(--muted); font-size: 11.5px; }
.x-actions { display: flex; gap: 6px; }
.btn-mini {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}
.btn-mini:hover { background: var(--accent); }
.x-likes { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }

/* ---------- library ---------- */
.filters { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; }
.filters button { padding: 6px 16px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.filters button.on { background: #262c3b; color: var(--text); }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}
.lib-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s;
}
.lib-card:hover { transform: translateY(-2px); border-color: var(--border); }
.lib-thumb { position: relative; aspect-ratio: 1; background: var(--panel-2); }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-thumb .count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
}
.lib-thumb .fav-badge { position: absolute; top: 8px; left: 8px; color: #fb7185; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
.lib-thumb .st-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.lib-body { padding: 10px 12px 12px; }
.lib-prompt {
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}
.lib-meta { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; margin-top: 7px; }

.lib-empty { grid-column: 1 / -1; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fadein 0.15s ease;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  animation: modalin 0.18s ease;
  position: relative;
}
@keyframes modalin { from { opacity: 0; transform: scale(0.97) translateY(8px); } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); }

.detail-grid { display: grid; grid-template-columns: 1fr 330px; }
.detail-media { padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #0d0f15; border-radius: 18px 0 0 18px; }
.detail-main img { width: 100%; border-radius: 10px; display: block; }
.detail-thumbs { display: flex; gap: 8px; }
.detail-thumbs img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
}
.detail-thumbs img.on { opacity: 1; border-color: var(--accent); }
.detail-side { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.detail-side h3 { font-family: var(--font-display); font-size: 16px; }
.d-block label {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}
.d-prompt {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}
.copy-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 500;
}
.copy-line:hover { text-decoration: underline; }
.d-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.d-meta-grid .d-block div { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.detail-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-weight: 500;
  font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-secondary.danger { color: var(--danger); }
.btn-secondary.danger:hover { border-color: var(--danger); background: rgba(248, 113, 113, 0.08); }
.btn-secondary:disabled { opacity: 0.6; cursor: wait; }

/* confirm + pricing modals */
.modal.slim { max-width: 420px; padding: 26px; }
.modal.slim h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
.modal.slim p { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.modal-btn-row { display: flex; gap: 10px; justify-content: flex-end; }
.modal-btn-row .btn-secondary { width: auto; padding: 9px 18px; }
.btn-danger-solid { background: var(--danger); color: #16090b; border: 0; font-weight: 600; }
.btn-danger-solid:hover { filter: brightness(1.08); border: 0; }

.modal.pricing { max-width: 760px; padding: 30px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.price-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.price-card.hot { border-color: var(--accent); position: relative; }
.price-card.hot::before {
  content: "Most popular";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.price-card h4 { font-family: var(--font-display); font-size: 15px; }
.price-card .amount { font-size: 26px; font-weight: 700; font-family: var(--font-display); }
.price-card .amount span { font-size: 12px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price-card ul li::before { content: "✓  "; color: var(--ok); }
.doc-body { padding: 30px; max-width: 640px; }
.doc-body h3 { font-family: var(--font-display); margin-bottom: 14px; }
.doc-body p { color: var(--muted); font-size: 13px; margin-bottom: 12px; line-height: 1.65; }

/* ---------- toast ---------- */
.toast-root {
  position: fixed;
  top: 74px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 380px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: toastin 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } }
.toast.out { opacity: 0; transform: translateX(30px); transition: all 0.25s ease; }
.toast-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.toast.success .toast-icon { background: rgba(52, 211, 153, 0.18); color: var(--ok); }
.toast.error .toast-icon { background: rgba(248, 113, 113, 0.18); color: var(--danger); }
.toast.info .toast-icon { background: rgba(34, 211, 238, 0.18); color: var(--accent-2); }
.toast-msg { flex: 1; }
.toast-action {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 7px;
}
.toast-action:hover { background: rgba(34, 211, 238, 0.1); }
.toast-x { color: var(--muted-2); font-size: 15px; padding: 2px 5px; }
.toast-x:hover { color: var(--text); }

/* ---------- skeletons ---------- */
.skel { border-radius: var(--radius); background: linear-gradient(110deg, #141824 30%, #1c2231 45%, #141824 60%); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 12px;
}
.footer a:hover { color: var(--text); }
.status { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px rgba(52, 211, 153, 0.8); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .create-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { border-radius: 18px 18px 0 0; }
  .tabs { gap: 0; }
  .tabs a { padding: 7px 10px; font-size: 13.5px; }
  main { padding: 18px 16px 48px; }
  .topbar { padding: 0 16px; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
