/**
 * Chitacle Theater CSS
 * Театральная концепция: Гардероб → Гримёрка → Сцена
 */

/* ===== Base ===== */
html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-primary);
    background: #0d0d0d;
}

/* ===== Theater Container ===== */
.theater {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

/* ===== Screen Indicator ===== */
.theater-indicator {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* 5mm выше кнопок */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--accent-gold);
    width: 25px;
    border-radius: 5px;
}

/* ===== Screens Container ===== */
.theater-screens {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Start at Wardrobe (first screen) - all users begin here */
.theater-screens {
    transform: translateX(0);
}

.theater-screens[data-screen="0"] {
    transform: translateX(0);
}

.theater-screens[data-screen="1"] {
    transform: translateX(-33.333%);
}

.theater-screens[data-screen="2"] {
    transform: translateX(-66.666%);
}

/* ===== Swipe Hint Animation ===== */
/* From Wardrobe (screen 0): hint to swipe left toward Backstage */
@keyframes swipe-hint-from-wardrobe {
    0% { transform: translateX(0); }
    30% { transform: translateX(-5%); }
    50% { transform: translateX(-5%); }
    100% { transform: translateX(0); }
}

/* From Backstage (screen 1): hint to swipe left toward Stage */
@keyframes swipe-hint-from-backstage {
    0% { transform: translateX(-33.333%); }
    30% { transform: translateX(-38.333%); }
    50% { transform: translateX(-38.333%); }
    100% { transform: translateX(-33.333%); }
}

.theater-screens.swipe-hint-animation {
    animation: swipe-hint-from-wardrobe 1.4s ease-in-out;
}

.theater-screens.swipe-hint-to-stage {
    animation: swipe-hint-from-backstage 1.4s ease-in-out;
}

/* From Stage (screen 2): hint to swipe right toward Backstage */
@keyframes swipe-hint-from-stage {
    0% { transform: translateX(-66.666%); }
    30% { transform: translateX(-61.666%); }
    50% { transform: translateX(-61.666%); }
    100% { transform: translateX(-66.666%); }
}

.theater-screens.swipe-hint-to-backstage {
    animation: swipe-hint-from-stage 1.4s ease-in-out;
}

/* ===== Individual Screen ===== */
.screen {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Exit Corner Button ===== */
.exit-corner-btn {
    position: absolute;
    top: 20px;
    right: calc(20px + 2cm);
    z-index: 50;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: transform 0.2s ease;
}

.exit-corner-btn .exit-icon {
    font-size: 32px;
    filter: hue-rotate(90deg) saturate(1.5);
    transition: filter 0.2s ease;
}

.exit-corner-btn .exit-text {
    color: #4ade80;
    font-size: 11px;
}

.exit-corner-btn:hover {
    transform: scale(1.1);
}

.exit-corner-btn:hover .exit-icon {
    filter: hue-rotate(90deg) saturate(2);
}

@media (max-width: 480px) {
    .exit-corner-btn {
        top: 12px;
        right: calc(12px + 1.5cm);
    }

    .exit-corner-btn .exit-icon {
        font-size: 28px;
    }

    .exit-corner-btn .exit-text {
        font-size: 10px;
    }
}

/* Screen backgrounds */
.screen--wardrobe {
    --bg-color: #1a1215;
    background-color: var(--bg-color);
    background-image: url('/assets/images/theater/wardrobe.png');
    background-position: center top;
}

.screen--backstage {
    --bg-color: #1e1820;
    background-color: var(--bg-color);
    background-image: url('/assets/images/theater/backstage.png');
    background-position: center top;
}

.screen--stage {
    --bg-color: #0d1020;
    background-color: var(--bg-color);
    background-image: url('/assets/images/theater/stage.png');
    background-position: center center;
}

@media (min-width: 769px) {
    .screen--stage {
        background-image: url('/assets/images/theater/stage-desktop.jpg');
    }
}

/* Dark overlay for better text readability */
.screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ===== Screen Content ===== */
.screen-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    color: var(--text-light);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ===== Wardrobe (Profile) ===== */
.wardrobe-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    max-width: 300px;
    width: 100%;
}

/* Compact Header */
.wardrobe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.header-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.logout-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.logout-icon:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.2rem;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-initials {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-light);
}

.profile-name {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.profile-name:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Horizontal Row for Gender & Age */
.profile-hz-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-hz-section {
    flex: 1;
    min-width: 0;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Toggle Group */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.toggle-group--compact {
    display: flex;
    gap: 6px;
}

.toggle-group--compact .toggle-btn {
    flex: 1;
    text-align: center;
}

.toggle-group--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.toggle-group--row {
    display: flex;
    gap: 6px;
}

.toggle-group--row .toggle-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 0.8rem;
}

.profile-section {
    margin-bottom: 12px;
}

.toggle-btn {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.toggle-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 500;
}

/* Device Select */
.device-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23f5f5f5' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.device-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.device-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
}

.device-select option {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 8px;
}

/* Logout Button */
.btn--logout {
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn--logout:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    color: #ff6b6b;
}

/* ===== Afisha Card (Scheduled Meetings) ===== */
.afisha-card {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
}

.afisha-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
}

.afisha-content {
    margin-bottom: 12px;
}

.afisha-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 8px 0;
}

.afisha-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.afisha-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afisha-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.afisha-item-datetime {
    font-weight: 500;
    color: #fff;
}

.afisha-item-partner {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.afisha-item-partner.waiting {
    color: var(--accent-gold);
    font-style: italic;
}

.afisha-actions {
    display: flex;
    gap: 10px;
}

.afisha-actions .btn {
    flex: 1;
}

/* Confirm dialog overlay */
.afisha-confirm {
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.afisha-confirm p {
    margin: 0 0 12px 0;
    color: #fff;
}

.afisha-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Afisha Modal */
.afisha-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.afisha-modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.afisha-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.afisha-modal-close:hover {
    color: #fff;
}

.afisha-modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin: 0 0 4px 0;
    text-align: center;
}

.afisha-modal-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 16px;
}

.afisha-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 180px; /* ~3 встречи */
    overflow-y: auto;
}

.afisha-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.afisha-modal-item-datetime {
    font-weight: 500;
    color: #fff;
}

.afisha-modal-item-partner {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.afisha-modal-item-partner.waiting {
    color: var(--accent-gold);
    font-style: italic;
}

.afisha-modal-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.afisha-modal-item-cancel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 10px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.afisha-modal-item-cancel:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.afisha-modal-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px 0;
}

.afisha-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== Backstage (Formats) ===== */
.formats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px;
    width: 100%;
}

.format-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.format-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.6);
}

.format-card--primary {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
}

.format-card--primary:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
}

.format-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.format-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.format-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Matching Panel */
.matching-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    max-width: 400px;
    width: 100%;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
}

.matching-stage {
    text-align: center;
}

.matching-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

#found-stage .matching-title {
    margin-bottom: 8px;
}

.back-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.back-btn:hover {
    color: var(--text-light);
}

.criteria-section {
    margin-bottom: 24px;
    text-align: left;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.matching-panel .btn--full {
    max-width: 280px;
    margin: -8px auto 0;
}

#criteria-back-btn {
    margin-top: 16px;
}

#want-gender .checkbox-option {
    justify-content: center;
}

#want-ages .checkbox-option:last-child {
    grid-column: 1 / -1;
    justify-content: center;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-option input {
    display: none;
}

.checkbox-option:has(input:checked) {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.checkbox-option span {
    font-size: 0.9rem;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

/* TG Consent */
.tg-consent {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.tg-consent-label:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(232, 184, 85, 0.3);
}

.tg-consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tg-consent-label input[type="checkbox"]:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.tg-consent-label input[type="checkbox"]:checked::after {
    content: '✓';
    display: block;
    text-align: center;
    color: #000;
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
}

.consent-emoji {
    font-size: 1rem;
    margin-right: 4px;
}

.consent-highlight {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Matching Animation */
.matching-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

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

.matching-timer {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 20px 0;
}

.matching-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.matching-progress-bar {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 1s linear;
}

/* Found Stage */
.found-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 10px 0;
}

/* Scheduled Format Card */
.format-card--scheduled {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
}

.format-card--scheduled:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
}

/* Schedule Date Picker */
.schedule-dates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.schedule-date-btn {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.schedule-date-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.schedule-date-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.schedule-date-btn .date-day {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.schedule-date-btn .date-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.schedule-date-btn .date-count {
    display: none;
    font-size: 0.65rem;
    color: #4caf50;
    margin-top: 2px;
}

.schedule-date-btn .date-count.has-count {
    display: block;
}

.schedule-date-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(100, 100, 100, 0.2);
}

.schedule-date-btn.disabled .date-count {
    color: #ff6b6b;
}

/* Schedule Time Picker */
.schedule-times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.schedule-time-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.schedule-time-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.schedule-time-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.schedule-time-btn .slot-badge {
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
    opacity: 0.7;
}

.schedule-time-btn.has-matches {
    border-color: var(--accent-gold);
}

.schedule-time-btn.has-matches .slot-badge {
    color: var(--accent-gold);
}

.schedule-time-btn.active .slot-badge {
    color: inherit;
    opacity: 0.8;
}

/* Schedule Preview Panel */
.schedule-preview {
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.schedule-preview.visible {
    opacity: 1;
}

.schedule-preview-header {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.schedule-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.schedule-preview-chip .chip-gender {
    opacity: 0.6;
}

/* Schedule Results List */
.schedule-results-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.schedule-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.schedule-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), rgba(212, 175, 55, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.schedule-result-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.schedule-result-info {
    flex: 1;
    text-align: left;
}

.schedule-result-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.schedule-result-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.schedule-result-action {
    padding: 8px 16px;
    background: var(--accent-gold);
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.schedule-result-action:hover {
    background: #e6c34a;
}

/* No Results */
.schedule-no-results {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-results-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* Schedule Confirmation */
.schedule-confirmation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

/* Wardrobe scrollable on small screens */
.screen--wardrobe .screen-content {
    justify-content: flex-start;
    padding-top: 15px;
}

/* Backstage scrollable on small screens */
.screen--backstage .screen-content {
    justify-content: flex-start;
    padding-top: 30px;
}

/* ===== Stage (Video Call) ===== */
.screen-content--stage {
    padding: 0;
    overflow: hidden;
}

.stage-empty {
    text-align: center;
    padding: 40px;
    position: relative;
}

/* Animated Stage Placeholder */
.stage-empty::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.05) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: stagePulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes stagePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.stage-empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: iconFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stage-empty-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    font-weight: 400;
}

.stage-empty-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.stage-empty-actions > button {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.stage-empty-actions > button.btn--primary {
    background: #d4a853;
    color: #000;
}

.stage-empty-actions > button.btn--danger {
    background: #b54040;
    color: #fff;
}

.stage-empty-text {
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Stage Scheduled - upcoming meeting info */
.stage-scheduled {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.stage-scheduled-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.stage-scheduled-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.stage-scheduled-datetime {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.stage-scheduled-countdown {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.stage-scheduled-partner {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: inline-block;
    min-width: 200px;
}

.stage-scheduled-partner .partner-paired {
    color: var(--text-light);
}

.stage-scheduled-partner .partner-waiting {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.stage-scheduled-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.stage-scheduled-list {
    margin-top: 16px;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.scheduled-list-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.scheduled-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.scheduled-list-item .item-time {
    color: var(--text-light);
}

.scheduled-list-item .item-status {
    font-size: 0.75rem;
}

.scheduled-list-item .item-status.paired {
    color: var(--accent-gold);
}

.scheduled-list-item .item-status.waiting {
    color: rgba(255, 255, 255, 0.4);
}

/* Announcement Stage (after match, before start) */
.stage-announcement {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.announcement-content {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .announcement-content {
        padding: 24px 20px;
    }

    .announcement-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .announcement-partner {
        padding: 14px;
        gap: 14px;
        margin-bottom: 16px;
    }

    .partner-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .announcement-play {
        padding: 12px;
        margin-bottom: 20px;
    }
}

.announcement-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.announcement-partner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.partner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

.partner-details {
    flex: 1;
    text-align: left;
}

.partner-name-display {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.partner-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.announcement-play {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.play-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.play-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-light);
}

.announcement-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(212, 175, 55, 0.1);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    text-align: left;
}

.hint-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hint-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.announcement-timer {
    text-align: center;
    margin: 20px 0;
}

.announcement-timer .timer-hint {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
}

.announcement-timer .timer-countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    font-family: monospace;
    padding: 0 4px;
}

.announcement-actions {
    display: flex;
    gap: 12px;
}

.announcement-actions .btn {
    flex: 1;
}

/* Preview Videos */
.preview-videos {
    display: none;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-videos.show {
    display: flex;
}

.preview-video-item {
    flex: 1;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #000;
}

.preview-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* Active Stage */
.stage-active {
    width: 100%;
    height: 100%;
    position: relative;
}

.stage-video-partner {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.stage-video-partner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-name {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
}

.stage-video-self {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 120px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: grab;
    z-index: 10;
}

.stage-video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Text Overlay */
.stage-text-overlay {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 140px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

.stage-text-overlay.visible {
    display: block;
}

.text-content {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Controls */
.stage-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    z-index: 20;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn.muted {
    background: rgba(255, 0, 0, 0.3);
}

.control-btn--danger {
    background: #c0392b;
}

.control-btn--danger:hover {
    background: #e74c3c;
}

/* Viewers */
.stage-viewers {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--primary {
    background: var(--accent-gold);
    color: #000;
}

.btn--primary:hover {
    background: #e6c34a;
    transform: translateY(-2px);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn--full {
    width: 100%;
}

/* Legal Consent Checkbox */
.legal-consent {
    width: 100%;
    margin-bottom: 15px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #d4a853;
    cursor: pointer;
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: #d4a853;
    text-decoration: underline;
    transition: color 0.2s;
}

.consent-link:hover {
    color: #e6c34a;
}

/* Disabled state for button */
.wardrobe-actions > button.btn--primary:disabled {
    background: rgba(212, 168, 83, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

/* Wardrobe & Backstage actions row */
.wardrobe-actions,
.backstage-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.wardrobe-actions > button,
.backstage-actions > button {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wardrobe-actions > button.btn--primary,
.backstage-actions > button.btn--primary {
    background: #d4a853;
    color: #000;
}

.wardrobe-actions > button.btn--primary:hover,
.backstage-actions > button.btn--primary:hover {
    background: #e6c34a;
}

.wardrobe-actions > button.btn--danger,
.backstage-actions > button.btn--danger {
    background: #b54040;
    color: #fff;
}

.wardrobe-actions > button.btn--danger:hover,
.backstage-actions > button.btn--danger:hover {
    background: #c55050;
}

.wardrobe-actions > button.btn--secondary,
.backstage-actions > button.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wardrobe-actions > button.btn--secondary:hover,
.backstage-actions > button.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.backstage-actions {
    margin-top: 20px;
    max-width: 360px;
}

/* Navigation arrow */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent-gold);
}

.nav-arrow--right {
    right: 20px;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .nav-arrow--right {
        right: 10px;
    }
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--accent-gold);
    color: #000;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn--small:hover {
    background: #e6c34a;
}

.btn--text {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn--text:hover {
    color: #fff;
}

.btn--danger {
    background: rgba(180, 60, 60, 0.8);
    color: #fff;
}

.btn--danger:hover {
    background: rgba(200, 70, 70, 0.9);
}

/* ===== Swipe Lock for Stage ===== */
.theater.stage-locked .theater-screens {
    touch-action: none;
}

.theater.stage-locked .theater-indicator {
    opacity: 0.3;
    pointer-events: none;
}

/* ===== Locked Indicators ===== */
.indicator-dot.locked {
    opacity: 0.3;
    cursor: not-allowed;
    position: relative;
}

.indicator-dot.locked::before {
    content: '🔒';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.indicator-dot.locked:hover::before {
    opacity: 0.8;
}

/* ===== Profile Warning Tooltip ===== */
.profile-warning-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.profile-warning-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Profile Complete Message ===== */
.profile-complete-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-complete-message.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.message-icon {
    width: 24px;
    height: 24px;
    background: white;
    color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.message-text {
    font-size: 0.95rem;
}

/* ===== First Visit Tooltips ===== */
.swipe-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-gold);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    z-index: 90;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
    pointer-events: none;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.swipe-hint::before {
    content: '👉';
    margin-right: 8px;
}

/* ===== Swipe Visual Hints ===== */
.screen::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.screen--wardrobe::after {
    display: none;
}

@media (max-width: 768px) {
    .screen::after {
        display: none;
    }
}

/* ===== Desktop Backgrounds ===== */
@media (min-width: 769px) {
    .screen--wardrobe {
        background-image: url('/assets/images/theater/wardrobe-desktop.jpg');
        background-position: center center;
    }

    .screen--backstage {
        background-image: url('/assets/images/theater/backstage-desktop.jpg');
        background-position: center center;
    }

    .screen--stage {
        background-image: url('/assets/images/theater/stage-desktop.jpg');
        background-position: center center;
    }
}

/* ===== Billing ===== */
.billing-card {
    background: none;
    border: none;
    padding: 20px;
    margin-top: 14px;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.billing-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.billing-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.billing-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.billing-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* No Balance Banner */
.no-balance-banner {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.no-balance-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.no-balance-title {
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.no-balance-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.no-balance-packages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Billing Modal */
.billing-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.billing-modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
}

.billing-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-align: center;
}

.billing-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.package-card:hover,
.package-card.selected {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.package-card--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.package-name {
    font-weight: 600;
    color: #fff;
}

.package-price {
    font-family: var(--font-display);
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.package-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.package-discount {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.billing-modal-close {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.billing-modal-close:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Billing History */
.billing-history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.billing-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.billing-history-item:last-child {
    border-bottom: none;
}

.history-item-info {
    display: flex;
    flex-direction: column;
}

.history-item-name {
    color: #fff;
    font-size: 0.9rem;
}

.history-item-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.history-item-amount {
    color: var(--accent-gold);
    font-weight: 600;
}

.history-item-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.history-item-status--completed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.history-item-status--pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.history-item-status--failed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.billing-history-empty {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 40px 0;
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 480px) {
    .screen-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .screen-content {
        padding: 16px;
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        justify-content: flex-start;
        padding-top: 40px;
    }

    .formats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .schedule-dates {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .schedule-times {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .schedule-date-btn {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .schedule-time-btn {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .format-card {
        padding: 16px 12px;
    }

    .format-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .format-title {
        font-size: 1rem;
    }

    .format-desc {
        font-size: 0.8rem;
    }

    .wardrobe-panel {
        padding: 20px 16px;
        max-width: 100%;
    }

    .matching-panel {
        padding: 20px 16px;
        max-width: 100%;
    }

    .matching-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .found-icon {
        font-size: 2rem;
        margin-bottom: 4px;
    }

    .partner-card {
        padding: 12px;
        margin: 12px 0;
    }

    .stage-video-self {
        width: 90px;
        height: 120px;
        bottom: 90px;
    }

    .stage-text-overlay {
        right: 20px;
        bottom: 90px;
    }

    .stage-controls {
        gap: 6px;
        padding: 8px 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .billing-modal-content {
        padding: 24px 16px;
        width: 95%;
    }

    .btn--primary:hover {
        transform: none;
    }

    .billing-modal-title {
        font-size: 1.3rem;
    }

    .wardrobe-header {
        gap: 10px;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .profile-initials {
        font-size: 1.2rem;
    }

    .header-name {
        font-size: 1rem;
    }

    .logout-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .profile-name {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .profile-hz-row {
        gap: 12px;
    }

    .toggle-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .checkbox-option {
        padding: 8px 12px;
    }

    .checkbox-option span {
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Theater indicator safe area */
    .theater-indicator {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    /* Toast safe area */
    .theater-toast {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100% - 24px);
    }

    /* Billing card compact */
    .billing-card {
        padding: 16px;
    }

    .billing-value {
        font-size: 1.2rem;
    }

    /* Connection overlay mobile */
    .connection-content {
        padding: 24px 16px;
    }

    /* Share modal mobile */
    .share-modal-content {
        padding: 24px 16px;
        width: 95%;
    }

    .share-modal-title {
        font-size: 1.5rem;
    }

    /* Recording modal mobile */
    .recording-modal-content {
        padding: 24px 16px;
        width: 95%;
    }

    .recording-modal-title {
        font-size: 1.5rem;
    }
}

/* ===== Very Small Screens (iPhone SE, 320px) ===== */
@media (max-width: 375px) {
    .screen-title {
        font-size: 1.5rem;
    }

    .formats-container {
        grid-template-columns: 1fr;
    }

    .stage-controls {
        gap: 4px;
        padding: 6px 10px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .schedule-dates {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .schedule-date-btn {
        padding: 6px 2px;
        font-size: 0.75rem;
    }

    .schedule-times {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .announcement-content {
        padding: 20px 16px;
    }

    .announcement-title {
        font-size: 1.3rem;
    }
}

/* ===== Status Indicators (LIVE, REC, Viewers) ===== */
.stage-indicators {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.status-indicator.live {
    background: rgba(220, 38, 38, 0.9);
}

.status-indicator.rec {
    background: rgba(239, 68, 68, 0.9);
}

.status-indicator.viewers {
    background: rgba(59, 130, 246, 0.9);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ===== Share Modal ===== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.share-modal-content {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.share-modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.share-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.share-link-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.share-link-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.9rem;
}

.share-link-copy {
    padding: 12px 20px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-link-copy:hover {
    background: #e6c200;
}

.share-viewers-info {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.share-viewers-info span {
    color: var(--accent-gold);
    font-weight: 600;
}

.share-modal-close {
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Button active states */
.control-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* ===== Recording Complete Modal ===== */
.recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.recording-modal-content {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.recording-modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.recording-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.recording-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.recording-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.recording-info-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recording-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.recording-value {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
}

.recording-actions {
    display: flex;
    gap: 12px;
}

.recording-actions .btn {
    flex: 1;
}

/* ===== Connection Overlay ===== */
.connection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.connection-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.connection-overlay.fade-out {
    opacity: 0;
}

.connection-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
    padding: 40px;
}

.connection-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: connectionSpin 1s linear infinite;
}

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

.connection-status {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    min-height: 2em;
}

.connection-progress {
    margin-bottom: 30px;
}

.connection-progress .progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.connection-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #e6c200);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.connection-progress .progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.connection-cancel-btn {
    min-width: 150px;
}

/* Connection success state */
.connection-overlay.success .connection-spinner {
    border-color: #4caf50;
    border-top-color: #4caf50;
    animation: none;
}

.connection-overlay.success .connection-spinner::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #4caf50;
}

/* Connection error state */
.connection-overlay.error .connection-spinner {
    border-color: #ff6b6b;
    border-top-color: #ff6b6b;
    animation: none;
}

.connection-overlay.error .connection-spinner::after {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #ff6b6b;
}

/* Connection Overlay Mobile */
@media (max-width: 480px) {
    .connection-content {
        padding: 30px 20px;
    }

    .connection-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 24px;
    }

    .connection-status {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    .connection-progress {
        margin-bottom: 24px;
    }

    .connection-cancel-btn {
        min-width: 120px;
        padding: 12px 24px;
    }

    .connection-overlay.success .connection-spinner::after,
    .connection-overlay.error .connection-spinner::after {
        font-size: 2rem;
    }
}

/* ===== Return to Room Banner ===== */
.return-to-room-banner {
    background: rgba(200, 170, 110, 0.12);
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: var(--radius-lg, 12px);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: bannerSlideIn 0.3s ease;
}

@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.return-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.return-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.return-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.return-partner-name {
    font-size: 0.9rem;
    color: var(--text-light);
}

.return-play-title {
    font-size: 0.8rem;
    opacity: 0.6;
    color: var(--text-light);
}

.return-partner-status {
    font-size: 0.75rem;
    color: #4caf50;
}

.return-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.return-dismiss-btn {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===== Reconnecting Overlay ===== */
.reconnecting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reconnecting-content {
    text-align: center;
    max-width: 360px;
    width: 90%;
    padding: 40px 20px;
}

.reconnecting-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: connectionSpin 1s linear infinite;
}

.reconnecting-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.reconnecting-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.reconnecting-countdown {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1em;
}

#reconnecting-leave-btn {
    min-width: 160px;
}

/* ===== Toast Notifications ===== */
.theater-toast {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    max-width: 380px;
    width: calc(100% - 32px);
    padding: 12px 16px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theater-toast.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.theater-toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.theater-toast-body {
    flex: 1;
    min-width: 0;
}

.theater-toast-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.3;
}

.theater-toast-action {
    flex-shrink: 0;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.theater-toast-action:hover {
    filter: brightness(1.1);
}

.theater-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}

.theater-toast.toast-success {
    border-color: rgba(76, 175, 80, 0.3);
}

.theater-toast.toast-warning {
    border-color: rgba(255, 152, 0, 0.3);
}

/* ===== Badge on Indicator Dots ===== */
.indicator-dot.has-badge {
    position: relative;
}

.indicator-dot.has-badge::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    border: 1.5px solid #0d0d0d;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Time Arrived Modal ===== */
.time-arrived-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.time-arrived-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.time-arrived-content {
    text-align: center;
    padding: 40px 32px;
    max-width: 340px;
    width: calc(100% - 48px);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-xl);
}

.time-arrived-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.time-arrived-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.time-arrived-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.4;
}

.time-arrived-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-arrived-actions .btn-primary {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.time-arrived-actions .btn-primary:hover {
    filter: brightness(1.1);
}

.time-arrived-actions .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ===== Notification Steps (Три звонка) ===== */
.notification-steps-dark {
    text-align: left;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.notification-steps-dark .notif-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-steps-dark .notif-item:last-child {
    border-bottom: none;
}

.notification-steps-dark .notif-num {
    min-width: 55px;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.notification-steps-dark .notif-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    flex-grow: 1;
}

.notification-steps-dark .notif-time {
    color: #ffffff;
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Mobile Stage Layout ===== */
@media (max-width: 768px) {
    /* Hide self-video on mobile during meeting */
    #self-video-container {
        display: none !important;
    }

    /* Partner video takes full width at top */
    #partner-video-container {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 35vh !important;
        border-radius: 0 !important;
        z-index: 10 !important;
    }

    #partner-video-container .container-header {
        display: none !important;
    }

    #partner-video-container .resize-handle {
        display: none !important;
    }

    #partner-video-container video {
        object-fit: cover;
    }

    /* Text container takes remaining space */
    #text-container {
        position: fixed !important;
        left: 0 !important;
        top: 35vh !important;
        width: 100vw !important;
        height: calc(65vh - 80px) !important;
        transform: none !important;
        border-radius: 0 !important;
        z-index: 10 !important;
    }

    #text-container .resize-handle {
        display: none !important;
    }

    /* Make text larger on mobile */
    #text-container .text-viewport {
        font-size: 1.1rem;
    }
}

/* ===== Theater Curtains (Navigation) ===== */
/* Скрыты — навигация через свайп и точки */
.theater-curtain {
    display: none;
}

.theater-curtain--left {
    left: 0;
    background: linear-gradient(90deg, rgba(100, 20, 20, 0.5) 0%, transparent 100%);
    padding-left: 10px;
    border-right: 1px solid rgba(139, 0, 0, 0.3);
}

.theater-curtain--right {
    right: 0;
    background: linear-gradient(-90deg, rgba(100, 20, 20, 0.5) 0%, transparent 100%);
    padding-right: 10px;
    justify-content: flex-end;
    border-left: 1px solid rgba(139, 0, 0, 0.3);
}

.theater-curtain:hover {
    width: 72px;
}

.theater-curtain--left:hover {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.7) 0%, transparent 100%);
}

.theater-curtain--right:hover {
    background: linear-gradient(-90deg, rgba(139, 0, 0, 0.7) 0%, transparent 100%);
}

.theater-curtain:active {
    width: 80px;
}

.curtain-label {
    display: none; /* Скрыто — используем точки навигации */
}

.theater-curtain--left .curtain-label {
    transform: rotate(180deg);
}

.theater-curtain:hover .curtain-label {
    color: rgba(255, 255, 255, 0.95);
}

/* Hide curtain when no navigation available */
.theater-curtain.hidden {
    display: none;
}

/* Curtain badge (notification dot) */
.curtain-badge {
    position: absolute;
    top: 14px;
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
    animation: curtain-badge-pulse 2s ease-in-out infinite;
    display: none;
}

.theater-curtain--left .curtain-badge {
    left: 14px;
}

.theater-curtain--right .curtain-badge {
    right: 14px;
}

.curtain-badge.visible {
    display: block;
}

@keyframes curtain-badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Stage locked — hide curtains */
.theater.stage-locked .theater-curtain {
    opacity: 0.3;
    pointer-events: none;
}

/* Mobile adjustments for curtains */
@media (max-width: 480px) {
    .theater-curtain {
        width: 36px;
    }

    .theater-curtain:hover,
    .theater-curtain:active {
        width: 56px;
    }

    .curtain-label {
        font-size: 11px;
    }

    .curtain-badge {
        top: 10px;
        width: 8px;
        height: 8px;
    }

    .theater-curtain--left .curtain-badge {
        left: 10px;
    }

    .theater-curtain--right .curtain-badge {
        right: 10px;
    }
}

/* ========================================
   Wardrobe Auth (inline authentication)
   ======================================== */

.wardrobe-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    max-width: 340px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
}

.auth-welcome {
    text-align: center;
    margin-bottom: 24px;
}

.auth-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.wardrobe-auth .telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--color-telegram);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.wardrobe-auth .telegram-btn:hover {
    background: var(--color-telegram-hover);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    transform: translateY(-1px);
}

.wardrobe-auth .telegram-icon {
    font-size: 1.2rem;
}

.wardrobe-auth .auth-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 16px;
}

/* QR Section */
.wardrobe-auth .qr-section {
    width: 100%;
    margin-top: 20px;
}

.wardrobe-auth .or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.wardrobe-auth .or-divider::before,
.wardrobe-auth .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.wardrobe-auth .qr-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.wardrobe-auth .qr-subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.wardrobe-auth .qr-code {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(67, 29, 40, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wardrobe-auth .qr-code canvas {
    transition: opacity 0.3s;
}

.wardrobe-auth .qr-hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-top: 12px;
}

.wardrobe-auth .qr-refresh-btn {
    display: block;
    margin: 12px auto 0;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.wardrobe-auth .qr-refresh-btn:hover {
    background: var(--secondary-color);
}

/* Hide QR on mobile */
@media (max-width: 768px) {
    .wardrobe-auth .qr-section {
        display: none;
    }
}

/* ======================================
   Invite Viewers Section (B + C)
   ====================================== */

/* Раскрывающаяся секция в announcement */
.invite-section {
    margin: 20px 0;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.invite-toggle {
    cursor: pointer;
    padding: 12px 16px;
    color: var(--accent-color, #a5b4fc);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    user-select: none;
}

.invite-toggle::-webkit-details-marker {
    display: none;
}

.invite-icon {
    font-size: 1.1rem;
}

.invite-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.invite-section[open] .invite-arrow {
    transform: rotate(180deg);
}

.invite-content {
    padding: 0 16px 16px;
    background: rgba(99, 102, 241, 0.05);
}

.invite-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.invite-link-row {
    display: flex;
    gap: 8px;
}

.invite-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #fff;
    font-size: 0.8rem;
}

.invite-link-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.invite-copy-btn {
    padding: 10px 14px;
    font-size: 1rem;
}

.invite-viewers {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Плавающая кнопка на сцене */
.floating-invite-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(99, 102, 241, 0.9);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}

.floating-invite-btn:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.floating-invite-icon {
    font-size: 1.1rem;
}

.floating-invite-label {
    font-weight: 500;
}

.floating-invite-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Invite Modal */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-modal-content {
    background: rgba(20, 20, 30, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.invite-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}

.invite-modal-close:hover {
    color: #fff;
}

.invite-modal-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #fff;
}

.invite-modal-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.invite-modal-viewers {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-invite-btn {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .floating-invite-label {
        display: none;
    }

    .invite-modal-content {
        padding: 20px;
    }
}
