/* ==========================================================
   Viraltoon – "Playful cartoon" theme
   thick ink outlines · hard offset shadows · bouncy buttons
   ========================================================== */
:root {
	/* dark theme tokens */
	--bg: #0d0f1c;           /* page */
	--surface: #171a2c;      /* cards, buttons, inputs */
	--surface-2: #1f2338;    /* nested / soft panels */
	--deep: #070810;         /* video stages */
	--edge: #2f3453;         /* outlines */
	--shadow: #03040a;       /* hard cartoon shadow */
	--ink: #eef0fb;          /* main text */
	--ink-2: #c3c7e0;
	--muted: #8d93b5;
	--on-bright: #16161d;    /* text on yellow chips */
	--paper: var(--bg);
	--card: var(--surface);

	--yellow: #ffd93d;
	--yellow-2: #3a3316;     /* hover / highlight tint */
	--blue: #5b86ff;
	--blue-soft: #1c2750;
	--pink: #ff6b9d;
	--pink-soft: #3b1d31;
	--green: #2ecc8f;
	--green-soft: #13372b;
	--orange: #ff9f43;
	--purple: #9b6bff;
	--red: #ff5b5b;

	--line: 2.5px solid var(--edge);
	--line-thin: 2px solid var(--edge);
	--r: 18px;
	--sh: 5px 5px 0 var(--shadow);
	--sh-sm: 3px 3px 0 var(--shadow);

	--bs-primary: var(--blue);
	--bs-primary-rgb: 91, 134, 255;
	--bs-body-font-family: "Nunito", system-ui, "Segoe UI", sans-serif;
	--bs-body-color: var(--ink);
	--bs-body-bg: var(--bg);
	--bs-border-color: var(--edge);
	--bs-link-color: var(--blue);
	--bs-secondary-color: var(--muted);
	--bs-emphasis-color: var(--ink);
	--bs-tertiary-bg: var(--surface-2);
	color-scheme: dark;
}

body {
	background-color: var(--paper);
	background-image:
		radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .045) 2px, transparent 2.5px);
	background-size: 26px 26px;
	font-weight: 600;
	font-size: .95rem;
}
h1, h2, h3, h4, h5, h6, .vt-display { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; letter-spacing: .01em; }
.text-primary { color: var(--blue) !important; }
.text-muted { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }

/* ---------- buttons (bootstrap classes restyled + .vt-btn) ---------- */
.btn, .vt-btn {
	font-family: "Fredoka", sans-serif; font-weight: 600; letter-spacing: .02em;
	border: var(--line-thin) !important; border-radius: 14px; box-shadow: var(--sh-sm);
	transition: transform .08s, box-shadow .08s; color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	text-decoration: none; padding: .5rem 1rem;
}
.btn:hover, .vt-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active, .vt-btn:active, .btn.active { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--shadow) !important; }
.btn:disabled, .btn.disabled { opacity: .55; transform: none; box-shadow: var(--sh-sm); }
.btn-link { border: 0 !important; box-shadow: none !important; padding: 0; }
.btn-link:hover { transform: none; box-shadow: none; }
.btn-close { border: 0 !important; box-shadow: none !important; }

.btn-vt, .btn-primary { background: var(--blue); color: #fff; }
.btn-vt:hover, .btn-vt:focus, .btn-primary:hover, .btn-primary:focus { background: #3d6cf0; color: #fff; }
.btn-vt { padding: .7rem 1.4rem; font-size: 1.05rem; }
.btn-vt:disabled, .btn-primary:disabled { background: var(--blue); color: #fff; }
.btn-coral, .vt-btn-pink { background: var(--pink); color: #fff; }
.btn-coral:hover, .vt-btn-pink:hover { background: #ff5a90; color: #fff; }
.btn-soft, .btn-light, .vt-btn-white { background: var(--surface); color: var(--ink); }
.btn-soft:hover, .btn-light:hover, .vt-btn-white:hover, .vt-btn-white.active { background: var(--yellow-2); color: var(--ink); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-outline-primary { background: var(--surface); color: var(--ink); }
.btn-check:checked + .btn-outline-primary { background: var(--yellow); color: var(--on-bright); }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 12px; }
.btn-sm, .vt-btn-sm { padding: .3rem .7rem; font-size: .85rem; border-radius: 12px; }
.btn-lg { font-size: 1.2rem; padding: .85rem 1.8rem; }

.form-control, .form-select {
	border: var(--line-thin); border-radius: 14px; font-weight: 600; background-color: var(--surface);
}
.form-control:focus, .form-select:focus { border-color: var(--edge); box-shadow: 0 0 0 4px var(--yellow); }
.form-range::-webkit-slider-runnable-track { background: var(--surface); border: var(--line-thin); height: 12px; border-radius: 10px; }
.form-range::-webkit-slider-thumb { background: var(--pink); border: var(--line-thin); width: 24px; height: 24px; margin-top: -8px; }
.form-range::-moz-range-track { background: var(--surface); border: var(--line-thin); height: 10px; border-radius: 10px; }
.form-range::-moz-range-thumb { background: var(--pink); border: var(--line-thin); width: 22px; height: 22px; }
.form-check-input { border: var(--line-thin); }
.form-check-input:checked { background-color: var(--green); border-color: var(--edge); }

/* ---------- header ---------- */
.vt-header {
	background: var(--yellow); border-bottom: var(--line);
	position: sticky; top: 0; z-index: 1020; color: var(--on-bright); }
.vt-header-row { display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 36px); }
.vt-brand {
	display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
	font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.45rem; letter-spacing: .03em;
}
.vt-brand b { color: var(--pink); -webkit-text-stroke: 1px var(--shadow); }
.vt-logo {
	width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem;
	background: var(--pink); color: #fff; border: var(--line); box-shadow: var(--sh-sm); transform: rotate(-6deg);
}
.vt-brand:hover .vt-logo { transform: rotate(6deg) scale(1.05); transition: transform .2s; }
.vt-chip-title {
	align-items: center; gap: 6px; background: var(--surface); border: var(--line-thin); border-radius: 30px; padding: 4px 12px;
	font-size: .85rem; max-width: 320px; white-space: nowrap;
}
.vt-header-links { margin-left: auto; display: flex; gap: 8px; }

.vt-pills-wrap { border-top: var(--line-thin); background: var(--surface-2); overflow-x: auto; }
.vt-pills { display: flex; align-items: center; gap: 6px; padding: 10px clamp(16px, 3vw, 36px); width: max-content; margin: 0 auto; }
.vt-pill {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	background: var(--surface); border: var(--line-thin); border-radius: 30px; padding: 4px 14px 4px 4px;
	font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--ink); text-decoration: none; font-size: .92rem;
	box-shadow: 2px 2px 0 var(--shadow);
}
.vt-pill-num {
	width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem;
	background: var(--paper); border: var(--line-thin);
}
a.vt-pill:hover { background: var(--yellow-2); color: var(--ink); }
.vt-pill.done .vt-pill-num { background: var(--green); color: #fff; }
.vt-pill.current { background: var(--blue); color: #fff; transform: translateY(-1px) rotate(-1.5deg); box-shadow: 3px 3px 0 var(--shadow); }
.vt-pill.current .vt-pill-num { background: var(--surface); color: var(--ink); }
.vt-pill.locked { opacity: .5; box-shadow: none; border-style: dashed; cursor: not-allowed; }
.vt-pill.done.locked { opacity: .75; border-style: solid; cursor: default; }
.vt-pill-arrow { color: rgba(22, 22, 29, .3); font-size: .9rem; }
.vt-pill-arrow.on { color: var(--ink); }

.vt-main { padding: 30px clamp(16px, 3vw, 40px) 70px; }

/* ---------- page header ---------- */
.vt-page { max-width: 1080px; margin: 0 auto; }
.vt-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.vt-head-icon {
	width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
	background: var(--pink) !important; color: #fff; border: var(--line); box-shadow: var(--sh-sm); transform: rotate(-4deg); flex-shrink: 0;
}
.vt-head h1 { font-size: 2rem; margin: 0; line-height: 1.1; }
.vt-head p { margin: 4px 0 0; color: var(--muted); }
.vt-head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.vt-card {
	background: var(--card); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 24px;
}
.vt-card + .vt-card { margin-top: 22px; }
.vt-label { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.vt-label i {
	width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 10px; font-size: .95rem;
	background: var(--yellow); border: var(--line-thin); color: var(--on-bright);
}
.vt-hint {
	background: var(--green-soft); border: var(--line-thin); border-radius: 14px;
	padding: 10px 14px; font-size: .88rem; display: flex; gap: 8px; align-items: flex-start;
}
.vt-hint.warn { background: var(--yellow-2); }

/* ---------- story composer ---------- */
.vt-hero { text-align: center; margin: 0 auto 24px; max-width: 760px; }
.vt-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin-bottom: 6px; }
.vt-hero h1 span {
	color: var(--blue); white-space: nowrap;
	background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
}
.vt-hero p { font-size: 1rem; margin-top: 0; }
.vt-composer { position: relative; }
.vt-composer textarea {
	border: var(--line); border-radius: 16px; padding: 18px 18px 50px; min-height: 180px; resize: vertical; font-size: 1.05rem;
	background: var(--surface-2);
}
.vt-composer .vt-count {
	position: absolute; right: 14px; bottom: 12px; font-size: .78rem; font-weight: 800;
	background: var(--surface); border: var(--line-thin); padding: 1px 10px; border-radius: 20px;
}
.vt-composer .vt-lang { position: absolute; left: 12px; bottom: 10px; }
.vt-composer .vt-lang select { font-size: .82rem; font-weight: 800; padding: 3px 30px 3px 12px; border-radius: 20px; background-color: var(--yellow); color: var(--on-bright); }

.vt-ideas { display: flex; gap: 10px; flex-wrap: wrap; }
.vt-idea {
	border: var(--line-thin); background: var(--surface); border-radius: 30px; padding: 6px 14px; font-weight: 700;
	font-size: .84rem; color: var(--ink); max-width: 100%; text-align: left; box-shadow: 2px 2px 0 var(--shadow);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .1s;
}
.vt-idea:nth-child(3n+1):hover { background: var(--pink-soft); }
.vt-idea:nth-child(3n+2):hover { background: var(--blue-soft); }
.vt-idea:nth-child(3n):hover { background: var(--green-soft); }
.vt-idea:hover { transform: rotate(-1deg) translateY(-2px); }

.vt-ratio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vt-ratio input { display: none; }
.vt-ratio label {
	border: var(--line); border-radius: 16px; padding: 14px 8px; cursor: pointer; text-align: center; background: var(--surface);
	display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: "Fredoka", sans-serif; font-weight: 600;
	box-shadow: var(--sh-sm); transition: transform .08s;
}
.vt-ratio label small { color: var(--muted); font-family: "Nunito", sans-serif; font-weight: 800; }
.vt-ratio .shape { border: var(--line-thin); border-radius: 4px; background: var(--paper); }
.vt-ratio input:checked + label { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); color: var(--on-bright); }
.vt-ratio input:checked + label .shape { background: var(--pink); }

.vt-stepper { flex-shrink: 0; display: inline-flex; align-items: center; border: var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--sh-sm); overflow: hidden; }
.vt-stepper button { border: 0; background: var(--yellow); width: 38px; height: 40px; color: var(--on-bright); font-weight: 800; }
.vt-stepper button:hover { background: var(--yellow-2); }
.vt-stepper input { width: 52px; text-align: center; border: 0; border-inline: var(--line-thin); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; height: 40px; }
.vt-stepper input:focus { outline: none; }
.vt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.vt-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.vt-cat {
	border: var(--line-thin); background: var(--surface); border-radius: 30px; padding: 5px 14px; font-weight: 800; font-size: .84rem; color: var(--ink);
	box-shadow: 2px 2px 0 var(--shadow);
}
.vt-cat span { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 10px; padding: 0 6px; margin-left: 4px; font-size: .72rem; }
.vt-cat.active { background: var(--blue); color: #fff; }
.vt-cat.active span { background: var(--yellow); color: var(--on-bright); }

.vt-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 14px; }
.vt-style input { display: none; }
.vt-style label {
	display: block; cursor: pointer; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4 / 5;
	border: var(--line); box-shadow: var(--sh-sm); transition: transform .12s;
}
.vt-style:nth-child(odd) label:hover { transform: rotate(-2deg) scale(1.03); }
.vt-style:nth-child(even) label:hover { transform: rotate(2deg) scale(1.03); }
.vt-style .art {
	position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.2rem;
	background-size: cover; background-position: center; text-shadow: 2px 2px 0 rgba(22, 22, 29, .35);
}
.vt-style .name {
	position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 4px; font-family: "Fredoka", sans-serif; font-size: .82rem; font-weight: 600;
	color: var(--ink); text-align: center; background: var(--surface); border: var(--line-thin); border-radius: 10px;
}
.vt-style .tick {
	position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
	border: var(--line-thin); display: none; place-items: center; font-size: 1rem;
}
.vt-style input:checked + label { transform: rotate(-2deg) scale(1.04); box-shadow: 5px 5px 0 var(--pink); outline: 3px solid var(--pink); outline-offset: 2px; }
.vt-style input:checked + label .tick { display: grid; }
.vt-style input:checked + label .name { background: var(--yellow); color: var(--on-bright); }

.vt-summary { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.vt-summary span { background: var(--surface); border: var(--line-thin); border-radius: 30px; padding: 5px 14px; font-size: .84rem; font-weight: 800; }
.vt-summary i { color: var(--pink); margin-right: 4px; }

/* ---------- loader ---------- */
.vt-loader { text-align: center; padding: 60px 20px; }
.vt-orb {
	width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 28px; display: grid; place-items: center; color: #fff; font-size: 2.4rem;
	background: var(--purple); border: var(--line); box-shadow: var(--sh); animation: vt-bounce 1.2s ease-in-out infinite;
}
@keyframes vt-bounce { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.vt-progress { height: 20px; max-width: 360px; margin: 20px auto 0; background: var(--surface); border: var(--line); border-radius: 20px; overflow: hidden; }
.vt-progress div {
	height: 100%; width: 5%; transition: width .8s;
	background: repeating-linear-gradient(-45deg, var(--pink) 0 10px, #ff8db4 10px 20px);
	border-right: var(--line-thin);
}

/* ---------- characters ---------- */
.vt-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.vt-char {
	border: var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-sm);
}
.vt-char:nth-child(odd) { transform: rotate(-.6deg); }
.vt-char:nth-child(even) { transform: rotate(.6deg); }
.vt-char-img {
	aspect-ratio: 1; background: var(--blue-soft); border-bottom: var(--line); position: relative;
	display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: .82rem; font-weight: 700;
}
.vt-char:nth-child(3n+2) .vt-char-img { background: var(--pink-soft); }
.vt-char:nth-child(3n) .vt-char-img { background: var(--green-soft); }
.vt-char-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-char-img .vt-badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.vt-char-img .vt-img-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; }
.vt-char-body { padding: 12px 14px; flex: 1; }
.vt-char-body h6 { font-size: 1.1rem; margin: 0 0 4px; }
.vt-char-body p { font-size: .82rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vt-char-add {
	border: 3px dashed var(--edge); border-radius: 18px; display: grid; place-items: center; min-height: 270px; color: var(--ink);
	background: rgba(255, 255, 255, .6); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
}
.vt-char-add:hover { background: var(--yellow-2); }
.vt-char-add i { font-size: 2.4rem; display: block; color: var(--pink); }

.vt-badge {
	font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px;
	border: 2px solid var(--edge); background: var(--surface); color: var(--ink); text-transform: uppercase; letter-spacing: .04em;
}
.vt-badge.ready { background: var(--green); color: #fff; }
.vt-badge.pending { background: var(--surface); }
.vt-badge.creating, .vt-badge.generating, .vt-badge.queued { background: var(--purple); color: #fff; }
.vt-badge.failed { background: var(--red); color: #fff; }

.vt-avatar {
	width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--edge); margin-left: -8px;
	background: var(--yellow); display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--on-bright);
}
.vt-avatars { padding-left: 8px; display: inline-flex; }

/* ---------- scenes ---------- */
.vt-scenes { display: flex; flex-direction: column; gap: 16px; }
.vt-scene {
	display: flex; gap: 14px; background: var(--surface); border: var(--line); border-radius: 18px; padding: 14px; align-items: flex-start;
	box-shadow: var(--sh-sm);
}
.vt-scene-num {
	width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
	font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; border: var(--line); transform: rotate(-8deg);
}
.vt-scene-handle { cursor: grab; color: var(--ink); padding-top: 10px; font-size: 1.1rem; }
.vt-scene-media { display: flex; gap: 10px; flex-shrink: 0; }
.vt-thumb {
	width: 176px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--blue-soft); border: var(--line-thin);
	position: relative; display: grid; place-items: center; color: var(--ink-2); font-size: .75rem; text-align: center;
}
.vt-thumb[data-vid-box] { background: var(--pink-soft); }
.vt-thumb.r-9-16 { width: 100px; aspect-ratio: 9 / 16; }
.vt-thumb.r-1-1 { width: 124px; aspect-ratio: 1; }
.vt-thumb img, .vt-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-thumb .vt-badge { position: absolute; top: 6px; left: 6px; z-index: 2; }
.vt-thumb .vt-thumb-btn { position: absolute; bottom: 6px; right: 6px; z-index: 2; font-size: .75rem; padding: 1px 8px !important; }
.vt-scene-body { flex: 1; min-width: 0; }
.vt-scene-tag {
	display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: var(--yellow); border: 1.5px solid var(--edge); border-radius: 8px; padding: 0 7px; color: var(--on-bright); }
.vt-scene-text { margin: 6px 0 10px; color: var(--ink); font-size: .98rem; }
.vt-scene-text.small { color: var(--muted) !important; }
.vt-scene-actions { display: flex; flex-direction: column; gap: 6px; }
.vt-scene.sortable-ghost { opacity: .4; }
@media (max-width: 767.98px) {
	.vt-scene { flex-wrap: wrap; }
	.vt-scene-media { width: 100%; }
	.vt-thumb { width: 100%; flex: 1; }
	.vt-scene-actions { flex-direction: row; }
}

.vt-spin { width: 28px; height: 28px; border: 4px solid var(--edge); border-top-color: var(--pink); border-radius: 50%; animation: vt-rot .8s linear infinite; }
@keyframes vt-rot { to { transform: rotate(360deg); } }
.vt-shimmer { background: repeating-linear-gradient(-45deg, var(--blue-soft) 0 14px, #fff 14px 28px) !important; background-size: 200% 200% !important; animation: vt-stripes 1s linear infinite; }
@keyframes vt-stripes { to { background-position: 40px 0; } }

.vt-banner {
	border-radius: var(--r); padding: 20px 22px; margin-bottom: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
	background: var(--blue); color: #fff; border: var(--line); box-shadow: var(--sh);
}
.vt-banner h5 { color: #fff; margin: 0; font-size: 1.35rem; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.vt-banner .small { opacity: .95 !important; font-weight: 700; }
.vt-banner .bar { flex: 1 1 220px; height: 22px; border-radius: 20px; background: var(--surface); border: var(--line); overflow: hidden; }
.vt-banner .bar div {
	height: 100%; width: 0; transition: width .5s;
	background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #ffe56e 10px 20px);
}
.vt-banner .bar div[style*="width: 0"], .vt-banner .bar div:not([style]) { border-right: 0; }

/* ---------- studio / editor ---------- */
.vt-studio { display: grid; grid-template-columns: 1fr 330px; gap: 22px; }
.vt-studio > * { min-width: 0; } /* long videos (30 clips): the timeline scrolls instead of widening the page */
@media (max-width: 1199.98px) { .vt-studio { grid-template-columns: 1fr; } }
.vt-stage {
	background: var(--deep); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px;
	border: var(--line); box-shadow: 5px 5px 0 var(--pink);
}
.vt-screen { position: relative; margin: 0 auto; width: 100%; max-width: calc(62vh * 16 / 9); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 3px solid #fff; }
.vt-screen.r-9-16 { aspect-ratio: 9 / 16; max-width: calc(62vh * 9 / 16); }
.vt-screen.r-1-1 { aspect-ratio: 1; max-width: 62vh; }
.vt-screen video, .vt-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vt-caption {
	position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); max-width: 86%;
	background: var(--yellow); color: var(--on-bright); padding: 6px 14px; border-radius: 12px; border: var(--line-thin);
	font-family: "Fredoka", sans-serif; font-weight: 600; text-align: center; font-size: clamp(.85rem, 1.6vw, 1.05rem);
}
.vt-controls { display: flex; align-items: center; gap: 12px; color: #fff; }
.vt-controls .btn-dark { background: var(--surface); color: var(--ink); border-color: #fff !important; box-shadow: none; }
.vt-play {
	width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; background: var(--pink); color: #fff; font-size: 1.4rem;
	display: grid; place-items: center; box-shadow: 3px 3px 0 #fff;
}
.vt-play:active { transform: translate(2px, 2px); box-shadow: none; }
.vt-scrub { flex: 1; height: 14px; background: #2c2c38; border-radius: 10px; border: 2px solid #fff; display: flex; gap: 2px; overflow: hidden; }
.vt-scrub span { background: #44445a; height: 100%; min-width: 0; }
.vt-scrub span.on { background: var(--yellow); color: var(--on-bright); }
.vt-controls .form-check-label { font-weight: 800; }
.vt-timeline { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; }
.vt-clip {
	flex: 0 0 124px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer;
	border: 3px solid #fff; background: #2c2c38; transition: transform .1s;
}
.vt-clip:hover { transform: translateY(-2px); }
.vt-clip img { width: 100%; height: 100%; object-fit: cover; }
.vt-clip b { position: absolute; top: 4px; left: 4px; background: var(--yellow); color: var(--on-bright); border: 1.5px solid var(--edge); font-size: .72rem; padding: 0 6px; border-radius: 6px; }
.vt-clip small { position: absolute; bottom: 4px; right: 4px; background: var(--deep); color: #fff; font-size: .66rem; padding: 1px 6px; border-radius: 6px; }
.vt-clip.active { border-color: var(--pink); transform: translateY(-3px) rotate(-1.5deg); }
.vt-inspector { overflow: hidden; }
.vt-inspector .border-bottom, .vt-inspector .border-top { border-color: var(--edge) !important; border-width: 2px !important; }
.vt-inspector .accordion-item { border-color: var(--edge); border-width: 0 0 2px; }
.vt-inspector .accordion-button { font-family: "Fredoka", sans-serif; font-weight: 600; box-shadow: none !important; }
.vt-inspector .accordion-button:not(.collapsed) { background: var(--yellow-2); color: var(--ink); }

/* ---------- projects ---------- */
.vt-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.vt-project { background: var(--surface); border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; transition: transform .12s; }
.vt-project:nth-child(odd):hover { transform: rotate(-1deg) translateY(-3px); }
.vt-project:nth-child(even):hover { transform: rotate(1deg) translateY(-3px); }
.vt-project-thumb { aspect-ratio: 16 / 9; background: var(--purple); border-bottom: var(--line); display: grid; place-items: center; color: #fff; font-size: 2.4rem; }
.vt-project:nth-child(3n+2) .vt-project-thumb { background: var(--pink); }
.vt-project:nth-child(3n) .vt-project-thumb { background: var(--green); }
.vt-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-project h6 { font-size: 1.1rem; }
.vt-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.vt-empty i { font-size: 3.2rem; color: var(--pink); }

/* ---------- bootstrap bits ---------- */
.modal-content { border: var(--line) !important; box-shadow: 8px 8px 0 var(--shadow); border-radius: 20px !important; }
.modal-backdrop.show { opacity: .35; }
.alert { border: var(--line-thin); border-radius: 14px; font-weight: 700; }
.toast { border: var(--line-thin) !important; border-radius: 14px; box-shadow: var(--sh-sm); font-weight: 700; }

/* ==========================================================
   Accounts, credits & admin
   ========================================================== */
.vt-credits {
	display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
	background: var(--surface); border: var(--line-thin); border-radius: 30px; padding: 4px 12px 4px 6px; box-shadow: 2px 2px 0 var(--shadow);
	font-family: "Fredoka", sans-serif; font-weight: 600; white-space: nowrap;
}
.vt-credits i {
	width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	background: var(--orange); color: #fff; border: 2px solid var(--edge); font-size: .8rem;
}
.vt-credits:hover { background: var(--yellow-2); color: var(--ink); }
.vt-credits.bump { animation: vt-bump .5s; }
@keyframes vt-bump { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(.95) rotate(2deg); } }

.vt-avatar-btn {
	width: 38px; height: 38px; border-radius: 50%; border: var(--line-thin); background: var(--purple); color: #fff;
	font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.05rem; display: inline-grid; place-items: center;
	box-shadow: 2px 2px 0 var(--shadow); flex-shrink: 0;
}
.vt-avatar-btn.sm { width: 34px; height: 34px; font-size: .9rem; box-shadow: none; }
.vt-avatar-btn.lg { width: 58px; height: 58px; font-size: 1.6rem; box-shadow: var(--sh-sm); }
.vt-menu { border: var(--line-thin); border-radius: 14px; box-shadow: var(--sh-sm); padding: 6px; min-width: 230px; }
.vt-menu .dropdown-item { border-radius: 10px; font-weight: 700; padding: 7px 10px; display: flex; gap: 8px; }
.vt-menu .dropdown-item:hover { background: var(--yellow-2); }
.vt-menu .dropdown-divider { border-color: var(--edge); opacity: .15; }

.vt-cost-tag {
	display: inline-flex; align-items: center; gap: 3px; font-size: .72em; font-weight: 800; font-family: "Nunito", sans-serif;
	background: var(--yellow); color: var(--on-bright); border: 1.5px solid var(--edge); border-radius: 20px; padding: 0 7px; margin-left: 4px;
	vertical-align: middle; text-shadow: none;
}

/* tables */
.vt-table { --bs-table-bg: transparent; margin: 0; }
.vt-table thead th {
	font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
	background: var(--yellow-2); border-bottom: var(--line-thin) !important; white-space: nowrap; padding: 10px 12px;
}
.vt-table td { border-color: rgba(255, 255, 255, .08); padding: 10px 12px; }
.vt-table tbody tr:hover td { background: var(--surface-2); }
.vt-border { border-color: var(--edge) !important; border-width: 2px !important; }
.vt-quick { width: 130px; }
.vt-quick .form-control { border-radius: 10px; }
.vt-type {
	display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; text-transform: uppercase;
	border: 1.5px solid var(--edge); border-radius: 8px; padding: 0 6px; margin-right: 4px;
}
.vt-type-admin { background: var(--blue-soft); }
.vt-type-spend { background: var(--pink-soft); }
.vt-type-refund { background: var(--green-soft); }

/* stats */
.vt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.vt-stat {
	background: var(--surface); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 16px;
	display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; position: relative;
}
a.vt-stat:hover { transform: translate(-1px, -2px); box-shadow: var(--sh); color: var(--ink); }
.vt-stat i {
	width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 8px;
	background: var(--c); color: #fff; border: var(--line-thin);
}
.vt-stat b { font-family: "Fredoka", sans-serif; font-size: 1.9rem; line-height: 1; }
.vt-stat span { color: var(--muted); font-size: .85rem; }

/* balance cards */
.vt-balance-num {
	font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 3rem; line-height: 1;
	display: inline-block; background: var(--yellow); border: var(--line); border-radius: 16px; padding: 6px 18px; box-shadow: var(--sh-sm);
	transform: rotate(-2deg); margin: 4px 0 10px; color: var(--on-bright); }
.vt-price-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1.5px dashed rgba(255, 255, 255, .12); font-size: .9rem; }
.vt-price-list div:last-child { border-bottom: 0; }
.vt-price-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 2px dashed rgba(255, 255, 255, .10); }
.input-group-text { border: var(--line-thin); background: var(--yellow); font-weight: 800; color: var(--on-bright); }
.input-group > .form-control:not(:last-child) { border-right-width: 0; }

.vt-seg { display: grid; grid-template-columns: 1fr 1fr; border: var(--line-thin); border-radius: 14px; overflow: hidden; }
.vt-seg input { display: none; }
.vt-seg label { text-align: center; padding: 8px; cursor: pointer; font-family: "Fredoka", sans-serif; font-weight: 600; background: var(--surface); }
.vt-seg label + input + label { border-left: var(--line-thin); }
.vt-seg #mAdd:checked + label { background: var(--green); color: #fff; }
.vt-seg #mRem:checked + label { background: var(--red); color: #fff; }
.vt-danger { background: var(--surface-2); }

/* login */
.vt-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.vt-auth-wrap { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 767.98px) { .vt-auth-wrap { grid-template-columns: 1fr; gap: 24px; } .vt-auth-side p, .vt-auth-stickers { display: none !important; } }
.vt-auth-side h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.vt-auth-side h1 span {
	display: inline-block; background: var(--pink); color: #fff; padding: 0 12px; border-radius: 14px; border: var(--line);
	box-shadow: var(--sh-sm); transform: rotate(-3deg);
}
.vt-auth-side p { font-size: 1.1rem; color: var(--ink-2); margin: 18px 0 22px; max-width: 420px; }
.vt-auth-stickers { display: flex; gap: 10px; flex-wrap: wrap; }
.vt-auth-stickers span {
	color: #fff; border: var(--line-thin); border-radius: 30px; padding: 6px 14px; font-family: "Fredoka", sans-serif; font-weight: 600;
	box-shadow: 2px 2px 0 var(--shadow);
}
.vt-auth-stickers span:nth-child(odd) { transform: rotate(-3deg); }
.vt-auth-stickers span:nth-child(even) { transform: rotate(3deg); }
.vt-auth-card { padding: 32px; box-shadow: 8px 8px 0 var(--shadow); }

/* brand logo (image) */
.vt-brand { padding: 5px 12px; background: var(--surface); border: var(--line-thin); border-radius: 16px; box-shadow: var(--sh-sm); transition: transform .15s; }
.vt-brand:hover { transform: rotate(-1.5deg) translateY(-1px); }
.vt-logo-full { height: 36px; width: auto; display: block; }
.vt-logo-icon { height: 36px; width: 36px; display: block; }
.vt-brand-lg { display: inline-flex; padding: 10px 18px; transform: rotate(-2deg); }
.vt-brand-lg .vt-logo-full { height: 56px; }
@media (max-width: 575.98px) { .vt-brand { padding: 4px 6px; } }

/* admin "login as user" banner */
.vt-impersonate {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	background: repeating-linear-gradient(-45deg, var(--purple) 0 16px, #8a58f5 16px 32px);
	color: #fff; padding: 8px clamp(16px, 3vw, 36px); border-bottom: var(--line); font-weight: 700;
	position: sticky; top: 0; z-index: 1021;
}
.vt-impersonate > i { font-size: 1.2rem; }
.vt-impersonate + .vt-header { top: 52px; }
@media (max-width: 767.98px) { .vt-impersonate + .vt-header { position: static; } }

/* admin-managed links */
.vt-btn-upgrade { background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; }
.vt-btn-upgrade:hover { color: #fff; filter: brightness(1.05); }
.vt-credits-wrap { display: inline-flex; align-items: center; }
.vt-credits-wrap .vt-credits-buy + .vt-credits, .vt-credits-wrap .vt-credits:has(+ .vt-credits-buy) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.vt-credits-buy {
	display: inline-grid; place-items: center; width: 32px; align-self: stretch; margin-left: -2px;
	background: var(--green); color: #fff; border: var(--line-thin); border-radius: 0 30px 30px 0; box-shadow: 2px 2px 0 var(--shadow);
	text-decoration: none; font-size: 1rem;
}
.vt-credits-buy:hover { background: #22b87e; color: #fff; }
.vt-menu-link { align-items: center; }
.vt-menu .vt-link-buy_credits { color: #0f8a5f; }
.vt-menu .vt-link-upgrade { color: #7c4dff; }
.vt-link-card { padding: 20px 22px; }
.vt-link-icon {
	width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff;
	border: var(--line-thin); box-shadow: var(--sh-sm); transform: rotate(-4deg);
}
.vt-link-icon.vt-link-bonus { background: var(--green); }
.vt-link-icon.vt-link-tutorial { background: var(--red); }
.vt-link-icon.vt-link-support { background: var(--blue); }
.vt-link-icon.vt-link-upgrade { background: var(--purple); }
.vt-link-icon.vt-link-buy_credits { background: var(--orange); }
.vt-save-bar {
	position: sticky; bottom: 16px; margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
	background: var(--surface); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 12px 16px;
}
.toast-body .vt-btn { color: #fff; }

/* filter bar + pagination */
.vt-filter-bar {
	display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px;
	border-bottom: var(--line-thin); background: var(--surface-2);
}
.vt-filter-bar .form-select { width: auto; flex: 0 1 auto; }
.vt-search { position: relative; flex: 1 1 240px; }
.vt-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.vt-search .form-control { padding-left: 38px; }
.vt-table-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 12px 16px; border-top: var(--line-thin); background: var(--surface-2);
}
.vt-pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vt-page-btn {
	min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 12px;
	background: var(--surface); border: var(--line-thin); color: var(--ink); text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600;
	box-shadow: 2px 2px 0 var(--shadow); transition: transform .08s;
}
.vt-page-btn:hover { background: var(--yellow-2); color: var(--ink); transform: translate(-1px, -1px); }
.vt-page-btn.current { background: var(--blue); color: #fff; transform: rotate(-3deg); }
.vt-page-btn.disabled { opacity: .4; pointer-events: none; box-shadow: none; }
.vt-page-gap { padding: 0 2px; color: var(--muted); font-weight: 800; }
@media (max-width: 767.98px) { .vt-table-foot { justify-content: center; } .vt-filter-bar .form-select { flex: 1 1 40%; } }

/* user dashboard */
.vt-dash-hero { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-bottom: 24px; align-items: stretch; }
@media (max-width: 991.98px) { .vt-dash-hero { grid-template-columns: 1fr; } }
.vt-dash-hello {
	background: var(--blue); color: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 28px;
	position: relative; overflow: hidden;
	background-image: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .18) 0 70px, transparent 71px),
		radial-gradient(circle at 78% 110%, rgba(255, 217, 61, .5) 0 90px, transparent 91px);
}
.vt-dash-hello h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 4px 0 6px; text-shadow: 3px 3px 0 rgba(0, 0, 0, .55); }
.vt-dash-hello p { font-size: 1.08rem; opacity: .95; margin-bottom: 18px; }
.vt-dash-hello .small { color: #fff !important; opacity: .85; }
.vt-dash-hello .btn-vt { background: var(--yellow); color: var(--on-bright); }
.vt-dash-hello .btn-vt:hover { background: #ffe56e; color: var(--ink); }
.vt-wave { display: inline-block; animation: vt-wave 1.8s ease-in-out infinite; transform-origin: 70% 70%; text-shadow: none; }
@keyframes vt-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } }
.vt-dash-wallet { background: var(--surface); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; display: flex; flex-direction: column; justify-content: center; }

.vt-continue { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; background: var(--yellow-2); }
.vt-continue-thumb {
	width: 170px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: var(--line-thin); flex-shrink: 0;
	background: var(--purple); display: grid; place-items: center; color: #fff; font-size: 2rem; transform: rotate(-2deg); box-shadow: var(--sh-sm);
}
.vt-continue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-continue h4 { font-size: 1.4rem; }
.min-w-0 { min-width: 0; }
.vt-mini-steps { display: flex; gap: 4px; max-width: 320px; }
.vt-mini-steps span { flex: 1; height: 10px; border-radius: 6px; background: var(--surface); border: 2px solid var(--edge); }
.vt-mini-steps span.done { background: var(--green); }
.vt-mini-steps span.current { background: var(--blue); }

.vt-projects-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.vt-projects-sm .vt-project { box-shadow: var(--sh-sm); }
.vt-projects-sm .vt-project-thumb { font-size: 1.8rem; }

.vt-first-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.vt-first-step { text-align: center; padding: 16px 10px; border: 2px dashed rgba(22, 22, 29, .25); border-radius: 16px; }
.vt-first-step span {
	width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 10px; color: #fff; font-size: 1.4rem;
	border: var(--line-thin); box-shadow: var(--sh-sm);
}
.vt-first-step:nth-child(odd) span { transform: rotate(-5deg); }
.vt-first-step:nth-child(even) span { transform: rotate(5deg); }
.vt-first-step b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.05rem; }
.vt-first-step small { color: var(--muted); }

.vt-activity { list-style: none; padding: 0; margin: 0; }
.vt-activity li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed rgba(255, 255, 255, .10); font-size: .88rem; }
.vt-activity li:last-child { border-bottom: 0; }
.vt-activity-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--edge); }

/* profile */
.vt-avatar-btn { overflow: hidden; padding: 0; }
.vt-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-avatar-btn.xl { width: 116px; height: 116px; font-size: 3rem; box-shadow: var(--sh); cursor: pointer; border-width: 3px; }
.vt-avatar-btn.uploading { opacity: .6; animation: vt-bump .8s infinite; }
.vt-profile-head {
	display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 24px;
	background: var(--surface); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px;
	background-image: radial-gradient(circle at 100% 0, var(--yellow-2) 0 120px, transparent 121px);
}
.vt-profile-head h1 { font-size: 2rem; }
.vt-profile-photo { position: relative; transform: rotate(-3deg); }
.vt-photo-edit {
	position: absolute; right: -4px; bottom: -4px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
	background: var(--pink); color: #fff; border: var(--line-thin); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--shadow);
}
.vt-photo-edit:hover { background: #ff5a90; }

/* plans */
.vt-plans { display: flex; gap: 4px; flex-wrap: wrap; }
.vt-plan {
	display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	background: var(--pc); color: #fff; border: 1.5px solid var(--edge); border-radius: 20px; padding: 0 7px; line-height: 1.6;
}
.vt-plan-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-plan-pick {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
	border: var(--line-thin); border-radius: 30px; padding: 5px 14px; background: var(--surface); font-family: "Fredoka", sans-serif; font-weight: 600;
	box-shadow: 2px 2px 0 var(--shadow); color: var(--ink);
}
.vt-plan-pick i { color: var(--pc); }
.btn-check:checked + .vt-plan-pick { background: var(--pc); color: #fff; transform: rotate(-2deg); }
.btn-check:checked + .vt-plan-pick i { color: #fff; }
.btn-check:focus-visible + .vt-plan-pick { outline: 3px solid var(--yellow); }

/* agency */
.vt-agency-usage {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
	background: var(--surface); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 16px 20px;
}
.vt-agency-usage .bar { flex: 1 1 200px; height: 18px; background: var(--surface); border: var(--line-thin); border-radius: 20px; overflow: hidden; }
.vt-agency-usage .bar div { height: 100%; background: repeating-linear-gradient(-45deg, var(--purple) 0 10px, #8a58f5 10px 20px); }
.vt-agency-card { background: var(--surface-2); }
.vt-agency-card:hover { transform: translate(-1px, -2px); box-shadow: var(--sh); }

/* prompt generator */
.vt-gen { background: var(--surface-2); margin-bottom: 24px; }
.vt-chip-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-chip-pick {
	cursor: pointer; user-select: none; border: var(--line-thin); border-radius: 30px; padding: 5px 13px; background: var(--surface);
	font-weight: 700; font-size: .86rem; box-shadow: 2px 2px 0 var(--shadow); transition: transform .08s;
}
.vt-chip-pick:hover { background: var(--yellow-2); }
.btn-check:checked + .vt-chip-pick { background: var(--green); color: #fff; transform: rotate(-2deg); }
.btn-check:focus-visible + .vt-chip-pick { outline: 3px solid var(--yellow); }
.vt-prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 575.98px) { .vt-prompts { grid-template-columns: 1fr; } }
.vt-prompt {
	background: var(--surface); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 16px 18px;
	display: flex; flex-direction: column; transition: opacity .25s, transform .25s;
}
.vt-prompt.fresh { background: var(--surface-2); animation: vt-pop .35s ease-out; }
@keyframes vt-pop { from { transform: scale(.94) rotate(-1deg); opacity: 0; } }
.vt-prompt.removing { opacity: 0; transform: scale(.9); }
.vt-prompt-head { display: flex; gap: 10px; align-items: flex-start; }
.vt-prompt-head h6 { flex: 1; font-size: 1.1rem; margin: 0 0 6px; }
.vt-prompt-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.vt-prompt-tags span { font-size: .7rem; font-weight: 800; border: 1.5px solid var(--edge); border-radius: 20px; padding: 0 8px; background: var(--blue-soft); }
.vt-prompt-tags span:nth-child(2) { background: var(--pink-soft); }
.vt-prompt-tags span:nth-child(3) { background: var(--green-soft); }
.vt-prompt-text { font-size: .92rem; color: var(--ink-2); white-space: pre-line; flex: 1; margin-bottom: 10px; }
.vt-prompt-foot { display: flex; gap: 8px; align-items: center; border-top: 1.5px dashed rgba(255, 255, 255, .10); padding-top: 10px; }

/* admin video & prompt previews */
.vt-vthumb {
	position: relative; width: 96px; aspect-ratio: 16 / 9; flex-shrink: 0; border-radius: 10px; overflow: hidden; padding: 0;
	border: var(--line-thin); background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
}
.vt-vthumb.r-9-16 { width: 44px; aspect-ratio: 9 / 16; }
.vt-vthumb.r-1-1 { width: 64px; aspect-ratio: 1; }
.vt-vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-vthumb .play {
	position: absolute; inset: 0; display: grid; place-items: center; background: rgba(22, 22, 29, .35); opacity: 0; transition: opacity .15s;
}
.vt-vthumb:hover .play { opacity: 1; }
.vt-vm-stage { background: var(--deep); border-radius: 14px; border: var(--line); display: grid; place-items: center; min-height: 240px; overflow: hidden; }
.vt-vm-stage video, .vt-vm-stage img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #000; }
.vt-vm-stage.r-9-16 video, .vt-vm-stage.r-9-16 img { width: auto; max-width: 100%; height: 62vh; margin: 0 auto; }
.vt-vm-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.vt-vm-chip {
	border: var(--line-thin); background: var(--surface); border-radius: 20px; padding: 3px 12px; font-weight: 700; font-size: .82rem; box-shadow: 2px 2px 0 var(--shadow);
}
.vt-vm-chip.active { background: var(--yellow); color: var(--on-bright); }
.vt-vm-story {
	background: var(--surface-2); border: var(--line-thin); border-radius: 14px; padding: 14px; white-space: pre-line; font-size: .95rem; max-height: 40vh; overflow: auto;
}
.vt-vm-scenes { padding-left: 1.2rem; margin: 0; font-size: .88rem; }
.vt-vm-scenes li { margin-bottom: 6px; }

/* header credits: small text, top-right, the only place credits are shown */
.vt-credits-mini {
	font-size: .82rem; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 0 4px;
	border-bottom: 1.5px dashed rgba(22, 22, 29, .35);
}
.vt-credits-mini b { color: var(--ink); }
.vt-credits-mini:hover { color: var(--blue); border-bottom-color: var(--blue); }
.vt-credits-mini.bump { animation: vt-bump .5s; display: inline-block; }
.vt-header-links { align-items: center; }

/* clean dashboard */
.vt-dash-hi { margin: 4px 0 22px; }
.vt-dash-hi h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 2px; }
.vt-dash-hi p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.vt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 767.98px) { .vt-actions { grid-template-columns: 1fr; } }
.vt-action {
	display: flex; align-items: center; gap: 16px; padding: 24px 22px; border: var(--line); border-radius: var(--r);
	box-shadow: var(--sh); text-decoration: none; color: #fff; transition: transform .12s, box-shadow .12s;
}
.vt-action:hover { color: #fff; transform: translate(-2px, -3px); box-shadow: 7px 8px 0 var(--shadow); }
.vt-action-blue { background: var(--blue); }
.vt-action-green { background: var(--green); }
.vt-action-icon {
	width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem;
	background: var(--surface); color: var(--ink); border: var(--line-thin); transform: rotate(-5deg);
}
.vt-action-text { flex: 1; display: flex; flex-direction: column; }
.vt-action-text b { font-family: "Fredoka", sans-serif; font-size: 1.35rem; font-weight: 700; text-shadow: 2px 2px 0 rgba(22, 22, 29, .35); }
.vt-action-text small { font-size: .9rem; opacity: .95; }
.vt-action-go { font-size: 1.8rem; }
.vt-stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 575.98px) { .vt-stats-3 { grid-template-columns: 1fr; } }

/* dashboard mascots */
.vt-dash-hi { display: flex; align-items: center; gap: 14px; }
.vt-dash-mascot { height: 118px; width: auto; margin: -10px 0 -6px; animation: vt-float-bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
@keyframes vt-float-bob { 50% { transform: translateY(-8px) rotate(2deg); } }
.vt-actions { margin-top: 8px; }
.vt-action { position: relative; min-height: 150px; padding-right: 150px; overflow: visible; }
.vt-action-art {
	position: absolute; right: 14px; bottom: 0; height: 175px; width: auto; max-width: 150px; object-fit: contain;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); transition: transform .2s; transform-origin: bottom center;
}
.vt-action:hover .vt-action-art { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.vt-action-cta {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; align-self: flex-start;
	background: var(--surface); color: var(--ink); border: var(--line-thin); border-radius: 30px; padding: 3px 12px;
	font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .9rem; box-shadow: 2px 2px 0 var(--shadow);
}
@media (max-width: 575.98px) {
	.vt-dash-mascot { height: 110px; }
	.vt-action { padding-right: 110px; }
	.vt-action-art { height: 130px; max-width: 105px; }
	.vt-action-icon { display: none; }
}

/* ==========================================================
   Dark theme finishing touches
   ========================================================== */
body { background-color: var(--bg); background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .045) 2px, transparent 2.5px); }
.text-dark { color: var(--ink) !important; }
a { color: var(--blue); }
::selection { background: var(--yellow); color: var(--on-bright); }

/* header: dark bar, yellow accents; logo keeps its white sticker so the black "Viral" stays readable */
.vt-header { background: #121528; border-bottom: 2px solid var(--edge); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.vt-pills-wrap { background: #0f1223; border-top: 1px solid var(--edge); }
.vt-brand { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 217, 61, .25); }
.vt-pill { background: var(--surface); color: var(--ink); box-shadow: none; }
.vt-pill-num { background: var(--surface-2); }
.vt-pill.current { background: var(--blue); color: #fff; box-shadow: 0 0 0 3px rgba(91, 134, 255, .3); }
.vt-pill.current .vt-pill-num { background: #fff; color: var(--on-bright); }
.vt-pill-arrow { color: rgba(255, 255, 255, .2); }
.vt-credits-mini { color: var(--ink-2); border-bottom-color: rgba(255, 217, 61, .5); }
.vt-credits-mini b { color: var(--yellow); }
.vt-credits-mini:hover { color: var(--yellow); }

/* surfaces & text */
.vt-card, .vt-stat, .vt-scene, .vt-char, .vt-project, .vt-prompt { color: var(--ink); }
.vt-head h1, .vt-hero h1, .vt-dash-hi h1, h1, h2, h3, h4, h5, h6 { color: #fff; }
.vt-hero h1 span { color: var(--yellow); background: linear-gradient(transparent 70%, rgba(255, 217, 61, .25) 70%); }
.vt-label i { color: var(--on-bright); }
.vt-hint { color: #bff2dc; border-color: #1f5c47; }
.vt-hint.warn { color: #ffe9a6; border-color: #5d5020; }
.form-control, .form-select { background-color: var(--surface-2); color: var(--ink); }
.form-control::placeholder { color: #6f7596; }
.form-control:disabled { background-color: #13162a; color: var(--muted); }
.form-control:focus, .form-select:focus { background-color: var(--surface-2); color: #fff; box-shadow: 0 0 0 4px rgba(255, 217, 61, .35); }
.input-group-text { color: var(--on-bright); }
.vt-composer textarea { background: var(--surface-2); color: #fff; }
.vt-composer .vt-count { background: var(--surface); }
.vt-idea, .vt-cat, .vt-chip-pick, .vt-plan-pick, .vt-vm-chip, .vt-page-btn { color: var(--ink); }
.vt-ratio label { background: var(--surface); color: var(--ink); }
.vt-ratio .shape { background: var(--surface-2); }
.vt-stepper input { background: var(--surface); color: var(--yellow); }
.btn-soft:hover, .btn-light:hover, .vt-btn-white:hover, .vt-btn-white.active { color: var(--yellow); }
.btn-outline-primary { color: var(--ink); }
.vt-badge.pending { background: var(--surface-2); color: var(--ink-2); }
.vt-table thead th { color: #ffe9a6; }
.vt-table td { color: var(--ink); }
.vt-table tbody tr:hover td { background: #1b1f33; }
.vt-price-list div, .vt-activity li, .vt-price-row { border-color: rgba(255, 255, 255, .08); }
.vt-type { color: var(--ink); }
.vt-first-step { border-color: rgba(255, 255, 255, .15); }
.vt-thumb, .vt-char-img { background: #1a2040; }
.vt-char:nth-child(3n+2) .vt-char-img { background: #2a1a2c; }
.vt-char:nth-child(3n) .vt-char-img { background: #152a24; }
.vt-thumb[data-vid-box] { background: #2a1a2c; }
.vt-shimmer { background: repeating-linear-gradient(-45deg, #1c2750 0 14px, #171a2c 14px 28px) !important; }
.vt-char-add { background: rgba(255, 255, 255, .03); }
.vt-banner { box-shadow: var(--sh); }
.vt-progress, .vt-banner .bar, .vt-agency-usage .bar { background: var(--surface-2); }
.vt-spin { border-color: rgba(255, 255, 255, .25); border-top-color: var(--pink); }
.vt-danger { background: #2a1519; }
.vt-save-bar { background: var(--surface); }
.vt-link-card, .vt-gen { background: var(--surface); }
.vt-prompt.fresh { background: #22203a; }
.vt-prompt-tags span { color: var(--ink); }
.vt-vm-story { background: var(--surface-2); color: var(--ink); }
.vt-seg label { background: var(--surface); color: var(--ink); }
.vt-auth-card { box-shadow: 8px 8px 0 var(--shadow); }
.vt-auth-side p { color: var(--ink-2); }

/* studio / players */
.vt-stage { background: var(--deep); box-shadow: 5px 5px 0 var(--pink); }
.vt-screen { border-color: #2a2f4d; }
.vt-scrub { background: #1c1f33; border-color: #3a3f63; }
.vt-scrub span { background: #2c3050; }
.vt-clip { border-color: #2a2f4d; background: #1c1f33; }
.vt-controls .btn-dark { background: var(--surface); color: var(--ink); border-color: var(--edge) !important; }
.vt-play { border-color: #fff; box-shadow: 3px 3px 0 rgba(255, 255, 255, .25); }

/* bootstrap popups in dark */
.modal-content { background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--shadow); }
.modal-backdrop.show { opacity: .7; }
.dropdown-menu, .vt-menu { background: var(--surface); border-color: var(--edge); }
.vt-menu .dropdown-item { color: var(--ink); }
.vt-menu .dropdown-item:hover { background: var(--surface-2); color: var(--yellow); }
.vt-menu .dropdown-divider { border-color: rgba(255, 255, 255, .1); }
.toast { background: var(--surface); color: var(--ink); }
.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-color: var(--ink); --bs-accordion-border-color: var(--edge); }
.vt-inspector .accordion-button { background: var(--surface); color: var(--ink); }
.vt-inspector .accordion-button:not(.collapsed) { background: var(--surface-2); color: var(--yellow); }
.alert-danger { background: #3a1519; color: #ffc9c9; border-color: #6b2630; }
.vt-ratio input:checked + label small { color: #6b5600; }
.vt-chip-title { background: var(--surface-2); color: var(--ink); border-color: var(--edge); }

/* ==========================================================
   Dashboard – big hero banner layout
   ========================================================== */
.vt-hb {
	position: relative; display: flex; align-items: center; gap: 24px; min-height: 280px; margin-bottom: 22px;
	padding: 36px 40px; border-radius: 26px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .08);
	background:
		radial-gradient(circle at 85% 15%, rgba(255, 217, 61, .22) 0 90px, transparent 91px),
		radial-gradient(circle at 70% 110%, rgba(255, 107, 157, .35) 0 160px, transparent 161px),
		linear-gradient(120deg, #6d3cf5 0%, #4a5dff 55%, #2b8cff 100%);
	box-shadow: 0 18px 50px rgba(74, 93, 255, .28), 5px 5px 0 var(--shadow);
}
.vt-hb::after { /* soft dotted texture */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(circle at 10px 10px, rgba(255, 255, 255, .12) 1.5px, transparent 2px); background-size: 22px 22px;
}
.vt-hb-text { position: relative; z-index: 2; flex: 1 1 55%; color: #fff; }
.vt-hb-kicker {
	display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 12px; border-radius: 30px; margin-bottom: 14px;
}
.vt-hb h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 10px; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.vt-hb p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; max-width: 440px; margin-bottom: 22px; }
.vt-hb-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.vt-hb-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 16px; text-decoration: none;
	font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; transition: transform .12s, box-shadow .12s;
}
.vt-hb-btn-main { background: var(--yellow); color: var(--on-bright); box-shadow: 0 5px 0 #c9a200, 0 10px 24px rgba(0, 0, 0, .25); }
.vt-hb-btn-main:hover { color: var(--on-bright); transform: translateY(-2px); box-shadow: 0 7px 0 #c9a200, 0 14px 28px rgba(0, 0, 0, .3); }
.vt-hb-btn-alt { background: rgba(255, 255, 255, .14); color: #fff; border: 2px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.vt-hb-btn-alt:hover { color: #fff; background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.vt-hb-art { position: relative; z-index: 1; flex: 0 0 360px; height: 230px; }
.vt-hb-art img { position: absolute; bottom: -8px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.vt-hb-robot { left: 50%; transform: translateX(-50%); height: 225px; z-index: 2; animation: vt-float-bob 3.2s ease-in-out infinite; }
.vt-hb-kid { left: 0; height: 185px; transform: rotate(-6deg); }
.vt-hb-bulb { right: 0; height: 180px; transform: rotate(6deg); animation: vt-float-bob 3.8s ease-in-out infinite .6s; }
@media (max-width: 991.98px) {
	.vt-hb { flex-direction: column; align-items: flex-start; padding: 28px 24px 0; }
	.vt-hb-art { flex-basis: auto; width: 100%; max-width: 360px; height: 190px; align-self: center; }
	.vt-hb-robot { height: 180px; } .vt-hb-kid { height: 150px; } .vt-hb-bulb { height: 145px; }
}

.vt-strip {
	display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px;
	background: var(--surface); border: var(--line-thin); border-radius: 18px; box-shadow: var(--sh-sm); overflow: hidden;
}
.vt-strip-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--ink); text-decoration: none; transition: background .15s; }
.vt-strip-item + .vt-strip-item { border-left: 1px solid var(--edge); }
a.vt-strip-item:hover { background: var(--surface-2); color: var(--ink); }
.vt-strip-icon {
	width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0;
	background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.vt-strip-item b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.6rem; line-height: 1; color: #fff; }
.vt-strip-item small { color: var(--muted); font-weight: 700; }
@media (max-width: 575.98px) {
	.vt-strip { grid-template-columns: 1fr; }
	.vt-strip-item + .vt-strip-item { border-left: 0; border-top: 1px solid var(--edge); }
}

.vt-plan-note {
	display: flex; align-items: center; gap: 14px; padding: 14px 20px; margin-bottom: 18px; border-radius: 18px;
	background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.vt-plan-note b { display: block; color: #fff; font-size: 1.05rem; }
.vt-plan-note small { color: var(--muted); font-weight: 700; }

.vt-section-head { display: flex; align-items: center; margin-bottom: 14px; }
.vt-section-head h5 { margin: 0; font-size: 1.3rem; }
.vt-link-more { margin-left: auto; font-weight: 800; text-decoration: none; color: var(--yellow); }
.vt-link-more:hover { color: #fff; }

.vt-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.vt-recent-card {
	display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface);
	border: var(--line-thin); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .15s;
}
.vt-recent-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.vt-recent-thumb {
	position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 2rem; color: rgba(255, 255, 255, .6);
	background: linear-gradient(135deg, #3a2a7a, #1f3f8f);
}
.vt-recent-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-recent-play {
	position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; color: #fff;
	background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s;
}
.vt-recent-card:hover .vt-recent-play { opacity: 1; }
.vt-recent-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.vt-recent-body b { font-family: "Fredoka", sans-serif; font-size: 1.05rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-recent-body small { color: var(--muted); font-weight: 700; }

.vt-empty-hero {
	display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px;
	background: var(--surface); border: 2px dashed var(--edge);
}
.vt-empty-hero > i { font-size: 2.2rem; color: var(--yellow); }
.vt-empty-hero b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.15rem; color: #fff; }
.vt-empty-hero span { color: var(--muted); }
.vt-hb-art { flex: 0 0 430px; }
.vt-hb-robot { height: 205px; }
.vt-hb-kid { left: 4px; height: 175px; }
.vt-hb-bulb { right: -4px; height: 170px; z-index: 3; }
@media (max-width: 991.98px) { .vt-hb-art { max-width: 380px; } .vt-hb-robot { height: 165px; } .vt-hb-kid { height: 140px; } .vt-hb-bulb { height: 135px; } }

/* locked "Open Studio" until every clip is ready */
.btn.vt-locked { opacity: .55; filter: grayscale(.4); cursor: not-allowed; box-shadow: none; }
.btn.vt-locked:hover { transform: none; box-shadow: none; }
.vt-nudge { animation: vt-nudge .6s; }
@keyframes vt-nudge { 20%, 60% { transform: translateX(-6px) rotate(-2deg); } 40%, 80% { transform: translateX(6px) rotate(2deg); } }

/* studio inspector: status ticks + captions checkbox */
.vt-ticks { list-style: none; margin: 0; padding: 0; }
.vt-ticks li { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed rgba(255, 255, 255, .08); font-weight: 700; }
.vt-ticks li:last-child { border-bottom: 0; }
.vt-ticks li > i { font-size: 1.15rem; }
.vt-ticks li.ok > i { color: var(--green); }
.vt-ticks li.no > i { color: var(--red); }
.vt-ticks li.no span { color: var(--muted); }
.vt-cap-check {
	display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border-radius: 12px;
	background: var(--surface-2); border: 1.5px solid var(--edge);
}
.vt-cap-check .form-check-input { width: 1.25rem; height: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.vt-cap-check b { display: block; color: #fff; }
.vt-cap-check small { color: var(--muted); }

/* caption fonts: the same files ffmpeg uses for the export, so preview == video */
@font-face { font-family: "Noto Sans"; src: url("../fonts/NotoSans-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Varela Round"; src: url("../fonts/VarelaRound-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bangers"; src: url("../fonts/Bangers-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("../fonts/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2-Variable.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

/* caption style panel */
.vt-capstyle { background: var(--surface-2); border: 1.5px solid var(--edge); border-radius: 14px; padding: 12px; }
.vt-cs-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; }
.vt-cs-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vt-cs-fonts label {
	display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; cursor: pointer;
	background: var(--surface); border: 1.5px solid var(--edge); color: var(--ink); transition: border-color .12s;
}
.vt-cs-fonts label span { font-size: 1.25rem; line-height: 1.2; }
.vt-cs-fonts label small { font-family: "Nunito", sans-serif; font-size: .62rem; font-weight: 800; color: var(--muted); }
.vt-cs-fonts label:hover { border-color: var(--blue); }
.vt-cs-fonts .btn-check:checked + label { border-color: var(--yellow); background: var(--yellow-2); }
.vt-cs-fonts .btn-check:checked + label small { color: var(--yellow); }
.vt-cs-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.vt-cs-row .form-range { flex: 1; }
.vt-cs-val { min-width: 26px; text-align: right; font-weight: 800; color: var(--yellow); }
.vt-cs-bold { cursor: pointer; }
.vt-cs-colors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vt-cs-colors input[type=color] { width: 34px; height: 30px; padding: 0; border: 1.5px solid var(--edge); border-radius: 8px; background: none; cursor: pointer; }
.vt-cs-colors button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--edge); padding: 0; cursor: pointer; }
.vt-cs-colors button:hover { transform: scale(1.12); border-color: #fff; }
.vt-cs-seg label { padding: 5px; font-size: .85rem; }
.vt-cs-seg input:checked + label { background: var(--blue); color: #fff; }
.vt-cs-seg { grid-template-columns: repeat(3, 1fr); }
.vt-cs-seg label + input + label { border-left: 1.5px solid var(--edge); }

/* My Projects grid: every thumbnail is the same 16:9 frame, whatever the video format */
.vt-projects-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vt-pcard .vt-recent-thumb { display: grid; overflow: hidden; }
.vt-pcard-ratio {
	position: absolute; top: 8px; right: 8px; z-index: 2; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
	background: rgba(0, 0, 0, .6); color: #fff; padding: 2px 7px; border-radius: 8px; backdrop-filter: blur(4px);
}
.vt-pcard-title {
	font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.08rem; color: #fff; text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-pcard-title:hover { color: var(--yellow); }
.vt-pcard-meta { color: var(--muted); font-weight: 700; margin-top: -4px; }
.vt-pcard-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--edge); }
.vt-pcard-date { color: var(--muted); font-weight: 700; white-space: nowrap; }
.vt-pcard-del {
	width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
	background: var(--surface-2); border: 1.5px solid var(--edge); color: var(--muted); transition: color .12s, border-color .12s;
}
.vt-pcard-del:hover { color: var(--red); border-color: var(--red); }
/* admin All Videos: status tabs with counts */
.vt-status-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.vt-status-tab {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; text-decoration: none;
	background: var(--surface); border: 1px solid var(--edge); color: var(--muted); font-weight: 700;
}
.vt-status-tab b { color: var(--ink); font-size: 1.05rem; }
.vt-status-tab:hover { color: var(--ink); border-color: var(--muted); }
.vt-status-tab.current { color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.vt-status-tab.done i { color: var(--green); }
.vt-status-tab.pending i { color: var(--yellow); }
.vt-status-tab.failed i { color: var(--red); }
/* scene kind: AI video clip or image + voice-over */
.vt-kind {
	display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; padding: 2px 9px; border-radius: 20px;
	font-size: .7rem; font-weight: 800; letter-spacing: .03em;
}
.vt-kind.video { background: rgba(155, 107, 255, .18); color: #c4a8ff; }
.vt-kind.image { background: rgba(46, 204, 143, .16); color: #6fe0b4; }
/* My Exports: a playable preview instead of a thumbnail */
.vt-export-thumb { background: #000; }
.vt-export-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vt-export-thumb .vt-pcard-ratio { pointer-events: none; }
.vt-type-purchase, .vt-type-welcome { background: var(--green-soft); }
.vt-type-reversal { background: var(--pink-soft); }

/* whitelabel brand */
.vt-brand-name { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; color: #16161d; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; line-height: 36px; }
.vt-logo-custom { max-width: 180px; object-fit: contain; }
@media (max-width: 575.98px) { .vt-logo-custom { max-width: 110px; height: 30px; } .vt-brand-name { font-size: 1rem; } }
.vt-brand-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: var(--line-thin); }
.vt-tab-preview { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 14px; border-radius: 10px 10px 0 0; background: var(--surface); border: var(--line-thin); border-bottom: 0; font-size: .85rem; }
.vt-tab-preview img { width: 16px; height: 16px; object-fit: contain; }
.vt-tab-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-dns-box { padding: 16px; border-radius: 14px; background: var(--surface-2); border: var(--line-thin); font-size: .9rem; }
.vt-dns-box .fw-bold { font-weight: 600 !important; }
