* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-gold: #98742e;
    --dark-burgundy: #3a0404;
    --light-bg: #f9f6f0;
    --white: #ffffff;
    --text-color: #333333;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-burgundy);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.2s ease;
}

.loader-content {
    text-align: center;
}

.pulse-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.loader-content h2 {
    color: var(--primary-gold);
    font-family: 'Amiri', serif;
    font-size: 2rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(58, 4, 4, 0.95);
    border-bottom: 3px solid var(--primary-gold);
    padding: 10px 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo-area { display: flex; align-items: center; }
.main-logo { height: 50px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-gold); }

.nav-social a { color: var(--white); font-size: 1.5rem; margin-right: 15px; transition: transform 0.3s; }
.nav-social a:hover { transform: scale(1.2); }
.nav-social .snapchat:hover { color: #fffc00; }
.nav-social .youtube:hover { color: #ff0000; }

.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    background: url('Background.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(58, 4, 4, 0.9), rgba(0, 0, 0, 0.7));
}

.hero-content { position: relative; z-index: 1; max-width: 850px; color: var(--white); }

.badge {
    background-color: var(--primary-gold);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 { font-family: 'Amiri', serif; font-size: clamp(1.7rem, 5.5vw, 3.5rem); margin-bottom: 20px; line-height: 1.3; color: var(--primary-gold); }
.hero-lead { font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.9; margin-bottom: 40px; opacity: 0.9; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-buttons .btn { margin: 0; }

.btn { padding: 12px 30px; border-radius: 6px; font-weight: bold; text-decoration: none; display: inline-block; transition: all 0.3s ease; cursor: pointer; }
.btn-primary { background-color: var(--primary-gold); color: var(--white); border: 2px solid var(--primary-gold); margin-left: 15px; }
.btn-primary:hover { background-color: transparent; color: var(--primary-gold); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--dark-burgundy); }

.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Amiri', serif; font-size: clamp(1.7rem, 5vw, 2.5rem); color: var(--dark-burgundy); margin-bottom: 10px; }

.about-section { background-color: var(--white); }
.about-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.about-text { flex: 1; }
.about-text h2 { font-family: 'Amiri', serif; font-size: clamp(1.7rem, 5vw, 2.5rem); color: var(--dark-burgundy); }
.accent-title { color: var(--primary-gold); font-weight: bold; font-size: 1.2rem; margin: 10px 0; }

.stats-counters { flex: 1; display: flex; gap: 20px; }
.counter-card { background-color: var(--dark-burgundy); color: var(--white); padding: 40px 20px; border-radius: 12px; text-align: center; flex: 1; border-bottom: 5px solid var(--primary-gold); }
.counter-card i { font-size: 2.5rem; color: var(--primary-gold); margin-bottom: 15px; }
.counter-card h3 { font-size: 3rem; font-weight: bold; }

/* ===== مشغل الشيلة ===== */
.radio-section { background-color: #f1ebd9; }
.radio-player-container { background: var(--dark-burgundy); border-radius: 15px; padding: 30px; display: flex; align-items: center; gap: 30px; color: var(--white); max-width: 750px; margin: 0 auto; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.player-disk { width: 100px; height: 100px; background-color: var(--primary-gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; animation: rotateDisk 4s linear infinite; animation-play-state: paused; flex-shrink: 0; }
.player-disk.playing { animation-play-state: running; }
@keyframes rotateDisk { 100% { transform: rotate(360deg); } }

/* المشغل يُعرض من اليسار لليمين ليتوافق مع اتجاه الأسهم والشريط */
.player-controls { flex: 1; width: 100%; direction: ltr; }
.player-controls h3 { margin-bottom: 6px; font-family: 'Amiri', serif; direction: rtl; text-align: right; }
.player-hint { font-size: 0.85rem; color: #d9cfae; margin-bottom: 16px; direction: rtl; text-align: right; }

.seek-row { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: #eee; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.seek-row span { min-width: 44px; text-align: center; }

/* شريط التقدم القابل للسحب */
.seek-bar { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.seek-bar::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(to right, var(--primary-gold) var(--fill, 0%), rgba(255,255,255,0.25) var(--fill, 0%)); }
.seek-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-gold); margin-top: -7px; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.seek-bar::-moz-range-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.25); }
.seek-bar::-moz-range-progress { height: 8px; border-radius: 6px; background: var(--primary-gold); }
.seek-bar::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-gold); }

.audio-btns-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.transport { display: flex; align-items: center; gap: 12px; }

.control-btn { background: var(--primary-gold); border: none; width: 62px; height: 62px; border-radius: 50%; color: var(--white); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.control-btn:hover { transform: scale(1.08); }

.skip-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; height: 44px; padding: 0 14px; border-radius: 30px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: bold; font-size: 0.95rem; transition: background 0.2s, transform 0.2s; }
.skip-btn i { font-size: 1rem; }
.skip-btn:hover { background: var(--primary-gold); transform: scale(1.05); }

.volume-container { display: flex; align-items: center; gap: 8px; }
.mute-btn { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.volume-container input[type="range"] { width: 90px; accent-color: var(--primary-gold); cursor: pointer; }

.control-btn:focus-visible, .skip-btn:focus-visible, .mute-btn:focus-visible, .seek-bar:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.theater-section { background: #220202; color: var(--white); }
.theater-section h2 { color: var(--primary-gold); }
.theater-grid { display: flex; gap: 30px; }
.video-box { flex: 1; height: 300px; background-color: #3a0404; border: 2px dashed var(--primary-gold); border-radius: 10px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: transform 0.3s; text-decoration: none; }
.video-box:hover { transform: translateY(-10px); }
.video-placeholder { text-align: center; }
.video-icon { font-size: 3.5rem; display: block; margin-bottom: 10px; color: var(--primary-gold); }
.theater-text { color: #ffffff !important; font-weight: bold; font-size: 1.05rem; border-bottom: none !important; text-decoration: none !important; }

.calc-wrapper { display: flex; background: var(--white); border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; }
#bookingForm { flex: 1; padding: 40px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--dark-burgundy); }
.form-group select, .form-group input { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #ddd; font-size: 1rem; background: #fff; }
.form-group input:focus, .form-group select:focus { outline: 2px solid var(--primary-gold); outline-offset: 1px; }

/* لون ونمط النص التوضيحي الرمادي الهادئ لحقل التاريخ */
.form-group input::placeholder {
    color: #999999;
    opacity: 1;
    font-size: 0.9rem;
}

.checkbox-group-container { border: 1px solid #e0d8c5; border-radius: 8px; padding: 15px; background-color: #fbf9f4; }
.checkbox-group-container .group-title { font-size: 1.05rem; color: var(--dark-burgundy); margin-bottom: 12px; border-bottom: 2px solid var(--primary-gold); padding-bottom: 6px; }

.custom-checkbox-row { display: flex; align-items: center; padding: 12px 14px; margin-bottom: 8px; background: var(--white); border: 1px solid #e5dec9; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; position: relative; }
.custom-checkbox-row:last-child { margin-bottom: 0; }
.custom-checkbox-row input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkbox-box { width: 22px; height: 22px; border: 2px solid #ccc; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: #fff; transition: all 0.2s ease; margin-left: 12px; }
.checkbox-box i { color: white; font-size: 0.8rem; opacity: 0; transition: opacity 0.2s ease; }
.srv-text { flex: 1; font-weight: 600; color: var(--text-color); }

.custom-checkbox-row.checked-row { background-color: #eafaf1 !important; border-color: #25d366 !important; }
.custom-checkbox-row.checked-row .checkbox-box { background-color: #25d366; border-color: #25d366; }
.custom-checkbox-row.checked-row .checkbox-box i { opacity: 1; }
.custom-checkbox-row.checked-row .srv-text { color: #0d4a22; }

.calc-result-box { flex: 1; background-color: var(--dark-burgundy); color: var(--white); padding: 40px; display: flex; flex-direction: column; justify-content: center; border-right: 4px solid var(--primary-gold); }
.calc-result-box h3 { color: var(--primary-gold); margin-bottom: 15px; }

/* ملاحظة الدفع بالتقسيط */
.pay-note { display: flex; align-items: center; gap: 15px; margin-top: 25px; padding: 18px 22px; background: var(--white); border-right: 4px solid var(--primary-gold); border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.pay-note i { font-size: 1.8rem; color: var(--primary-gold); }
.pay-note strong { display: block; color: var(--dark-burgundy); margin-bottom: 4px; }
.pay-note p { color: #555; font-size: 0.95rem; }

footer { background-color: #1a0101; color: #888; text-align: center; padding: 30px 0; font-size: 0.9rem; border-top: 1px solid var(--primary-gold); }
.nav-social .whatsapp:hover { color: #25d366; }
.btn-whatsapp-direct { background-color: #25d366; color: var(--white); border: 2px solid #25d366; margin-left: 15px; }
.btn-whatsapp-direct:hover { background-color: transparent; color: #25d366; }

.identity-section { background-color: #fff; padding: 60px 0; }
.flag-icon { font-size: 3rem; display: block; margin-bottom: 10px; }
.identity-grid { display: flex; gap: 30px; margin-top: 40px; }
.identity-card { flex: 1; background: var(--light-bg); padding: 35px 25px; border-radius: 12px; text-align: center; transition: transform 0.3s; }
.identity-card:hover { transform: translateY(-5px); }
.identity-card h3 { color: var(--dark-burgundy); font-family: 'Amiri', serif; font-size: 1.6rem; margin: 15px 0 10px; }
.identity-card p { font-size: 0.95rem; line-height: 1.7; color: #555; }
.identity-card .icon-box { font-size: 2rem; color: var(--primary-gold); display: flex; justify-content: center; align-items: center; }
.border-gold { border-top: 4px solid var(--primary-gold); }
.border-burgundy { border-top: 4px solid var(--dark-burgundy); }

.floating-whatsapp { position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: #fff; padding: 12px 20px; border-radius: 50px; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.3s; }
.floating-whatsapp:hover { transform: scale(1.05); }
.floating-whatsapp i { font-size: 1.5rem; }

.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; margin-right: 10px; }
.hamburger span { display: block; height: 3px; width: 100%; background-color: var(--white); border-radius: 3px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.btn-block { width: 100%; text-align: center; margin-bottom: 10px; }
.reset-btn { background-color: #b30000 !important; border-color: #b30000 !important; color: #fff !important; width: 100%; text-align: center; font-size: 1.2rem; padding: 10px; }
.reset-btn:hover { background-color: #8a0000 !important; }
.error-msg { color: #b30000; font-weight: bold; margin-top: 10px; display: none; }
.result-card { background:#fff; padding:15px; border-radius:8px; margin-top:15px; text-align:left; border:1px solid #ddd; color: #333; }
.result-thanks { color:#3a0404; font-weight:bold; margin-bottom:6px; text-align: center; }
.result-help { color:#555; font-size:.9rem; text-align: center; margin-bottom: 10px; }
.whatsapp-confirm { background:#25d366; color:#fff; margin-top:10px; display:block; text-align: center; }
.whatsapp-confirm:hover { background:#1da851; color:#fff; }

.calc-table { width: 100%; border-collapse: collapse; margin: 10px 0 15px 0; font-size: 0.9rem; background: #fff; color: #333; border-radius: 6px; overflow: hidden; }
.calc-table th, .calc-table td { padding: 8px 10px; border: 1px solid #e0e0e0; text-align: right; }
.calc-table th { background-color: var(--dark-burgundy); color: var(--primary-gold); }
.calc-table tr:nth-child(even) { background-color: #f9f9f9; }

.live-page { background: var(--light-bg); }
.live-container { max-width: 1400px; margin: 0 auto; padding: 90px 15px 40px; min-height: 80vh; }
.live-badge { display: inline-block; background: #b30000; color: #fff; padding: 6px 14px; border-radius: 30px; font-weight: 900; }
.live-badge i { font-size: .65rem; margin-left: 5px; }
.live-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 85vh; background: #160000; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,.22); border: 2px solid var(--primary-gold); margin-top: 15px; }
.live-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-note { margin: 18px 0; padding: 14px 18px; background: #fff; border-right: 4px solid var(--primary-gold); border-radius: 8px; display: flex; gap: 10px; align-items: center; }
.live-note i { color: var(--primary-gold); }
.back-btn { margin-top: 10px; }

@media (max-width: 1100px) {
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 1000px) {
    .hamburger { display: flex; }
    .nav-social { display: none; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background-color: rgba(58, 4, 4, 0.98); padding: 20px 30px; gap: 15px; border-top: 2px solid var(--primary-gold); z-index: 99; max-height: calc(100vh - 70px); overflow-y: auto; }
    .nav-links.nav-open { display: flex; }
    .nav-links li { text-align: center; }
    .nav-links a { font-size: 1.1rem; }
}

@media (max-width: 900px) {
    .identity-grid, .about-grid, .stats-counters, .theater-grid, .calc-wrapper, .radio-player-container { flex-direction: column; text-align: center; }
    .identity-card { width: 100%; }
    .video-box { height: 200px; }
    #bookingForm, .calc-result-box { padding: 25px; }
    .calc-result-box { border-right: none; border-top: 4px solid var(--primary-gold); }
    .player-controls h3, .player-hint { text-align: center; }
    .audio-btns-row { justify-content: center; }
    .pay-note { flex-direction: column; text-align: center; border-right: none; border-top: 4px solid var(--primary-gold); }
}

@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 340px; text-align: center; }
    .container { padding: 50px 15px; }
    .player-disk { width: 80px; height: 80px; font-size: 2rem; }
    .floating-whatsapp span { display: none; }
    .floating-whatsapp { padding: 14px; border-radius: 50%; }
    .live-container { padding: 80px 10px 30px; }
    .live-frame-wrap { aspect-ratio: 16/10; border-radius: 8px; }
}

/* ===== توافق كامل مع جميع الشاشات ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.calc-result-box { overflow-x: auto; }

@media (min-width: 1600px) {
    .container, .nav-container { max-width: 1400px; }
}

@media (max-width: 480px) {
    .main-logo { height: 40px; }
    .nav-container { padding: 0 14px; }
    .section-header { margin-bottom: 30px; }
    .radio-player-container { padding: 20px 16px; gap: 18px; }
    .seek-row { gap: 8px; font-size: 0.8rem; }
    .seek-row span { min-width: 38px; }
    .skip-btn { padding: 0 11px; height: 40px; }
    .control-btn { width: 56px; height: 56px; }
    .volume-container input[type="range"] { width: 70px; }
    #bookingForm, .calc-result-box { padding: 18px; }
    .counter-card { padding: 28px 14px; }
    .counter-card h3 { font-size: 2.3rem; }
    .pay-note { padding: 16px; }
    .floating-whatsapp { bottom: 18px; left: 18px; }
}

@media (max-width: 360px) {
    .badge { font-size: 0.78rem; padding: 6px 12px; }
    .loader-content h2 { font-size: 1.5rem; }
    .btn { padding: 11px 18px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { padding-top: 80px; padding-bottom: 30px; }
    .hero-lead { margin-bottom: 20px; }
}
