/**
 * Creation Hero – elite premium header for create pages.
 * Deep midnight blue, subtle gradient border, layered gloss. AI Studio Pro.
 */

/* Wrapper: gradient border via layered pseudos */
.creation-hero {
    --creation-hero-radius: 20px;
    --creation-hero-navy: #0e1817;
    position: relative;
    border-radius: var(--creation-hero-radius);
    padding: 14px 18px;
    margin-top: -60px;
    margin-bottom: 14px;
    min-height: 96px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
}

/* Layer 1: thin gradient border (turquoise), subtle */
.creation-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--creation-hero-radius);
    background: linear-gradient(90deg, #247369, #27544d);
    z-index: 0;
    opacity: 0.5;
}

/* Layer 2: navy fill + top gloss sheen (reveals 1px gradient ring) – base; per-type overlay in blocks below */
.creation-hero::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--creation-hero-radius) - 1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        var(--creation-hero-navy);
    z-index: 0;
    pointer-events: none;
}

/* Per-type inner gradient tint (ms-panel--hero background variation) */
.creation-hero[data-type="image"]::after {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #0e1519;
}
.creation-hero[data-type="video"]::after {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #150e0e;
}
.creation-hero[data-type="audio"]::after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #0e1512;
}
.creation-hero[data-type="character"]::after {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #16120e;
}
.creation-hero[data-type="assets"]::after {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #0e1418;
}
.creation-hero[data-type="movie-maker"]::after,
.creation-hero[data-type="movie-studio"]::after {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #0e1418;
}
.creation-hero[data-type="trends"]::after,
.creation-hero[data-type="explore"]::after {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.06) 0%, transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%), #0e1418;
}

/* Radial glow from top-left: soft turquoise */
.creation-hero-glow {
    position: absolute;
    inset: -25% -15% -35% -15%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 80% 60% at 0% 0%,
        rgba(var(--turquoise-rgb), 0.08) 0%,
        rgba(var(--turquoise-dark-rgb), 0.04) 40%,
        transparent 65%
    );
    z-index: 0;
    pointer-events: none;
}

.creation-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 24px;
    gap: 20px;
}

.creation-hero-inner > * {
    position: relative;
    z-index: 1;
}

.creation-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1;
}

/* Active mode chip (e.g. IMAGE MODE) */
.creation-hero-mode-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}
.creation-hero[data-type="image"] .creation-hero-mode-chip {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.08);
}
.creation-hero[data-type="video"] .creation-hero-mode-chip {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.08);
}
.creation-hero[data-type="audio"] .creation-hero-mode-chip {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.08);
}
.creation-hero[data-type="character"] .creation-hero-mode-chip {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fcd34d;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.08);
}

/* Icon badge: slightly larger, inner shadow + soft outer glow, subtle top-left reflection */
.creation-hero-icon-badge {
    --badge-radius: 18px;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--badge-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(10, 15, 31, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 24px rgba(var(--turquoise-rgb), 0.12),
        0 0 12px rgba(var(--turquoise-dark-rgb), 0.08),
        0 4px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Subtle top-left glossy reflection */
.creation-hero-icon-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 50%;
    border-radius: var(--badge-radius) 0 60% 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.creation-hero-icon-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--turquoise);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Create page hero icon color per type – same as homepage hero cards */
.creation-hero[data-type="image"] .creation-hero-icon-wrap { color: #c4b5fd; }
.creation-hero[data-type="video"] .creation-hero-icon-wrap { color: #fca5a5; }
.creation-hero[data-type="audio"] .creation-hero-icon-wrap { color: #6ee7b7; }
.creation-hero[data-type="character"] .creation-hero-icon-wrap { color: #fcd34d; }
.creation-hero[data-type="assets"] .creation-hero-icon-wrap { color: #00d4ff; }
.creation-hero[data-type="trends"] .creation-hero-icon-wrap { color: #00d4ff; }
.creation-hero[data-type="explore"] .creation-hero-icon-wrap { color: #00d4ff; }
.creation-hero[data-type="movie-maker"] .creation-hero-icon-wrap { color: #00d4ff; }
.creation-hero[data-type="movie-studio"] .creation-hero-icon-wrap { color: #00d4ff; }

.creation-hero-icon-svg {
    width: 100%;
    height: 100%;
}

.creation-hero-text {
    min-width: 0;
    color: var(--turquoise);
}

.creation-hero-title {
    margin: 0 0 4px;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: #999899;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Create page hero title gradient per type – matches icon color */
.creation-hero[data-type="image"] .creation-hero-title {
    background: linear-gradient(90deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="video"] .creation-hero-title {
    background: linear-gradient(90deg, #fca5a5 0%, #f87171 50%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="audio"] .creation-hero-title {
    background: linear-gradient(90deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="character"] .creation-hero-title {
    background: linear-gradient(90deg, #fde047 0%, #fcd34d 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="assets"] .creation-hero-title {
    background: linear-gradient(90deg, #22d3ee 0%, #00d4ff 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="trends"] .creation-hero-title {
    background: linear-gradient(90deg, #22d3ee 0%, #00d4ff 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="explore"] .creation-hero-title {
    background: linear-gradient(90deg, #22d3ee 0%, #00d4ff 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="movie-maker"] .creation-hero-title {
    background: linear-gradient(90deg, #22d3ee 0%, #00d4ff 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.creation-hero[data-type="movie-studio"] .creation-hero-title {
    background: linear-gradient(90deg, #22d3ee 0%, #00d4ff 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Hero section: all elements use same color set per type (image / video / audio / character) */
/* Image – violet */
.creation-hero[data-type="image"]::before {
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
    opacity: 0.5;
}
.creation-hero[data-type="image"] .creation-hero-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(167, 139, 250, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 65%);
}
.creation-hero[data-type="image"] .creation-hero-icon-badge {
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.12), 0 0 12px rgba(139, 92, 246, 0.08), 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    border-color: rgba(167, 139, 250, 0.25);
}
.creation-hero[data-type="image"] .creation-hero-text { color: #c4b5fd; }
.creation-hero[data-type="image"] .creation-hero-subtitle { color: rgba(196, 181, 253, 0.9); }
.creation-hero[data-type="image"] .creation-hero-subtitle .creation-hero-project-title { color: #c4b5fd; }
.creation-hero[data-type="image"] .creation-hero-pill {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.35) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(167, 139, 250, 0.25);
}
.creation-hero[data-type="image"] .creation-hero-pill-credits {
    border-color: rgba(167, 139, 250, 0.3);
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="image"] .creation-hero-model-info-btn {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(167, 139, 250, 0.08);
    color: #c4b5fd;
}
.creation-hero[data-type="image"] .creation-hero-model-info-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.5);
}
.creation-hero[data-type="image"] .creation-hero-model-info-btn:focus-visible { box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.5); }
.creation-hero[data-type="image"] .creation-hero-actions .creation-hero-btn:hover { border-color: rgba(167, 139, 250, 0.35); }
.creation-hero[data-type="image"] .creation-hero-actions .studio-export-btn {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="image"] .creation-hero-actions .studio-export-btn:hover {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.18) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Video – red */
.creation-hero[data-type="video"]::before {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    opacity: 0.5;
}
.creation-hero[data-type="video"] .creation-hero-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(248, 113, 113, 0.08) 0%, rgba(239, 68, 68, 0.04) 40%, transparent 65%);
}
.creation-hero[data-type="video"] .creation-hero-icon-badge {
    box-shadow: 0 0 24px rgba(248, 113, 113, 0.12), 0 0 12px rgba(239, 68, 68, 0.08), 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    border-color: rgba(248, 113, 113, 0.25);
}
.creation-hero[data-type="video"] .creation-hero-text { color: #fca5a5; }
.creation-hero[data-type="video"] .creation-hero-subtitle { color: rgba(252, 165, 165, 0.9); }
.creation-hero[data-type="video"] .creation-hero-subtitle .creation-hero-project-title { color: #fca5a5; }
.creation-hero[data-type="video"] .creation-hero-pill {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.35) 0%, rgba(239, 68, 68, 0.15) 100%);
    border-color: rgba(248, 113, 113, 0.25);
}
.creation-hero[data-type="video"] .creation-hero-pill-credits {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="video"] .creation-hero-model-info-btn {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
    color: #fca5a5;
}
.creation-hero[data-type="video"] .creation-hero-model-info-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.5);
}
.creation-hero[data-type="video"] .creation-hero-model-info-btn:focus-visible { box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.5); }
.creation-hero[data-type="video"] .creation-hero-actions .creation-hero-btn:hover { border-color: rgba(248, 113, 113, 0.35); }
.creation-hero[data-type="video"] .creation-hero-actions .studio-export-btn {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="video"] .creation-hero-actions .studio-export-btn:hover {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.18) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Audio – emerald */
.creation-hero[data-type="audio"]::before {
    background: linear-gradient(90deg, #059669, #047857);
    opacity: 0.5;
}
.creation-hero[data-type="audio"] .creation-hero-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 65%);
}
.creation-hero[data-type="audio"] .creation-hero-icon-badge {
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.12), 0 0 12px rgba(16, 185, 129, 0.08), 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    border-color: rgba(52, 211, 153, 0.25);
}
.creation-hero[data-type="audio"] .creation-hero-text { color: #6ee7b7; }
.creation-hero[data-type="audio"] .creation-hero-subtitle { color: rgba(110, 231, 183, 0.9); }
.creation-hero[data-type="audio"] .creation-hero-subtitle .creation-hero-project-title { color: #6ee7b7; }
.creation-hero[data-type="audio"] .creation-hero-pill {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.35) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(52, 211, 153, 0.25);
}
.creation-hero[data-type="audio"] .creation-hero-pill-credits {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="audio"] .creation-hero-model-info-btn {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
}
.creation-hero[data-type="audio"] .creation-hero-model-info-btn:hover {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.5);
}
.creation-hero[data-type="audio"] .creation-hero-model-info-btn:focus-visible { box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.5); }
.creation-hero[data-type="audio"] .creation-hero-actions .creation-hero-btn:hover { border-color: rgba(52, 211, 153, 0.35); }
.creation-hero[data-type="audio"] .creation-hero-actions .studio-export-btn {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="audio"] .creation-hero-actions .studio-export-btn:hover {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.18) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Character – amber */
.creation-hero[data-type="character"]::before {
    background: linear-gradient(90deg, #d97706, #b45309);
    opacity: 0.5;
}
.creation-hero[data-type="character"] .creation-hero-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 65%);
}
.creation-hero[data-type="character"] .creation-hero-icon-badge {
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.12), 0 0 12px rgba(245, 158, 11, 0.08), 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 8px rgba(0, 0, 0, 0.25);
    border-color: rgba(251, 191, 36, 0.25);
}
.creation-hero[data-type="character"] .creation-hero-text { color: #fcd34d; }
.creation-hero[data-type="character"] .creation-hero-subtitle { color: rgba(252, 211, 77, 0.9); }
.creation-hero[data-type="character"] .creation-hero-subtitle .creation-hero-project-title { color: #fcd34d; }
.creation-hero[data-type="character"] .creation-hero-pill {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(251, 191, 36, 0.25);
}
.creation-hero[data-type="character"] .creation-hero-pill-credits {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="character"] .creation-hero-model-info-btn {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
}
.creation-hero[data-type="character"] .creation-hero-model-info-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.5);
}
.creation-hero[data-type="character"] .creation-hero-model-info-btn:focus-visible { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5); }
.creation-hero[data-type="character"] .creation-hero-actions .creation-hero-btn:hover { border-color: rgba(251, 191, 36, 0.35); }
.creation-hero[data-type="character"] .creation-hero-actions .studio-export-btn {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creation-hero[data-type="character"] .creation-hero-actions .studio-export-btn:hover {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Assets – cyan */
.creation-hero[data-type="assets"]::before {
    background: linear-gradient(90deg, #0891b2, #0e7490);
    opacity: 0.5;
}
.creation-hero[data-type="assets"] .creation-hero-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(0, 212, 255, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 65%);
}

/* Movie Maker / Movie Studio – teal */
.creation-hero[data-type="movie-maker"]::before,
.creation-hero[data-type="movie-studio"]::before {
    background: linear-gradient(90deg, #0d9488, #0f766e);
    opacity: 0.5;
}
.creation-hero[data-type="movie-maker"] .creation-hero-glow,
.creation-hero[data-type="movie-studio"] .creation-hero-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(45, 212, 191, 0.08) 0%, rgba(20, 184, 166, 0.04) 40%, transparent 65%);
}

/* Trends / Explore – sky */
.creation-hero[data-type="trends"]::before,
.creation-hero[data-type="explore"]::before {
    background: linear-gradient(90deg, #0284c7, #0369a1);
    opacity: 0.5;
}

.creation-hero-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.creation-hero-subtitle .creation-hero-project-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Pills: credits + type */
.creation-hero-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.creation-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(var(--turquoise-rgb), 0.35) 0%, rgba(var(--turquoise-dark-rgb), 0.15) 100%);
    border: 1px solid rgba(var(--turquoise-rgb), 0.25);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.creation-hero-pill-credits {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    padding: 5px 10px;
    border-color: rgba(var(--turquoise-rgb), 0.2);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.creation-hero-model-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.creation-hero-engine-display {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.creation-hero-powered-by {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    margin-left: 1px;
}

.creation-hero-pill-type {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.creation-hero-model-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(var(--turquoise-rgb), 0.4);
    border-radius: 8px;
    background: rgba(var(--turquoise-rgb), 0.08);
    color: var(--turquoise);
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    opacity: 0.85;
}
.creation-hero-model-info-btn:hover {
    opacity: 1;
    background: rgba(var(--turquoise-rgb), 0.15);
    color: var(--turquoise);
    border-color: rgba(var(--turquoise-rgb), 0.5);
}
.creation-hero-model-info-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--turquoise-rgb), 0.5);
}
.creation-hero-model-info-btn i {
    font-size: 14px;
}

/* Custom row (e.g. movie-maker): center = project title, right = actions */
.creation-hero--custom-row .creation-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.creation-hero--custom-row .creation-hero-main {
    flex: none;
}

.creation-hero-center {
    justify-self: center;
    min-width: 0;
    text-align: center;
}

.creation-hero-project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
    display: inline-block;
}

.creation-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.creation-hero-actions .creation-hero-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--text-primary, #fff);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.creation-hero-actions a.creation-hero-btn {
    text-decoration: none;
}

.creation-hero-actions .creation-hero-btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(var(--turquoise-rgb), 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.creation-hero-actions .studio-export-btn {
    /* Same style as Explore View button (ms-list-btn-view) */
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color, #00d4ff);
    box-shadow: none;
}

.creation-hero-actions .studio-export-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: none;
}

.creation-hero-actions a.studio-my-movies-btn {
    text-decoration: none;
}

/* Media page: Back to Explore / Home – same style as Explore View button, compact */
.creation-hero-actions .media-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color, #00d4ff);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.creation-hero-actions .media-back-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    text-decoration: none;
}

/* Very subtle animated sheen on icon badge (elegant, not distracting) */
@keyframes creation-hero-shine {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

.creation-hero-icon-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    border-radius: var(--badge-radius) var(--badge-radius) 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: creation-hero-shine 4s ease-in-out infinite;
    pointer-events: none;
}

/* Responsive: stack pills under title on small screens */
@media (max-width: 768px) {
    .creation-hero {
        padding: 18px 20px;
        border-radius: 18px;
    }

    .creation-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .creation-hero--custom-row .creation-hero-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .creation-hero-center {
        justify-self: start;
        text-align: left;
        order: 2;
    }

    .creation-hero-actions {
        justify-self: start;
        order: 3;
    }

    .creation-hero-main {
        width: 100%;
        order: 1;
    }

    .creation-hero-pills {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }

    /* Direct tools page: ensure hero title appears first on mobile (same as Movie Studio) */
    .direct-tool-page .creation-hero-inner {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 14px;
    }
    .direct-tool-page .creation-hero-main {
        order: 1 !important;
        width: 100%;
    }
    .direct-tool-page .creation-hero-pills {
        order: 2 !important;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .creation-hero-icon-badge {
        width: 64px;
        height: 64px;
        border-radius: 14px;
        --badge-radius: 14px;
    }

    .creation-hero-icon-wrap {
        width: 34px;
        height: 34px;
    }

    .creation-hero-icon-badge::before,
    .creation-hero-icon-badge::after {
        border-radius: 14px 14px 0 0;
    }

    .creation-hero-title {
        font-size: 24px;
    }

    .creation-hero-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .creation-hero {
        padding: 16px 18px;
    }

    .creation-hero-main {
        gap: 14px;
    }
}

/* Back to Movie Maker banner (when ?return=movie_maker) */
.movie-maker-return-banner {
    margin-bottom: 12px;
}

.movie-maker-return-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--turquoise);
    text-decoration: none;
    transition: opacity 0.2s;
}

.movie-maker-return-link:hover {
    opacity: 0.9;
}
