/* ============================================================
   UN PUIȘOR — Panou de administrare
   ============================================================ */
:root {
  --night: #2E1F5E;
  --night-deep: #241849;
  --violet: #6C4FB3;
  --violet-soft: #EDE7FA;
  --gold: #FFCF3F;
  --pink: #FF9ECD;
  --cream: #FFF6E9;
  --bg: #F7F5FB;
  --card: #FFFFFF;
  --text: #2B2440;
  --muted: #8B84A6;
  --border: #E9E4F5;
  --green: #2FA36B;
  --red: #D64550;
  --blue: #3E7BD6;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(46, 31, 94, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--violet-soft); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }

/* ---- Layout ------------------------------------------------- */
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 22px 26px 60px; max-width: 1240px; width: 100%; }

/* ---- Sidebar (stil iOS) --------------------------------------- */
.sidebar {
  width: 264px; flex-shrink: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(139, 111, 208, 0.35) 0%, rgba(139, 111, 208, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 68%, #1B123A 100%);
  color: #E8E2F8;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 14px; }
.brand img {
  width: 42px; height: 42px; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.brand strong {
  display: block; font-size: 16px; color: #fff;
  font-weight: 700; letter-spacing: -0.01em;
}
.brand span { font-size: 11.5px; color: #A99BD9; }

.sidebar nav {
  flex: 1; padding: 2px 12px 10px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.sidebar nav::-webkit-scrollbar { width: 4px; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 2px; }

.nav-group { padding-top: 14px; }
.nav-group:first-child { padding-top: 4px; }
.nav-group-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #8F81C4; padding: 0 10px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 10px; margin: 1px 0;
  color: #D9D0F3; border-radius: 12px;
  font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.nav-item:active { transform: scale(0.98); }
.nav-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 1px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.ic-tile {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.32);
}
.ic-tile svg { width: 15px; height: 15px; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card utilizator (jos, stil iOS) */
.sidebar-user {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 12px 0; padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.user-card { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-card:hover { text-decoration: none; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold), var(--pink));
  color: var(--night-deep); font-weight: 800; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.user-meta { min-width: 0; display: flex; flex-direction: column; }
.user-meta strong {
  color: #fff; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-meta span { color: #A99BD9; font-size: 11px; }
.user-logout {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #B9AEDD;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.user-logout:hover { background: rgba(255, 69, 58, 0.18); color: #FF6B62; text-decoration: none; }
.user-logout svg { width: 16px; height: 16px; }

.sidebar-foot {
  padding: 10px 18px 14px; font-size: 11px; text-align: center; color: #7F72B3;
}
.sidebar-foot a { color: var(--gold); }

/* ---- Topbar ------------------------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.role-chip { background: var(--violet-soft); color: var(--violet); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* ---- Cards & grids ------------------------------------------ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
}
.card h2 { font-size: 15px; margin: 0 0 14px; color: var(--night); }
.card-danger { border: 1.5px solid #F3C3C8; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.col-side .card { position: relative; }
.onboarding-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 980px) { .grid-form { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---- Statistici --------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--night); }
.stat-label { font-size: 12.5px; color: var(--muted); }

/* ---- Tabele -------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--border);
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-kv th { width: 200px; text-transform: none; font-size: 13.5px; color: var(--muted); vertical-align: top; padding: 9px 10px; }
.row-muted td { opacity: 0.55; }
.row-actions { white-space: nowrap; text-align: right; }
.meta-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: none; }
.notes li { font-size: 13.5px; }

.story-cell { display: flex; align-items: center; gap: 12px; }
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--violet-soft); }
.thumb-wide { width: 74px; }
.thumb-empty { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.cover-preview { max-width: 100%; border-radius: 12px; margin: 8px 0; display: block; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }

/* ---- Badge-uri ----------------------------------------------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.badge-gold { background: #FFF3CC; color: #8A6D00; }
.badge-green { background: #DFF3E8; color: #1D7A4C; }
.badge-blue { background: #E1EBFA; color: #2A5CA8; }
.badge-grey { background: #EEEAF6; color: #6E6590; }
.badge-red { background: #FBE1E4; color: #A8323C; }

/* ---- Formulare ----------------------------------------------- */
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 13px; color: var(--night); }
label input, label select, label textarea, .filters input, .filters select, textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 9px 12px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 11px;
  background: #FBFAFE; color: var(--text);
}
label input:focus, label select:focus, label textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
label input[type="color"] { padding: 3px; height: 42px; width: 90px; }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
label.check input { width: auto; margin: 0; }
label.check input[type="radio"] { margin-left: auto; }
.perm-grid { border: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.stack { margin-bottom: 10px; }

/* ---- Butoane -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; font-family: inherit;
  border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 4px 14px rgba(108, 79, 179, 0.35); }
.btn-primary:hover { background: #5C40A0; text-decoration: none; }
.btn-ghost { background: #F3F0FA; color: var(--violet); }
.btn-ghost:hover { background: var(--violet-soft); text-decoration: none; }
.btn-danger { background: #FBE9EB; color: var(--red); }
.btn-danger:hover { background: #F7D7DB; text-decoration: none; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; margin-bottom: 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.inline { display: inline; }

/* ---- Toolbar / filtre / taburi -------------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; margin: 0; min-width: 160px; }
.tabs {
  display: inline-flex; gap: 2px; margin-bottom: 20px; flex-wrap: wrap;
  background: #E7E2F2; border-radius: 12px; padding: 3px;
}
.tab {
  padding: 7px 15px; border-radius: 9px;
  color: #5C5378; font-weight: 600; font-size: 13px;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.tab:hover { text-decoration: none; color: var(--night); }
.tab.active {
  background: #FFFFFF; color: var(--night); font-weight: 700;
  box-shadow: 0 1px 4px rgba(46, 31, 94, 0.16), 0 0 0 0.5px rgba(46, 31, 94, 0.06);
}

/* ---- Flash --------------------------------------------------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; }
.flash-ok { background: #DFF3E8; color: #1D7A4C; }
.flash-err { background: #FBE1E4; color: #A8323C; }
.flash-warn { background: #FFF3CC; color: #8A6D00; }

/* ---- Sortable list (secțiuni) --------------------------------- */
.sort-list { list-style: none; margin: 0; padding: 0; }
.sort-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  margin-bottom: 8px; background: #FBFAFE;
}
.sort-item.dragging { opacity: 0.45; border-style: dashed; }
.sort-item .handle { cursor: grab; color: var(--muted); font-size: 18px; user-select: none; }
.sort-item-body { flex: 1; display: flex; flex-direction: column; }

/* ---- Capitole ------------------------------------------------- */
.chapter-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: 8px; margin-bottom: 8px; align-items: center; }
.chapter-row input { margin: 0; }

/* ---- Paginare ------------------------------------------------- */
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a {
  padding: 6px 12px; border-radius: 10px; background: #F3F0FA; color: var(--violet); font-weight: 700; font-size: 13px;
}
.pagination a.active { background: var(--violet); color: #fff; }
.pagination a:hover { text-decoration: none; }

/* ---- Login ---------------------------------------------------- */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--night) 0%, var(--night-deep) 60%, #1B123A 100%);
}
.login-card {
  background: var(--card); border-radius: 24px; padding: 34px 32px;
  width: 100%; max-width: 380px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.login-logo { width: 72px; height: 72px; border-radius: 18px; }
.login-card h1 { margin: 12px 0 2px; font-size: 22px; color: var(--night); }
.login-sub { color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.login-card form { text-align: left; }


/* ---- Setări — listă grupată iOS -------------------------------- */
.ios-form { max-width: 620px; }
.ios-form-wide { max-width: none; }

.ios-section { margin-bottom: 26px; }
.ios-section-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); padding: 0 16px 7px;
}
.ios-footnote {
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  padding: 8px 16px 0;
}
.ios-footnote-top { padding: 0 4px 16px; }

.ios-group {
  background: var(--card); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(46, 31, 94, 0.06), 0 0 0 0.5px rgba(46, 31, 94, 0.05);
  overflow: hidden;
}

.ios-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; margin: 0;
  font-weight: 500; cursor: default;
  transition: background-color 0.14s ease;
}
.ios-row + .ios-row,
.ios-row + .ios-row-stack,
.ios-row-stack + .ios-row,
.ios-row-stack + .ios-row-stack { border-top: 0.5px solid rgba(46, 31, 94, 0.1); }
.ios-row:hover { background: #FBFAFE; }
.ios-row-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--text); }

.ios-row-stack { flex-direction: column; align-items: stretch; gap: 7px; }
.ios-row-stack .ios-row-label { flex: none; }

/* Inputuri „inline" fără chenar, aliniate dreapta ca pe iOS */
.ios-input {
  border: none; background: transparent; margin: 0; padding: 2px 0;
  font-family: inherit; font-size: 14px; color: #6E6590;
  text-align: right; flex: 1; min-width: 0; max-width: 60%;
}
.ios-input:focus { outline: none; color: var(--text); }
.ios-input::placeholder { color: #B7AFD1; }
.ios-input-num { max-width: 90px; font-variant-numeric: tabular-nums; }
.ios-input-left { text-align: left; max-width: none; color: var(--text); }

.ios-textarea {
  border: none; background: #F5F2FB; border-radius: 10px;
  margin: 0; padding: 10px 12px; width: 100%;
  font-family: inherit; font-size: 14px; color: var(--text); resize: vertical;
}
.ios-textarea:focus { outline: none; background: #F0ECF9; }
.ios-textarea::placeholder { color: #B7AFD1; }

.ios-file { font-size: 13px; color: var(--muted); }

/* Switch iOS */
.ios-switch { position: relative; display: inline-flex; flex-shrink: 0; }
.ios-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ios-switch-track {
  width: 50px; height: 30px; border-radius: 15px;
  background: #E4E0EF; display: block;
  transition: background-color 0.22s ease;
  box-shadow: inset 0 1px 2px rgba(46, 31, 94, 0.08);
}
.ios-switch-knob {
  position: absolute; top: 2px; left: 2px;
  width: 26px; height: 26px; border-radius: 13px;
  background: #FFFFFF; display: block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.3, 1.1, 0.5, 1);
}
.ios-switch input:checked + .ios-switch-track { background: #34C759; }
.ios-switch input:checked + .ios-switch-track .ios-switch-knob { transform: translateX(20px); }
.ios-switch input:focus-visible + .ios-switch-track { box-shadow: 0 0 0 3px rgba(108, 79, 179, 0.25); }

/* Culoare — swatch rotunjit + cod */
.ios-color { display: inline-flex; align-items: center; gap: 9px; }
.ios-color input[type="color"] {
  width: 42px; height: 30px; margin: 0; padding: 0;
  border: none; border-radius: 8px; background: transparent; cursor: pointer;
}
.ios-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ios-color input[type="color"]::-webkit-color-swatch {
  border: 0.5px solid rgba(46, 31, 94, 0.15); border-radius: 8px;
}
.ios-color code { font-size: 12px; }

.ios-save { max-width: 620px; margin-top: 4px; }
.ios-form-wide .ios-save { max-width: none; }

/* Onboarding — carduri de ecran */
.ios-slide { padding-bottom: 4px; }
.ios-slide-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px 11px;
  border-bottom: 0.5px solid rgba(46, 31, 94, 0.1);
}
.ios-slide-num {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #8B6FD0, var(--violet));
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 3px rgba(46, 31, 94, 0.3);
}
.ios-slide-preview {
  display: block; width: calc(100% - 32px);
  margin: 12px 16px 0; border-radius: 12px;
  box-shadow: 0 0 0 0.5px rgba(46, 31, 94, 0.12);
}


/* ---- Studio AI --------------------------------------------------- */
.studio-grid {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px; align-items: start;
}
@media (max-width: 1080px) { .studio-grid { grid-template-columns: 1fr; } }

.studio-cta { font-size: 14.5px; padding: 13px 18px; }
.studio-save { margin-top: 4px; }
.studio-hidden { display: none; }
.studio-hint { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }

/* Select în rând iOS */
.ios-select {
  border: none; background: transparent; margin: 0; padding: 2px 22px 2px 0;
  font-family: inherit; font-size: 14px; color: #6E6590;
  text-align: right; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B84A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
  max-width: 60%; cursor: pointer;
}
.ios-select:focus { outline: none; color: var(--text); }

/* Ecranul gol */
.studio-empty {
  background: var(--card); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(46, 31, 94, 0.06), 0 0 0 0.5px rgba(46, 31, 94, 0.05);
  padding: 64px 40px; text-align: center;
}
.studio-empty-emoji { font-size: 52px; margin-bottom: 8px; }
.studio-empty h2 { margin: 0 0 8px; font-size: 20px; color: var(--night); }
.studio-empty p { margin: 0 auto; max-width: 480px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Titlul mare din rezultat */
.studio-title { font-size: 19px; font-weight: 800; color: var(--night); }

/* Capitole editabile */
.studio-chapter {
  background: #F5F2FB; border-radius: 12px;
  padding: 10px 12px 12px; margin-bottom: 10px;
}
.studio-chapter:last-child { margin-bottom: 0; }
.studio-chapter-title { font-weight: 700; color: var(--night); margin-bottom: 6px; }
.studio-chapter .ios-textarea { background: #FFFFFF; }

/* Coperta */
.studio-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .studio-duo { grid-template-columns: 1fr; } }
.studio-cover-box { padding-bottom: 4px; }
.studio-cover-frame {
  aspect-ratio: 1; margin: 12px; border-radius: 14px;
  background: linear-gradient(160deg, #F5F2FB, #EDE7FA);
  border: 1.5px dashed rgba(46, 31, 94, 0.18);
  display: grid; place-items: center; overflow: hidden;
}
.studio-cover-frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; display: block;
}
.studio-cover-placeholder { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.studio-box-actions { padding: 4px 12px 12px; }

/* Audio */
.studio-audio { width: 100%; height: 40px; }

/* Butoane ocupate */
.btn.is-busy { position: relative; opacity: 0.85; animation: studio-pulse 1.4s ease-in-out infinite; }
@keyframes studio-pulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.55; } }

/* Toast plutitor (Studio) */
.studio-toast {
  position: fixed; top: 18px; right: 18px; z-index: 200;
  max-width: 380px; margin: 0;
  box-shadow: 0 12px 32px rgba(31, 20, 66, 0.25);
  transition: opacity 0.4s ease;
}

/* Cardul AI din editorul poveștii */
.studio-side-card {
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(138, 92, 246, 0.10) 0%, rgba(138, 92, 246, 0) 55%),
    var(--card);
  border: 1px solid rgba(138, 92, 246, 0.25);
}
