:root {
    --bg-main: #12100E;
    --bg-surface: #1C1815;
    --primary: #B89C65;
    --accent: #B89C65;
    --text-heading: #F3F0EA;
    --text-body: #A8A29E;
    --border-radius: 12px;
    --transition: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
}

a {
    text-decoration: none;
    color: var(--text-heading);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-main);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(184, 156, 101, 0.5);
    transform: translateY(-2px);
    color: var(--bg-main);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(235, 195, 105, 0.85) 0%, rgba(255, 225, 155, 0.85) 50%, rgba(225, 185, 95, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-logo .logo-img {
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: var(--transition);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-weight: 600;
    color: var(--bg-main);
    padding: 4px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: rgba(18, 16, 14, 0.1);
    color: var(--bg-main);
}

.nav-links a.active {
    background-color: var(--bg-main);
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-login {
    background-color: transparent;
    border: 1px solid var(--bg-main);
    color: var(--bg-main);
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn-outline-login:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.nav-cta .btn-primary {
    background-color: var(--bg-main);
    color: var(--primary);
}

.nav-cta .btn-primary:hover {
    box-shadow: 0 0 15px rgba(18, 16, 14, 0.6);
    color: var(--primary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 140px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: right;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.badge {
    background-color: rgba(184, 156, 101, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(184, 156, 101, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.badge:hover {
    background-color: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 156, 101, 0.25);
}

.badge:active {
    transform: translateY(0);
}

.hero-cta-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-cta-container .btn-primary {
    font-size: 1.1rem;
    padding: 16px 32px;
}

.hero-cta-hint {
    font-size: 0.85rem;
    color: var(--text-body);
}

/* Hero Video */
.hero-video-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(184, 156, 101, 0.3);
    overflow: hidden;
    display: flex;
    border: 2px solid rgba(184, 156, 101, 0.2);
}

.hero-video {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
    background-color: #000;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(28, 24, 21, 0.8);
    color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(184, 156, 101, 0.6);
    transition: var(--transition);
    z-index: 10;
    padding-left: 5px;
    /* Visually center the play icon */
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 25px rgba(184, 156, 101, 0.9);
}

/* Features Section */
.features {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-header {
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.features-header p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-surface);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(184, 156, 101, 0.15);
    border-color: rgba(184, 156, 101, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-body);
}

/* Trainers Section */
.trainers {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-main);
}

.trainers-header {
    margin-bottom: 50px;
}

.trainers-header h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trainer-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(184, 156, 101, 0.15);
    border-color: rgba(184, 156, 101, 0.3);
}

.trainer-img-wrapper {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.trainer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.trainer-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.trainer-card p {
    font-size: 1rem;
    color: var(--text-body);
}

/* Curriculum (Accordion) Section */
.curriculum {
    padding: 80px 5%;
    background-color: var(--bg-main);
    text-align: center;
}

.curriculum-header {
    margin-bottom: 50px;
}

.curriculum-header h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
}

.curriculum-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.accordion-item:hover {
    border-right-color: var(--primary);
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    transition: var(--transition);
}

.accordion-icon {
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header {
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(0, 0, 0, 0.1);
}

.accordion-content p {
    padding: 0 50px 20px 20px;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 5%;
    background-color: var(--bg-main);
    text-align: center;
}

.faq-header {
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;
}

.accordion-item.faq-item {
    background-color: transparent;
    border: 1px solid rgba(184, 156, 101, 0.2);
    border-right: 1px solid rgba(184, 156, 101, 0.2);
    border-radius: var(--border-radius);
}

.accordion-item.faq-item:hover {
    border-color: rgba(184, 156, 101, 0.6);
    border-right-color: rgba(184, 156, 101, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item .accordion-content {
    background-color: transparent;
}

/* CTA Section */
.cta-section {
    padding: 100px 5%;
    background-color: var(--bg-surface);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.2rem;
    color: var(--text-heading);
    margin-bottom: 40px;
    line-height: 1.4;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #1C1815 0%, #12100E 100%);
    border: 1px solid rgba(184, 156, 101, 0.3);
    box-shadow: inset 0 0 20px rgba(184, 156, 101, 0.05), 0 10px 30px rgba(0,0,0,0.3);
    border-radius: var(--border-radius);
    max-width: 450px;
    margin: 0 auto 30px auto;
}

.old-price {
    font-size: 1rem;
    color: #A8A29E;
    text-decoration: line-through;
    margin-bottom: 0;
}

.new-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0;
}

.new-price {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.currency {
    font-size: 1.25rem;
    color: var(--primary);
}

.price-subtitle {
    font-size: 1rem;
    color: #FFF;
    font-weight: 600;
    margin-bottom: 0;
}

.price-box .btn-large {
    width: 100%;
    margin-bottom: 0;
    padding: 16px;
}

.btn-large {
    display: inline-block;
    background-color: var(--primary);
    color: var(--bg-main);
    padding: 18px 40px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 20px;
}

.pulse-hover:hover {
    animation: pulse 1s infinite;
    box-shadow: 0 0 25px rgba(184, 156, 101, 0.4);
    color: var(--bg-main);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-body);
    opacity: 0.7;
}

/* Footer */
.footer {
    background-color: var(--bg-main);
    padding: 80px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #F3F0EA;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    align-self: flex-start;
}

.footer-logo {
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-col p {
    color: var(--text-body);
    line-height: 1.6;
}

.footer-col h3 {
    color: var(--text-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    align-self: flex-start;
}

.btn-outline:hover {
    background-color: rgba(184, 156, 101, 0.1);
}

.footer-warning {
    color: var(--text-body);
    border-right: 3px solid var(--primary);
    padding-right: 15px;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-body);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Login Modal Fixes */
.login-box {
    max-width: 400px;
    background-color: #1C1815;
}

.login-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F3F0EA;
    margin-bottom: 5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.login-input {
    width: 100%;
    background-color: #12100E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.login-input:focus {
    outline: none;
    border-color: #B89C65;
    box-shadow: 0 0 10px rgba(184, 156, 101, 0.2);
}

.forgot-password {
    text-align: right;
    margin-top: -5px;
}

.forgot-password a {
    color: #B89C65;
    font-size: 0.875rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-submit {
    margin-top: 10px;
}

.login-switch {
    text-align: center;
    font-size: 0.9rem;
    color: #A8A29E;
    margin-top: 15px;
}

.login-switch a {
    color: #B89C65;
    font-weight: bold;
    text-decoration: none;
}

.login-switch a:hover {
    text-decoration: underline;
}

/* AI Floating Button */
.ai-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* opposite to whatsapp */
    background: linear-gradient(to right, #B89C65, #D4AF37);
    color: #12100E;
    border-radius: 50%;
    border: none;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(184, 156, 101, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse-ai 2s infinite;
}

.ai-float:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(184, 156, 101, 0.6);
}

@keyframes pulse-ai {
    0% {
        box-shadow: 0 0 0 0 rgba(184, 156, 101, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(184, 156, 101, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(184, 156, 101, 0);
    }
}

/* AI Chat Modal Fixes */
.ai-chat-box {
    background-color: #1C1815;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-chat-box .modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid rgba(184, 156, 101, 0.1);
}

.ai-chat-box .ai-title {
    color: #B89C65;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.chat-area {
    height: 320px;
    background-color: #12100E;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    background-color: #2D2622;
    color: #FFF;
    padding: 12px 18px;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    align-self: flex-start;
}

.chat-input-area {
    padding: 15px 20px;
    background-color: #1C1815;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(184, 156, 101, 0.1);
}

.chat-input {
    flex: 1;
    background-color: #12100E;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #FFF;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: #B89C65;
}

.chat-submit {
    background-color: #B89C65;
    color: #12100E;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-submit:hover {
    transform: scale(1.05);
    background-color: #D4AF37;
}

/* Modal Overlay & Box */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #12100E;
    border-radius: 16px;
    border: 1px solid rgba(184, 156, 101, 0.3);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease-out;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #FFF;
    margin-bottom: 5px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #1C1815;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #FFF;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(184, 156, 101, 0.2);
}

.payment-section h3 {
    font-size: 1rem;
    margin: 20px 0 10px;
    color: var(--text-heading);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-card {
    position: relative;
    cursor: pointer;
}

.payment-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-card .card-content {
    display: block;
    padding: 12px 15px;
    background-color: #1C1815;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-body);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.payment-card input:checked ~ .card-content {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(184, 156, 101, 0.05);
}

.proof-section {
    margin-top: 10px;
}

.file-upload-box {
    position: relative;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #1C1815;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background-color: rgba(184, 156, 101, 0.05);
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-upload-box p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
}

.modal-footer {
    margin-top: 15px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: #12100E;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(184, 156, 101, 0.4);
    transform: translateY(-2px);
}

.modal-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}
/* Founder Section */
.founder-section {
    padding: 60px 5%;
}

.founder-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #1C1815;
    border: 1px solid rgba(184, 156, 101, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.founder-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: right;
}

.founder-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #B89C65;
}

.founder-text h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #B89C65;
    margin-bottom: 4px;
}

.founder-text p {
    font-size: 0.875rem;
    color: #A8A29E;
}

.founder-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.btn-founder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #B89C65;
    color: #B89C65;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
    background: transparent;
    text-decoration: none;
}

.btn-founder:hover {
    background-color: #B89C65;
    color: #12100E;
}

/* Credits Bar */
.credits-bar {
    width: 100%;
    padding: 12px 0;
    background-color: #0A0908;
    text-align: center;
}
.credits-bar p {
    margin: 0;
    font-size: 0.875rem;
    color: #A8A29E;
    direction: ltr;
}
.operix-link {
    font-weight: bold;
    text-decoration: none;
    background-image: linear-gradient(to right, #B89C65 0%, #FFF8E7 50%, #B89C65 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2s linear infinite;
    transition: all 0.3s ease;
}
.operix-link:hover {
    filter: drop-shadow(0 0 8px rgba(184, 156, 101, 0.8));
}
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .badges {
        justify-content: center;
    }

    .hero-cta-container {
        align-items: center;
    }

    .hero-video-wrapper {
        margin-top: 20px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Responsive Padding */
    .hero, .features, .trainers, .curriculum, .faq, .cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Grids to 1 Column */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Navbar */
    .navbar {
        flex-direction: row;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        z-index: 1001;
    }

    .hamburger {
        width: 24px;
        height: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #9A7C46; /* Deeper gold to darken it */
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        transform-origin: center;
    }

    .menu-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-menu {
        display: flex;
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 16, 14, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 1px solid rgba(184, 156, 101, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        transform: translateY(-10px);
        transition: all 0.3s ease-out;
    }

    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        margin-bottom: 24px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0;
        font-size: 1.25rem;
        color: var(--text-heading);
        background: transparent !important;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.4s ease-out;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-cta .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .btn-outline-login {
        border-color: #B89C65;
        color: #B89C65;
        width: 100%;
        text-align: center;
    }
    
    .btn-outline-login:hover {
        background-color: #B89C65;
        color: #12100E;
    }
    
    .nav-menu.active .nav-links li:nth-child(1) a { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
    .nav-menu.active .nav-links li:nth-child(2) a { transition-delay: 0.175s; opacity: 1; transform: translateY(0); }
    .nav-menu.active .nav-links li:nth-child(3) a { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
    .nav-menu.active .nav-links li:nth-child(4) a { transition-delay: 0.325s; opacity: 1; transform: translateY(0); }

    .nav-links a:active {
        transform: scale(0.95) !important;
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--primary) !important;
        background: transparent !important;
    }

    .nav-cta {
        margin-top: 0;
        width: 100%;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.4s ease-out;
    }

    .nav-menu.active .nav-cta {
        transition-delay: 0.4s;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-cta .btn-primary {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    /* Typography Scale Down */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features-header h2, .curriculum-header h2, .faq-header h2, .trainers h2 {
        font-size: 2rem;
    }

    /* Refined Mobile UI Improvements */
    /* Cards (Features) to 2 Columns, 3rd card full width */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card:nth-child(3) {
        grid-column: span 2;
    }

    /* Trainers Section Mobile (Horizontal Layout) */
    .trainers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trainer-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px;
        width: 100%;
        background-color: var(--bg-surface);
        border-radius: 12px;
        overflow: hidden;
        margin: 0;
    }

    .trainer-img-wrapper {
        flex-shrink: 0;
        margin: 0;
        padding: 0;
        width: 96px;
        height: 96px;
        position: static;
    }

    .trainer-img {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .trainer-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        text-align: right;
        overflow: hidden; /* Prevents text from pushing boundaries */
    }

    .trainer-card h3 {
        font-size: 1rem;
        font-weight: bold;
        color: var(--primary);
        margin: 0 0 4px 0;
    }

    .trainer-card p {
        font-size: 0.875rem;
        color: var(--text-body);
        line-height: 1.6;
        margin: 0;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Accordion (Curriculum & FAQ) */
    .accordion-header {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .accordion-content p {
        padding: 0 35px 12px 15px;
        font-size: 0.9rem;
    }

    /* CTA Section Mobile Fixes */
    .cta-container h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .price-box {
        padding: 16px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .old-price {
        font-size: 0.875rem;
    }

    .new-price-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
        gap: 6px;
    }

    .new-price {
        font-size: 2.25rem;
    }

    .currency {
        font-size: 1rem;
    }

    .price-subtitle {
        font-size: 0.875rem;
    }

    .price-box .btn-large {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .modal-box {
        padding: 20px;
    }

    /* Founder Section Mobile */
    .founder-container {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-info {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-links {
        justify-content: center;
    }

    .ai-chat-box .ai-title {
        font-size: 1.1rem;
    }
}

/* Google Auth Styles */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 15px;
    gap: 10px;
}

.btn-google:hover {
    background-color: #f1f1f1;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.auth-divider:not(:empty)::before {
    margin-left: .25em;
}

.auth-divider:not(:empty)::after {
    margin-right: .25em;
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: bold;
}
.btn-logout:hover {
    background-color: #dc3545;
    color: white;
}

/* Chatbot Styles */
.chatbot-floating-btn {
    position: fixed;
    bottom: 30px; /* Across from WhatsApp */
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dfbc68, #b8903c);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(184, 156, 101, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.chatbot-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(184, 156, 101, 0.6);
}

.chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.chatbot-overlay.active {
    display: block;
    opacity: 1;
}

.chatbot-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 450px;
    max-width: 90%;
    height: 550px;
    max-height: 90vh;
    background-color: #1a1510;
    border: 1px solid rgba(223, 188, 104, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    opacity: 0;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}
.chatbot-window.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.chatbot-header {
    text-align: center;
    padding: 30px 20px 15px;
    position: relative;
    background-color: transparent;
    color: #dfbc68;
}
.chatbot-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #dfbc68;
}
.chatbot-header p {
    margin: 0;
    color: #999;
    font-size: 0.85rem;
}

.chatbot-close {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #dfbc68;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s ease;
    z-index: 10;
}
.chatbot-close:hover {
    color: #fff;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-message.bot {
    background-color: #2a221b;
    color: #ddd;
    align-self: center;
    border: 1px solid rgba(223, 188, 104, 0.15);
    border-radius: 8px;
    text-align: center;
}

.chat-message.user {
    background-color: #dfbc68;
    color: #111;
    align-self: flex-start;
    border-bottom-right-radius: 2px;
    font-weight: 600;
}

.chatbot-input-container {
    display: flex;
    padding: 15px 20px 20px;
    gap: 10px;
    background-color: transparent;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}
.chatbot-input:focus {
    border-color: #dfbc68;
}

.chatbot-send-btn {
    background-color: #dfbc68;
    border: none;
    color: #111;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
}
.chatbot-send-btn:hover {
    background-color: #c5a059;
}

.typing-indicator {
    font-size: 0.8rem;
    color: #aaa;
    display: none;
    padding: 0 20px 10px;
}

@media (max-width: 768px) {
    .chatbot-floating-btn {
        bottom: 30px;
    }
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background-color: #2a2a2a;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-right: 4px solid var(--primary);
    font-size: 0.95rem;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.error {
    border-right-color: #ff4d4f;
}
.toast.success {
    border-right-color: #52c41a;
}
.toast i {
    font-size: 1.2rem;
}

/* Password Toggle Wrapper */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}
.password-wrapper input {
    width: 100%;
    padding-left: 45px !important; /* space for icon on the left (RTL) */
}
.password-wrapper .toggle-password {
    position: absolute;
    left: 15px; /* positioned on the left side of the input for RTL layout */
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    z-index: 10;
}
.password-wrapper .toggle-password:hover {
    color: var(--primary);
}

/* Improved Modal Styling */
.modal-content {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,215,0,0.1);
}
.modal-content input {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    transition: all 0.3s;
}
.modal-content input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}