/* ─── Écrans V3 : Cloud, Live, Coach, Media kit, outils Producer ─────────────────────── */

.v3-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.v3-muted { color: rgba(255,255,255,0.45); font-size: 12px; line-height: 1.5; }
.v3-empty { color: rgba(255,255,255,0.45); font-size: 13px; padding: 24px 0; text-align: center; }

.v3-storage { min-width: 240px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.v3-storage-top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }
.v3-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.v3-bar > div { height: 100%; background: #a78bfa; border-radius: 99px; transition: width .3s; }
.v3-storage .v3-muted { margin-top: 6px; }

.v3-drop { border: 1.5px dashed rgba(255,255,255,0.2); border-radius: 14px; padding: 18px; text-align: center; margin: 14px 0; transition: background .15s, border-color .15s; }
.v3-drop.drag-over { background: rgba(167,139,250,0.08); border-color: #a78bfa; }
.v3-drop p { margin: 4px 0; color: rgba(255,255,255,0.8); font-size: 13px; }

.v3-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.v3-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.v3-row-main { flex: 1; min-width: 0; }
.v3-row-title { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-row-sub { color: rgba(255,255,255,0.45); font-size: 11.5px; margin-top: 3px; }
.v3-row-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.v3-row-excerpt { color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 6px; font-style: italic; }
.v3-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: middle;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.12); }
.v3-pill.ok { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.v3-pill.violet { background: rgba(124,58,237,0.15); color: #c4b5fd; border-color: rgba(124,58,237,0.3); }
.v3-pill.hot { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.v3-progress { height: 3px; border-radius: 99px; background: rgba(255,255,255,0.08); margin-top: 8px; overflow: hidden; }
.v3-progress > div { height: 100%; background: #a78bfa; width: 0; transition: width .3s; }

.v3-search { display: flex; gap: 8px; margin: 14px 0 6px; }
.v3-search input { flex: 1; }

.v3-meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 6px 0 10px; }
.v3-meter > div { height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #eab308 70%, #ef4444); transition: width .4s; }

.v3-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .v3-grid2 { grid-template-columns: 1fr; } }
.v3-clipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.v3-clipcard { border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: rgba(255,255,255,0.05); cursor: pointer; position: relative; }
.v3-clipcard.on { border-color: #a78bfa; }
.v3-clipcard .th { aspect-ratio: 9/16; background: rgba(255,255,255,0.06) center/cover no-repeat; }
.v3-clipcard p { font-size: 11px; color: rgba(255,255,255,0.75); padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.v3-offer { display: grid; grid-template-columns: 1.2fr 0.6fr 2fr auto; gap: 8px; margin-bottom: 8px; }

.v3-coach-card { padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); margin-bottom: 16px; }
.v3-coach-card h3 { color: #fff; font-size: 17px; margin: 0 0 14px; }
.v3-coach-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.v3-coach-cols h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #a78bfa; margin: 0 0 8px; }
.v3-coach-cols ul { margin: 0; padding-left: 16px; }
.v3-coach-cols li { color: rgba(255,255,255,0.82); font-size: 13px; line-height: 1.5; margin-bottom: 6px; }

.v3-clip-tools { display: flex; gap: 6px; padding: 0 12px 10px; }
.v3-clip-tools button { flex: 1; padding: 6px 4px; border-radius: 8px; border: 1px solid rgba(167,139,250,0.3); background: rgba(124,58,237,0.1);
  color: #ddd6fe; font-size: 11px; cursor: pointer; -webkit-app-region: no-drag; }
.v3-clip-tools button:hover { background: rgba(124,58,237,0.2); }
.v3-clip-tools button:disabled { opacity: .5; cursor: default; }
.v3-variant-badge { position: absolute; top: 8px; right: 8px; background: #7c3aed; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; z-index: 2; }

.v3-producer-tools { display: flex; flex-direction: column; gap: 8px; }
.v3-producer-tools .btn-sm { width: 100%; text-align: left; }
.v3-producer-result { font-size: 11.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.v3-toast { position: fixed; right: 20px; bottom: 20px; z-index: 5000; max-width: 380px; padding: 14px 16px; border-radius: 14px;
  background: rgba(20,16,32,0.96); border: 1px solid rgba(167,139,250,0.4); color: #fff; font-size: 13px; line-height: 1.45;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45); animation: v3-in .2s ease-out; }
.v3-toast b { display: block; margin-bottom: 3px; }
.v3-toast .v3-toast-actions { display: flex; gap: 8px; margin-top: 10px; }
@keyframes v3-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.v3-modal-bg { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.v3-modal { width: 460px; max-width: 92vw; padding: 22px; border-radius: 16px; background: rgba(22,22,26,0.98); border: 1px solid rgba(255,255,255,0.14); }
.v3-modal h3 { color: #fff; font-size: 16px; margin: 0 0 8px; }
.v3-modal textarea { width: 100%; min-height: 90px; margin: 10px 0; resize: vertical; }
.v3-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
