:root {
    --bg-main: #0a0510;
    --bg-gradient: radial-gradient(circle at top, #1a0b2e 0%, #050608 100%);
    --neon-cyan: #00f3ff;
    --neon-orange: #ff5e00;
    
    --chat-bg: #515b76;
    --bubble-partner: #7accd5;
    --bubble-me: #86d68a;
    --text-dark: #111;
    --time-color: #c0c5d1;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: var(--bg-gradient); color: #fff; overflow-x: hidden; min-height: 100vh; }

/* ================== HEADER SEO ================== */
.main-header { width: 100%; padding: 20px; background: rgba(10, 5, 16, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 243, 255, 0.15); position: absolute; top: 0; left: 0; z-index: 100; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.header-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 15px; }
.logo-link { text-decoration: none; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.nav-links li a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.3s all; text-transform: uppercase; letter-spacing: 1px; }
.nav-links li a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 243, 255, 0.6); }

/* ================== LANDING PAGE ================== */
.landing-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 100vh; padding: 120px 20px 0 20px; } /* تم زيادة الـ padding-top لترك مساحة للهيدر */
.hero-section { text-align: center; margin-bottom: 50px; margin-top: 20px; }
.hero-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap; }
.t-cyan { color: var(--neon-cyan); text-shadow: 0 0 15px rgba(0, 243, 255, 0.4); }
.t-orange { color: var(--neon-orange); text-shadow: 0 0 15px rgba(255, 94, 0, 0.4); }
.hero-subtitle { font-size: 1.1rem; color: var(--neon-cyan); margin-bottom: 30px; letter-spacing: 2px; text-transform: uppercase; }

.neon-btn { display: inline-block; background: transparent; color: var(--neon-cyan); padding: 15px 40px; border: 2px solid var(--neon-cyan); border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s all; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1); cursor: pointer; }
.neon-btn:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 25px rgba(0, 243, 255, 0.6), inset 0 0 15px rgba(0, 243, 255, 0.8); }

.seo-content { width: 100%; max-width: 800px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); padding: 40px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05); }
.seo-content h1 { font-size: 1.8rem; margin-bottom: 20px; text-align: center; }
.seo-content h2 { font-size: 1.4rem; margin-top: 30px; margin-bottom: 15px; color: var(--neon-cyan); border-bottom: 1px solid rgba(0, 243, 255, 0.2); padding-bottom: 10px; }
.seo-content p, .seo-content ul { color: #ccc; margin-bottom: 15px; line-height: 1.7; }
.seo-content li { margin-bottom: 10px; margin-left: 20px; }
.internal-links { text-align: center; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; line-height: 2; }
.internal-links a { color: var(--neon-orange); text-decoration: none; margin: 0 10px; font-weight: bold; display: inline-block; }
.internal-links a:hover { text-shadow: 0 0 10px rgba(255, 94, 0, 0.5); }
.hidden { display: none !important; }

/* ================== FOOTER SEO ================== */
.main-footer { width: 100%; background: rgba(5, 2, 10, 0.9); border-top: 2px solid rgba(255, 94, 0, 0.2); margin-top: 60px; padding: 50px 20px 20px 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); }
.footer-content { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-column h3 { color: var(--neon-orange); margin-bottom: 20px; font-size: 1.3rem; letter-spacing: 1px; }
.footer-column p { color: #999; font-size: 0.95rem; line-height: 1.6; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #bbb; text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.footer-column ul li a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 243, 255, 0.4); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; margin-top: 40px; font-size: 0.85rem; color: #666; }

/* ================== CHAT APP ================== */
.app-wrapper { width: 100%; height: 100dvh; display: flex; justify-content: center; align-items: center; }
.chat-container { width: 100%; max-width: 900px; height: 100%; display: flex; flex-direction: column; background-color: var(--bg-main); background: var(--bg-gradient); box-shadow: 0 0 40px rgba(0,0,0,0.8); position: relative; }

.chat-header { display: flex; justify-content: center; align-items: center; padding: 15px; background: transparent; }
.logo-small { font-size: 1.5rem; font-weight: 800; }

.video-container { position: relative; width: 100%; height: 35vh; background: #000; display: flex; justify-content: center; align-items: center; overflow: hidden; border-bottom: 2px solid rgba(255, 255, 255, 0.05); }
#remote-video { width: 100%; height: 100%; object-fit: cover; }
#local-video { position: absolute; bottom: 20px; right: 20px; width: 100px; height: 130px; object-fit: cover; border: 3px solid var(--neon-orange); border-radius: 12px; transform: scaleX(-1); box-shadow: 0 0 20px rgba(255, 94, 0, 0.5); z-index: 10; }

.big-next-wrapper { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 20; }
.btn-nachster { background: rgba(10, 5, 16, 0.8); border: 2px solid var(--neon-orange); color: var(--neon-orange); width: 75px; height: 75px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(255, 94, 0, 0.5); outline: none; backdrop-filter: blur(5px); }
.btn-nachster span { font-size: 0.65rem; font-weight: bold; letter-spacing: 1px; margin-top: 2px; text-transform: uppercase; }
.btn-nachster:hover { background: var(--neon-orange); color: #fff; box-shadow: 0 0 25px rgba(255, 94, 0, 0.8); transform: scale(1.05); }

.waiting-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 5; }
.waiting-text { color: var(--neon-cyan); font-size: 1.2rem; letter-spacing: 3px; text-transform: uppercase; animation: pulse 1.5s infinite; text-shadow: 0 0 15px rgba(0, 243, 255, 0.6); }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

.chat-box { flex: 1; overflow-y: auto; padding: 30px 20px 20px 20px; display: flex; flex-direction: column; gap: 15px; background-color: var(--chat-bg); }
.chat-box::-webkit-scrollbar { width: 6px; }
.chat-box::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.3); border-radius: 3px; }

.message-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; animation: slideUp 0.3s ease; }
.message-row.my-row { flex-direction: row-reverse; }

.avatar-img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); object-fit: cover; flex-shrink: 0; background: #fff; }

.msg-content { display: flex; flex-direction: column; max-width: 75%; }
.message-row.partner-row .msg-content { align-items: flex-start; }
.message-row.my-row .msg-content { align-items: flex-end; }

.bubble { padding: 12px 20px; border-radius: 25px; font-size: 1rem; line-height: 1.4; color: var(--text-dark); word-wrap: break-word; font-weight: 500; }
.partner-bubble { background-color: var(--bubble-partner); border-top-left-radius: 5px; }
.my-bubble { background-color: var(--bubble-me); border-top-right-radius: 5px; }

.time { font-size: 0.7rem; color: var(--time-color); margin-top: 5px; padding: 0 5px; }
.sys-msg { align-self: center; background: rgba(0,0,0,0.2); padding: 5px 15px; border-radius: 12px; font-size: 0.8rem; color: #fff; margin: 10px 0; }

.chat-action-box { display: flex; justify-content: center; margin: 20px 0; width: 100%; animation: slideUp 0.3s ease; }
.in-chat-next-btn { background: rgba(255, 94, 0, 0.1); border: 2px solid var(--neon-orange); color: var(--neon-orange); padding: 12px 25px; border-radius: 30px; font-weight: bold; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 0 10px rgba(255, 94, 0, 0.2); outline: none; }
.in-chat-next-btn:hover { background: var(--neon-orange); color: #fff; box-shadow: 0 0 20px rgba(255, 94, 0, 0.6); }

.input-area { display: flex; align-items: center; padding: 20px; background: transparent; gap: 10px; flex-shrink: 0; border-top: 1px solid rgba(255,255,255,0.05); }
.cam-action-btn { background: transparent; border: 2px solid var(--neon-orange); border-radius: 30px; color: var(--neon-orange); padding: 10px 15px; display: flex; align-items: center; gap: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 0 10px rgba(255, 94, 0, 0.2); }
.cam-action-btn:hover, .cam-action-btn.cam-active { background: var(--neon-orange); color: #fff; box-shadow: 0 0 15px rgba(255, 94, 0, 0.5); }
.cam-action-btn svg { fill: currentColor; }

#inp { flex: 1; background: transparent; border: 2px solid var(--neon-cyan); border-radius: 30px; padding: 12px 20px; color: #fff; font-size: 1rem; outline: none; transition: 0.3s; box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1), 0 0 10px rgba(0, 243, 255, 0.1); }
#inp:focus { box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.4); }
#inp::placeholder { color: #888; }

.send-btn { background: transparent; border: none; color: var(--neon-cyan); font-weight: bold; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 5px; opacity: 0.5; transition: 0.3s; text-transform: uppercase; }
.send-btn:not(:disabled) { opacity: 1; }
.send-btn:not(:disabled):hover { text-shadow: 0 0 10px rgba(0, 243, 255, 0.8); transform: translateX(3px); }
.send-btn svg { fill: var(--neon-cyan); filter: drop-shadow(0 0 5px rgba(0,243,255,0.5)); }

@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .nav-links { padding-top: 10px; }
}