/*
Theme Name: Apex Suite
Theme URI: https://apexsuite.site
Author: Apex Team
Author URI: https://apexsuite.site
Description: القالب الرسمي الفخم لأداة Apex Suite للمونتاج والذكاء الاصطناعي.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: apexsuite
*/

/* ============================================
   VARIABLES & GLOBAL RESET
   ============================================ */
:root {
    --bg-dark: #0a0809;
    --bg-panel: #141012;
    --bg-card: #1a1618;
    --text-primary: #ffffff;
    --text-secondary: #8a929a;
    --text-muted: #5a6068;
    --accent-red: #E84545;
    --accent-dark-red: #c93030;
    --accent-glow: rgba(232, 69, 69, 0.4);
    --border-color: #2a2226;
    --glass-bg: rgba(20, 16, 18, 0.75);
    --glass-border: rgba(42, 34, 38, 0.6);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
}

.loader-logo span {
    color: var(--accent-red);
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress {
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    animation: loaderAnim 1s ease-in-out;
}

@keyframes loaderAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.section-title p {
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: rgba(232, 69, 69, 0.1);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(232, 69, 69, 0.2);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 8, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a span {
    color: var(--accent-red);
}

.logo-icon {
    color: var(--accent-red);
    font-size: 1.2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover {
    color: #fff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-login-btn {
    background: rgba(232, 69, 69, 0.12);
    padding: 8px 22px !important;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(232, 69, 69, 0.3) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-login-btn:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
    border-color: var(--accent-red) !important;
}

.nav-login-btn::after {
    display: none !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 9, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 25px 0;
}

.mobile-nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-nav-list li a:hover {
    color: var(--accent-red);
}

.mobile-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-red);
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(232, 69, 69, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(232, 69, 69, 0.06) 0%, transparent 40%);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-red);
    opacity: 0.15;
    animation: floatParticle 12s infinite ease-in-out;
}

.p1 { width: 6px; height: 6px; top: 20%; left: 15%; animation-delay: 0s; }
.p2 { width: 4px; height: 4px; top: 60%; left: 80%; animation-delay: 2s; }
.p3 { width: 8px; height: 8px; top: 40%; left: 50%; animation-delay: 4s; }
.p4 { width: 3px; height: 3px; top: 80%; left: 25%; animation-delay: 1s; }
.p5 { width: 5px; height: 5px; top: 30%; left: 70%; animation-delay: 3s; }
.p6 { width: 7px; height: 7px; top: 70%; left: 40%; animation-delay: 5s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(15px); }
    50% { transform: translateY(-15px) translateX(-10px); }
    75% { transform: translateY(-40px) translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 69, 69, 0.1);
    border: 1px solid rgba(232, 69, 69, 0.25);
    color: var(--accent-red);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 4.2rem;
    margin-bottom: 24px;
    line-height: 1.25;
    font-weight: 900;
    background: linear-gradient(160deg, #fff 30%, #6a6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    -webkit-text-fill-color: var(--accent-red);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-trust i {
    color: var(--accent-red);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-dark-red) 100%);
    color: #fff;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glow {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-primary);
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: #444;
    color: #fff;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-xl {
    padding: 20px 50px;
    font-size: 1.2rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-panel);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 8px;
    direction: ltr;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 69, 69, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(232, 69, 69, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.6rem;
    color: var(--accent-red);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: var(--accent-red);
    color: #fff;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.feature-tag {
    display: inline-block;
    background: rgba(232, 69, 69, 0.08);
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(232, 69, 69, 0.15);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 120px 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
}

.step-connector {
    display: none; /* For larger screens, we use a visual connector */
}

.step-box {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 35px 30px 35px;
    transition: var(--transition);
}

.step-box:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 69, 69, 0.3);
}

/* Wrapper for the numbered circle above the card */
.step-number-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--accent-glow);
    flex-shrink: 0;
}

.step-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: 120px 0;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 50px 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transition: var(--transition);
}

.pricing-card.highlighted {
    border-color: var(--accent-red);
    box-shadow: 0 15px 50px rgba(232, 69, 69, 0.12);
    transform: scale(1.04);
    background: linear-gradient(180deg, rgba(232,69,69,0.05) 0%, var(--glass-bg) 30%);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.highlighted:hover {
    transform: scale(1.04) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    color: white;
    padding: 6px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 10px;
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.pricing-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card .price {
    text-align: center;
    margin-bottom: 35px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.pricing-card .currency {
    font-size: 1.8rem;
    vertical-align: top;
    color: var(--accent-red);
    font-weight: 700;
}

.pricing-card .amount {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.pricing-card .period {
    display: block;
    color: var(--text-muted);
    margin-top: 5px;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 35px;
}

.pricing-features li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--accent-red);
    width: 18px;
    text-align: center;
}

.pricing-features li.disabled {
    opacity: 0.35;
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

.pricing-guarantee {
    text-align: center;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-guarantee i {
    color: var(--accent-red);
    font-size: 1.3rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 120px 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 69, 69, 0.3);
}

.testimonial-stars {
    margin-bottom: 18px;
    color: #FFD700;
    font-size: 0.9rem;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(232, 69, 69, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 120px 0;
}

.faq-container {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(232, 69, 69, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-red);
}

.faq-icon {
    color: var(--accent-red);
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at center, rgba(232, 69, 69, 0.1) 0%, transparent 60%),
        var(--bg-panel);
    border: 1px solid var(--border-color);
}

.cta-box h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-box h2 span {
    color: var(--accent-red);
}

.cta-box p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
    background: var(--bg-panel);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-brand .footer-logo span {
    color: var(--accent-red);
}

.footer-desc {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links-group h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 10px;
}

.footer-links-group ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links-group ul li a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 16px;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce-page .site-main {
    padding-top: 120px;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    background: var(--glass-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.woocommerce button.button.alt,
.woocommerce a.button.alt {
    background-color: var(--accent-red) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    transition: var(--transition);
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: var(--accent-dark-red) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title h2,
    .cta-box h2 {
        font-size: 2rem;
    }
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .main-navigation {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .pricing-card.highlighted {
        transform: scale(1);
    }
    .pricing-card.highlighted:hover {
        transform: translateY(-8px);
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-trust {
        flex-direction: column;
        align-items: center;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   AUTH PAGES (LOGIN / REGISTER)
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(232,69,69,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(232,69,69,0.05) 0%, transparent 40%);
}

.auth-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-brand a {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-brand a i {
    color: var(--accent-red);
}

.auth-brand a span {
    color: var(--accent-red);
}

/* Trial Hero Banner (register page only) */
.free-trial-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(232,69,69,0.12) 0%, rgba(232,69,69,0.05) 100%);
    border: 1px solid rgba(232,69,69,0.3);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.trial-hero-icon {
    font-size: 2.2rem;
    color: var(--accent-red);
    flex-shrink: 0;
}

.free-trial-hero h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.free-trial-hero h3 span {
    color: var(--accent-red);
}

.free-trial-hero p {
    font-size: 0.85rem;
    margin: 0;
}

/* Auth Card */
.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-card-header p {
    font-size: 0.95rem;
}

/* Trial Banner (login page) */
.trial-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(232,69,69,0.08);
    border: 1px solid rgba(232,69,69,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.trial-banner i {
    color: var(--accent-red);
    font-size: 1rem;
    flex-shrink: 0;
}

.trial-banner a {
    color: var(--accent-red);
    font-weight: 700;
    text-decoration: none;
}

.trial-banner a:hover {
    text-decoration: underline;
}

/* Messages */
.auth-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-msg i {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-msg a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.auth-msg-error {
    background: rgba(232,69,69,0.1);
    border: 1px solid rgba(232,69,69,0.3);
    color: #ff8a8a;
}

.auth-msg-success {
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.3);
    color: #81c784;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--accent-red);
    font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-red);
    background: rgba(232,69,69,0.04);
    box-shadow: 0 0 0 3px rgba(232,69,69,0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Password input with toggle */
.input-password-wrap {
    position: relative;
}

.input-password-wrap input {
    padding-left: 50px;
}

.toggle-password {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Password Strength */
.password-strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Remember Me / Terms checkbox */
.remember-me,
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 20px;
}

.remember-me input,
.terms-check input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--accent-red);
    margin-top: 2px;
}

.terms-check a {
    color: var(--accent-red);
    text-decoration: none;
}

.terms-check a:hover { text-decoration: underline; }

/* Between row */
.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.88rem;
}

.forgot-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.forgot-link:hover { opacity: 0.8; }

/* Trial Info Box */
.trial-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 24px;
}

.trial-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trial-info-item i {
    color: #4caf50;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Auth Buttons */
.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 10px;
}

.btn-auth.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-auth.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-auth.btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.btn-auth.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-auth.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Auth Footer Links */
.auth-footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 8px;
}

.auth-footer-links a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer-links a:hover { text-decoration: underline; }

/* Plan Status Card (after login) */
.plan-status-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
}

.plan-status-card .status-icon {
    font-size: 3.5rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.plan-status-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-badge {
    margin-top: 20px;
}

.badge-pro, .badge-trial, .badge-free {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.badge-pro {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.badge-trial {
    background: rgba(232,180,69,0.15);
    border: 1px solid rgba(232,180,69,0.4);
    color: #e8c845;
}

.badge-free {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Success Card (after register) */
.success-card {
    background: var(--glass-bg);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-card h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.success-card > p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Trial Countdown */
.trial-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(232,180,69,0.08);
    border: 1px solid rgba(232,180,69,0.25);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 0.9rem;
    color: #e8c845;
    margin-bottom: 25px;
}

.trial-countdown strong {
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    display: inline-block;
}

/* Next Steps */
.next-steps {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: right;
}

.next-steps h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-steps h4 i { color: var(--accent-red); }

.next-steps ol {
    padding-right: 20px;
    margin: 0;
}

.next-steps ol li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.next-steps ol li strong { color: #fff; }

/* Auth page responsive */
@media (max-width: 580px) {
    .auth-card,
    .success-card,
    .plan-status-card {
        padding: 30px 22px;
    }
    .trial-info-box {
        grid-template-columns: 1fr;
    }
    .free-trial-hero {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   WooCommerce My Account Styling
   ========================================================================== */

/* Container */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    background: #110e10;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        padding: 20px;
    }
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    width: 25%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        width: 100%;
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #1a1618;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(232, 69, 69, 0.1);
    color: var(--accent);
    padding-right: 25px; /* RTL visual shift */
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--accent);
    color: #fff;
}

/* Main Content Area */
.woocommerce-MyAccount-content {
    width: 75%;
    background: #1a1618;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-content {
        width: 100%;
        padding: 20px;
    }
}

/* Typography & Links in Content */
.woocommerce-MyAccount-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.woocommerce-MyAccount-content a:hover {
    color: #ff5c5c;
    text-decoration: underline;
}

/* Headings inside content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

/* Tables (Orders, Downloads) */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #110e10;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.woocommerce table.shop_table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Buttons in WooCommerce */
.woocommerce .button,
.woocommerce-MyAccount-content .button {
    background: linear-gradient(135deg, var(--accent), #c93030);
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce .button:hover,
.woocommerce-MyAccount-content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 69, 69, 0.4);
    background: linear-gradient(135deg, #ff5c5c, var(--accent));
}

/* Forms (Edit Address, Account Details) */
.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 600;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    background: #110e10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Messages (Notices) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #1a1618;
    border-right: 4px solid var(--accent); /* RTL uses right border */
    border-left: none;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: left; /* RTL button float */
}

/* Addresses display */
.woocommerce-Address {
    background: #110e10;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}
.woocommerce-Address-title h3 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* ==========================================================================
   WooCommerce Shop & Widgets Styling
   ========================================================================== */

/* Fix default button colors in WooCommerce (like Browse Products in empty orders) */
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce button.button,
.woocommerce-page button.button,
.woocommerce input.button,
.woocommerce-page input.button,
.woocommerce #respond input#submit,
.woocommerce-page #respond input#submit,
.woocommerce #content input.button,
.woocommerce-page #content input.button {
    background: linear-gradient(135deg, var(--accent), #c93030) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 10px;
}

.woocommerce a.button:hover,
.woocommerce-page a.button:hover,
.woocommerce button.button:hover,
.woocommerce-page button.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(232, 69, 69, 0.4) !important;
    background: linear-gradient(135deg, #ff5c5c, var(--accent)) !important;
}

/* Fix Info box icon blue square */
.woocommerce-info::before {
    color: var(--accent) !important;
}

/* Shop Layout / Sidebar Widgets (e.g. at /shop/) */
#secondary.widget-area {
    background: #110e10;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#secondary.widget-area .widget {
    margin-bottom: 30px;
}

#secondary.widget-area .widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

#secondary.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#secondary.widget-area ul li {
    margin-bottom: 10px;
}

#secondary.widget-area ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

#secondary.widget-area ul li a:hover {
    color: var(--accent);
}

/* WooCommerce Default Sorting & Results Count */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    color: var(--text-gray);
    float: right; /* RTL */
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    float: left; /* RTL */
    margin-bottom: 30px;
}

.woocommerce .woocommerce-ordering select {
    background: #110e10;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    outline: none;
}

/* Remove default blue links globally in WooCommerce empty states */
p.cart-empty, p.return-to-shop {
    color: var(--text-gray);
}

/* ==========================================================================
   SaaS Dashboard My Account Page
   ========================================================================== */

/* Hide default header and footer on this page */
body.apex-dashboard-active .site-header,
body.apex-dashboard-active .site-footer {
    display: none !important;
}

body.apex-dashboard-active {
    background-color: #0c0a0b;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Make WooCommerce container full screen flex */
body.apex-dashboard-active .woocommerce {
    display: flex;
    min-height: 100vh;
    flex-direction: row; 
}

/* Sidebar Navigation */
body.apex-dashboard-active .woocommerce-MyAccount-navigation {
    width: 280px;
    background: #110e10;
    border-left: 1px solid rgba(255, 255, 255, 0.05); /* RTL right side border */
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    float: none; /* override Woo defaults */
    position: fixed;
    top: 0;
    right: 0; /* RTL */
    bottom: 0;
    z-index: 1000;
}

/* Content Area */
body.apex-dashboard-active .woocommerce-MyAccount-content {
    flex-grow: 1;
    margin-right: 280px; /* RTL margin to clear fixed sidebar */
    padding: 50px 80px;
    background: #0c0a0b;
    width: auto;
    float: none; /* override Woo defaults */
    min-height: 100vh;
}

/* Sidebar Logo */
.apex-dashboard-logo {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    text-align: center;
}

.apex-dashboard-logo img {
    max-width: 180px;
    height: auto;
}

/* Sidebar Menu */
body.apex-dashboard-active .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0 15px;
    margin: 0;
    flex-grow: 1;
}

body.apex-dashboard-active .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
    border: none;
    padding: 0;
}

body.apex-dashboard-active .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.apex-dashboard-active .woocommerce-MyAccount-navigation ul li a i {
    width: 24px;
    margin-left: 12px; /* RTL margin */
    font-size: 18px;
    opacity: 0.8;
}

body.apex-dashboard-active .woocommerce-MyAccount-navigation ul li:hover a {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

body.apex-dashboard-active .woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(232, 69, 69, 0.1);
    color: var(--accent);
    border-right: 3px solid var(--accent); /* RTL active border */
}

body.apex-dashboard-active .woocommerce-MyAccount-navigation ul li.is-active a i {
    color: var(--accent);
    opacity: 1;
}

/* Sidebar Footer (User Info) */
.apex-dashboard-user-info {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.apex-dashboard-user-info i {
    margin-left: 10px; /* RTL */
    font-size: 20px;
}

/* Dashboard Content Styling */
body.apex-dashboard-active .woocommerce-MyAccount-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
    border: none;
}

body.apex-dashboard-active .woocommerce-MyAccount-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 991px) {
    body.apex-dashboard-active .woocommerce {
        flex-direction: column;
    }
    body.apex-dashboard-active .woocommerce-MyAccount-navigation {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    body.apex-dashboard-active .woocommerce-MyAccount-content {
        margin-right: 0;
        padding: 30px 20px;
    }
}
