.dashboard-body {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 12% -10%, rgba(250, 204, 21, 0.18), transparent 45%),
                radial-gradient(circle at 82% 0%, rgba(244, 63, 94, 0.2), transparent 52%),
                radial-gradient(circle at 48% 92%, rgba(59, 130, 246, 0.16), transparent 60%),
                #04040a;
    color: var(--th-text-primary);
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.dashboard-sidebar {
    width: 292px;
    background: linear-gradient(205deg, rgba(9, 10, 26, 0.96) 0%, rgba(32, 19, 59, 0.94) 60%, rgba(52, 17, 49, 0.9) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 32px 64px rgba(4, 5, 18, 0.6);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #facc15 0%, #f97316 45%, #f43f5e 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #04040a;
    font-weight: 800;
    font-size: 1.25rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--th-radius-md);
    color: rgba(229, 231, 235, 0.82);
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sidebar-nav-link i {
    font-size: 1.05rem;
    color: rgba(248, 250, 252, 0.82);
}

.sidebar-nav-link:hover,
.sidebar-nav-link:focus-visible {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.12) 0%, rgba(124, 58, 237, 0.2) 100%);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-nav-link.is-active {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.18) 0%, rgba(129, 140, 248, 0.32) 100%);
    color: #fff;
    box-shadow: 0 22px 45px rgba(79, 70, 229, 0.35);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-user-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.sidebar-user-email {
    font-size: 0.82rem;
    color: rgba(209, 213, 219, 0.74);
}

.sidebar-credits-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    background: rgba(250, 204, 21, 0.16);
    color: rgba(254, 240, 138, 0.92);
    border: 1px solid rgba(250, 204, 21, 0.26);
}

.sidebar-actions {
    display: flex;
    gap: 0.75rem;
}

.sidebar-actions .btn-outline-light {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(248, 250, 252, 0.82);
    font-weight: 500;
    padding: 0.65rem 1.2rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sidebar-actions .btn-outline-light:hover,
.sidebar-actions .btn-outline-light:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.dashboard-main {
    flex: 1;
    padding: 3rem 3.75rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.dashboard-topbar {
    background: linear-gradient(135deg, rgba(14, 16, 32, 0.92) 0%, rgba(17, 21, 45, 0.88) 100%);
    border-radius: var(--th-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(5, 7, 20, 0.55);
}

.dashboard-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.25), transparent 55%),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.18), transparent 50%);
    opacity: 0.9;
    pointer-events: none;
}

.dashboard-topbar > * {
    position: relative;
    z-index: 1;
}

.dashboard-headline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 620px;
}

.dashboard-headline h1 {
    font-family: var(--th-font-display);
    font-size: clamp(2rem, 2.7vw, 2.8rem);
    font-weight: 600;
    margin: 0;
}

.dashboard-headline p {
    color: rgba(226, 232, 240, 0.78);
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
}

.dashboard-topbar-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #050608;
    font-weight: 600;
}

.balance-chip i {
    color: #0f172a;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-actions .btn {
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.generator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.generator-card {
    position: relative;
    background: linear-gradient(155deg,
            rgba(6, 7, 16, 0.92) 0%,
            rgba(28, 16, 52, 0.94) 52%,
            rgba(46, 14, 54, 0.9) 100%);
    border-radius: var(--th-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 36px 85px rgba(3, 5, 18, 0.66);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 2.5rem;
    overflow: hidden;
}

.generator-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% -12%, rgba(250, 204, 21, 0.18), transparent 45%),
                radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.22), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.generator-card > * {
    position: relative;
    z-index: 1;
}

.generator-loading {
    display: grid;
    place-items: center;
    min-height: 220px;
    gap: 1rem;
    color: rgba(226, 232, 240, 0.72);
}

.generator-loading .spinner-border {
    width: 2.75rem;
    height: 2.75rem;
    border-width: 0.35rem;
}

.today-section {
    background: rgba(10, 12, 24, 0.88);
    border-radius: var(--th-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 70px rgba(3, 5, 18, 0.6);
    padding: 2.25rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.today-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.2), transparent 50%);
    pointer-events: none;
    opacity: 0.75;
}

.today-section > * {
    position: relative;
    z-index: 1;
}

.today-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.today-section-header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 600;
}

.today-section-header p {
    margin: 0.4rem 0 0;
    color: rgba(209, 213, 219, 0.72);
    max-width: 520px;
}

.today-section-header .btn-outline-light {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(248, 250, 252, 0.9);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.today-section-header .btn-outline-light:hover,
.today-section-header .btn-outline-light:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.today-creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.today-empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--th-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    color: rgba(209, 213, 219, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.today-empty-state strong {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: rgba(248, 250, 252, 0.92);
    margin-bottom: 0.35rem;
}

.creation-card {
    position: relative;
    border-radius: 1.35rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(13, 16, 32, 0.9) 0%, rgba(22, 27, 52, 0.94) 100%);
    box-shadow: 0 28px 60px rgba(5, 8, 24, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.creation-card:hover,
.creation-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 36px 70px rgba(8, 11, 30, 0.6);
}

.creation-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.creation-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.18);
    color: rgba(199, 210, 254, 0.95);
}

.creation-card__title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
}

.creation-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(209, 213, 219, 0.75);
}

.creation-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.creation-card__thumbnail {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 16;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), rgba(13, 17, 33, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.creation-card__thumbnail img,
.creation-card__thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.creation-card__thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(209, 213, 219, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.creation-card__progress {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.creation-card__progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.creation-card__progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.85) 0%, rgba(236, 72, 153, 0.8) 100%);
    border-radius: inherit;
    transition: width 0.35s ease;
}

.creation-card__progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(209, 213, 219, 0.72);
}

.creation-card__progress-meta strong {
    color: rgba(248, 250, 252, 0.95);
    font-weight: 600;
}

.creation-card--processing::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 20% 20%, rgba(129, 140, 248, 0.2), transparent 55%),
                radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.25), transparent 60%),
                radial-gradient(circle at 50% 85%, rgba(45, 212, 191, 0.18), transparent 55%);
    animation: auroraFlow 12s linear infinite;
    opacity: 0.65;
    pointer-events: none;
    filter: blur(18px);
}

.creation-card--processing .creation-card__status {
    background: rgba(236, 72, 153, 0.22);
    color: rgba(255, 228, 230, 0.95);
}

.creation-card--error {
    border-color: rgba(248, 113, 113, 0.35);
    background: linear-gradient(160deg, rgba(24, 11, 23, 0.92), rgba(41, 15, 20, 0.94));
}

.creation-card--error .creation-card__status {
    background: rgba(248, 113, 113, 0.18);
    color: rgba(254, 226, 226, 0.95);
}

.creation-card--completed .creation-card__status {
    background: rgba(74, 222, 128, 0.2);
    color: rgba(187, 247, 208, 0.95);
}

.creation-card--completed:hover .creation-card__thumbnail::after {
    opacity: 0.12;
}

.creation-card__thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(4, 6, 12, 0.55) 100%);
    opacity: 0.08;
    transition: opacity 0.25s ease;
}

.today-loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.today-loading-card {
    border-radius: 1.35rem;
    background: rgba(17, 21, 40, 0.68);
    height: 220px;
    position: relative;
    overflow: hidden;
}

.today-loading-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 40%, transparent 80%);
    animation: shimmer 1.8s infinite;
}

.sidebar-toggle,
.sidebar-close {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9;
}

.sidebar-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes auroraFlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 1199px) {
    .dashboard-sidebar {
        width: 280px;
    }
    .dashboard-main {
        padding: 2.75rem 3rem;
    }
}

@media (max-width: 991px) {
    .dashboard-shell {
        position: relative;
    }
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 20;
        padding-top: 1.75rem;
    }
    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }
    .sidebar-close {
        display: inline-flex;
        margin-left: auto;
        margin-bottom: 1.5rem;
    }
    .dashboard-main {
        padding: 2.25rem 1.75rem 3rem;
    }
    .sidebar-toggle {
        display: inline-flex;
    }
    .dashboard-topbar {
        padding: 1.85rem 1.8rem;
    }
    .today-section {
        padding: 1.85rem 1.8rem;
    }
    .generator-card {
        padding: 1.85rem 1.8rem;
    }
}

@media (max-width: 575px) {
    .dashboard-topbar,
    .today-section,
    .generator-card {
        padding: 1.6rem 1.35rem;
    }
    .today-creations-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-topbar-metrics {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
    }
    .dashboard-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
