/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
#components-reconnect-modal[b-leeqnqnkl6] {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    overflow: hidden;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

    #components-reconnect-modal[b-leeqnqnkl6]::backdrop {
        background: rgba(10, 16, 28, 0.5);
    }

    #components-reconnect-modal.components-reconnect-show[b-leeqnqnkl6],
    #components-reconnect-modal[open][b-leeqnqnkl6],
    #components-reconnect-modal.components-reconnect-failed[b-leeqnqnkl6],
    #components-reconnect-modal.components-reconnect-repeated-attempt[b-leeqnqnkl6],
    #components-reconnect-modal.components-reconnect-paused[b-leeqnqnkl6],
    #components-reconnect-modal.components-reconnect-resume-failed[b-leeqnqnkl6],
    #components-reconnect-modal.components-pause[b-leeqnqnkl6],
    #components-reconnect-modal.components-resume-failed[b-leeqnqnkl6] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.components-reconnect-backdrop[b-leeqnqnkl6] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--mud-palette-primary, #594AE2) 12%, transparent), transparent 60%), radial-gradient(80% 55% at 0% 100%, color-mix(in srgb, var(--mud-palette-info, #2196f3) 16%, transparent), transparent 62%), rgba(8, 12, 20, 0.5);
}

.components-reconnect-surface[b-leeqnqnkl6] {
    width: min(480px, 100%);
    border-radius: var(--mud-default-borderradius, 12px);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default, #e0e0e0) 70%, transparent);
    background: var(--mud-palette-surface, #fff);
    box-shadow: var(--mud-elevation-24, 0 16px 30px rgba(0, 0, 0, 0.28));
    color: var(--mud-palette-text-primary, #1f2937);
    padding: 20px 20px 18px;
}

.components-reconnect-header[b-leeqnqnkl6] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .components-reconnect-header h2[b-leeqnqnkl6] {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.3;
    }

.components-reconnect-status-dot[b-leeqnqnkl6] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mud-palette-warning, #f59e0b);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-warning, #f59e0b) 25%, transparent);
}

.components-reconnect-supporting[b-leeqnqnkl6],
.components-reconnect-message[b-leeqnqnkl6] {
    margin: 0;
    line-height: 1.45;
    font-size: 0.95rem;
}

.components-reconnect-supporting[b-leeqnqnkl6] {
    color: var(--mud-palette-text-secondary, #52607a);
    margin-bottom: 14px;
}

.components-reconnect-message[b-leeqnqnkl6] {
    font-weight: 500;
}

.components-reconnect-danger[b-leeqnqnkl6] {
    color: var(--mud-palette-error, #b00020);
}

.components-reconnect-actions[b-leeqnqnkl6] {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.components-reconnect-first-attempt-visible[b-leeqnqnkl6],
.components-reconnect-repeated-attempt-visible[b-leeqnqnkl6],
.components-reconnect-failed-visible[b-leeqnqnkl6],
.components-pause-visible[b-leeqnqnkl6],
.components-resume-failed-visible[b-leeqnqnkl6] {
    display: none;
}

dialog[open].components-reconnect-show .components-reconnect-first-attempt-visible[b-leeqnqnkl6] {
    display: block;
}

dialog[open].components-reconnect-show .components-rejoin-loader[b-leeqnqnkl6] {
    display: inline-flex;
}

dialog[open].components-reconnect-failed .components-reconnect-failed-visible[b-leeqnqnkl6] {
    display: block;
}

dialog[open].components-reconnect-failed #components-reconnect-button[b-leeqnqnkl6] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-reconnect-repeated-attempt-visible[b-leeqnqnkl6] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-rejoin-loader[b-leeqnqnkl6] {
    display: inline-flex;
}

dialog[open].components-reconnect-paused .components-pause-visible[b-leeqnqnkl6],
dialog[open].components-pause .components-pause-visible[b-leeqnqnkl6] {
    display: block;
}

dialog[open].components-reconnect-paused #components-resume-button[b-leeqnqnkl6],
dialog[open].components-pause #components-resume-button[b-leeqnqnkl6],
dialog[open].components-reconnect-resume-failed #components-resume-button[b-leeqnqnkl6],
dialog[open].components-resume-failed #components-resume-button[b-leeqnqnkl6] {
    display: block;
}

dialog[open].components-reconnect-resume-failed .components-resume-failed-visible[b-leeqnqnkl6],
dialog[open].components-resume-failed .components-resume-failed-visible[b-leeqnqnkl6] {
    display: block;
}

.components-rejoin-loader[b-leeqnqnkl6] {
    display: none;
    margin-bottom: 10px;
    gap: 8px;
}

    .components-rejoin-loader div[b-leeqnqnkl6] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--mud-palette-primary, #594AE2);
        animation: reconnect-pulse-b-leeqnqnkl6 1.2s infinite ease-in-out both;
    }

        .components-rejoin-loader div:nth-child(1)[b-leeqnqnkl6] {
            animation-delay: -0.24s;
        }

        .components-rejoin-loader div:nth-child(2)[b-leeqnqnkl6] {
            animation-delay: -0.12s;
        }

@keyframes reconnect-pulse-b-leeqnqnkl6 {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#components-reconnect-button[b-leeqnqnkl6],
#components-resume-button[b-leeqnqnkl6] {
    display: none;
    min-width: 92px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--mud-palette-primary, #594AE2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 140ms ease, transform 140ms ease;
}

    #components-reconnect-button:hover[b-leeqnqnkl6],
    #components-resume-button:hover[b-leeqnqnkl6] {
        filter: brightness(0.95);
    }

    #components-reconnect-button:active[b-leeqnqnkl6],
    #components-resume-button:active[b-leeqnqnkl6] {
        transform: translateY(1px);
    }

@media (max-width: 600px) {
    .components-reconnect-backdrop[b-leeqnqnkl6] {
        padding: 14px;
    }

    .components-reconnect-surface[b-leeqnqnkl6] {
        padding: 16px;
    }
}
/* /Components/Pages/Account/Subscriptions.razor.rz.scp.css */
/* ============================================
   Subscription Cards - Base Styles
   ============================================ */
.subscription-card[b-pndnay8k5f] {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscription-card:hover[b-pndnay8k5f] {
    transform: translateY(-4px);
}

.standard-card[b-pndnay8k5f] {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.ultimate-card[b-pndnay8k5f] {
    border: 2px solid #ff9800;
    position: relative;
}

/* ============================================
   Recommended Badge
   ============================================ */
.recommended-badge[b-pndnay8k5f] {
    position: absolute;
    top: -12px;
    right: 24px;
    z-index: 2;
}

/* ============================================
   Card Content Flex Layout
   ============================================ */
.card-content-flex[b-pndnay8k5f] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Use ::deep to target MudBlazor child components */
[b-pndnay8k5f] .subscription-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
}

[b-pndnay8k5f] .subscription-card-content .quantity-section {
    margin-top: auto;
}

.card-header-section[b-pndnay8k5f] {
    text-align: left;
}

/* ============================================
   Feature List
   ============================================ */
.feature-list[b-pndnay8k5f] {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.feature-list li[b-pndnay8k5f] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.feature-list .nested[b-pndnay8k5f] {
    margin-left: 24px;
}

.feature-icon[b-pndnay8k5f] {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   Quantity Selector
   ============================================ */
.quantity-selector[b-pndnay8k5f] {
    text-align: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-top: auto;
}

.quantity-display[b-pndnay8k5f] {
    min-width: 48px;
    font-weight: bold;
}

/* ============================================
   Order Summary Card
   ============================================ */
.order-summary-card[b-pndnay8k5f] {
    border-radius: 8px;
}

.summary-breakdown[b-pndnay8k5f] {
    max-width: 600px;
    margin: 0 auto;
}

.summary-line-item[b-pndnay8k5f] {
    padding: 8px 0;
}

.summary-line-item.subtotal[b-pndnay8k5f] {
    font-weight: bold;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    padding-top: 12px;
}

.summary-line-item.tax[b-pndnay8k5f] {
    padding-top: 4px;
}

.price-unit[b-pndnay8k5f] {
    color: #999 !important;
    font-weight: normal !important;
    margin-left: 8px;
    font-size: 0.85em;
}

.summary-total[b-pndnay8k5f] {
    text-align: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

/* ============================================
   Checkout Button
   ============================================ */
.checkout-button[b-pndnay8k5f] {
    min-width: 400px;
    max-width: 100%;
    font-weight: bold;
}

@media (max-width: 600px) {
    .checkout-button[b-pndnay8k5f] {
        min-width: auto;
        max-width: 100%;
    }
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badges[b-pndnay8k5f] {
    text-align: center;
}

.trust-badges-stack[b-pndnay8k5f] {
    flex-wrap: nowrap;
}

.trust-separator[b-pndnay8k5f] {
    opacity: 0.4;
    font-size: 1.2em;
    line-height: 1;
    user-select: none;
}

/* ============================================
   Content Notice (Ultimate card warning)
   ============================================ */
.content-notice[b-pndnay8k5f] {
    font-size: 0.85em;
}

/* ============================================
   Alert Icon Fix
   ============================================ */
.alert-icon[b-pndnay8k5f] {
    display: flex;
}

/* ============================================
   MudGrid Gap Override
   ============================================ */
.mud-grid.gap-4[b-pndnay8k5f] {
    margin: -8px;
}

.mud-grid.gap-4 > .mud-item[b-pndnay8k5f] {
    padding: 8px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 700px) {
    .card-header-section[b-pndnay8k5f] {
        text-align: center;
    }

    .feature-list .nested[b-pndnay8k5f] {
        margin-left: 12px;
    }

    .quantity-selector[b-pndnay8k5f] {
        padding: 12px;
    }

    .recommended-badge[b-pndnay8k5f] {
        right: 50%;
        transform: translateX(50%);
        top: -24px;
    }
}
/* ============================================
   Checkout View - Split-pane layout
   ============================================
   The checkout view replaces the selection view when the user clicks
   "Continue to checkout". It renders a back button at the top, then a
   two-column grid (summary on the left, payment on the right) with a
   vertical divider between them on md+ screens. On mobile the columns
   stack and the divider disappears. */

.checkout-view[b-pndnay8k5f] {
    /* A tiny bit of breathing room above the back button so it doesn't
       crowd the page top. */
    padding-top: 8px;
}

.checkout-view .back-button[b-pndnay8k5f] {
    /* The MudBlazor text button has its own padding; we just want it
       left-aligned and not full-width. */
    justify-content: flex-start;
    padding-left: 0;
}

.checkout-summary-paper[b-pndnay8k5f],
.checkout-payment-paper[b-pndnay8k5f] {
    /* Both panes share the same paper elevation and padding so the
       split-pane feels balanced. */
    height: 100%;
}

/* Vertical divider between the two checkout panes. The MudDivider
   Vertical FlexItem mode already gives it a sensible default height;
   we just give it a touch more presence. */
.checkout-vertical-divider[b-pndnay8k5f] {
    min-height: 320px;
}

/* PayPal button mount point. The JS side clears this container and
   injects a <paypal-button> web component. The min-height prevents
   the page from jumping when the button appears. */
.paypal-button-container[b-pndnay8k5f] {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Static fallback button when the PayPal SDK can't load (e.g. ad
   blocker, offline). Keeps the page from showing an empty box. */
.paypal-fallback-btn[b-pndnay8k5f] {
    width: 100%;
    padding: 12px 20px;
    background-color: #ffc439;
    color: #003087;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.paypal-fallback-btn:hover[b-pndnay8k5f] {
    background-color: #f5b500;
}
/* /Components/Viewport/StreamIframe.razor.rz.scp.css */
/* ============================================================
   StreamIframe Scoped Styles
   These styles are CSS-isolated to the StreamIframe component.
   They were moved here from ViewportCanvas.razor.css when the
   iframe rendering was extracted into its own component during
   the refactoring. Without this file the edit-mode placeholder
   styles did not apply to embedded (Twitch/YouTube/etc.) streams.
   All CSS variables (--viewport-*) are defined globally in
   site.css and updated by AppThemeProvider on theme toggle.
   ============================================================ */

/* ============ Iframe Overlays ============ */
.stream-iframe-wrapper[b-f6oh91zcjt] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: top left;
    pointer-events: none;
    overflow: hidden;
}

.stream-iframe-container[b-f6oh91zcjt] {
    position: absolute;
    overflow: hidden;
    background: var(--viewport-stream-bg);
}

.stream-iframe-container iframe[b-f6oh91zcjt] {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hide iframe during edit mode using visibility (not display) so the DOM element stays alive.
   This preserves playback state - the video keeps playing in the background and resumes */
.stream-iframe.hidden-in-edit-mode[b-f6oh91zcjt] {
    visibility: hidden;
}

/* ============ Edit Mode Placeholder ============ */
.stream-iframe-container.edit-mode[b-f6oh91zcjt] {
    background: var(--viewport-overlay-bg);
    border: 2px dashed var(--viewport-canvas-border);
    pointer-events: none !important;
}

.stream-placeholder[b-f6oh91zcjt] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--viewport-overlay-bg);
    border: 2px dashed var(--viewport-canvas-border);
    box-sizing: border-box;
    pointer-events: none;
    position: relative;
}

.placeholder-content[b-f6oh91zcjt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    gap: 8px;
}

.placeholder-icon[b-f6oh91zcjt] {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

.placeholder-name[b-f6oh91zcjt] {
    color: var(--viewport-text-primary);
    font-size: 14px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.placeholder-hint[b-f6oh91zcjt] {
    color: var(--viewport-text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--viewport-accent-glow);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--viewport-accent-glow);
}
/* /Components/Viewport/ViewportCanvas.razor.rz.scp.css */
/* ============================================================
   ViewportCanvas Scoped Styles
   These styles are CSS-isolated to the ViewportCanvas component.
   All CSS variables (--viewport-*) are defined globally in
   site.css and updated by AppThemeProvider on theme toggle.
   ============================================================ */

/* ============ Viewport Container ============ */
.viewport-container[b-m28yausbru] {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--viewport-background);
}

/* ============ Canvas ============ */
.viewport-canvas[b-m28yausbru] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    user-select: none;
}

.viewport-canvas:active[b-m28yausbru] {
    cursor: grabbing;
}

/* ============ Iframe Overlays ============ */
/* NOTE: Iframe overlay styles (.stream-iframe-wrapper, .stream-iframe-container,
   .stream-iframe.hidden-in-edit-mode, .stream-iframe-container.edit-mode,
   .stream-placeholder) now live in StreamIframe.razor.css after the iframe
   rendering was extracted into its own component. They are kept there because
   Blazor CSS isolation scopes each component's CSS to itself. */

/* ============ Edit Mode Placeholder (shared) ============ */
/* These placeholder-* styles are shared between StreamIframe's edit-mode
   placeholder and ViewportCanvas's rejected-stream placeholder boxes. They
   must remain here for the rejected-stream boxes, and are duplicated in
   StreamIframe.razor.css for the iframe edit-mode placeholder. */

.placeholder-content[b-m28yausbru] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    gap: 8px;
}

.placeholder-icon[b-m28yausbru] {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

.placeholder-name[b-m28yausbru] {
    color: var(--viewport-text-primary);
    font-size: 14px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.placeholder-hint[b-m28yausbru] {
    color: var(--viewport-text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--viewport-accent-glow);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--viewport-accent-glow);
}

/* ============ Stream Controls Overlay ============ */
.stream-controls[b-m28yausbru] {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    background: var(--viewport-overlay-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--viewport-canvas-border);
    z-index: 100;
    transition: all 0.3s ease;
}

/* Minimized state - small square */
.stream-controls.minimized[b-m28yausbru] {
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stream-controls.minimized .minimized-icon[b-m28yausbru] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.stream-controls.minimized .minimized-icon .bi[b-m28yausbru] {
    font-size: 22px;
    color: var(--viewport-accent);
    line-height: 1;
}

.stream-controls.minimized .minimized-icon-img[b-m28yausbru] {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============ Minimized Icon (standalone) ============
   When the controls bar auto-minimizes (or is manually collapsed) the full
   .stream-controls bar is hidden and this small icon button is shown in its
   place in the top-left corner. Clicking it expands the controls menu back.

   IMPORTANT: This element is a DIRECT child of .viewport-container — it is NOT
   a child of .stream-controls — so it needs its own positioning + z-index.
   Without these it falls back to position:static (normal flow) and the
   absolutely-positioned <canvas> grid paints on top of it ("behind the grid"). */
.minimized-icon[b-m28yausbru] {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--viewport-overlay-bg);
    border: 1px solid var(--viewport-canvas-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.minimized-icon:hover[b-m28yausbru] {
    width: 48px;
    height: 48px;
    transform: scale(1.08);
    border-color: var(--viewport-accent);
    box-shadow: 0 0 16px var(--viewport-accent-glow);
}

.minimized-icon:active[b-m28yausbru] {
    transform: scale(0.97);
}

.minimized-icon-img[b-m28yausbru] {
    width: 26px;
    height: 26px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.stream-controls .btn[b-m28yausbru] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.stream-controls .btn-primary[b-m28yausbru] {
    background: var(--viewport-accent);
    color: #fff;
}

.stream-controls .btn-primary:hover[b-m28yausbru] {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.stream-controls .btn-secondary[b-m28yausbru] {
    background: rgba(128, 128, 128, 0.2);
    color: var(--viewport-text-primary);
}

.stream-controls .btn-secondary:hover[b-m28yausbru] {
    background: rgba(128, 128, 128, 0.3);
}

.stream-controls .btn-info[b-m28yausbru] {
    background: var(--viewport-accent);
    color: #fff;
}

.stream-controls .btn-info:hover[b-m28yausbru] {
    filter: brightness(1.2);
}

.stream-controls .btn-warning[b-m28yausbru] {
    background: var(--viewport-accent);
    color: #fff;
}

.stream-controls .btn-warning:hover[b-m28yausbru] {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.stream-controls .btn-outline-light[b-m28yausbru] {
    background: transparent;
    color: var(--viewport-text-primary);
    border: 1px solid var(--viewport-canvas-border);
}

.stream-controls .btn-outline-light:hover[b-m28yausbru] {
    background: var(--viewport-accent-glow);
    border-color: var(--viewport-accent);
}

.stream-count[b-m28yausbru] {
    color: var(--viewport-text-secondary);
    font-size: 13px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--viewport-canvas-border);
}

.vr[b-m28yausbru] {
    display: inline-block;
    align-self: stretch;
    width: 1px;
    min-height: 1em;
    background-color: var(--viewport-canvas-border);
}

/* ============ Stream Info Panel ============ */
.stream-info-panel[b-m28yausbru] {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 240px;
    padding: 16px;
    background: var(--viewport-overlay-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--viewport-canvas-border);
    z-index: 100;
}

.stream-info-panel h5[b-m28yausbru] {
    margin: 0 0 16px 0;
    color: var(--viewport-text-primary);
    font-size: 16px;
    font-weight: 600;
}

.stream-info-panel .form-group[b-m28yausbru] {
    margin-bottom: 16px;
}

.stream-info-panel label[b-m28yausbru] {
    display: block;
    color: var(--viewport-text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-info-panel .form-range[b-m28yausbru] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--viewport-canvas-border);
    border-radius: 2px;
    outline: none;
}

.stream-info-panel .form-range[b-m28yausbru]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--viewport-accent);
    border-radius: 50%;
    cursor: pointer;
}

.stream-info-panel .form-control[b-m28yausbru] {
    width: 100%;
    padding: 8px 12px;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--viewport-canvas-border);
    border-radius: 6px;
    color: var(--viewport-text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.stream-info-panel .form-control:focus[b-m28yausbru] {
    outline: none;
    border-color: var(--viewport-accent);
    background: rgba(128, 128, 128, 0.15);
}

.stream-info-panel .form-text[b-m28yausbru] {
    display: block;
    color: var(--viewport-text-secondary);
    font-size: 11px;
    margin-top: 4px;
}

.stream-info-panel .form-check[b-m28yausbru] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.stream-info-panel .form-check-input[b-m28yausbru] {
    width: 18px;
    height: 18px;
    accent-color: var(--viewport-accent);
}

.stream-info-panel .form-check-label[b-m28yausbru] {
    color: var(--viewport-text-primary);
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
}

.stream-info-panel .btn-danger[b-m28yausbru] {
    width: 100%;
    padding: 10px;
    background: var(--app-palette-negative);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* ============ Modal Dialog ============ */
.modal-backdrop[b-m28yausbru] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-m28yausbru] {
    background: var(--viewport-overlay-bg);
    border: 1px solid var(--viewport-canvas-border);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header[b-m28yausbru] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--viewport-canvas-border);
}

.modal-header h5[b-m28yausbru] {
    margin: 0;
    color: var(--viewport-text-primary);
    font-size: 18px;
    font-weight: 600;
}

.modal-header .btn-close[b-m28yausbru] {
    background: none;
    border: none;
    color: var(--viewport-text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-header .btn-close:hover[b-m28yausbru] {
    background: var(--viewport-accent-glow);
    color: var(--viewport-text-primary);
}

.modal-body[b-m28yausbru] {
    padding: 24px;
}

.modal-body .form-group[b-m28yausbru] {
    margin-bottom: 20px;
}

.modal-body label[b-m28yausbru] {
    display: block;
    color: var(--viewport-text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.modal-body .form-control[b-m28yausbru] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--viewport-canvas-border);
    border-radius: 8px;
    color: var(--viewport-text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.modal-body .form-control:focus[b-m28yausbru] {
    outline: none;
    border-color: var(--viewport-accent);
    background: rgba(128, 128, 128, 0.15);
}

.modal-body .form-text[b-m28yausbru] {
    display: block;
    color: var(--viewport-text-secondary);
    font-size: 12px;
    margin-top: 8px;
}

.modal-footer[b-m28yausbru] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--viewport-canvas-border);
}

.modal-footer .btn[b-m28yausbru] {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal-footer .btn-secondary[b-m28yausbru] {
    background: rgba(128, 128, 128, 0.2);
    color: var(--viewport-text-primary);
}

.modal-footer .btn-primary[b-m28yausbru] {
    background: var(--viewport-accent);
    color: #fff;
}

/* ============ Screen Selector Dropdown ============ */
.screen-selector[b-m28yausbru] {
    position: relative;
    display: inline-block;
}

.screen-dropdown[b-m28yausbru] {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--viewport-overlay-bg);
    border: 1px solid var(--viewport-canvas-border);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.screen-dropdown button[b-m28yausbru] {
    margin-bottom: 4px;
    border-radius: 6px;
}

.screen-dropdown button:last-child[b-m28yausbru] {
    margin-bottom: 0;
}

/* ============ Template Menu Dropdown ============ */
.template-menu[b-m28yausbru] {
    position: relative;
    display: inline-block;
}

.template-dropdown[b-m28yausbru] {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--viewport-overlay-bg);
    border: 1px solid var(--viewport-canvas-border);
    border-radius: 8px;
    padding: 8px;
    min-width: 240px;
    max-width: 320px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.template-dropdown button[b-m28yausbru] {
    margin-bottom: 4px;
    border-radius: 6px;
}

.template-dropdown button:last-child[b-m28yausbru] {
    margin-bottom: 0;
}

/* Template row with action buttons */
.template-row[b-m28yausbru] {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
}

.template-row .template-name[b-m28yausbru] {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.template-row .template-action-btn[b-m28yausbru] {
    flex-shrink: 0;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.template-row:hover .template-action-btn[b-m28yausbru] {
    opacity: 1;
}

.template-dropdown-section[b-m28yausbru] {
    padding: 6px 8px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--viewport-text-secondary);
}

.template-dropdown-divider[b-m28yausbru] {
    height: 1px;
    background: var(--viewport-canvas-border);
    margin: 6px 0;
}

.template-empty-message[b-m28yausbru] {
    padding: 12px 8px;
    text-align: center;
    color: var(--viewport-text-secondary);
    font-size: 13px;
    font-style: italic;
}

/* ============ Screen Dropdown Enhancements ============ */
.screen-row[b-m28yausbru] {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
}

.screen-row .screen-name[b-m28yausbru] {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.screen-row .screen-action-btn[b-m28yausbru] {
    flex-shrink: 0;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.screen-row:hover .screen-action-btn[b-m28yausbru] {
    opacity: 1;
}

.screen-dropdown-divider[b-m28yausbru] {
    height: 1px;
    background: var(--viewport-canvas-border);
    margin: 6px 0;
}

/* ============ Placeholder Boxes for Rejected Streams ============ */
.stream-placeholder-box[b-m28yausbru] {
    position: absolute;
    border: 2px dashed #ff9800;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.2s;
}

.stream-placeholder-box:hover[b-m28yausbru] {
    opacity: 0.9;
}

.stream-placeholder-box .placeholder-content[b-m28yausbru] {
    pointer-events: auto;
}

/* ============ Playback Controls ============ */
.playback-controls[b-m28yausbru] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.playback-controls .btn[b-m28yausbru] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playback-controls .btn-success[b-m28yausbru] {
    background: var(--viewport-accent);
    color: #fff;
}

.playback-controls .btn-success:hover[b-m28yausbru] {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.playback-controls .btn-warning[b-m28yausbru] {
    background: rgba(255, 193, 7, 0.8);
    color: #212529;
}

.playback-controls .btn-warning:hover[b-m28yausbru] {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.playback-state-badge[b-m28yausbru] {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 500;
    text-transform: capitalize;
    border: 1px solid;
    white-space: nowrap;
    pointer-events: none;
}

.playback-state-badge.state-playing[b-m28yausbru] {
    background: rgba(40, 167, 129, 0.15);
    color: #28a745;
    border-color: #28a745;
}

.playback-state-badge.state-paused[b-m28yausbru] {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: #ffc107;
}

.playback-state-badge.state-ended[b-m28yausbru] {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border-color: #6c757d;
}

.playback-state-badge.state-buffering[b-m28yausbru] {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border-color: #007bff;
}

.playback-state-badge.state-unstarted[b-m28yausbru] {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border-color: #6c757d;
}

.playback-state-badge.state-unknown[b-m28yausbru] {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border-color: #6c757d;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .stream-controls[b-m28yausbru] {
        top: 10px;
        left: 10px;
        padding: 10px 12px;
    }

    .minimized-icon[b-m28yausbru] {
        top: 10px;
        left: 10px;
    }

    .stream-controls .btn[b-m28yausbru] {
        padding: 6px 10px;
        font-size: 12px;
    }

    .stream-info-panel[b-m28yausbru] {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .playback-controls[b-m28yausbru] {
        flex-wrap: wrap;
    }

    .playback-controls .btn[b-m28yausbru] {
        padding: 6px 10px;
        font-size: 12px;
    }
}
