:root {
    --bg-deep: #000000;
    --bg-main: #0A0A0A;
    --bg-surface: #141414;
    --bg-surface-hover: #202020;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --primary-color: #00aeff;
    --primary-color-dark: #008fcc;
    --accent-yellow: #ffeb3b;
    --divider-color: rgba(255, 255, 255, 0.08);
    --scrollbar-thumb: #4f4f4f;
    --scrollbar-track: var(--bg-main);
    --modal-bg: rgba(0, 0, 0, 0.7);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.4s; /* Slightly slower for smoother feel */
    --transition-curve: cubic-bezier(0.4, 0, 0.2, 1); /* Smoother animation curve */
}

html[data-theme='light'] {
    --bg-deep: #f0f2f5;
    --bg-main: #ffffff;
    --bg-surface: #e4e6eb;
    --bg-surface-hover: #d8dadf;
    --text-primary: #050505;
    --text-secondary: #65676b;
    --primary-color: #1877f2;
    --primary-color-dark: #166fe5;
    --accent-yellow: #f5c33b;
    --divider-color: #ced0d4;
    --scrollbar-thumb: #bcc0c4;
    --scrollbar-track: var(--bg-surface);
    --modal-bg: rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme='blue'] {
    --bg-deep: #0a1929;
    --bg-main: #0f233a;
    --bg-surface: #173252;
    --bg-surface-hover: #21436b;
    --text-primary: #e6f1ff;
    --text-secondary: #a8b2d1;
    --primary-color: #64ffda;
    --primary-color-dark: #52d1b5;
    --divider-color: rgba(100, 255, 218, 0.1);
}

html[data-theme='green'] {
    --bg-deep: #121212;
    --bg-main: #1e1e1e;
    --bg-surface: #2a2a2a;
    --bg-surface-hover: #363636;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --primary-color: #1db954;
    --primary-color-dark: #1aa34a;
    --divider-color: rgba(255, 255, 255, 0.1);
}

html, body {
    width: 100vw;
    height: var(--app-height, 100vh);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--bg-deep);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    direction: rtl;
}

/* ========== START: استایل جدید برای اسکرول‌بار مدرن ========== */
/* اعمال استایل برای تمام اسکرول‌بارهای سایت */
::-webkit-scrollbar {
    width: 8px; /* عرض اسکرول‌بار */
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track); /* رنگ پس‌زمینه ترک */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb); /* رنگ دستگیره اسکرول */
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track); /* ایجاد حاشیه همرنگ پس‌زمینه برای زیبایی */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--bg-surface-hover); /* روشن‌تر شدن هنگام هاور */
}

/* برای سازگاری با فایرفاکس */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
/* ========== END: استایل اسکرول‌بار ========== */


.container {
    background: var(--bg-deep);
    width: 100vw;
    height: var(--app-height, 100vh);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-speed);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    box-shadow: var(--shadow);
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--transition-speed) var(--transition-curve);
    display: flex;
    flex-direction: column;
    padding: 20px;
    
    /* --- Glass Effect --- */
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
    color: var(--text-primary);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

#close-sidebar-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-content .menu-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.sidebar-content .menu-item:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.sidebar-content .menu-item i {
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 44px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--bg-surface);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    position: absolute;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) var(--transition-curve), visibility var(--transition-speed) var(--transition-curve);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.video-box {
    background: #000;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

#youtube-player-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#youtube-player-container iframe {
    width: 100%;
    height: 100%;
}

#yt-play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#yt-play-overlay-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.chat-section {
    background: var(--bg-main);
    padding: 0px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 40vh;
    overflow: hidden;
    transition: background-color var(--transition-speed);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
    direction: rtl;
    position: relative;
}

.message .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #00aeff;
    flex-shrink: 0;
}

.message .message-content {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 18px;
    padding: 8px 14px 9px 12px;
    box-shadow: var(--shadow);
    word-break: break-word;
    max-width: 100%;
    position: relative;
    z-index: 1;
    touch-action: pan-y;
    transition: transform 0.2s ease-out;
}

.reply-icon-container {
    position: absolute;
    right: -45px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: 0;
}


.message .message-content .meta {
    display: flex;
    align-items: baseline;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-weight: bold;
}

.message .message-content .meta .username {
    order: 3;
}

.message .message-content .meta .separator {
    order: 2;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5em;
}

.message .message-content .meta .timestamp {
    order: 1;
}

.message.system {
    justify-content: center;
    background: var(--bg-surface);
    color: var(--accent-yellow);
    text-align: center;
    font-size: 0.95em;
    font-weight: bold;
    align-self: center;
    max-width: 90%;
    padding: 5px 10px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    box-shadow: var(--shadow);
}

.message {
    flex-direction: row;
}

.replied-message {
    background-color: rgba(0,0,0,0.2);
    padding: 6px 10px;
    margin: 4px 0 8px 0;
    border-radius: 12px;
    border-right: 3px solid var(--primary-color);
}
html[data-theme='light'] .replied-message {
    background-color: rgba(0,0,0,0.05);
}
.replied-message strong {
    color: var(--primary-color);
    font-size: 0.9em;
    display: block;
    margin-bottom: 2px;
}
.replied-message p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reply-preview-container {
    display: none;
    align-items: center;
    background-color: var(--bg-surface);
    padding: 8px;
    border-top: 1px solid var(--divider-color);
}
.reply-preview-container.show {
    display: flex;
}
.reply-preview-content {
    flex-grow: 1;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}
.reply-preview-content strong {
    color: var(--primary-color);
    font-size: 0.9em;
}
.reply-preview-content p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cancel-reply-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

#chat-form {
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
}

#chat-form.chat-disabled {
    opacity: 0.6;
    pointer-events: none;
}

#chat-input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1em;
    outline: none;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

#send-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%; /* <<<< تغییر: دکمه گرد می‌شود */
    padding: 0; /* <<<< تغییر: حذف پدینگ */
    width: 40px; /* <<<< تغییر: تعیین عرض */
    height: 40px; /* <<<< تغییر: تعیین ارتفاع */
    font-size: 1.2em; /* <<<< تغییر: اندازه آیکون */
    cursor: pointer;
    font-family: inherit;
    transition: background-color var(--transition-speed);
    order: -1;
    display: flex; /* <<<< تغییر: برای وسط‌چین کردن آیکون */
    align-items: center; /* <<<< تغییر: برای وسط‌چین کردن آیکون */
    justify-content: center; /* <<<< تغییر: برای وسط‌چین کردن آیکون */
}

#send-btn:hover {
    background-color: var(--primary-color-dark);
}

.modal {
    position: fixed;
    inset: 0;
    background: var(--modal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 201;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) var(--transition-curve);
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    padding: 32px 24px 20px 24px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 300px;
    max-width: 90vw;
    color: var(--text-primary);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-speed) var(--transition-curve);

    /* --- Glass Effect --- */
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.1em;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    text-align: right;
    transition: border-color: 0.3s;
    font-family: inherit;
}

.modal-content textarea {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
    font-size: 1em;
    background: var(--bg-surface);
    color: var(--text-primary);
    margin-bottom: 15px;
    width: 100%;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}


.modal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.modal-form button {
    width: 100%;
    margin-top: 10px;
}


.modal-content button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    font-family: inherit;
    transition: background-color var(--transition-speed);
}

.modal-content .cancel-btn {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px; /* برای RTL در سمت چپ قرار می‌گیرد */
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* ========== START: استایل عمومی و اصلاح شده برای Input Group ========== */
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--text-secondary);
    transition: color 0.3s;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* پدینگ راست برای متن، پدینگ چپ برای آیکون */
    border-radius: 12px;
    border: 1px solid var(--divider-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    text-align: right;
    transition: border-color: 0.3s;
    font-family: inherit;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.input-group input:focus + i {
    color: var(--primary-color);
}
/* ========== END: استایل عمومی برای Input Group ========== */


.player-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    font-family: 'Vazirmatn', sans-serif;
}

.player-container video {
    width: 100%;
    height: 100%;
    display: block;
}

.player-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 6;
}

.player-container.show-controls .player-controls,
.player-container.paused .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.timeline-container {
    width: 100%;
    cursor: pointer;
    padding: 5px 0;
}

.timeline {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    border-radius: 5px;
}

.timeline .progress {
    height: 100%;
    width: 0;
    background: #00aeff;
    border-radius: 5px;
    position: absolute;
    right: 0;
    transition: width 0.1s linear;
}

.timeline .thumb-indicator {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #00aeff;
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%) scale(0);
    right: 0;
    left: auto;
    transition: transform 0.2s ease;
}

.timeline-container:hover .thumb-indicator {
    transform: translate(50%, -50%) scale(1);
}

.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s, color 0.2s;
}

.player-controls button:hover {
    color: #00aeff;
    transform: scale(1.15);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
}

.volume-container:hover .volume-slider {
    width: 80px;
}

.volume-progress {
    background: #fff;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 3px;
}

.time-display {
    font-size: 0.9em;
    user-select: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 899px) {
    .container {
        height: var(--app-height, 100vh) !important;
        min-height: var(--app-height, 100vh) !important;
        flex-direction: column;
    }
    .video-box {
        aspect-ratio: 16/9;
        flex: 0 0 auto !important;
        margin-bottom: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
    }
    .video-box video {
        width: 100vw !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        aspect-ratio: 16/9 !important;
        object-fit: contain;
        display: block;
        border-radius: 0 !important;
        background: #000;
    }
    .chat-section {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0px 8px 8px 8px;
        border-radius: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: hidden;
    }
    #chat-messages {
        flex: 1 1 0 !important;
        min-height: 0 !important;
    }
}

#user-avatar {
    display: none;
    /* کاهش مارجین منفی متناسب با اندازه جدید */
    margin-right: -10px;
    z-index: 10;
}

#user-avatar img {
    /* کوچک‌تر کردن آواتار اصلی کاربر */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

#youtube-player-container {
    display: none;
}

.restriction-notice {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 5px 15px;
    text-align: center;
}

.error-container {
    display: none; 
    position: fixed;
    inset: 0;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
    padding: 20px;
}

.error-container .error-content { 
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
    transform: scale(0.9);
    opacity: 0;
    animation: fadeInScale 0.5s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* --- Glass Effect --- */
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.error-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.error-container .error-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-container .error-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.error-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}

.error-button i {
    margin-left: 8px;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 220px;
    margin: 5px auto;
    gap: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    animation: fill-and-slide 2.5s ease-in-out infinite;
}

.loader-container span {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes fill-and-slide {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

#mp4-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 150px;
    pointer-events: none;
}

#mp4-spinner .progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

#mp4-spinner .progress-bar-fill {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    animation: fill-and-slide 2.5s ease-in-out infinite;
}

.channel-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
    max-height: 40vh;
    overflow-y: auto;
    padding: 5px;
}

.channel-btn {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.channel-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.category-btn {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--divider-color);
    border-radius: 16px;
    padding: 20px 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-btn i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.category-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.back-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

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

.player-container:fullscreen {
  width: 100%;
  height: 100%;
}
.player-container:-webkit-full-screen {
  width: 100%;
  height: 100%;
}

.player-overlay-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

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

.player-overlay-message .overlay-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.player-overlay-message p {
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 15px;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 900px) {
    .container {
        height: var(--app-height, 100vh);
        max-height: var(--app-height, 100vh);
    }

    .main-content {
        flex-direction: row-reverse;
    }

    .video-box {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
    }

    .chat-section {
        flex: 0 0 350px;
        max-height: none;
        border-right: 1px solid var(--divider-color);
        transition: flex-basis 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
}

.users-list-container {
    margin-top: 20px;
    margin-bottom: 25px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-surface);
    padding: 8px 12px;
    border-radius: 12px;
}

.user-list-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-list-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-list-info span {
    font-weight: bold;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kick-user-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.kick-user-btn:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
}

.kick-user-btn.hidden {
    display: none;
}

.main-content.theater-mode .chat-section {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 900px) {
    .main-content.theater-mode .video-box {
        flex-basis: 100%;
    }
    .main-content.theater-mode .chat-section {
        flex-basis: 0;
    }
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: var(--bg-surface);
    border-radius: 12px;
}

.setting-item span, .setting-item label {
    font-weight: 500;
    font-size: 0.95rem;
}

.settings-select {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    padding: 5px 8px;
    direction: ltr;
}
.settings-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.setting-item-full {
    width: 100%;
}

.danger-btn {
    width: 100%;
    padding: 10px;
    background-color: #581515;
    color: #ffc2c2;
    border: 1px solid #a33;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.danger-btn:hover {
    background-color: #7a2020;
    color: #ffffff;
}
.danger-btn i {
    margin-left: 8px;
}

.theme-selector {
    display: flex;
    gap: 10px;
}

.theme-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--divider-color);
    transition: transform 0.2s, border-color 0.2s;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.theme-option.dark { background-color: #0A0A0A; }
.theme-option.light { background-color: #f0f2f5; }
.theme-option.blue { background-color: #0f233a; }
.theme-option.green { background-color: #1e1e1e; }

.profile-card {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--divider-color);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color);
}


.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
    margin-top: 10px;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background-color: var(--bg-main);
    border-radius: 12px;
}

.profile-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.profile-info-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.theater-menu-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    gap: 25px;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

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

.theater-menu-button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 60px;
}

.theater-menu-button:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.theater-menu-button i {
    font-size: 1.5rem;
}

.theater-menu-button span {
    font-size: 0.8rem;
    font-weight: bold;
}


/* --- Theme Specific Glass Effects --- */
html[data-theme='light'] .sidebar {
    background-color: rgba(255, 255, 255, 0.75);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}
html[data-theme='light'] .modal-content,
html[data-theme='light'] .error-container .error-content {
    background: rgba(240, 242, 245, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme='blue'] .sidebar {
    background-color: rgba(15, 35, 58, 0.75);
    border-left: 1px solid rgba(100, 255, 218, 0.1);
}
html[data-theme='blue'] .modal-content,
html[data-theme='blue'] .error-container .error-content {
    background: rgba(23, 50, 82, 0.75);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

html[data-theme='green'] .sidebar {
    background-color: rgba(30, 30, 30, 0.75);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme='green'] .modal-content,
html[data-theme='green'] .error-container .error-content {
    background: rgba(42, 42, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Glass Background Effect --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: -1;
    background: linear-gradient( -45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab );
    background-size: 400% 400%;
    animation: gradient_anim 15s ease infinite;
    opacity: 0;
    transition: opacity 0.8s ease;
}

@keyframes gradient_anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.glass-bg-active::before {
    opacity: 1;
}

body.glass-bg-active .container {
    background: transparent;
}

body.glass-bg-active .video-header,
body.glass-bg-active .user-bar,
body.glass-bg-active .chat-section {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
    
body.glass-bg-active .sidebar {
    background-color: rgba(10, 10, 10, 0.65);
}

body.glass-bg-active .modal-content,
body.glass-bg-active .error-container .error-content {
    background: rgba(20, 20, 20, 0.65);
}

body.glass-bg-active[data-theme='light'] .video-header,
body.glass-bg-active[data-theme='light'] .user-bar,
body.glass-bg-active[data-theme='light'] .chat-section {
    background: rgba(255, 255, 255, 0.3);
}
    
body.glass-bg-active[data-theme='light'] .sidebar {
    background-color: rgba(255, 255, 255, 0.65);
}

body.glass-bg-active[data-theme='light'] .modal-content {
    background: rgba(240, 242, 245, 0.65);
}

/* --- استایل پیام‌های شناور در حالت تمام صفحه --- */

#fullscreen-chat-notifications {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    max-width: 320px;
}

.fs-chat-notification {
    pointer-events: auto;
    padding: 10px 15px;
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInOut 6s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    15% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

.fs-chat-notification img.fs-chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.fs-chat-content {
    display: flex;
    flex-direction: column;
}

.fs-chat-content strong {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.fs-chat-content p {
    margin: 0;
    font-size: 0.95em;
    color: #e0e0e0;
    word-break: break-word;
}

/* --- استایل آواتارها و دکمه چت در حالت تمام‌صفحه --- */
.fullscreen-online-avatars {
    display: none;
    align-items: center;
    padding-left: 15px;
}

.fs-chat-btn {
    display: none;
}

.player-container.is-fullscreen .fullscreen-online-avatars,
.player-container.is-fullscreen .fs-chat-btn {
    display: flex;
}

.fullscreen-online-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    margin-right: -10px;
    transition: transform 0.2s ease-in-out, margin-right 0.2s ease-in-out;
}

.fullscreen-online-avatars:hover img {
    transform: translateX(0);
    margin-right: 2px;
}

/* --- استایل‌های جدید برای چت در حالت تمام‌صفحه --- */

.player-controls .fs-chat-btn {
    font-size: 1rem; /* کمی کوچکتر برای هماهنگی */
}

.fs-chat-panel {
    position: absolute;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-width: 80vw;
    height: 60%;
    max-height: 500px;
    z-index: 100;
    
    /* --- Glass Effect --- */
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.fs-chat-panel.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fs-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.fs-chat-header span {
    font-weight: bold;
    color: var(--text-primary);
}

.fs-chat-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.fs-chat-close-btn:hover {
    color: var(--text-primary);
}

.fs-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* --- استفاده مجدد از استایل پیام‌ها با کمی تغییر --- */
.fs-chat-messages .message .message-content {
    background: rgba(0,0,0,0.3);
}
.fs-chat-messages .message.system {
     background: rgba(0,0,0,0.4);
     font-size: 0.85em;
}


.fs-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

#fullscreen-chat-input {
    flex-grow: 1;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 0.9em;
    outline: none;
}

.fs-chat-form button {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Dashboard Styles --- */

.dashboard-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: var(--app-height, 100vh);
    background: var(--bg-deep);
    color: var(--text-primary);
    padding: 20px;
    overflow-y: auto; /* For smaller screens */
}

.dashboard-content {
    width: 100%;
    max-width: 600px;
    background: var(--bg-main);
    border-radius: 24px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--divider-color);
    animation: fadeInScale 0.5s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.dashboard-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-content h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.dashboard-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}


/* ========== START: استایل‌های جدید داشبورد ========== */
.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

#dashboard-create-room-btn {
    grid-column: 1 / -1; /* این دکمه تمام عرض را می‌گیرد */
    padding: 14px 25px; /* کمی بزرگتر برای تاکید */
    font-size: 1.1rem;
}

.dashboard-actions button {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(32, 32, 32, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative; /* برای Badge */
}

.dashboard-actions button:hover {
    transform: translateY(-3px);
    background: rgba(32, 32, 32, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

#dashboard-create-room-btn:hover {
    background: rgba(0, 174, 255, 0.5);
    border-color: rgba(0, 174, 255, 0.8);
}

/* دکمه خروج با استایل قرمز شیشه‌ای */
.danger-btn-subtle {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff8a8a;
}

.danger-btn-subtle:hover {
    background: rgba(231, 76, 60, 0.4);
    color: #fff;
    border-color: rgba(231, 76, 60, 0.6);
}

#dashboard-admin-btn {
    background: rgba(192, 57, 43, 0.3);
    border-color: rgba(192, 57, 43, 0.5);
}
#dashboard-admin-btn:hover {
    background: rgba(192, 57, 43, 0.5);
    border-color: rgba(192, 57, 43, 0.8);
}

/* ========== END: استایل‌های جدید داشبورد ========== */


.my-rooms-section {
    border-top: 1px solid var(--divider-color);
    padding-top: 25px;
}

.my-rooms-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.my-rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 40vh;
    overflow-y: auto;
    padding: 5px;
}

.room-card {
    background-color: var(--bg-surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.room-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: var(--bg-surface-hover);
}

.room-card h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Pre Boot Loader Styles --- */
.pre-boot-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-deep);
    color: var(--text-secondary);
    gap: 20px;
}

.pre-boot-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--divider-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ====== استایل‌های تکمیلی مودال پروفایل و انتخاب آواتار ====== */

.avatar-selection-section {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--divider-color);
    padding-top: 20px;
    margin-top: 20px;
}

.avatar-selection-section h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.avatar-option {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    background-color: var(--bg-surface);
}

.avatar-option:hover {
    transform: scale(1.05);
    border-color: rgba(var(--primary-color-rgb, 0, 174, 255), 0.5); /* Fallback for primary-color */
}

.avatar-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb, 0, 174, 255), 0.4); /* Fallback for primary-color */
}

.btn-subtle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
}
/* ================================================= */
/* ============== ADMIN PANEL STYLES =============== */
/* ================================================= */

.admin-page-wrapper {
    width: 100%;
    max-width: 1400px;
    height: 95vh;
    margin: auto; /* برای وسط‌چین بودن در صفحه */
    background: var(--bg-main);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--divider-color);
}

.admin-panel-container {
    display: flex;
    height: 100%;
}

.admin-sidebar {
    flex: 0 0 240px;
    background: var(--bg-surface);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--divider-color);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    color: var(--text-primary);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1; /* باعث می‌شود لینک بازگشت به پایین بچسبد */
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    position: relative; /* برای موقعیت‌دهی Badge */
}

.admin-nav-link:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.admin-nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 174, 255, 0.3); /* Fallback color added */
}

.admin-nav-link.back-link {
    margin-top: auto;
    color: #ff8a8a;
}
.admin-nav-link.back-link:hover {
    background-color: rgba(255, 77, 77, 0.1);
}

.admin-nav-link .admin-counter {
    margin-right: auto;
    padding-left: 5px;
}


.admin-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.admin-view {
    display: none;
}
.admin-view.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.admin-view h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    color: var(--text-primary); /* --- اصلاح رنگ متن --- */
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--divider-color);
}

.stat-card h5 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.admin-section {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--divider-color);
    margin-bottom: 25px; /* --- اضافه شدن فاصله برای بخش‌ها --- */
}
.admin-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-primary); /* --- اصلاح رنگ متن --- */
}
.admin-section p {
    color: var(--text-secondary); /* --- اصلاح رنگ متن --- */
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.6;
}
.admin-section label {
    color: var(--text-secondary); /* --- اصلاح رنگ متن --- */
    font-weight: bold;
}

/* === استایل‌های جدید برای فرم‌ها === */
.admin-form-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* برای نمایش بهتر در صفحه‌های کوچک */
}

.admin-text-input,
.admin-search-input,
.admin-select-input,
.admin-textarea {
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
    background: var(--bg-main); /* تغییر پس‌زمینه */
    color: var(--text-primary); /* تغییر رنگ متن */
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.admin-text-input:focus,
.admin-search-input:focus,
.admin-select-input:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-search-input {
    width: 100%;
    max-width: 400px;
}

.admin-textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    margin: 15px 0;
}

.tag-guide {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.tag-guide code {
    background-color: var(--bg-surface-hover);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.95rem;
}

/* === استایل‌های دکمه‌ها === */
.admin-btn-primary,
.admin-btn-secondary,
.admin-btn-danger {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.admin-btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.admin-btn-danger {
    background-color: #581515;
    color: #ffc2c2;
    border: 1px solid #a33;
}
.admin-btn-danger:hover {
    background-color: #7a2020;
    color: #ffffff;
    transform: translateY(-2px);
}

.admin-btn-secondary {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}
.admin-btn-secondary:hover {
    background-color: var(--divider-color);
}

.danger-zone {
    border-color: #a33;
    background-color: rgba(90, 21, 21, 0.2);
}

/* === استایل‌های جدول === */
.admin-table-container {
    overflow-x: auto;
    background-color: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--divider-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    color: var(--text-secondary); /* --- اصلاح رنگ متن جدول --- */
}

.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--divider-color);
    vertical-align: middle;
}

.admin-table thead {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary); /* --- اصلاح رنگ متن هدر جدول --- */
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.admin-table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.admin-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9em;
}
.admin-user-details code {
    background-color: var(--bg-main);
    padding: 2px 6px;
    border-radius: 5px;
}

.user-status, .request-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    text-align: center;
    min-width: 80px;
    display: inline-block;
}
.user-status.active {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}
.user-status.banned {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}
.request-status.status-pending,
.request-status.status-new {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}
.request-status.status-completed,
.request-status.status-read {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}


/* ================================================= */
/* =========== NOTIFICATION STYLES =============== */
/* ================================================= */

#dashboard-notifications-btn {
    position: relative; /* Needed for counter positioning */
}

/* این کد را در فایل style.css پیدا کرده و جایگزین کنید */
.counter-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #000000; /* رنگ اصلی قرمز */
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid var(--bg-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* --- NEW: Add Animation --- */
    animation: pulse-red 2s infinite; /* انیمیشن pulse-red را هر 2 ثانیه تکرار کن */
}

.admin-counter {
    display: none; 
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #2ecc71;
    margin-right: auto;
    padding-left: 5px;
}

.admin-counter::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.admin-notification-badge {
    position: absolute;
    top: 8px;
    left: 8px; /* For RTL */
    background-color: #e74c3c;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse-red 2s infinite;
}

#notifications-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 5px;
    text-align: right;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    border-right: 4px solid transparent;
    transition: background-color 0.2s;
}

.notification-item.unread {
    background-color: var(--bg-surface-hover);
    border-right-color: var(--primary-color);
}

.notification-icon {
    font-size: 1.5rem;
    padding-top: 3px;
}
.notification-icon.success { color: #2ecc71; }
.notification-icon.warning { color: #f39c12; }
.notification-icon.info { color: var(--primary-color); }

.notification-content {
    flex-grow: 1;
}

.notification-content h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.notification-content p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.notification-timestamp {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

#notifications-list-container .empty-state {
    color: var(--text-secondary);
    padding: 40px 0;
}

/* ========== START: استایل وضعیت اشتراک در پروفایل ========== */
#profile-subscription-status {
    font-size: 0.85em;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: auto; /* برای قرارگیری در سمت چپ در حالت RTL */
    flex-shrink: 0; /* جلوگیری از کوچک شدن */
}

#profile-subscription-status.status-active {
    background-color: rgba(46, 204, 113, 0.2); /* Green */
    color: #2ecc71;
}

#profile-subscription-status.status-inactive {
    background-color: rgba(231, 76, 60, 0.2); /* Red */
    color: #e74c3c;
}
/* ========== END: استایل وضعیت اشتراک در پروفایل ========== */

/* ========== STYLES FROM LOGIN.HTML ========== */

.login-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100vw; 
    height: 100vh; 
}
.form-box { 
    width: 100%; 
    max-width: 400px; 
    padding: 40px 30px; 
    text-align: center; 
    color: var(--text-primary); 
    background: rgba(20, 20, 20, 0.75); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 24px; 
    box-shadow: var(--shadow); 
}
.form-box h1 { 
    font-size: 2rem; 
    margin-bottom: 10px; 
}
.form-box p { 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
}

.form-box button { 
    width: 100%; 
    padding: 12px; 
    background: var(--primary-color); 
    color: #fff; 
    border: none; 
    border-radius: 12px; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: background-color var(--transition-speed); 
}
.form-box button:hover { 
    background-color: var(--primary-color-dark); 
}
.form-switch-link { 
    margin-top: 20px; 
    font-size: 0.9rem; 
}
.form-switch-link a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: bold; 
}
#signup-form { 
    display: none; 
}

#alert-modal-icon { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
}
.modal-content p { 
    margin-bottom: 25px; 
}
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spinner { 
    animation: spin 1s linear infinite; 
}

/* ========== START: استایل‌های جدید برای کارت اتاق و دکمه اشتراک ========== */

.room-card {
    position: relative;
    padding-right: 45px; /* ایجاد فضا برای دکمه اشتراک */
}

.room-card h3 {
    font-size: 1.2rem; /* کمی بزرگتر کردن نام اتاق */
    margin-bottom: 5px;
}
.room-card code {
    font-size: 0.8em;
    color: var(--text-secondary);
    background-color: var(--bg-main);
    padding: 2px 6px;
    border-radius: 5px;
    direction: ltr;
    display: inline-block;
}

.share-room-btn {
    position: absolute;
    top: 50%;
    right: 15px; /* تغییر از left به right برای زبان فارسی */
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.share-room-btn:hover {
    color: var(--primary-color);
    background-color: var(--bg-surface-hover);
}
/* ========== END: استایل‌های جدید برای کارت اتاق و دکمه اشتراک ========== */

/* ================================================= */
/* ========= ADMIN PANEL RESPONSIVE STYLES ========= */
/* ================================================= */

.admin-mobile-header {
    display: none; /* در حالت دسکتاپ مخفی است */
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#admin-menu-toggle {
    background: var(--bg-surface-hover);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

#admin-mobile-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

@media (max-width: 900px) {
    .admin-page-wrapper {
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .admin-panel-container {
        flex-direction: column;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: var(--bg-surface); /* اطمینان از پس‌زمینه مناسب */
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .admin-overlay.show {
        display: block;
    }

    .admin-content {
        padding: 20px 15px; /* کاهش پدینگ در موبایل */
    }
    
    .admin-mobile-header {
        display: flex;
    }

    .admin-view h3 {
        display: none; /* عنوان اصلی در موبایل مخفی می‌شود */
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .admin-section {
        padding: 15px;
    }
}

/* ======================================================= */
/* =========== START: NEW DASHBOARD REDESIGN CSS =========== */
/* ======================================================= */

/* --- Main container for the new dashboard --- */
.dashboard-container {
    background-color: var(--bg-deep);
    padding: 0;
    align-items: flex-start;
}

.dashboard-redesigned {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-primary);
    animation: fadeInScale 0.5s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Header Section --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px;
    background: var(--bg-surface);
    border-radius: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-avatar-header {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.header-left h1 {
    font-size: 1.5rem;
    margin: 0;
}

.header-left p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-icon-btn {
    background: var(--bg-surface-hover);
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    color: var(--text-primary);
    background: var(--primary-color);
}

/* --- Main Actions Grid --- */
.main-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    position: relative;
    padding: 25px;
    border-radius: 16px;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.action-card span {
    font-size: 1.1rem;
    font-weight: bold;
}

/* --- Action Card Colors --- */
.action-card.color-purple { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.action-card.color-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.action-card.color-orange { background: linear-gradient(135deg, #f7971e, #ffd200); }
.action-card.color-green { background: linear-gradient(135deg, #00b09b, #96c93d); }
.action-card.color-red { background: linear-gradient(135deg, #cb2d3e, #ef473a); }

/* --- My Rooms Section --- */
.my-rooms-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.my-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* --- New Style for Room Cards (replaces .room-card) --- */
.room-card {
    position: relative; /* این خط برای موقعیت‌دهی دکمه ضروری است */
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 20px 50px 20px 20px; /* فضای اضافی در سمت راست برای دکمه */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.room-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.room-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
}
.room-card code {
    background-color: var(--bg-main);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    direction: ltr;
    align-self: flex-start;
}
.room-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: auto; /* Pushes date to the bottom */
}


/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .dashboard-redesigned {
        padding: 10px;
    }
    .header-left h1 {
        font-size: 1.2rem;
    }
    .header-left p {
        display: none;
    }
    .main-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
    .action-card {
        padding: 20px;
        min-height: 100px;
    }
    .action-card i {
        font-size: 1.5rem;
    }
    .action-card span {
        font-size: 0.9rem;
    }
}

/* --- Animation for Notifications Counter & Disconnected Status --- */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* --- Animation for Online Users Counter --- */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* ======================================================= */
/* ============ END: NEW DASHBOARD REDESIGN CSS ============ */
/* ======================================================= */

/* ======================================================= */
/* =========== START: استایل‌های پلیر مدرن ============ */
/* ======================================================= */

/* ---- استایل عنوان ویدیو روی پلیر ---- */
#video-title-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 15px;
    color: var(--text-primary);
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0; /* <<< تغییر اصلی اینجاست */
    transition: opacity 0.3s ease; /* هماهنگ‌سازی سرعت محو شدن با کنترل‌ها */
    font-weight: bold;
    pointer-events: none; /* برای اینکه در حالت مخفی قابل کلیک نباشد */
}

.player-container.show-controls #video-title-overlay,
.player-container.paused #video-title-overlay {
    opacity: 1;
    pointer-events: auto;
}
#video-title {
    margin: 0;
    font-weight: bold;
    font-size: 0.9em;
}

/* --- استایل اصلی و شیشه‌ای برای حالت شب --- */
.online-users-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
    /* START: تغییرات اصلی برای حالت شیشه‌ای */
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* END: تغییرات اصلی برای حالت شیشه‌ای */
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.4s ease-in-out, background-color 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
}

/* --- استایل جدید برای حالت روز (پس‌زمینه سفید) --- */
html[data-theme='light'] .online-users-container {
    background-color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.online-users-container:hover {
    transform: scale(1.05);
}

#video-online-avatars {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.video-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface-hover);
    margin-right: -10px; /* افکت روی هم قرار گرفتن */
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: margin-right 0.2s ease;
}

.online-users-container:hover .video-avatar-img {
    margin-right: -2px; /* جدا شدن آواتارها هنگام هاور */
}

.video-avatar-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    border: 2px solid var(--bg-surface-hover);
    margin-right: -10px;
    z-index: 10;
}

.online-users-container .users-icon {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0 2px 0 5px;
}

#online-users-count {
    font-weight: bold;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
    margin-right: -5px;
}

#online-users-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #2ecc71; /* نقطه سبز آنلاین */
    border-radius: 50%;
    animation: pulse 2s infinite;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#online-users-count.disconnected::before {
    background-color: #e74c3c; /* نقطه قرمز آفلاین */
    animation: pulse-red 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
/* ======================================================= */
/* ============ END: پایان استایل‌های پلیر مدرن ============ */
/* ======================================================= */

/* ====== START: Player Overlay Auto-Hide Styles ====== */
#online-users-container {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#online-users-container.player-overlay-hidden {
    opacity: 0;
    pointer-events: none; /* So it can't be clicked when invisible */
}

/* --- کد کامل و نهایی دکمه لبه‌ای با انیمیشن با تاخیر --- */

/* 1. تعریف انیمیشن جدید با تاخیر داخلی */
@keyframes delayed-shimmer-animation {
    /* از 0% تا 50% انیمیشن، نور کاملا مخفی و بی‌حرکت است */
    0%, 50% {
        transform: translateX(-150%) skewX(-30deg);
        opacity: 0;
    }
    /* از 50% تا 100%، نور ظاهر شده، حرکت کرده و دوباره محو می‌شود */
    65% {
        opacity: 0.4; /* آرام ظاهر می‌شود */
    }
    85% {
        opacity: 0.4; /* شروع به محو شدن می‌کند */
    }
    100% {
        transform: translateX(150%) skewX(-30deg);
        opacity: 0;
    }
}

/* 2. استایل اصلی دکمه */
.edge-menu-button {
    position: fixed;
    top: 55%;
    left: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    border-radius: 0 15px 15px 0;
    border-left: none;
    background: rgba(30, 30, 30, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    overflow: hidden; 
}

/* 3. ایجاد نور متحرک و اعمال انیمیشن */
.edge-menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: delayed-shimmer-animation 5s infinite linear;
}

/* 4. استایل هاور (Hover) */
.edge-menu-button:hover {
    transform: translateY(-50%) translateX(5px);
}

/* 5. حالت محو شدن هنگام باز بودن منو */
.sidebar.open ~ .edge-menu-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-100%);
}

/* 6. استایل برای حالت روشن */
html[data-theme='light'] .edge-menu-button {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.1);
}

/* 7. کد برای نمایش دکمه فقط در اتاق ویدیو */
body:not(.room-view) .edge-menu-button {
    display: none;
}

/* ======================================================= */
/* ====== START: استایل سایه با حالت روز سفارشی (نسخه نهایی) ====== */
/* ======================================================= */

/* --- تنظیمات اصلی بخش چت --- */
.chat-section {
    position: relative; /* برای جای‌گیری سایه ضروری است */
}

/* --- استایل سایه مشکی پیش‌فرض (برای پوسته‌های تیره) --- */
.chat-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 10;
    pointer-events: none;
    
    /* گرادینت با رنگ مشکی پررنگ */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

/* --- (مهم) هماهنگ‌سازی با پوسته روشن --- */
/* در حالت روز، یک سایه خاکستری پررنگ‌تر نمایش داده می‌شود */
html[data-theme='light'] .chat-header-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
}

/* --- حذف فاصله اضافی تا پیام‌ها زیر سایه بروند --- */
#chat-messages {
    padding-top: 0;
}

@media (max-width: 899px) {
    #chat-messages {
        padding-top: 0;
    }
}
/* ======================================================= */
/* =========== END: پایان استایل سایه =========== */
/* ======================================================= */

/* --- رفع مشکل رنگ عنوان ویدیو در حالت روز --- */
html[data-theme='light'] .video-title-overlay {
    color: #ffffff;
}

/* =====================================================
   کد کامل و نهایی – قفل کردن کنترل‌های پلیر
   ===================================================== */

/* ۱) انیمیشن نرم برای تمام بخش‌های کنترل */
.player-container .player-controls,
.player-container .timeline-container,
.player-container .controls-left,
.player-container .controls-right > * {
    transition: opacity .3s ease, visibility .3s ease;
}

/* ۲) حالت قفل: کل نوار کنترل (به‌همراه کادر خاکستری) محو می‌شود */
.player-container.controls-locked .player-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
}

/* ۳) استثنا: فقط دکمهٔ قفل باید بماند */
.player-container.controls-locked .controls-right .lock-controls-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ۴) پنهان‌سازی سایر المان‌های روی پلیر */
.player-container.controls-locked #video-title-overlay,
.player-container.controls-locked #online-users-container {
    opacity: 0;
}

/* ======================================================= */
/* =========== START: استایل راهنمای منو (نسخه نهایی) ============ */
/* ======================================================= */

.menu-guide-overlay {
    position: fixed;
    top: 55%;
    left: 45px;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    direction: rtl;
}

.menu-guide-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
    animation: guide-intro-animation 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes guide-intro-animation {
    from { transform: translateY(-50%) scale(0.8); }
    to   { transform: translateY(-50%) scale(1); }
}

.menu-guide-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.guide-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* ------------------------------------------------------ */
/*        افکت نور نرمِ راست‌به‌چپ (شروع سریع)            */
/* ------------------------------------------------------ */
.guide-text::before {
    content: '';
    position: absolute;
    top: -10%;
    height: 120%;
    width: 160px;
    background: linear-gradient(
        to left,
        rgba(255, 235, 59, 0) 0%,
        rgba(255, 235, 59, 0.05) 40%,
        rgba(255, 235, 59, 0.25) 70%,
        var(--accent-yellow) 95%,
        rgba(255, 235, 59, 0) 100%
    );
    filter: blur(6px);
    opacity: 0;
    /* بلافاصله بعد از ظاهر شدنِ باکس، نور也开始 حرکت کند */
    animation: soft-sweep-rtl 10s infinite cubic-bezier(.37, 0, .63, 1);
    animation-delay: 0.6s;   /* ← همین یک خط مشکل را حل می‌کند */
}

@keyframes soft-sweep-rtl {
    0%  { right: -180px; opacity: 0; }
    5%  { opacity: 1; }
    35% { right: calc(100% + 20px); opacity: 1; }
    50% { opacity: 0; }
    100%{ right: calc(100% + 20px); opacity: 0; }
}

.guide-arrow {
    width: 30px;
    height: 30px;
    stroke: var(--accent-yellow);
    animation: point-left 1.5s ease-in-out infinite;
    transform: rotate(180deg);
}

@keyframes point-left {
    0%, 100% { transform: translateX(0) rotate(180deg); }
    50%      { transform: translateX(-8px) rotate(180deg); }
}

/* ======================================================= */
/* ============ END: پایان استایل راهنمای منو ============ */
/* ======================================================= */

/* =================================================================
// START: استایل مربوط به منوی بازشونده ایموجی (موقعیت جدید: داخل فرم چت)
// ================================================================= */

/* 1. استایل کلی (موقعیت دهی) */
/* از position:absolute به position:relative برای داخل فرم چت تغییر کرد */
#emoji-flyout-wrapper {
    position: relative; /* برای حفظ جریان flex در فرم چت */
    order: 2; /* قرارگیری بین input و send-btn در flex-box فرم چت */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -5px;
    z-index: 10; 
}

/* 2. استایل دکمه تاگل */
/* ابعاد کوچکتر و استایل ساده‌تر برای داخل فرم */
.emoji-reaction-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 50%;
    width: 30px; 
    height: 30px;
    min-width: 30px; /* جلوگیری از تغییر اندازه در flex */
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}

.emoji-reaction-toggle:hover {
    color: var(--primary-color); /* تغییر رنگ در هاور */
    transform: scale(1.05);
}

/* 3. استایل منوی بازشونده ایموجی (حالت پیش فرض: مخفی) */
#emoji-reactions-container {
    /* موقعیت منو را نسبت به فرم چت (والدش) تعیین می‌کند */
    position: absolute; 
    bottom: 40px; /* باز شدن منو به سمت بالا */
    right: 0; /* چسبیدن به لبه راست دکمه */
    
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface); /* رنگ پس‌زمینه جدید */
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    
    /* حالت مخفی اولیه (همان انیمیشن قبلی) */
    clip-path: circle(0% at 100% 50%); 
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    
    transition: 
        clip-path 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.2s ease,
        visibility 0s linear 0.3s;
    
    z-index: 11; /* بالاتر از همه عناصر داخل چت */
    box-shadow: var(--shadow);
}

/* 4. (مهم!) حالت باز شده */
#emoji-flyout-wrapper.open #emoji-reactions-container {
    clip-path: circle(150% at 100% 50%); 
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    
    transition: 
        clip-path 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.2s ease,
        visibility 0s linear;
}

/* 5. (جدید) مخفی کردن دکمه تاگل (لازم نیست در این حالت) */
#emoji-flyout-wrapper.open #emoji-toggle-button {
    /* در فرم چت نیازی به مخفی کردن دکمه نداریم، فقط استایل آن را عوض می‌کنیم */
    color: var(--primary-color);
}


/* 6. استایل خود ایموجی‌ها (بدون تغییر) */
.emoji-reaction {
    width: 30px; 
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px; 
    line-height: 1; 
    border-radius: 5px; 
    background-color: transparent;
    transition: background-color 0.2s, transform 0.2s;
}

.emoji-reaction:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
}

/* =================================================================
// END: استایل مربوط به منوی بازشونده ایموجی
// ================================================================= */

/* =====================
   Watchill Imports
   ===================== */

/* --- Welcome Modal Slider Styles (Revised for Modern Look) --- */
#welcome-modal-content {
    /* کاهش پدینگ بالا از 30px به 20px */
    padding: 20px 20px 85px 20px; 
    /* کاهش حداقل ارتفاع کلی مودال از 400px به 350px */
    min-height: 350px;
    overflow: hidden;
    /* این انیمیشن برای بسته شدن مودال است */
    transition: transform var(--transition-speed) var(--transition-curve), min-height 0.3s ease;
}

.welcome-slider-container {
    position: relative;
    width: 100%;
    /* کاهش ارتفاع اصلی کانتینر اسلاید از 250px به 200px */
    height: 200px; 
    margin-bottom: 25px; /* کمی فضای بیشتر بالای دات‌ها */
}

.welcome-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    /* 🌟 انیمیشن نرم‌تر و زیباتر با منحنی ease-in-out قوی‌تر و مدت زمان کمی بیشتر */
    transform: translateX(100%); 
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), /* منحنی استاندارد و نرم */
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.6s;
}

.welcome-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.welcome-slide.prev {
    /* اسلاید به بیرون چپ منتقل شود */
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

.welcome-slide i {
    /* **تغییر: کاهش اندازه آیکون از 4rem به 2.5rem** */
    font-size: 2.5rem; 
    color: var(--primary-color);
    /* **تغییر: کاهش فاصله پایین آیکون از 20px به 15px** */
    margin-bottom: 15px; 
    opacity: 0.85; 
}

.welcome-slide h3 {
    margin-top: 0;
    /* **تغییر: کاهش اندازه تیتر از 1.5rem به 1.25rem** */
    margin-bottom: 8px; /* کمی کمتر */
    font-size: 1.25rem; 
    font-weight: 700;
}

.welcome-slide p {
    /* **تغییر: کاهش اندازه متن پاراگراف از 1.05rem به 0.95rem** */
    font-size: 0.95rem; 
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 10px;
    margin: 0;
    max-width: 350px;
}

/* --- Navigation Dots (Pill-shaped Modern Look) --- */
.welcome-slider-dots {
    position: absolute;
    bottom: 65px; /* 🌟 تغییر: کمی بالاتر بردن دات‌ها برای ایجاد فضای بیشتر بالای دکمه */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.welcome-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--bg-surface-hover);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.welcome-dot.active {
    width: 25px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--primary-color);
}

/* --- Navigation Buttons (Smaller and Lower) --- */
.welcome-slider-nav {
    position: absolute;
    bottom: 10px; /* 🌟 تغییر: پایین آوردن دکمه‌ها تا جای ممکن */
    left: 20px;
    right: 20px;
    display: block;
}

.welcome-nav-btn {
    width: 100%;
    /* 🌟 تغییر: کوچک‌تر شدن ارتفاع دکمه */
    padding: 8px 20px; 
    font-size: 0.9rem; /* فونت کوچک‌تر */
    
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.welcome-nav-btn.primary {
    background-color: var(--primary-color);
    color: #fff;
}

.welcome-nav-btn:hover {
    opacity: 0.9;
}

/* === Watchill placeholder (only when no video selected) === */
.player-container{ position: relative; }

/* Base (dark-ish) styles use theme vars and stay readable in every theme */
.watchill-video-placeholder{
    position:absolute;
    inset: 0;
    display:none; /* toggled by JS */
    align-items:center;
    justify-content:center;
    padding: 18px;
    z-index: 6; /* above video, below menus if any */
    pointer-events:none;

    /* Keep the text readable regardless of theme */
    color: #fff;

    /* A subtle glass overlay that works on video frames */
    background:
      radial-gradient(1200px 520px at 50% 100%, rgba(0,191,255,.14), transparent 55%),
      radial-gradient(900px 420px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
      rgba(0,0,0,.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.watchill-video-placeholder.show{ display:flex; }

.wvp-card{
    width: min(520px, 92%);
    border-radius: 26px;
    padding: 22px 18px;
    text-align:center;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(10,10,10,.22);
    box-shadow: 0 24px 90px rgba(0,0,0,.55);
}
.wvp-icon{
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 30px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 24px rgba(0,191,255,.18);
}
.wvp-title{
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
    color: inherit;
}
.wvp-sub{
    font-size: 13px;
    opacity: .88;
    line-height: 1.9;
    color: rgba(255,255,255,.86);
}
.wvp-sub b{ color: #fff; }

/* Light theme: invert the card/overlay so the text never “disappears” */
html[data-theme='light'] .watchill-video-placeholder{
    color: var(--text-primary);
    background:
      radial-gradient(1200px 520px at 50% 100%, rgba(24,119,242,.10), transparent 55%),
      radial-gradient(900px 420px at 20% 0%, rgba(0,0,0,.06), transparent 60%),
      rgba(255,255,255,.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
html[data-theme='light'] .wvp-card{
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
html[data-theme='light'] .wvp-icon{
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.03);
    box-shadow: 0 0 22px rgba(24,119,242,.18);
    color: var(--primary-color);
}
html[data-theme='light'] .wvp-sub{
    color: var(--text-secondary);
    opacity: 1;
}
html[data-theme='light'] .wvp-sub b{
    color: var(--text-primary);
}

@media (max-width: 520px){
    .wvp-card{ border-radius: 22px; padding: 18px 14px; }
    .wvp-icon{ width: 62px; height: 62px; border-radius: 20px; font-size: 26px; }
    .wvp-title{ font-size: 16px; }
    .wvp-sub{ font-size: 12px; }
}


    50% {
        background-position: 65% 85%, 10% 15%, center;
    }
    100% {
        background-position: 50% 100%, 20% 0%, center;
    }
}


/* === Animated placeholder background (faster & alive) === */
.watchill-video-placeholder{
    background-size: 140% 140%, 120% 120%, cover;
    animation: placeholderGlow 14s ease-in-out infinite;
}

html[data-theme='light'] .watchill-video-placeholder{
    background-size: 140% 140%, 120% 120%, cover;
    animation: placeholderGlow 18s ease-in-out infinite;
}


/* === Super-minimal placeholder: dark base + soft moving light blobs (works in ALL themes) === */
.watchill-video-placeholder{
    /* keep existing positioning/display rules earlier in the file */
    background: radial-gradient(1200px 520px at 50% 100%, rgba(255,255,255,.06), transparent 60%),
                rgba(0,0,0,.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden; /* contain blobs */
    isolation: isolate; /* keep blend modes inside */
}

/* Two blurred "blob" layers: brighter colors, dark base */
.watchill-video-placeholder::before,
.watchill-video-placeholder::after{
    content:"";
    position:absolute;
    inset:-35%;
    pointer-events:none;
    z-index: 0;
    filter: blur(44px);
    opacity: .72;
    mix-blend-mode: screen;
    transform: translate3d(0,0,0);
    will-change: transform, opacity;
}

/* Blob set A (blue/cyan dominant with a hint of violet) */
.watchill-video-placeholder::before{
    background:
        radial-gradient(38% 32% at 22% 28%, rgba(110,205,255,.28), transparent 62%),
        radial-gradient(34% 30% at 70% 30%, rgba(130,140,255,.22), transparent 64%),
        radial-gradient(40% 34% at 55% 78%, rgba(120,255,230,.26), transparent 66%);
    animation: wvpBlobA 5.5s ease-in-out infinite;
}

/* Blob set B (cyan/turquoise dominant, slightly different path) */
.watchill-video-placeholder::after{
    background:
        radial-gradient(36% 30% at 72% 70%, rgba(120,255,235,.26), transparent 64%),
        radial-gradient(34% 28% at 30% 75%, rgba(95,185,255,.24), transparent 66%),
        radial-gradient(30% 26% at 50% 35%, rgba(170,190,255,.18), transparent 68%);
    animation: wvpBlobB 5.5s ease-in-out infinite;
}

@keyframes wvpBlobA{
    0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); opacity: .42; }
    40%  { transform: translate3d( 2%,  1%, 0) scale(1.06); opacity: .78; }
    70%  { transform: translate3d( 1%, -2%, 0) scale(1.04); opacity: .70; }
    100% { transform: translate3d(-2%, -1%, 0) scale(1.02); opacity: .42; }
}
@keyframes wvpBlobB{
    0%   { transform: translate3d( 2%,  1%, 0) scale(1.04); opacity: .38; }
    35%  { transform: translate3d(-1%,  2%, 0) scale(1.07); opacity: .74; }
    75%  { transform: translate3d(-2%, -1%, 0) scale(1.03); opacity: .66; }
    100% { transform: translate3d( 2%,  1%, 0) scale(1.04); opacity: .38; }
}

/* Keranchi hot-slide override (keep first slide style) */
.welcome-slide.hot-slide i{font-size:3rem;margin-bottom:15px;opacity:1;}
.welcome-slide.hot-slide p{font-size:1rem;line-height:1.7;color:var(--text-secondary);padding:0 10px;max-width:420px;}
.welcome-slide.hot-slide h3{font-size:1.4rem;font-weight:800;}
