@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #ffd000;
    --primary-glow: rgba(255, 255, 255, 0.6);
    --bg-dark: #000000;
    --bg-glass: rgba(15, 15, 20, 0.7);
    --border-glass: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #ffd000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

/* تصميم الجوال — أقل من 600px */
@media (max-width: 600px) {

    /* تصغير الصورة الكبيرة وتوسيطها */
    .logo-Dragon {
        position: relative;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 140px;
    }

    /* تصغير الهيدر */
    header {
        padding: 10px 0;
    }

    /* تصغير لوقو النافبار */
    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-container span {
        font-size: 1.3rem;
    }

    /* تصغير صندوق الوصف */
    .description-box {
        width: 90%;
        padding: 20px;
        font-size: 1rem;
        line-height: 1.6;
    }

    /* ترتيب الأزرار تحت بعض */
    .btn-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn {
        width: 90%;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* تصغير الفوتر */
    footer {
        padding: 25px;
    }

    .footer-icons a {
        font-size: 1.3rem;
    }
}


/* Fluid scaling for all devices (Mobile, iPad, PC, PlayStation) */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (max-width: 1400px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
}

/* iPad / Laptops */
@media (max-width: 768px) {
    html {
        font-size: 13.5px;
    }
}

/* Tablets */
@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

/* Phones */

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Ambient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 30, 30, 0.08) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

.bg-pattern {
    position: fixed;
    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;
    z-index: -3;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير بسيط على الروابط والأيقونات */
a, .footer-icons a i {
    transition: 0.25s ease;
}

/* عند تمرير الماوس */
a:hover, .footer-icons a:hover i {
    transform: scale(1.12);
    opacity: 0.85;
    color: #ffffff; /* ← اللون الأبيض */
}

body {
    background-image: url("a9533cf03f4a7c2d0f3803602291adca~tplv-tiktokx-cropcenter_1080_1080.jpg"); /* ضع اسم الصورة هنا */
    background-size: cover;      /* يخلي الصورة تغطي الشاشة كاملة */
    background-position: center; /* يخلي أهم جزء من الصورة بالنص */
    background-repeat: no-repeat;/* يمنع تكرار الصورة */
    background-attachment: fixed;/* يخلي الخلفية ثابتة وما تتحرك */
}

header.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--primary-glow);
    font-weight: 900;
    transform: rotate(-10deg);
    transition: transform 0.3s;
}

.logo-icon {
    transform: rotate(-10deg);
    transition: transform 0.3s;
}

.logo-Dragon {
    position: fixed;
    top: 170px;
    left: 570px;

    width: 200px;
    height: 200px;
    border-radius: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: rotate(0deg);
    transition: 0.3s ease;

    z-index: 9999; /* يخلي الصورة فوق كل شي */
}

/* الإضافة اللي طلبتها بدون تغيير أي شيء */
header {
    position: relative; /* يخلي الصورة تتبع الهيدر */
}

.logo-Dragon {
    position: absolute; /* يخلي الصورة ثابتة داخل الصفحة */
}



.logo-container:hover .logo-icon {
    transform: rotate(0deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links li {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links li:hover {
    color: var(--text-main);
}

.nav-links li.active {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Page Container & Tab Router */
.page-view {
    display: none;
    min-height: 100vh;
    padding: 120px 20px 60px;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dragon-list {
    width: 350px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    color: white;
    font-family: "Tajawal", sans-serif;
}

.dragon-list h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--primary);
    text-align: center;
}

.dragon-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    display: flex;
    flex-wrap: wrap; /* يخلي العناصر تنزل تحت إذا ما فيه مساحة */
    gap: 15px;       /* مسافة بين العناصر */
    justify-content: center; /* ترتيب أفقي */
    align-items: center;     /* ترتيب عمودي */
}


.dragon-list ul li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}


.page-view.active-view {
    display: flex;
}

@keyframes fadeScale {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Typography & Titles */
.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(to right, #fff, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Section Backgrounds */
#home {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.1) 0%, rgba(5, 5, 7, 0.9) 80%, var(--bg-dark) 100%), url('banner.png') center/cover fixed;
    justify-content: end;
    padding-bottom: 100px;
}

/* Ultra Premium Specific Section Backgrounds */
#rules {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(150, 20, 20, 0.2) 50%, var(--bg-dark) 100%), url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

#jobs {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(20, 50, 150, 0.2) 50%, var(--bg-dark) 100%), url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

#servers {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(200, 30, 30, 0.2) 50%, var(--bg-dark) 100%), url('servers_bg.png') center/cover fixed;
}

#store {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(200, 50, 20, 0.3) 50%, var(--bg-dark) 100%), url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=2000&q=80') center/cover fixed;
}

#founders {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.95) 0%, rgba(100, 10, 10, 0.2) 50%, var(--bg-dark) 100%), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

#activation {
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(10, 100, 50, 0.1) 50%, var(--bg-dark) 100%), url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

.description-box {
    max-width: 800px;
    background: rgba(10, 10, 14, 0.65);
    padding: 30px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e4e4e7;
    position: relative;
    overflow: hidden;
}

.description-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    background: #867d10;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

/* Cards */
.card-premium {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 50%;
}

.card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 30, 30, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 30, 30, 0.1);
}

.card-premium:hover::before {
    opacity: 0.3;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.card-premium h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.card-premium p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* List rules */
.rules-list {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-right: 4px solid var(--primary);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.3s, background 0.3s;
}

.rule-box:hover {
    transform: translateX(-10px);
    background: rgba(255, 30, 30, 0.05);
}

.rule-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 30, 30, 0.2);
    min-width: 60px;
}

/* Forms */
.form-glass {
    width: 100%;
    max-width: 700px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 50px;
    border-radius: 24px;
    backdrop-filter: blur(16px);
}

.input-grp {
    margin-bottom: 25px;
    text-align: right;
}

.input-grp label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #d4d4d8;
}

.input-grp input,
.input-grp textarea,
.input-grp select {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-grp input:focus,
.input-grp textarea:focus,
.input-grp select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 30, 30, 0.15);
}

.input-grp select option {
    color: black;
}

/* Status dots */
.status-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-online {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
    animation: pulse-green 2s infinite;
}

.status-offline {
    background: #f59e0b;
    box-shadow: 0 0 15px #f59e0b;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Footer */
footer {
    display: none;
}

.footer-active {
    display: block;
    text-align: center;
    padding: 40px;
    background: #050507;
    border-top: 1px solid var(--border-glass);
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-icons a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: var(--primary);
}

/* Responsive Mobile */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease;
    }

    .nav-links.show {
        left: 0;
    }

    .nav-links li {
        font-size: 1.5rem;
    }

    .page-view {
        padding-top: 100px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .form-glass {
        padding: 30px 20px;
    }

    .chat-box {
        width: 90%;
        right: 5%;
        bottom: 100px;
        height: 75vh;
    }
}

@media (max-width: 600px) {
    .chat-box {
        width: 96%;
        right: 2%;
        bottom: 90px;
        height: 80vh;
        max-height: 550px;
    }

    .chat-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* Floating Chat */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chat-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: transform 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chat-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-box {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 400px;
    height: 550px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.chat-box.open {
    transform: scale(1);
}

.chat-header {
    padding: 20px;
    background: rgba(255, 30, 30, 0.15);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ultimate Professional Additions: Scrollbar, Selection, Glitch */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #988a0b;
}

::selection {
    background: var(--primary);
    color: white;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #050507;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loader-logo {
    font-size: 6rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    text-shadow: 0 0 50px var(--primary-glow);
    animation: loaderPulse 1.2s infinite alternate;
    letter-spacing: 12px;
    font-family: 'Courier New', Courier, monospace;
}

.loader-text {
    color: var(--text-muted);
    margin-top: 25px;
    font-size: 1.2rem;
    letter-spacing: 5px;
    animation: pulse 2s infinite alternate;
    text-transform: uppercase;
}

@keyframes loaderPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(0);
    }
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 30, 30, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    mix-blend-mode: screen;
    filter: blur(20px);
}

.logo {
    position: relative;
    transition: 0.2s;
}

.logo:hover {
    color: white;
    animation: glitch 0.3s infinite;
    text-shadow: 3px 0 0 #ff0000, -3px 0 0 #00ffff;
}

@keyframes glitch {
    0% {
        transform: translate(0)
    }

    25% {
        transform: translate(-2px, 2px)
    }

    50% {
        transform: translate(-2px, -2px)
    }

    75% {
        transform: translate(2px, 2px)
    }

    100% {
        transform: translate(0)
    }
}

.card-premium {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease-out;
    transform-style: preserve-3d;
}

.card-premium:hover {
    border-color: rgba(255, 30, 30, 0.6);
    box-shadow: 0 20px 50px rgba(255, 30, 30, 0.25);
}

/* Voice & Chat Tabs Ultra UI */
.chat-tab {
    flex: 1;
    text-align: center;
    padding: 18px 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 800;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    background: rgba(5, 5, 7, 0.9);
    font-size: 1.1rem;
}

.chat-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.chat-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 30, 30, 0.05);
}

/* Voice UI specific */
.voice-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: bold;
}

.voice-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    border: 3px solid #333;
    position: relative;
    transition: 0.3s;
    color: var(--text-muted);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.voice-avatar.speaking {
    border-color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.voice-call-btn {
    background: #10b981;
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.voice-call-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.6);
}

.voice-call-btn.connected {
    background: #ef4444;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.voice-call-btn.connected:hover {
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.6);
}

/* Audio Visualizer effect */
.visualizer .bar {
    width: 8px;
    background: #10b981;
    border-radius: 5px;
    height: 10px;
    transition: height 0.1s;
    box-shadow: 0 0 10px #10b981;
}

.visualizer.active .bar {
    animation: soundBar 0.6s ease-in-out infinite alternate;
}

.visualizer.active .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.visualizer.active .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.visualizer.active .bar:nth-child(4) {
    animation-delay: 0.4s;
}

.visualizer.active .bar:nth-child(5) {
    animation-delay: 0.15s;
}

.visualizer.active .bar:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes soundBar {
    0% {
        height: 10px;
    }

    100% {
        height: 45px;
        background: var(--primary);
        box-shadow: 0 0 20px var(--primary-glow);
    }
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.6;
}

.msg-bot {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-right-radius: 0;
    border: 1px solid var(--border-glass);
}

.msg-user {
    background: var(--primary);
    align-self: flex-end;
    border-bottom-left-radius: 0;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
}

.chat-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 1.1rem;
    padding-right: 15px;
}

.chat-input input::placeholder {
    color: #888;
}

.chat-input button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.3s;
}

.chat-input button:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-glow);
    color: white;
}

/* --- Ultimate Chat & Voice Animations --- */
.msg {
    animation: slideUpMsg 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpMsg {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.typing-dots {
    padding: 10px 15px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite forwards;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

.voice-avatar.speaking {
    animation: speakingPulse 1.5s infinite;
}

@keyframes speakingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.visualizer.active .bar {
    /* Transitions replaced by JS dynamic randomization for realistic effect */
    transition: height 0.15s ease-out;
}

/* Scroll Reveal Dynamic Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Context Menu */
.context-menu {
    position: fixed;
    display: none;
    width: 260px;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.2);
    z-index: 10000;
    overflow: hidden;
    animation: menuPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: rtl;
}

@keyframes menuPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.menu-title {
    padding: 15px;
    background: rgba(255, 30, 30, 0.15);
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 30, 30, 0.3);
    text-shadow: 0 0 10px rgba(255, 30, 30, 0.8);
}

.menu-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.menu-options {
    list-style: none;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.menu-options li {
    padding: 14px 20px;
    cursor: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="3" fill="%23fff"/><circle cx="12" cy="12" r="8" stroke="%23fff" stroke-width="2"/></svg>') 12 12, auto !important;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    font-weight: bold;
}

.menu-options li:hover {
    background: rgba(255, 30, 30, 0.15);
    color: white;
    padding-right: 25px;
}

.menu-options li i {
    width: 25px;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.menu-footer {
    padding: 10px;
    font-size: 0.8rem;
    text-align: center;
    color: #666;
    background: #050507;
    letter-spacing: 2px;
}
