/* ============================================================
   میت‌خن | طراحی فوق‌خفن با تم نئونی و افکت‌های ۳D
   ============================================================ */

/* ===== ۱. متغیرها و ریشه ===== */
:root {
    --primary: #f5576c;
    --primary-dark: #d13a50;
    --secondary: #f093fb;
    --accent: #4ecdc4;
    --accent-2: #ffe66d;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    --radius: 24px;
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
    --bg-dark: #f0f0f8;
    --bg-card: rgba(0, 0, 0, 0.03);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
}

/* ===== ۲. ریست و پایه ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
    transition: background 0.5s ease;
}

/* ===== ۳. موس عادی (رفع مشکل گم شدن موس) ===== */
a, button, input, select, textarea, 
.btn-submit, .btn-primary-hero, .btn-secondary-hero, 
.nav-link, .theme-toggle, .ctrl-btn-ultra, .hamburger,
.ctrl-btn, .btn-neon, .btn-block, .feature-chip {
    cursor: pointer !important;
}

/* ===== ۴. پس‌زمینه‌ی پویا ===== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f5576c, transparent);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #f093fb, transparent);
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4ecdc4, transparent);
    top: 40%;
    left: 40%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(80px, -60px) scale(1.1) rotate(10deg); }
    66% { transform: translate(-60px, 80px) scale(0.9) rotate(-10deg); }
    100% { transform: translate(40px, -40px) scale(1.05) rotate(5deg); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== ۵. حذف cursor سفارشی (برای جلوگیری از گم شدن موس) ===== */
.cursor-dot, .cursor-ring, .cursor-trail {
    display: none !important;
}

/* ===== ۶. نوار ناوبری ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

[data-theme="light"] .header {
    background: rgba(240, 240, 248, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.3);
}

/* حذف pulse-ring برای رفع دایره نا معلوم */
/* .pulse-ring حذف شد */

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-badge {
    font-size: 0.6rem;
    background: var(--primary);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.btn-neon {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.3);
}

.btn-neon:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 0 50px rgba(245, 87, 108, 0.5) !important;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
    border-color: var(--primary);
}

/* همبرگری */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== ۷. صفحه اصلی - هیرو ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.badge-glow {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(245, 87, 108, 0.15);
    border: 1px solid rgba(245, 87, 108, 0.3);
    color: var(--primary);
    animation: badgeGlow 2s infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 87, 108, 0.1); }
    50% { box-shadow: 0 0 40px rgba(245, 87, 108, 0.3); }
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.typewriter {
    color: var(--text-primary);
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    top: 0;
    color: var(--primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-subtitle i {
    color: var(--accent);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-hero, .btn-secondary-hero {
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 40px rgba(245, 87, 108, 0.3);
}

.btn-primary-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(245, 87, 108, 0.5);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
    animation: btnGlow 3s infinite;
    pointer-events: none;
}

@keyframes btnGlow {
    0% { transform: rotate(0deg) scale(1); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.2; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.5; }
}

.btn-secondary-hero {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary-hero:hover {
    background: var(--glass-border);
    transform: translateY(-3px);
}

/* ===== ۸. بخش بصری - کارت‌های شناور ===== */
.hero-visual {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.float-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--glass-shadow);
    animation: floatCard 6s infinite alternate ease-in-out;
    white-space: nowrap;
}

.float-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-1 { top: 10%; left: 0%; animation-delay: 0s; }
.card-2 { top: 50%; right: 0%; animation-delay: 1.5s; }
.card-3 { bottom: 10%; left: 20%; animation-delay: 3s; }
.card-4 { top: 20%; right: 20%; animation-delay: 4.5s; }

@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(3deg); }
}

/* ===== ۹. بخش اتاق ===== */
.room-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header h2 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.glass-morphism {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-morphism:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 87, 108, 0.2);
}

.room-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group-ultra {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border-radius: 60px;
    border: 1px solid var(--glass-border);
    padding: 0.3rem;
    transition: var(--transition);
}

.input-group-ultra:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(245, 87, 108, 0.15);
}

.input-icon {
    padding: 0 1rem;
    color: var(--text-secondary);
}

.input-group-ultra input {
    flex: 1;
    padding: 1rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.input-group-ultra input::placeholder {
    color: var(--text-secondary);
}

.btn-submit {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(245, 87, 108, 0.4);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-hint i {
    color: var(--accent);
}

.room-features {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.feature-chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.feature-chip i {
    color: var(--primary);
}

/* ===== ۱۰. بخش ویژگی‌ها ===== */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: featureReveal 0.8s forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes featureReveal {
    to { opacity: 1; transform: translateY(0); }
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 40px rgba(245, 87, 108, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245,87,108,0.05), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

/* ===== ۱۱. فوتر ===== */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.footer-divider {
    color: var(--glass-border);
}

/* ===== ۱۲. پیام‌های toast ===== */
.messages-container {
    position: fixed;
    top: 90px;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message-toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.5s ease;
    min-width: 280px;
}

.message-toast.success {
    border-left: 4px solid #4ecdc4;
}
.message-toast.success i {
    color: #4ecdc4;
}

.message-toast.error {
    border-left: 4px solid #f5576c;
}
.message-toast.error i {
    color: #f5576c;
}

.message-toast .toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    transition: var(--transition);
}

.message-toast .toast-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== ۱۳. صفحه اتاق (بخش داخلی) ===== */
.room-container-ultra {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    padding: 100px 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
}

.video-grid-ultra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.video-card-ultra {
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.video-card-ultra:hover {
    transform: scale(1.01);
    border-color: var(--primary);
}

.video-card-ultra video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-label-ultra {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.controls-ultra {
    grid-column: 1 / 2;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.ctrl-btn-ultra {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn-ultra:hover {
    background: var(--bg-card);
    transform: scale(1.1);
}

.ctrl-btn-ultra.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.4);
}

.ctrl-btn-ultra.end-call {
    background: #e74c3c;
    color: #fff;
}
.ctrl-btn-ultra.end-call:hover {
    background: #c0392b;
}

/* چت پنل */
.chat-panel-ultra {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
}

.chat-header-ultra {
    font-weight: 600;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages-ultra {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-ultra {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}

.message-ultra.own {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.message-ultra strong {
    font-size: 0.8rem;
    color: var(--secondary);
    display: block;
}

.message-ultra.own strong {
    color: #fff;
}

.message-ultra .time {
    font-size: 0.6rem;
    opacity: 0.6;
    margin-left: 0.5rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input-ultra {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

.chat-input-ultra input {
    flex: 1;
    padding: 0.7rem 1.2rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.chat-input-ultra input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.1);
}

.chat-input-ultra button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input-ultra button:hover {
    transform: scale(1.1);
}

/* ===== ۱۴. استایل فرم‌ها (برای ورود و ثبت‌نام) ===== */
form p {
    margin-bottom: 0.8rem;
}

form p label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

form p input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

form p input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.1);
}

form .helptext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.2rem;
}

form ul {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

form ul li {
    margin-bottom: 0.2rem;
}

/* ===== ۱۵. ریسپانسیو ===== */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        padding: 100px 2rem 2rem;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        min-height: 200px;
        width: 100%;
    }
    .floating-cards {
        min-height: 200px;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 0.3rem;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    .room-container-ultra {
        grid-template-columns: 1fr;
        padding: 80px 1rem 1rem;
    }
    .video-grid-ultra {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .video-grid-ultra {
        grid-template-columns: 1fr;
    }
    .chat-panel-ultra {
        height: 300px;
    }
    .input-group-ultra {
        flex-wrap: wrap;
        border-radius: 30px;
        padding: 0.5rem;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ۱۶. اسکرول بار ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ===== ۱۷. انتخاب متن ===== */
::selection {
    background: var(--primary);
    color: #fff;
}