/* ================= ROOT & THEME ================= */
:root {
    --red:#e10600;
    --black:#0e0e0e;
    --dark:#141414;
    --gray:#aaa;
    --white:#fff;
    --radius:14px;
    --shadow:0 25px 60px rgba(225,6,0,.35);
    --transition:.35s ease;
    
    /* ألوان إضافية للثيمات */
    --blue:#0066cc;
    --green:#00a651;
    --orange:#ff6b00;
    --purple:#8e44ad;
}

/* ================= GLOBAL ================= */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background:var(--black);
    color:var(--white);
    line-height:1.6;
    overflow-x: hidden;
    font-size: 16px;
}
a {
    text-decoration:none;
    color:inherit;
}
.container {
    width:95%;
    max-width:1300px;
    margin:auto;
    padding: 0 15px;
}

/* ================= MOBILE FIRST APPROACH ================= */

/* ================= HEADER & NAV - MOBILE ================= */
header {
    background:rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(10px);
    border-bottom:1px solid rgba(225,6,0,0.3);
    position:sticky;
    top:0;
    z-index:999;
    padding: 10px 0;
}

.header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.logo i {
    font-size: 2rem;
    color: var(--red);
}

.logo-text h1 {
    font-size:1.4rem;
    font-weight:800;
    color:var(--red);
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.7rem;
    color: #aaa;
    margin: 0;
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a {
    margin:0 5px;
    color:#ddd;
    font-weight:600;
    padding:8px 12px;
    border-radius:var(--radius);
    transition:var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

nav a:hover {
    background:rgba(225,6,0,.2);
    color:var(--red);
}

nav a.active {
    background:rgba(225,6,0,.3);
    color:var(--red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart {
    position:relative;
    font-size:1.2rem;
    cursor:pointer;
}

.cart span {
    position:absolute;
    top:-8px;
    right:-8px;
    background:var(--red);
    border-radius:50%;
    padding:2px 6px;
    font-size:.7rem;
    font-weight: bold;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.settings-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: var(--red);
    transform: rotate(30deg);
}

/* ================= HERO SLIDER - MOBILE ================= */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 5px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.8)),
                url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48") center/cover;
}

.slide-2 {
    background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.8)),
                url("https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b") center/cover;
}

.slide-3 {
    background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.8)),
                url("https://images.unsplash.com/photo-1534367507877-0edd93bd013b") center/cover;
}

.slide-content {
    max-width: 90%;
    padding: 25px;
    background: rgba(11, 11, 11, 0.85);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    text-align: center;
}

.slide-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.slide-content h1 span {
    color: var(--red);
}

.slide-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--red);
    transform: scale(1.3);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    z-index: 10;
}

.arrow {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background: var(--red);
}

/* ================= BUTTONS - MOBILE ================= */
.btn {
    padding:12px 20px;
    border:none;
    cursor:pointer;
    border-radius:var(--radius);
    font-weight:700;
    transition:var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 5px;
}

.btn-primary {
    background:linear-gradient(135deg, #e10600, #ff2a2a);
    color:#fff;
    box-shadow:var(--shadow);
}

.btn-outline {
    background:transparent;
    border:2px solid var(--red);
    color:var(--red);
}

.btn-success {
    background:linear-gradient(135deg, #00a651, #00cc66);
    color: #fff;
}

.btn-warning {
    background:linear-gradient(135deg, #ff6b00, #ff8c00);
    color: #fff;
}

.btn-secondary {
    background:linear-gradient(135deg, #0066cc, #0099ff);
    color: #fff;
}

.btn:hover {
    transform:translateY(-3px) scale(1.03);
}

.btn-block {
    display: block;
    width: 100%;
    margin: 10px 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ================= SECTIONS - MOBILE ================= */
section {
    padding: 50px 0;
}

.section-title {
    text-align:center;
    margin-bottom:30px;
}

.section-title h2 {
    font-size:2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
}

.section-title span {
    color:var(--red);
}

.section-title p {
    color:#aaa;
    margin-top:20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ================= PROGRAMS (7 CATEGORIES) - MOBILE ================= */
.programs {
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

.card {
    background:linear-gradient(180deg, #141414, #0b0b0b);
    border:1px solid rgba(225,6,0,.35);
    border-radius:var(--radius);
    overflow:hidden;
    transition:var(--transition);
    position: relative;
}

.card:hover {
    transform:translateY(-8px);
    box-shadow:var(--shadow);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.card img {
    width:100%;
    height:200px;
    object-fit:cover;
}

.card-body {
    padding:20px;
}

.card-body h3 {
    margin-bottom:10px;
    font-size: 1.3rem;
}

.card-body p {
    color:#aaa;
    font-size:0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin:15px 0;
}

.price .amount {
    font-size:1.6rem;
    font-weight:800;
    color:var(--red);
}

.original-price {
    text-decoration: line-through;
    color: #777;
    font-size: 0.9rem;
    margin-right: 8px;
}

.currency-selector {
    margin: 15px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.currency-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid #333;
    color: #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.currency-btn.active {
    background: var(--red);
    color: white;
}

/* ================= SCHEDULE TABLE - MOBILE ================= */
.schedule-container {
    background: linear-gradient(180deg, #141414, #0b0b0b);
    border: 1px solid rgba(225,6,0,.35);
    border-radius: var(--radius);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table th {
    background: rgba(225,6,0,0.2);
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--red);
    font-size: 0.9rem;
}

.schedule-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #333;
    font-size: 0.85rem;
}

.schedule-table tr:hover {
    background: rgba(225,6,0,0.1);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-available {
    background: rgba(0, 166, 81, 0.2);
    color: #00cc66;
}

.status-full {
    background: rgba(255, 107, 0, 0.2);
    color: #ff8c00;
}

/* ================= DASHBOARDS - MOBILE ================= */
.dashboard-section {
    margin: 40px 0;
}

.dashboard {
    display:flex;
    flex-direction: column;
    gap:20px;
}

.sidebar {
    background:#0f0f0f;
    border:1px solid #1f1f1f;
    border-radius:var(--radius);
    padding:15px;
    width: 100%;
    order: 1;
}

.sidebar h3 {
    padding: 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
    color: var(--red);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar a {
    display:block;
    padding:12px;
    margin-bottom:6px;
    border-radius:var(--radius);
    color:#ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar a:hover {
    background:rgba(225,6,0,.2);
    color:var(--red);
}

.sidebar a.active {
    background:rgba(225,6,0,.3);
    color:var(--red);
}

.dashboard-content {
    background:#0f0f0f;
    border:1px solid #1f1f1f;
    border-radius:var(--radius);
    padding:20px;
    width: 100%;
    order: 2;
}

/* Client Dashboard */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #ff2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border: 3px solid rgba(255,255,255,0.1);
}

.profile-info h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.profile-info p {
    color: #aaa;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px;
}

.badge-primary {
    background: rgba(225,6,0,0.2);
    color: var(--red);
}

.badge-success {
    background: rgba(0, 166, 81, 0.2);
    color: #00cc66;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.achievement-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.achievement-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.achievement-card i {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 10px;
}

.achievement-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.achievement-card p {
    font-size: 0.8rem;
    color: #aaa;
}

/* Coach Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid #333;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--red);
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red);
    display: block;
    margin: 8px 0;
}

.stat-card .label {
    color: #aaa;
    font-size: 0.8rem;
}

/* ================= CHAT SYSTEM - MOBILE ================= */
.chat-container {
    background:#0e0e0e;
    border-radius:var(--radius);
    border:1px solid #1f1f1f;
    display:flex;
    flex-direction:column;
    height:450px;
}

.chat-header {
    background:linear-gradient(135deg, #e10600, #ff2a2a);
    padding:15px;
    font-weight:700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.chat-header h3 {
    font-size: 1.2rem;
}

.chat-status {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.chat-status.online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00cc66;
    border-radius: 50%;
    margin-left: 5px;
}

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

.msg {
    max-width:85%;
    padding:10px 14px;
    border-radius:16px;
    position: relative;
    font-size: 0.9rem;
}

.sent {
    background:var(--red);
    margin-right:auto;
    border-bottom-right-radius: 5px;
}

.received {
    background:#1c1c1c;
    margin-left:auto;
    border-bottom-left-radius: 5px;
}

.msg-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    display:flex;
    gap:8px;
    padding:15px;
    border-top:1px solid #1f1f1f;
}

.chat-input input {
    flex:1;
    padding:12px;
    border-radius:25px;
    border:1px solid #333;
    outline:none;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.9rem;
}

/* ================= CART & CHECKOUT - MOBILE ================= */
.cart-modal {
    position:fixed;
    top:0;
    right:-100%;
    width:100%;
    height:100vh;
    background:#0b0b0b;
    transition:.4s;
    z-index:1001;
    padding:20px;
    overflow-y: auto;
    border-left: 1px solid #333;
}

.cart-modal.active {
    right:0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.cart-header h3 {
    font-size: 1.4rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cart-item {
    border-bottom:1px solid #1f1f1f;
    padding:15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--red);
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--red);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Payment Methods */
.payment-methods {
    margin-top: 25px;
}

.payment-method {
    background: rgba(255,255,255,0.05);
    border: 2px solid #333;
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method:hover, .payment-method.active {
    border-color: var(--red);
    background: rgba(225,6,0,0.1);
}

.payment-method i {
    font-size: 1.8rem;
    color: var(--red);
}

.payment-method h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.payment-method p {
    font-size: 0.8rem;
    color: #aaa;
}

/* ================= SETTINGS PANEL - MOBILE ================= */
.settings-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #0b0b0b;
    z-index: 1002;
    padding: 20px;
    overflow-y: auto;
    transition: .4s;
    border-right: 1px solid #333;
}

.settings-panel.active {
    left: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.settings-header h3 {
    font-size: 1.4rem;
}

.settings-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-option h4 {
    margin-bottom: 12px;
    color: var(--red);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-themes {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn.active {
    border-color: white;
    transform: scale(1.1);
}

.theme-red { background: #e10600; }
.theme-blue { background: #0066cc; }
.theme-green { background: #00a651; }
.theme-orange { background: #ff6b00; }
.theme-purple { background: #8e44ad; }

.language-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: white;
    font-size: 1rem;
    margin-top: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--red);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* ================= OVERLAY ================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* ================= FOOTER - MOBILE ================= */
footer {
    background:#000;
    padding:40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--red);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    font-size: 1.3rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--red);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #aaa;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--red);
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ================= RESPONSIVE BREAKPOINTS ================= */

/* Small devices (tablets, 600px and up) */
@media (min-width: 600px) {
    .logo-text p {
        display: block;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .programs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    nav a {
        margin: 0 8px;
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    .hero-slider {
        height: 75vh;
    }
    
    .slide-content {
        max-width: 80%;
        padding: 30px;
    }
    
    .slide-content h1 {
        font-size: 2.8rem;
    }
    
    .programs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard {
        flex-direction: row;
    }
    
    .sidebar {
        width: 250px;
        order: 1;
    }
    
    .dashboard-content {
        flex: 1;
        order: 2;
    }
    
    .profile-header {
        flex-direction: row;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cart-modal {
        width: 400px;
    }
    
    .settings-panel {
        width: 380px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero-slider {
        height: 85vh;
        min-height: 600px;
    }
    
    .slide-content {
        max-width: 650px;
        margin-left: 60px;
        text-align: left;
    }
    
    .slide-content h1 {
        font-size: 3.5rem;
    }
    
    .programs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .schedule-table th, 
    .schedule-table td {
        padding: 15px;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        width: 92%;
    }
    
    .programs {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .card-body h3 {
        font-size: 1.4rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Hide menu toggle on desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    nav {
        display: flex !important;
    }
}

/* Show menu toggle on mobile */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    nav a {
        margin: 5px 0;
        padding: 12px 15px;
        font-size: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-actions {
        gap: 10px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .card img {
        height: 180px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= ADDITIONAL STYLES FOR PHP FORMS ================= */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #333;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(225,6,0,0.2);
}

.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-danger {
    background: rgba(225,6,0,0.2);
    border: 1px solid var(--red);
    color: var(--red);
}

.alert-success {
    background: rgba(0, 166, 81, 0.2);
    border: 1px solid #00cc66;
    color: #00cc66;
}

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

.mt-3 {
    margin-top: 15px;
}

.mb-3 {
    margin-bottom: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-8 {
    width: 100%;
    padding: 0 15px;
}

.col-md-4 {
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .col-md-8 {
        width: 66.666%;
    }
    .col-md-4 {
        width: 33.333%;
    }
}

.table-responsive {
    overflow-x: auto;
}

/* إضافات للصفحات الجديدة */
.order-success {
    text-align: center;
    padding: 40px;
}

.order-success i {
    font-size: 5rem;
    color: #00cc66;
    margin-bottom: 20px;
}
/* ================= TESTIMONIALS ================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #333;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
}

.rating i {
    color: #666;
    margin-left: 2px;
}

.rating i.active {
    color: #ffc107;
}

.testimonial-comment {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    font-style: italic;
}

/* ================= BEFORE & AFTER ================= */
.ba-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.ba-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #333;
    transition: var(--transition);
}

.ba-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.ba-images {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.ba-image {
    position: relative;
    flex: 1;
}

.ba-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.ba-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--red);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.ba-info {
    padding: 15px;
    border-top: 1px solid #333;
}

.ba-info h4 {
    margin-bottom: 5px;
}

.ba-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 5px 0;
}

/* ================= ARTICLES GRID ================= */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.article-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #333;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-body {
    padding: 20px;
}

.article-body h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.article-body h3 a {
    color: var(--white);
    transition: var(--transition);
}

.article-body h3 a:hover {
    color: var(--red);
}

.article-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ================= BOOKS GRID ================= */
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.book-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #333;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.book-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-body h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.book-author {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.book-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.book-price {
    margin-bottom: 15px;
}

.free-badge {
    background: #00cc66;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 600px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ba-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ================= LIVE CLASSES ================= */
.classes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.class-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid #333;
    overflow: hidden;
    transition: var(--transition);
}

.class-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.class-header {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.class-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.class-badge.free {
    background: #00cc66;
    color: white;
}

.class-badge.paid {
    background: var(--red);
    color: white;
}

.class-body {
    padding: 15px;
}

.class-body p {
    margin: 8px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.class-body i {
    color: var(--red);
    width: 20px;
}

.class-seats {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #ddd;
}

@media (min-width: 600px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .classes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}