/*
 * Dark-first design system layered on top of Bootstrap for SpaceScrape.
 */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    color-scheme: dark;
}

html {
    background-color: #040814;
}

body.theme-dark {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: #0b1120;
    color: #e2e8f0;
    margin: 0;
}

body.theme-dark a {
    color: #80bfff;
}

body.theme-dark a:hover {
    color: #a5cdff;
}

html.rs-preload,
html.rs-preload body {
    scroll-behavior: auto !important;
}

html.rs-preload body {
    opacity: 0;
    pointer-events: none;
}

/* Layout */
.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

@media (min-width: 992px) {
    .dashboard-shell {
        gap: 2.5rem;
    }
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: none;
}

.dashboard-main > * {
    /*width: 100%;*/
}

.available-credits-card {
    margin: 0;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

@media (max-width: 575.98px) {
    .available-credits-card {
        padding: 1rem 1.25rem;
    }
}


.bundle-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    flex: 1 1 auto;
    padding: 1.75rem 1.6rem 1.6rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(9, 13, 24, 0.88));
    box-shadow: 0 28px 56px rgba(6, 12, 26, 0.55);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
    overflow: hidden;
    color: #f8fbff;
}

.bundle-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 60%),
                radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.25), transparent 65%);
    opacity: .65;
    pointer-events: none;
}

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

.bundle-card:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 3px;
}

.bundle-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1 1 auto;
}

.bundle-card-body h5 {
    font-size: 1.4rem;
    margin-top: .25rem;
}

.bundle-card-body .badge {
    background-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd;
    letter-spacing: .08em;
}

.bundle-card-body p {
    color: rgba(191, 219, 254, 0.78);
}

.bundle-card .bundle-price {
    font-size: 1.85rem;
    font-weight: 600;
    color: #f8fbff;
}

.bundle-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    min-height: 1.5rem;
}

.bundle-select-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #bfdbfe;
    opacity: 0;
    transition: opacity .2s ease;
}

.bundle-select-indicator-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #eff6ff;
    box-shadow: inset 0 1px 0 rgba(148, 197, 255, 0.35);
}

.bundle-select-hint {
    color: rgba(148, 197, 255, 0.8);
    transition: opacity .2s ease;
}

.bundle-card:hover,
.bundle-card.is-selected {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 36px 68px rgba(37, 99, 235, 0.32);
    transform: translateY(-4px);
}

.bundle-card.is-selected .bundle-select-indicator {
    opacity: 1;
}

.bundle-card.is-selected .bundle-select-hint {
    opacity: 0;
}

.beta-modal {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(10, 12, 24, 0.94));
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #e2e8f0;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.55);
}

.beta-modal .modal-header,
.beta-modal .modal-footer {
    background: transparent;
}

.beta-modal .modal-body {
    color: rgba(226, 232, 240, 0.85);
}

.beta-modal .modal-body a {
    color: #93c5fd;
}

.beta-modal-accent {
    color: #bfdbfe;
    font-weight: 600;
}

.maintenance-card {
    background: linear-gradient(170deg, rgba(15, 23, 42, 0.95), rgba(9, 13, 24, 0.9));
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 24px 56px rgba(8, 15, 32, 0.4);
    color: #e2e8f0;
}

.maintenance-card a {
    color: #93c5fd;
}

.checkout-card {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 1.15rem;
    border: 1px solid rgba(148, 197, 255, 0.18);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 32px 72px rgba(6, 12, 26, 0.55);
}

.checkout-card .card-body {
    padding: 2rem 1.75rem 1.85rem;
}

.checkout-summary-panel {
    margin-top: 0.75rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(7, 12, 24, 0.9), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 197, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(148, 197, 255, 0.06);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.checkout-summary-panel[data-selected="true"] {
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.16), rgba(7, 12, 24, 0.88));
    border-color: rgba(129, 140, 248, 0.48);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.45);
}

.checkout-summary-panel[data-selected="true"] .checkout-summary-value[data-selected-bundle-summary] {
    color: #dbeafe;
}

.checkout-summary-details {
    display: grid;
    gap: 0.65rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.checkout-summary-item + .checkout-summary-item {
    border-top: 1px solid rgba(71, 85, 105, 0.35);
    padding-top: 0.55rem;
}

.checkout-summary-item dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
}

.checkout-summary-value {
    margin: 0;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
    text-align: right;
}

.checkout-summary-panel[data-selected="false"] .checkout-summary-value[data-selected-bundle-summary] {
    color: rgba(148, 163, 184, 0.85);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .checkout-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .checkout-summary-value {
        text-align: left;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .checkout-card {
        max-width: 460px;
    }
}

#archiveBtn {
    width: max-content;
    align-self: center;
}


#startRecordingBtn {
    width: max-content;
    align-self: center;
}

.recording-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    width: 100%;
}

@media (min-width: 576px) {
    .recording-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .recording-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.recording-tile {
    /*display: flex;*/
    min-width: 0;
}

.content-page-body section,
.content-page-body h2[id],
.content-page-body h3[id],
.content-page-body h4[id],
.content-page-body h5[id] {
    scroll-margin-top: 88px;
}

.content-page-main {
    position: relative;
    z-index: 0;
    padding-top: clamp(2rem, 4vw, 4.5rem);
    padding-bottom: clamp(3rem, 5vw, 5.5rem);
    background:
        radial-gradient(120% 160% at 8% -20%, rgba(59, 130, 246, 0.16), transparent),
        radial-gradient(120% 140% at 100% 0%, rgba(244, 114, 182, 0.12), transparent),
        linear-gradient(180deg, rgba(8, 15, 30, 0.85), rgba(8, 11, 24, 0.95));
}

.content-page-layout {
    position: relative;
    z-index: 1;
    background: rgba(13, 20, 35, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    padding: clamp(2rem, 3vw, 3rem);
    box-shadow: 0 30px 80px rgba(8, 15, 30, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 991.98px) {
    .content-page-layout {
        border-radius: 22px;
        padding: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (max-width: 575.98px) {
    .content-page-main {
        padding-top: 1.5rem;
        padding-bottom: 3.5rem;
    }

    .content-page-layout {
        padding: clamp(1.5rem, 7vw, 2.25rem);
    }
}

.content-page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: none;
    border: none;
    box-shadow: none;
    padding: clamp(2rem, 3vw, 3rem);
    z-index: 0;
}

.content-page-hero::after {
    content: none;
}

.content-page-hero .badge {
    background: rgba(94, 234, 212, 0.18);
    border: 1px solid rgba(94, 234, 212, 0.22);
    color: #f0fdfa;
    letter-spacing: 0.14em;
}

.content-page-body {
    gap: clamp(2rem, 3vw, 3.25rem);
}

.content-page-body > section {
    position: relative;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    padding: clamp(1.75rem, 2.5vw, 2.75rem);
    box-shadow: 0 24px 55px rgba(8, 15, 30, 0.5);
    overflow: hidden;
    z-index: 0;
}

.content-page-body > section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0));
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.content-page-body > section > *:last-child {
    margin-bottom: 0;
}

.content-page-body h2 {
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1.25rem;
}

.content-page-body h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #cbd5f5;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page-body p,
.content-page-body li {
    color: rgba(226, 232, 240, 0.82);
}

.content-page-body a {
    color: #8ec5ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(142, 197, 255, 0.3);
    transition: color .2s ease, border-color .2s ease;
}

.content-page-body a:hover,
.content-page-body a:focus {
    color: #badcff;
    border-color: rgba(186, 220, 255, 0.55);
}

.content-page-body ul {
    padding-left: 1.1rem;
    border-left: 2px solid rgba(94, 234, 212, 0.18);
    margin-bottom: 1.5rem;
}

.content-page-body ul li + li {
    margin-top: 0.5rem;
}

.content-page-body hr {
    border-color: rgba(148, 163, 184, 0.2);
    margin: 2.5rem 0;
}

.content-page-sidebar .card {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.76));
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 22px 60px rgba(8, 15, 30, 0.55);
    border-radius: 18px;
}

.content-page-sidebar nav,
.content-page-sidebar ul {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.content-page-sidebar ul {
    padding-left: 1.1rem;
    border-left: 1px solid rgba(59, 130, 246, 0.16);
}

.content-page-sidebar li {
    list-style: none;
}

.content-page-sidebar nav > .nav-link {
    padding: 0.45rem 0.75rem 0.45rem 0.65rem;
    border-radius: 12px;
    color: rgba(226, 232, 240, 0.88);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.content-page-sidebar nav > .nav-link:hover,
.content-page-sidebar nav > .nav-link:focus {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
}

.content-page-sidebar nav > .nav-link.active {
    color: #0b1220;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.82), rgba(59, 130, 246, 0.8));
    border-color: rgba(148, 163, 184, 0.32);
    box-shadow: 0 20px 40px rgba(94, 234, 212, 0.35);
}

.content-page-sidebar ul .nav-link {
    padding: 0.3rem 0.5rem 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.72);
    border: 1px solid transparent;
    background: transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.content-page-sidebar ul .nav-link:hover,
.content-page-sidebar ul .nav-link:focus {
    color: #dbeafe;
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(59, 130, 246, 0.12);
}

.content-page-callout .card {
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.35), rgba(14, 116, 144, 0.38));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 26px 58px rgba(13, 148, 136, 0.35);
}

.app-navbar {
    background: linear-gradient(185deg, rgba(7, 12, 24, 0.95), rgba(8, 15, 30, 0.92));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 42px rgba(7, 11, 24, 0.38);
    position: sticky;
    top: 0;
    z-index: 1022;
    overflow-x: clip;
}

.app-navbar-container {
    max-width: 1180px;
    margin: 0 auto;
}

.app-navbar-inner {
    min-height: 68px;
}

.app-navbar-brand {
    color: #e2e8f0;
    font-size: 1.15rem;
    letter-spacing: .03em;
    gap: 0.9rem;
}

.app-navbar-brand:hover,
.app-navbar-brand:focus {
    color: #f8fafc;
}

.brand-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    /*background: linear-gradient(150deg, rgba(9, 13, 28, 0.92), rgba(17, 24, 39, 0.78));*/
    /*border: 1px solid rgba(148, 163, 184, 0.26);*/
    /*box-shadow: 0 16px 34px rgba(15, 23, 42, 0.42), inset 0 0 0 0.6px rgba(59, 130, 246, 0.25);*/
    /*padding: 8px;*/
    /*overflow: hidden;*/
}

.brand-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border-radius: 16px;*/
    /*box-shadow: 0 10px 22px rgba(59, 130, 246, 0.38);*/
}

.brand-label {
    font-family: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #e5f1ff;
    text-shadow: 0 3px 12px rgba(15, 23, 42, 0.4);
}

.app-navbar-center {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex: 1 1 0%;
    min-width: 0;
}

.app-navbar-inner {
    min-width: 0;
}

.navbar-desktop-nav {
    margin-bottom: 0;
    gap: .4rem;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
}

.app-navbar-center-inner {
    min-width: 0;
    flex: 1 1 auto;
}

.navbar-desktop-nav > .nav-item {
    flex-shrink: 0;
}

.navbar-desktop-nav .nav-link {
    color: rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    padding: .5rem 1.05rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: transparent;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.navbar-desktop-nav .nav-link:hover,
.navbar-desktop-nav .nav-link:focus {
    color: #f8fafc;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(59, 130, 246, 0.32);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.32);
}

.navbar-desktop-nav .nav-link.active {
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.42), rgba(99, 102, 241, 0.38));
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.38);
}

.app-navbar-more .dropdown-toggle {
    color: rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid transparent;
    background: transparent;
    line-height: 1.2;
    padding: .5rem 1.05rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-navbar-more .dropdown-toggle:hover,
.app-navbar-more .dropdown-toggle:focus {
    color: #f8fafc;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(59, 130, 246, 0.32);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.32);
}

.app-navbar-more .dropdown-menu {
    min-width: 15rem;
}

.app-navbar-more .dropdown-item.active,
.app-navbar-more .dropdown-item:active {
    background: rgba(37, 99, 235, 0.28);
}

.archive-table-scroll {
    overflow-x: auto;
}

.archive-table-scroll .table {
    min-width: 1100px;
}

.archive-table-scroll .badge {
    border-radius: 999px;
    font-weight: 600;
}

.app-navbar-right {
    flex: 0 0 auto;
}

.app-navbar-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    justify-content: center;
    padding: 0 1rem !important;
    height: 44px;
    border-radius: .75rem !important;
    border: 1px solid rgba(148, 197, 255, 0.3) !important;
    background: rgba(12, 19, 32, 0.55) !important;
    color: rgba(226, 238, 255, 0.92) !important;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.35);
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.app-navbar-user-toggle:hover,
.app-navbar-user-toggle:focus,
.app-navbar-user-toggle:active {
    border-color: rgba(148, 197, 255, 0.55) !important;
    background: rgba(30, 41, 71, 0.8) !important;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.45) !important;
    color: #f8fafc !important;
}

.app-navbar-user-toggle::after {
    border-top-color: currentColor;
    border-width: .4rem .35rem 0 .35rem;
    margin-left: .25rem;
    transform: translateY(1px);
}

.app-navbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .45rem 1.1rem;
    font-weight: 600;
    border-radius: .75rem !important;
}

.app-navbar-action.btn-outline-light {
    color: rgba(226, 232, 240, 0.88);
    border-color: rgba(148, 163, 184, 0.28);
    background: transparent;
}

.app-navbar-action.btn-outline-light:hover,
.app-navbar-action.btn-outline-light:focus {
    color: #0b1120;
    background-color: #f8fafc;
}

.app-navbar-action--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
}

.app-navbar-action--primary:hover,
.app-navbar-action--primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.app-navbar-buy {
    padding: .4rem .85rem;
    font-size: .95rem;
    line-height: 1.1;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.45), rgba(59, 130, 246, 0.35));
    color: #dde9ff !important;
    border-color: rgba(148, 197, 255, 0.35) !important;
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.25);
    white-space: nowrap;
}

.app-navbar-buy:hover,
.app-navbar-buy:focus {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.6), rgba(59, 130, 246, 0.5));
    color: #f8fbff !important;
    border-color: rgba(148, 197, 255, 0.55) !important;
}

.app-navbar-mobile {
    gap: .75rem !important;
}

.app-navbar-mobile .btn {
    border-radius: .85rem;
}

.app-navbar-mobile .btn-outline-light {
    color: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.32);
}

.app-navbar-mobile .btn-outline-light:hover,
.app-navbar-mobile .btn-outline-light:focus {
    color: #0b1120;
    background: #f8fafc;
    border-color: #f8fafc;
}

.app-navbar-mobile-credits {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .65rem .35rem .45rem;
    border-radius: .75rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(12, 19, 32, 0.72);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(148, 163, 184, 0.85);
    position: relative;
}

.app-navbar-mobile-credits .value {
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: .05em;
}

.credits-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 197, 255, 0.3);
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 238, 255, 0.92);
    font-weight: 500;
    letter-spacing: .05em;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
}

.credits-pill .credits-label {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .58rem;
    color: rgba(191, 210, 255, 0.7);
}

.credits-pill .credits-value {
    font-size: .98rem;
    color: rgba(236, 244, 255, 0.95);
    letter-spacing: .03em;
}

.app-credits-pill {
    border-color: rgba(148, 197, 255, 0.4);
    background: rgba(24, 36, 58, 0.85);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.4);
}

.saved-username-card {
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), rgba(19, 32, 59, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 40px rgba(8, 15, 35, 0.32);
}

.saved-username-card .btn-outline-light {
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.9);
}

.saved-username-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(99, 102, 241, 0.65));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.35);
}

.saved-username-actions .btn {
    min-height: 40px;
}

.saved-username-remove {
    margin-left: auto;
}

.auth-main {
    padding: 0 !important;
}

.auth-section {
    position: relative;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vw, 5.5rem) 1.75rem;
    background:
        radial-gradient(120% 140% at -10% -10%, rgba(59, 130, 246, 0.22), transparent),
        radial-gradient(120% 160% at 110% 20%, rgba(244, 114, 182, 0.18), transparent),
        linear-gradient(180deg, rgba(8, 13, 25, 0.85), rgba(8, 13, 27, 0.94));
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    width: min(1100px, 100%);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "card"
        "copy";
    align-items: center;
}

@media (min-width: 992px) {
    .auth-shell {
        grid-template-columns: 1.1fr 0.9fr;
        grid-template-areas: "copy card";
    }
}

.auth-copy {
    grid-area: copy;
    display: grid;
    gap: 1.25rem;
    color: rgba(226, 232, 240, 0.9);
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(148, 197, 255, 0.85);
}

.auth-heading {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.auth-lede {
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.82);
    max-width: 34rem;
    margin-bottom: 0;
}

.auth-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    max-width: 32rem;
}

.auth-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.92rem;
}

.auth-highlights i {
    color: rgba(125, 211, 252, 0.9);
}

.auth-card {
    grid-area: card;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(13, 20, 35, 0.96));
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 26px;
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: 0 26px 60px rgba(8, 15, 32, 0.45);
    display: grid;
    gap: 1.75rem;
}

.auth-card--narrow {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #9ad2ff;
    font-size: 1.75rem;
}

.auth-shell--centered {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.auth-card-body {
    display: grid;
    gap: 1rem;
}

.auth-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
    color: rgba(226, 232, 240, 0.85);
}

.auth-checklist li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.auth-checklist i {
    color: rgba(94, 234, 212, 0.8);
    margin-top: 0.15rem;
}

.auth-checklist a {
    color: #9ad2ff;
    text-decoration: none;
}

.auth-checklist a:hover,
.auth-checklist a:focus {
    text-decoration: underline;
    color: #f8fafc;
}

.auth-card-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    color: rgba(203, 213, 225, 0.82) !important;
}

.auth-form {
    display: grid;
    gap: 1.1rem;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

.auth-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.95);
}

.auth-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    color: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input:focus {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 197, 255, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
    color: #f8fafc;
}

.auth-input.is-invalid {
    border-color: rgba(248, 113, 113, 0.6);
}

.auth-card .invalid-feedback {
    color: rgba(252, 165, 165, 0.9);
}

.auth-actions {
    margin-top: 0.5rem;
}

.auth-submit {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.auth-submit:hover,
.auth-submit:focus {
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
}

.auth-link-small {
    font-size: 0.82rem;
    color: rgba(148, 197, 255, 0.9);
    text-decoration: none;
}

.auth-link-small:hover,
.auth-link-small:focus {
    color: #f8fafc;
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    color: rgba(203, 213, 225, 0.85);
}

.auth-switch a {
    color: #9ad2ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover,
.auth-switch a:focus {
    color: #f8fafc;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .auth-section {
        padding-top: 4rem;
    }

    .auth-shell {
        align-items: stretch;
    }

    .auth-copy {
        text-align: center;
        justify-items: center;
    }

    .auth-card {
        justify-self: stretch;
    }

    .auth-highlights {
        justify-items: center;
    }
}

@media (max-width: 575.98px) {
    .auth-section {
        min-height: auto;
        padding: 3rem 1.25rem 2.75rem;
    }

    .auth-shell {
        gap: 1.75rem;
    }

    .auth-heading {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
    }

    .auth-lede {
        font-size: 1rem;
    }

    .auth-highlights {
        gap: 0.6rem;
        width: 100%;
    }

    .auth-highlights li {
        width: 100%;
        justify-content: flex-start;
    }

    .auth-card {
        padding: 1.65rem 1.35rem 1.9rem;
        border-radius: 22px;
        box-shadow: 0 24px 52px rgba(8, 15, 32, 0.48);
    }

    .auth-card-header h2 {
        font-size: 1.4rem;
    }

    .auth-card-header p {
        font-size: 0.9rem;
    }

    .auth-submit {
        padding: 0.7rem 0.9rem;
    }
}

.monitor-card {
    background: linear-gradient(165deg, rgba(30, 64, 175, 0.18), rgba(14, 20, 35, 0.88));
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: 0 24px 52px rgba(8, 15, 32, 0.45);
    border-radius: 22px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .monitor-card {
        max-width: none;
        margin: 0 auto;
    }
}

.monitor-card-header {
    gap: .35rem;
}

.monitor-card-username {
    font-weight: 600;
    color: #f8fafc;
}

.monitor-card-meta {
    font-size: .85rem;
    color: rgba(203, 213, 225, 0.8);
}

.monitor-card-icon {
    font-size: 1.1rem;
    color: #93c5fd;
}

.monitor-card-badges {
    width: 100%;
}

.monitor-card-badge,
.monitor-card-badge-alt {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .82rem;
    letter-spacing: .02em;
    background: rgba(30, 64, 175, 0.16);
    color: #cbdcfb;
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.monitor-card-badge-alt {
    background: rgba(8, 145, 178, 0.16);
    color: #a1f2e8;
    border-color: rgba(45, 212, 191, 0.22);
}

.monitor-card-status {
    min-height: 2.2rem;
    color: rgba(226, 232, 240, 0.78);
    margin-bottom: 0;
}

.monitor-card-toggle-caption {
    color: rgba(148, 163, 184, 0.8);
}

.monitor-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.monitor-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.monitor-toggle-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: .45rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .75rem;
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.68), rgba(220, 38, 38, 0.64));
    border: 1px solid rgba(252, 165, 165, 0.35);
    box-shadow: 0 12px 24px rgba(153, 27, 27, 0.28);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}

.monitor-toggle-track::after {
    content: attr(data-label-off);
}

.monitor-toggle-input:checked + .monitor-toggle-track {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.7), rgba(22, 163, 74, 0.66));
    border-color: rgba(134, 239, 172, 0.38);
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.28);
}

.monitor-toggle-input:checked + .monitor-toggle-track::after {
    content: attr(data-label-on);
}

.pagination {
    display: flex;
    gap: .35rem;
}

.pagination .page-item {
    border-radius: 999px;
    overflow: hidden;
}

.pagination .page-link {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(71, 85, 105, 0.35);
    color: rgba(226, 232, 240, 0.85);
    border-radius: 999px;
    padding: .45rem .95rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background: rgba(37, 99, 235, 0.35);
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.82));
    border-color: rgba(148, 197, 255, 0.5);
    color: #0b1120;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.35);
}

.pagination .page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.45);
    color: rgba(148, 163, 184, 0.55);
    border-color: rgba(71, 85, 105, 0.25);
    box-shadow: none;
    pointer-events: none;
}

.pagination.pagination-sm .page-link {
    padding: .35rem .75rem;
    font-size: .85rem;
}

.monitor-card .card-body {
    gap: 1.5rem;
}

.monitor-toggle-form {
    margin-top: 0;
}

.recording-card .dismiss-control {
    position: static;
    margin-left: auto;
}

.dismiss-form {
    margin: 0;
}

.dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 0.5px solid rgba(148, 163, 184, 0.28);
    background: rgba(10, 18, 33, 0.65);
    color: rgba(226, 232, 240, 0.78);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
    position: relative;
}

.dismiss-btn::before,
.dismiss-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform-origin: center;
}

.dismiss-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.dismiss-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dismiss-btn:hover,
.dismiss-btn:focus {
    transform: translateY(-1px);
    border-color: rgba(148, 197, 255, 0.55);
    background: rgba(59, 130, 246, 0.18);
    color: #f8fafc;
}

.dismiss-btn:hover,
.dismiss-btn:focus {
    background-color: rgba(226, 232, 240, 0.15);
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.45);
    transform: translateY(-1px);
}

.dismiss-btn:active {
    transform: translateY(0);
}

.dismiss-btn:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.65);
    outline-offset: 2px;
}

.recording-runtime {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72) !important;
}

.live-undo-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    max-width: 320px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: .85rem;
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
}

@media (max-width: 575.98px) {
    .live-undo-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

.live-undo-text {
    font-size: .9rem;
    line-height: 1.4;
}

.live-undo-actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.live-undo-btn {
    background: transparent;
    border: none;
    color: #93c5fd;
    font-weight: 600;
    font-size: .85rem;
    padding: 0;
    cursor: pointer;
}

.live-undo-btn:hover,
.live-undo-btn:focus {
    color: #bfdbfe;
    text-decoration: underline;
}

.live-undo-btn:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.7);
    outline-offset: 2px;
}

.live-undo-close {
    background: rgba(226, 232, 240, 0.12);
    color: #e2e8f0;
    border: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-undo-close:hover,
.live-undo-close:focus {
    background: rgba(226, 232, 240, 0.25);
}

.live-undo-close:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.7);
    outline-offset: 2px;
}

.saved-usernames-grid {
    gap: 1.25rem;
}

/* Typography */
body.theme-dark h1,
body.theme-dark .h1,
body.theme-dark h2,
body.theme-dark .h2,
body.theme-dark h3,
body.theme-dark .h3,
body.theme-dark h4,
body.theme-dark .h4,
body.theme-dark h5,
body.theme-dark .h5,
body.theme-dark h6,
body.theme-dark .h6 {
    color: #f1f5ff;
}

body.theme-dark p,
body.theme-dark .text-body,
body.theme-dark .text-body-emphasis {
    color: #e2e8f0;
}

body.theme-dark .lead {
    color: rgba(203, 213, 225, 0.92);
}

body.theme-dark small,
body.theme-dark .small,
body.theme-dark .form-text {
    color: rgba(148, 163, 184, 0.72) !important;
}

body.theme-dark .text-muted {
    color: rgba(148, 163, 184, 0.7) !important;
}

body.theme-dark .text-secondary,
body.theme-dark .text-body-secondary {
    color: rgba(165, 180, 252, 0.78) !important;
}

body.theme-dark .text-dark,
body.theme-dark .text-black {
    color: #e2e8f0 !important;
}

body.theme-dark .text-danger {
    color: #fca5a5 !important;
}

body.theme-dark .text-success {
    color: #5eead4 !important;
}

body.theme-dark .text-warning {
    color: #fde68a !important;
}

body.theme-dark .text-info {
    color: #93c5fd !important;
}

/* Utility backgrounds & borders */
body.theme-dark .bg-light,
body.theme-dark .bg-white,
body.theme-dark .bg-body,
body.theme-dark .bg-body-secondary,
body.theme-dark .bg-body-tertiary {
    background-color: rgba(17, 24, 39, 0.85) !important;
    color: #e2e8f0;
}

body.theme-dark hr {
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .border,
body.theme-dark .border-top,
body.theme-dark .border-bottom,
body.theme-dark .border-start,
body.theme-dark .border-end {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

/* Forms */
body.theme-dark label,
body.theme-dark .form-label {
    color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus,
body.theme-dark .form-control[readonly] {
    background-color: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

body.theme-dark .form-control::placeholder,
body.theme-dark .form-select::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

body.theme-dark .input-group-text {
    background-color: rgba(30, 41, 59, 0.85);
    color: rgba(226, 232, 240, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
}

body.theme-dark .form-check-label {
    color: rgba(226, 232, 240, 0.82);
}

body.theme-dark .form-check-input {
    background-color: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.4);
}

body.theme-dark .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.3);
}

/* Buttons */
body.theme-dark .btn-outline-light {
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.82);
    background-color: rgba(226, 232, 240, 0.08);
}

body.theme-dark .btn-outline-light:hover,
body.theme-dark .btn-outline-light:focus {
    color: #0b1120;
    background-color: #f8fafc;
    border-color: #f8fafc;
}

body.theme-dark .btn-outline-primary {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.7);
    background-color: rgba(37, 99, 235, 0.12);
}

body.theme-dark .btn-outline-primary:hover,
body.theme-dark .btn-outline-primary:focus {
    color: #fff;
    background-color: rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.9);
}

body.theme-dark .btn-outline-secondary {
    color: rgba(226, 232, 240, 0.86);
    border-color: rgba(148, 163, 184, 0.6);
    background-color: rgba(148, 163, 184, 0.1);
}

body.theme-dark .btn-outline-secondary:hover,
body.theme-dark .btn-outline-secondary:focus {
    color: #0b1120;
    background-color: #e2e8f0;
    border-color: #e2e8f0;
}

body.theme-dark .btn-outline-success {
    color: #6ee7b7;
    border-color: rgba(34, 197, 94, 0.55);
    background-color: rgba(34, 197, 94, 0.12);
}

body.theme-dark .btn-outline-success:hover,
body.theme-dark .btn-outline-success:focus {
    color: #0b1120;
    background-color: #6ee7b7;
    border-color: #6ee7b7;
}

body.theme-dark .btn-outline-info {
    color: #67e8f9;
    border-color: rgba(14, 165, 233, 0.55);
    background-color: rgba(14, 165, 233, 0.12);
}

body.theme-dark .btn-outline-info:hover,
body.theme-dark .btn-outline-info:focus {
    color: #0b1120;
    background-color: #67e8f9;
    border-color: #67e8f9;
}

body.theme-dark .btn-outline-warning {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.6);
    background-color: rgba(250, 204, 21, 0.14);
}

body.theme-dark .btn-outline-warning:hover,
body.theme-dark .btn-outline-warning:focus {
    color: #0b1120;
    background-color: #facc15;
    border-color: #facc15;
}

body.theme-dark .btn-outline-danger {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.65);
    background-color: rgba(248, 113, 113, 0.12);
}

body.theme-dark .btn-outline-danger:hover,
body.theme-dark .btn-outline-danger:focus {
    color: #fff;
    background-color: rgba(248, 113, 113, 0.24);
    border-color: rgba(248, 113, 113, 0.9);
}

/* List groups */
body.theme-dark .list-group-item {
    background-color: rgba(19, 32, 59, 0.75);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.14);
}

body.theme-dark .list-group-item-action:hover,
body.theme-dark .list-group-item-action:focus {
    background-color: rgba(37, 99, 235, 0.14);
    color: #f8fafc;
}

body.theme-dark .list-group-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent;
    color: #f8fafc;
}

/* Cards */
body.theme-dark .card-header,
body.theme-dark .card-footer {
    background-color: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.14);
}

/* Tables */
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(15, 23, 42, 0.65);
}

body.theme-dark .table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.12);
    color: #f8fafc;
}

/* Dropdowns */
body.theme-dark .dropdown-menu {
    background-color: #111c32;
    border-color: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

body.theme-dark .dropdown-item {
    color: #e2e8f0;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
    color: #f8fafc;
    background-color: rgba(37, 99, 235, 0.18);
}

/* Accordion */
body.theme-dark .accordion-item {
    background-color: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.75rem;
}

body.theme-dark .accordion-button {
    background-color: rgba(19, 32, 59, 0.75);
    color: #e2e8f0;
}

body.theme-dark .accordion-button:not(.collapsed) {
    color: #cbdcfb;
    background-color: rgba(37, 99, 235, 0.18);
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

body.theme-dark .accordion-button::after {
    filter: invert(0.8);
}

body.theme-dark .accordion-body {
    background-color: rgba(11, 17, 32, 0.9);
    color: #e2e8f0;
}

/* Alerts */
body.theme-dark .alert {
    background-color: rgba(19, 32, 59, 0.75);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

body.theme-dark .alert.alert-info {
    background-color: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
    color: #cbdcfb;
}

body.theme-dark .alert-success {
    background-color: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

body.theme-dark .alert-warning {
    background-color: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.35);
    color: #fde68a;
}

body.theme-dark .alert-danger {
    background-color: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fecaca;
}

.navbar:not(.app-navbar) {
    background: linear-gradient(180deg, #101c38, #0b1120);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
}

.badge.bg-primary-subtle {
    background-color: rgba(37, 99, 235, 0.2) !important;
    color: #c7d2fe !important;
}

.offcanvas.text-bg-dark {
    background-color: #0f172a;
}

.offcanvas .list-group-item {
    background: transparent;
    color: #e2e8f0;
    border: 0;
    margin-bottom: .35rem;
    border-radius: .75rem;
    padding: .85rem 1rem;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.offcanvas .list-group-item:hover,
.offcanvas .list-group-item:focus {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(59, 130, 246, 0.32);
    transform: translateX(4px);
}

.offcanvas .list-group-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

body.theme-dark .offcanvas {
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.4), rgba(10, 16, 32, 0.96));
    border-left: 1px solid rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    backdrop-filter: blur(18px);
}

.offcanvas-end.offcanvas {
    width: min(320px, 90vw);
}

body.theme-dark .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-bottom: 1rem;
}

body.theme-dark .offcanvas-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #cbd5f5;
}

body.theme-dark .offcanvas-actions {
    display: grid;
    gap: .55rem;
}

body.theme-dark .offcanvas-actions .btn-outline-light {
    background-color: transparent;
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

body.theme-dark .offcanvas-actions .btn-outline-light:hover,
body.theme-dark .offcanvas-actions .btn-outline-light:focus {
    border-color: rgba(148, 197, 255, 0.65);
    color: #ffffff;
}

body.theme-dark .offcanvas-actions .btn-buy-credits {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.45), rgba(59, 130, 246, 0.35));
    border: 1px solid rgba(148, 197, 255, 0.35);
    color: #dde9ff;
    box-shadow: 0 12px 22px rgba(30, 64, 175, 0.25);
}

body.theme-dark .offcanvas-actions .btn-buy-credits:hover,
body.theme-dark .offcanvas-actions .btn-buy-credits:focus {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.6), rgba(59, 130, 246, 0.5));
    color: #f8fbff;
    border-color: rgba(148, 197, 255, 0.55);
}

body.theme-dark .offcanvas-user {
    display: grid;
    gap: .35rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

body.theme-dark .offcanvas-user .email {
    font-size: .9rem;
    color: rgba(148, 163, 184, 0.8);
}

body.theme-dark .offcanvas small.text-muted {
    color: rgba(148, 163, 184, 0.72) !important;
}

body.theme-dark .offcanvas .list-group {
    margin-top: 1.25rem;
    display: grid;
    gap: .35rem;
}

body.theme-dark .offcanvas .list-group-item {
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body.theme-dark .offcanvas .list-group-item.active {
    border-color: rgba(59, 130, 246, 0.65);
}

.nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(12px);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.nav-menu-toggle .navbar-toggler-icon {
    display: none;
}

.nav-menu-toggle:focus,
.nav-menu-toggle:hover {
    border-color: rgba(148, 197, 255, 0.75) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.28);
}

@media (max-width: 575.98px) {
    .app-navbar-mobile {
        padding-right: 0.35rem;
    }

    .app-navbar-mobile .nav-menu-toggle {
        margin-right: 0.35rem;
    }

    .app-navbar-left {
        flex-shrink: 1 !important;
        min-width: 0;
        gap: 0.5rem;
    }

    .app-navbar-brand {
        gap: 0.65rem;
    }

    .app-navbar-brand .brand-badge {
        width: 48px;
        height: 48px;
    }

    .app-navbar-brand .brand-label {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }
}

.nav-menu-toggle[aria-expanded="true"] {
    border-color: rgba(59, 130, 246, 0.75) !important;
    background: rgba(37, 99, 235, 0.18) !important;
}

.nav-menu-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.45rem;
    height: 1.05rem;
}

.nav-menu-icon .bar {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
    transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

.nav-menu-toggle:hover .nav-menu-icon .bar,
.nav-menu-toggle:focus .nav-menu-icon .bar {
    background: #ffffff;
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-icon .bar:nth-child(2) {
    opacity: 0;
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-icon .bar:first-child {
    transform: translateY(6px) rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-icon .bar:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.card,
.card-shadow {
    background-color: #13203b;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    box-shadow: 0 22px 45px rgba(8, 15, 35, 0.35);
    color: #e2e8f0;
}

.metric-card {
    padding: 1.25rem;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.28), transparent 60%);
}

.metric-card .metric-value {
    font-weight: 700;
    font-size: 1.8rem;
    color: #c7d2fe;
}

.metric-card .metric-label {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    color: rgba(165, 180, 252, 0.9);
}

.dashboard-sidebar .list-group-item {
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    border: none;
    border-radius: .75rem;
    font-weight: 500;
}

.dashboard-sidebar .list-group-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem 1.05rem;
    border-radius: 999px;
    border: 0.5px solid rgba(113, 105, 161, 0.3);
    background: rgba(37, 44, 66, 0.15);
    color: rgba(226, 238, 255, 0.92);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.status-badge::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 .18rem rgba(148, 197, 255, 0.18);
    display: inline-block;
    flex-shrink: 0;
}

.status-badge.status-queued {
    /*background: rgba(148, 197, 255, 0.18);*/
    /*border-color: rgba(148, 197, 255, 0.28);*/
    /*color: rgba(226, 238, 255, 0.9);*/
}

.status-badge.status-running {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(220, 38, 38, 0.18));
    border-color: rgba(252, 129, 129, 0.45);
    color: #ffe5e8;
    text-shadow: 0 1px 2px rgba(59, 12, 12, 0.4);
}

.status-badge.status-running::before {
    background: rgba(248, 113, 113, 0.95);
    box-shadow: 0 0 0 .18rem rgba(248, 113, 113, 0.2);
    animation: recording-dot-pulse 1.4s ease-in-out infinite;
}

.status-badge.status-processing {
    /*background: rgba(192, 132, 252, 0.2);*/
    /*border-color: rgba(192, 132, 252, 0.32);*/
    /*color: #f3e8ff;*/
}

.status-badge.status-completed {
    /*background: rgba(34, 197, 94, 0.2);*/
    /*border-color: rgba(34, 197, 94, 0.32);*/
    /*color: #defce7;*/
}

.status-badge.status-failed {
    /*background: rgba(239, 68, 68, 0.22);*/
    /*border-color: rgba(239, 68, 68, 0.34);*/
    /*color: #fecaca;*/
}

@keyframes recording-dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 .18rem rgba(248, 113, 113, 0.25);
    }
    50% {
        transform: scale(0.75);
        opacity: .6;
        box-shadow: 0 0 0 .28rem rgba(248, 113, 113, 0.18);
    }
}

body.theme-dark .failure-reason {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 0.85rem;
    padding: 0.6rem 0.85rem;
    color: #fecaca;
    margin-top: 0.35rem;
    box-shadow: inset 0 1px 0 rgba(248, 113, 113, 0.18);
}

.recording-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 197, 255, 0.2);
    background: rgba(10, 18, 33, 0.18);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 24px 52px rgba(6, 12, 26, 0.5);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.recording-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(148, 197, 255, 0.22), rgba(59, 130, 246, 0.12) 40%, rgba(10, 18, 33, 0.55) 76%);
    opacity: .4;
    pointer-events: none;
}

.recording-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(148, 197, 255, 0.08), inset 0 20px 40px rgba(10, 18, 33, 0.32);
    pointer-events: none;
}

.recording-card:hover {
    transform: translateY(-6px);
    border-color: rgba(148, 197, 255, 0.38);
    box-shadow: 0 32px 62px rgba(6, 12, 26, 0.6);
}

.recording-card.is-loading:hover {
    transform: none;
    border-color: rgba(148, 197, 255, 0.2);
    box-shadow: 0 24px 52px rgba(6, 12, 26, 0.5);
}

.recording-card-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 1.55rem 1.6rem 1.6rem;
    height: 100%;
}

.recording-card-shell.is-loading {
    gap: 1.2rem;
}

.recording-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.recording-status-group {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.recording-card-top .recording-runtime {
    margin-left: .3rem;
}

.recording-card-loader {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.6rem 1.4rem;
    border-radius: 1.1rem;
    background: rgba(10, 18, 33, 0.3);
    border: 1px solid rgba(148, 197, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.recording-card.is-loading .recording-card-loader {
    display: flex;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.loader-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(148, 197, 255, 0.28);
    border-top-color: rgba(148, 197, 255, 0.9);
    box-shadow: 0 0 18px rgba(148, 197, 255, 0.35);
    animation: spin 1s linear infinite;
}

.loader-text {
    color: rgba(226, 238, 255, 0.86);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.recording-card-main {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.recording-card.is-loading .recording-card-main,
.recording-card.is-loading .recording-actions {
    display: none;
}

.recording-host {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.host-meta-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: space-between;
}

.host-meta-info {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}

.recording-host-handle {
    /*display: inline-flex;*/
    align-items: center;
    gap: .1rem;
    flex-wrap: wrap;
}

.host-meta-header .save-control {
    margin-left: auto;
    flex-shrink: 0;
}

.recording-host-label {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(186, 204, 236, 0.72);
}

.recording-target-inline {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 0;
    padding: .18rem .6rem;
    border-radius: 999px;
    background: rgba(16, 25, 45, 0.55);
    border: 1px solid rgba(148, 197, 255, 0.22);
    font-size: .6rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(225, 235, 255, 0.88);
    width: max-content;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.recording-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.recording-top-actions .save-control,
.recording-top-actions .dismiss-control {
    margin: 0;
}

.recording-top-actions .dismiss-control.d-none {
    display: none;
}

.recording-top-actions form {
    margin: 0;
}

.recording-top-actions .save-control,
.recording-top-actions .dismiss-control {
    display: inline-flex;
    align-items: center;
}

.recording-host-badge {
    margin-left: .35rem;
}

.recording-host .avatar,
.recording-entry .avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 1px solid rgba(148, 197, 255, 0.32);*/
    box-shadow: 0 10px 26px rgba(8, 15, 35, 0.4);
    background: rgba(10, 18, 33, 0.4);
    flex-shrink: 0;
}

.host-meta {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.recording-role-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .2rem;
    padding: .125rem .5rem;
    border-radius: 999px;
    font-size: .575rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    /*background: rgba(148, 197, 255, 0.16);*/
    color: rgba(226, 238, 255, 0.9);
    border: 1px solid rgba(148, 197, 255, 0.28);
    width: max-content;
}

.recording-role-badge.role-host,
.monitor-match-chip.monitor-match-host {
    background: rgba(74, 179, 255, 0.18);
    border-color: rgba(74, 179, 255, 0.36);
    color: rgba(223, 240, 255, 0.95);
}

.recording-role-badge.role-cohost,
.monitor-match-chip.monitor-match-cohost {
    background: rgba(173, 134, 255, 0.2);
    border-color: rgba(173, 134, 255, 0.38);
    color: rgba(239, 229, 255, 0.95);
}

.recording-role-badge.role-speaker,
.monitor-match-chip.monitor-match-speaker {
    background: rgba(253, 173, 83, 0.18);
    border-color: rgba(253, 173, 83, 0.36);
    color: rgba(255, 240, 220, 0.95);
}

.recording-role-badge.role-listener,
.monitor-match-chip.monitor-match-listener {
    background: rgba(108, 213, 196, 0.18);
    border-color: rgba(108, 213, 196, 0.34);
    color: rgba(221, 246, 241, 0.9);
}

.recording-role-badge.role-participant,
.monitor-match-chip.monitor-match-participant {
    background: rgba(148, 197, 255, 0.15);
    border-color: rgba(148, 197, 255, 0.28);
    color: rgba(226, 238, 255, 0.85);
}

.recording-role-badge.role-unknown,
.monitor-match-chip.monitor-match-unknown {
    background: rgba(148, 197, 255, 0.12);
    border-color: rgba(148, 197, 255, 0.24);
    color: rgba(226, 238, 255, 0.78);
}


.recording-monitor-matches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin: .65rem 0 -.2rem;
}

.recording-monitor-matches.is-empty {
    display: none;
}

.recording-audience-label {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(189, 208, 240, 0.7);
    margin-bottom: .35rem;
}


.monitor-match-chip.monitor-match-host,
.monitor-match-chip.monitor-match-cohost,
.monitor-match-chip.monitor-match-speaker,
.monitor-match-chip.monitor-match-listener,
.monitor-match-chip.monitor-match-participant,
.monitor-match-chip.monitor-match-unknown {
    background: rgba(16, 25, 45, 0.55);
    border-color: rgba(200, 215, 240, 0.22);
    color: rgba(225, 235, 255, 0.84);
}

.monitor-match-chip {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .24rem .6rem;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    /*border: 1px solid rgba(200, 215, 240, 0.22);*/
    border: none;
    color: rgba(225, 235, 255, 0.84);
    background: rgba(16, 25, 45, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(10, 18, 33, 0.4);
    backdrop-filter: blur(8px);
}

.monitor-match-chip .chip-role {
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .86;
}

.recording-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(238, 243, 255, 0.96);
    letter-spacing: .01em;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.recording-username {
    font-size: .86rem;
    color: rgba(148, 197, 255, 0.85);
    letter-spacing: .03em;
}

.recording-username:hover,
.recording-username:focus {
    color: #f1f5f9;
}

.save-control {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.save-control form {
    margin: 0;
}

.save-username-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .36rem .78rem;
    border-radius: .9rem;
    border: 0.5px solid rgba(148, 197, 255, 0.32);
    /*background: rgba(59, 130, 246, 0.12);*/
    background: rgba(0, 0, 0, 0);
    color: rgba(221, 234, 255, 0.9);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.save-username-btn:hover,
.save-username-btn:focus {
    border-color: rgba(148, 197, 255, 0.55);
    background: rgba(96, 165, 250, 0.24);
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
}

.saved-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .36rem .78rem;
    border-radius: .9rem;
    border: 0.5px solid rgba(113, 105, 161, 0.3);
    /*border: none;*/
    /*background: linear-gradient(135deg, rgba(15, 47, 233, 0.22), rgba(0, 0, 0, 0.18));*/
    background: rgba(0, 0, 0, 0);
    color: rgba(240, 253, 244, 0.92);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.saved-badge:hover,
.saved-badge:focus {
    border-color: rgba(34, 84, 197, 0.48);
    box-shadow: 0 10px 22px rgba(80, 103, 172, 0.25);
}

.recording-audience,
.recording-card-participants {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    min-height: 48px;
    padding: .2rem 0;
}

.recording-audience.is-empty,
.recording-card-participants.is-empty {
    display: none;
}

.participant-avatars-list {
    --avatar-size: 38px;
    /*--avatar-overlap: 12px;*/
    --avatar-overlap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.participant-avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    overflow: hidden;
    /*border: 1px solid rgba(148, 197, 255, 0.25);*/
    box-shadow: 0 8px 20px rgba(8, 15, 35, 0.4);
    margin-left: calc(var(--avatar-overlap) * -1);
}

.participant-avatar:first-child {
    margin-left: 0;
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recording-card-metrics {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: rgba(12, 21, 36, 0.28);
    /*border: 1px solid rgba(148, 197, 255, 0.18);*/
    color: rgba(210, 219, 237, 0.88);
}

.recording-card-metrics div {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.recording-card-metrics div::before {
    content: "";
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 0 .14rem rgba(96, 165, 250, 0.18);
}

.recording-card-metrics div:empty {
    display: none;
}

.recording-card-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: .4rem;
    transition: opacity .25s ease, max-height .25s ease;
    max-height: 64px;
    position: relative;
}

.recording-card-progress-wrapper.is-collapsed {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
}

.recording-card-progress {
    width: min(100%, 320px);
    height: .48rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    overflow: hidden;
}

.recording-card-progress .progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.92), rgba(129, 140, 248, 0.92));
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transition: width .3s ease;
}

.recording-card-progress-wrapper.is-pending .recording-card-progress {
    position: relative;
}

.recording-card-progress-wrapper.is-pending .progress-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.45), rgba(147, 197, 253, 0.75));
    animation: progress-pulse 1.3s ease-in-out infinite;
}

.recording-card-progress-wrapper .progress-placeholder {
    margin-top: .5rem;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(226, 238, 255, 0.75);
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.recording-card-progress-wrapper.is-pending .progress-placeholder {
    opacity: 1;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: .35;
    }
    50% {
        opacity: .8;
    }
}

.recording-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 1.15rem;
    margin-top: auto;
}

.recording-actions .btn {
    border-radius: .95rem;
    padding: .55rem 1.2rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.recording-actions .btn-outline-danger {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.recording-actions .btn-outline-danger:hover,
.recording-actions .btn-outline-danger:focus {
    background: rgba(239, 68, 68, 0.32);
    border-color: rgba(239, 68, 68, 0.75);
    color: #fff;
}

.recording-actions .btn-outline-primary {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.48);
    color: #dbeafe;
}

.recording-actions .btn-outline-primary:hover,
.recording-actions .btn-outline-primary:focus {
    background: rgba(59, 130, 246, 0.32);
    border-color: rgba(96, 165, 250, 0.82);
    color: #0b1120;
}

.recording-actions .extend-card {
    margin-top: .65rem;
    background: rgba(11, 21, 38, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 32px rgba(8, 15, 35, 0.45);
}

.extend-card {
    background: rgba(30, 41, 71, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: .85rem;
}

.extend-wrapper {
    display: grid;
    gap: .75rem;
}

.table {
    color: #e2e8f0;
}

body.theme-dark .table,
body.theme-dark .table > :not(caption) > * > * {
    background-color: transparent;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .table-responsive {
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 18px 40px rgba(8, 15, 35, 0.32);
}

body.theme-dark .responsive-table-stack table {
    margin-bottom: 0;
}

body.theme-dark .card .table-responsive {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    border-radius: inherit;
}

.table .text-wrap {
    white-space: normal;
    word-break: break-word;
}

.table thead th {
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .08em;
    color: rgba(148, 163, 184, 0.85);
    border-bottom: 0;
}

.table tbody td {
    vertical-align: middle;
    border-color: rgba(148, 163, 184, 0.1);
}

.flash-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: min(420px, 92vw);
    pointer-events: none;
}

.flash-container .alert {
    border-radius: .85rem;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.flash-container .alert-countdown {
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
    display: block;
    margin-top: .35rem;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #cbdcfb;
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 34px 80px rgba(8, 15, 35, 0.45);
    background: #0f172a;
    color: #e2e8f0;
}

.dropdown-menu-dark {
    background-color: #111c32;
    color: #e2e8f0;
}

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    body.theme-dark {
        font-size: 0.95rem;
    }

    .recording-card {
        border-radius: 1rem;
    }

    .recording-card-shell {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .responsive-table-stack table thead {
        display: none;
    }

    .responsive-table-stack table tbody tr {
        display: block;
        background: rgba(19, 32, 59, 0.85);
        border-radius: 1rem;
        box-shadow: 0 16px 45px rgba(8, 15, 35, 0.4);
        margin-bottom: 1rem;
        padding: 1rem 1.25rem;
        border: 1px solid rgba(148, 163, 184, 0.1);
    }

    .responsive-table-stack table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        border: none;
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }

    .responsive-table-stack table tbody td::before {
        content: attr(data-label);
        text-transform: uppercase;
        font-size: 0.7rem;
        color: rgba(148, 163, 184, 0.8);
        letter-spacing: .04em;
    }
}

.recording-card .progress {
    height: .45rem;
    border-radius: 999px;
    background-color: rgba(59, 130, 246, 0.18);
}
