/* ===== RESPONSIVE DESIGN ===== */

/* ===== LARGE SCREENS (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 60px;
    }
    
    .hero-title {
        font-size: 4rem;
        line-height: 1.3;
        margin-bottom: 35px;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        line-height: 1.6;
        margin-top: 50px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 140px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .container-full {
        padding: 0 80px;
    }
    
    .feature-3d-item {
        gap: 100px;
        padding: 0 60px;
    }
    
    .feature-img-3d {
        max-width: 700px;
    }
    
    .feature-3d-content h3 {
        font-size: 3.2rem;
    }
    
    .feature-3d-content p {
        font-size: 1.4rem;
    }
    
    .discord-icon {
        width: 250px;
        height: 250px;
        font-size: 100px;
    }
    
    .pulse-ring {
        width: 400px;
        height: 400px;
    }
    
    .pulse-ring-2 {
        width: 500px;
        height: 500px;
    }
}

/* ===== DESKTOP (1200px - 1399px) ===== */
@media (max-width: 1399px) {
    .hero-container {
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ===== LAPTOP (992px - 1199px) ===== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.3;
        margin-bottom: 30px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-top: 45px;
    }
    
    .discord-icon {
        width: 180px;
        height: 180px;
        font-size: 70px;
    }
    
    .pulse-ring {
        width: 280px;
        height: 280px;
    }
    
    .pulse-ring-2 {
        width: 380px;
        height: 380px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .command-nav {
        gap: 8px;
    }
    
    .command-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .command-usage {
        align-self: flex-end;
        min-width: auto;
        width: 100%;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
    .features-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .music-player-card {
        position: relative;
        top: 0;
        order: -1;
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .feature-card {
        padding: 35px 30px;
        border-radius: 25px;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 40px;
    }
    
    .emoji-icon {
        font-size: 45px;
    }
    
    .feature-card h3 {
        font-size: 1.7rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
    
    .container-full {
        padding: 0 50px;
    }
    
    .feature-3d-item {
        gap: 60px;
        padding: 0 30px;
        flex-direction: column !important;
        text-align: center;
        min-height: auto;
    }
    
    .feature-3d-image {
        width: 100%;
        max-width: 100%;
        flex: 1;
    }
    
    .feature-img-3d {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-3d-content {
        text-align: center;
        max-width: 100%;
    }
    
    .feature-3d-content h3 {
        font-size: 2.2rem;
    }
    
    .feature-3d-content p {
        font-size: 1.1rem;
    }
    
    .setup-img {
        max-width: 450px;
        margin: 0 auto;
        transform: rotateY(0deg) rotateX(0deg) translateZ(30px) !important;
    }
    
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-content {
        text-align: center;
    }
    
    body[dir="rtl"] .feature-3d-content {
        text-align: center;
    }
    
    body[dir="rtl"] .step-item {
        flex-direction: column;
    }
    
    body[dir="rtl"] .step-content {
        text-align: center;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .hero {
        min-height: 60vh;
        padding: 30px 0 40px 0;
    }
    
    .hero-title {
        font-size: 3.2rem;
        line-height: 1.3;
        margin-bottom: 25px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.6;
        max-width: 500px;
        margin-top: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .discord-icon {
        width: 160px;
        height: 160px;
        font-size: 60px;
    }
    
    .pulse-ring {
        width: 250px;
        height: 250px;
    }
    
    .pulse-ring-2 {
        width: 350px;
        height: 350px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .feature-card {
        padding: 32px 25px;
        border-radius: 22px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 38px;
    }
    
    .emoji-icon {
        font-size: 42px;
    }
    
    .feature-card h3 {
        font-size: 1.6rem;
    }
    
    .supported-platforms {
        padding: 90px 0;
    }
    
    .platforms-grid {
        gap: 40px;
    }
    
    .platform-card {
        min-width: 130px;
        padding: 38px 33px;
    }
    
    .platform-card i {
        font-size: 62px;
    }
    
    .platform-card span {
        font-size: 17px;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .premium-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .command-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 30px 0 40px;
    }
    
    .nav-tab {
        width: 200px;
        justify-content: center;
    }
    
    .command-item {
        padding: 15px 20px;
    }
    
    .command-name {
        font-size: 1.1rem;
    }
    
    .command-desc {
        font-size: 0.9rem;
    }
    
    .command-usage {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .server-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .server-card {
        min-width: 180px;
        margin: 10px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

/* ===== MOBILE LARGE (576px - 767px) ===== */
@media (max-width: 767px) {
    .features-layout {
        padding: 0 10px;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 35px;
    }
    
    .emoji-icon {
        font-size: 38px;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .container-full {
        padding: 0 30px;
    }
    
    .feature-3d-item {
        gap: 40px;
        padding: 0 20px;
        margin-bottom: 60px;
    }
    
    .feature-img-3d {
        max-width: 400px;
        transform: rotateY(0deg) rotateX(0deg) !important;
        box-shadow: 
            0 20px 60px rgba(139, 92, 246, 0.3),
            0 0 80px rgba(139, 92, 246, 0.2) !important;
    }
    
    .feature-3d-content h3 {
        font-size: 1.8rem;
    }
    
    .feature-3d-content p {
        font-size: 1rem;
    }
    
    .platforms-showcase {
        margin-top: 80px;
        padding: 40px 20px;
    }
    
    .platforms-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }
    
    .platforms-grid-minimal {
        gap: 35px;
    }
    
    .platform-item i {
        font-size: 45px;
    }
    
    .platform-item span {
        font-size: 15px;
    }
    
    .platform-card span {
        font-size: 16px;
    }
    
    .music-player-card {
        padding: 20px;
        width: 100%;
        max-width: 280px;
    }
    
    .music-bars {
        height: 50px;
    }
    
    .bar {
        width: 4px;
    }
    .lang-toggle-btn {
        top: 15px;
        right: 15px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    .add-bot-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-top: 35px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-actions {
        margin-bottom: 40px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 130px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .discord-icon {
        width: 140px;
        height: 140px;
        font-size: 50px;
    }
    
    .pulse-ring {
        width: 220px;
        height: 220px;
    }
    
    .pulse-ring-2 {
        width: 320px;
        height: 320px;
    }
    
    .trusted-servers {
        padding: 30px 0;
    }
    
    .trust-badge {
        padding: 14px 28px;
        font-size: 1rem;
        gap: 12px;
    }
    
    .server-card {
        min-width: 110px;
        max-width: 130px;
        padding: 8px;
    }
    
    
    .features-preview {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .feature-card {
        padding: 25px 18px;
        border-radius: 18px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .emoji-icon {
        font-size: 35px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.92rem;
        line-height: 1.65;
    }
    
    .supported-platforms {
        padding: 60px 0;
    }
    
    .platforms-grid {
        gap: 25px;
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .platform-card {
        min-width: 110px;
        padding: 28px 24px;
    }
    
    .platform-card i {
        font-size: 50px;
    }
    
    .platform-card span {
        font-size: 15px;
    }
    
    .premium-container {
        padding: 0 15px;
    }
    
    .premium-card {
        padding: 25px 20px;
    }
    
    .plan-price {
        margin-bottom: 20px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .plan-features {
        margin-bottom: 25px;
    }
    
    .plan-features li {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .server-list {
        padding: 15px 0;
    }
    
    .server-card {
        min-width: 160px;
        padding: 15px;
    }
    
    .server-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .server-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .server-members {
        font-size: 14px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== MOBILE SMALL (480px - 575px) ===== */
@media (max-width: 575px) {
    .lang-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 13px;
    }
    
    .lang-toggle-btn i {
        font-size: 16px;
    }
    
    .lang-toggle-btn span {
        font-size: 12px;
    }
    
    .nav-container {
        height: 55px;
        padding: 0 8px;
    }
    
    .nav-logo {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 55px;
        height: 55px;
        font-size: 16px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .add-bot-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero {
        padding: 30px 0 25px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .hero-actions {
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 120px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .discord-icon {
        width: 120px;
        height: 120px;
        font-size: 40px;
    }
    
    .pulse-ring {
        width: 180px;
        height: 180px;
    }
    
    .pulse-ring-2 {
        width: 280px;
        height: 280px;
    }
    
    .trusted-servers {
        padding: 25px 0;
    }
    
    .trust-badge {
        padding: 12px 24px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .server-card {
        min-width: 130px;
        max-width: 150px;
        padding: 10px;
    }
    
    
    .features-preview {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .features-grid {
        padding: 0 10px;
    }
    
    .feature-card {
        padding: 22px 16px;
        border-radius: 16px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .emoji-icon {
        font-size: 32px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .supported-platforms {
        padding: 50px 0;
    }
    
    .platforms-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .platform-card {
        min-width: 100px;
        padding: 24px 20px;
    }
    
    .platform-card i {
        font-size: 45px;
    }
    
    .platform-card span {
        font-size: 14px;
    }
    
    .premium-container {
        padding: 0 10px;
    }
    
    .premium-card {
        padding: 20px 15px;
    }
    
    .plan-price {
        margin-bottom: 15px;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .plan-features {
        margin-bottom: 20px;
    }
    
    .plan-features li {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .server-list {
        padding: 10px 0;
    }
    
    .server-card {
        min-width: 140px;
        padding: 12px;
    }
    
    .server-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .server-name {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .server-members {
        font-size: 11px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ===== MOBILE EXTRA SMALL (320px - 479px) ===== */
@media (max-width: 479px) {
    .lang-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    
    .lang-toggle-btn i {
        font-size: 14px;
    }
    
    .lang-toggle-btn span {
        font-size: 10px;
    }
    
    .nav-container {
        height: 50px;
        padding: 0 5px;
    }
    
    .nav-logo {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .login-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .add-bot-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .hero {
        padding: 25px 0 20px;
    }
    
    .hero-container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .hero-actions {
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 100px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .discord-icon {
        width: 100px;
        height: 100px;
        font-size: 35px;
    }
    
    .pulse-ring {
        width: 150px;
        height: 150px;
    }
    
    .pulse-ring-2 {
        width: 250px;
        height: 250px;
    }
    
    .trusted-servers {
        padding: 20px 0;
    }
    
    .trust-badge {
        padding: 10px 20px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .server-card {
        min-width: 100px;
        max-width: 120px;
        padding: 6px;
    }
    
    
    .features-preview {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }
    
    .features-grid {
        padding: 0 8px;
    }
    
    .feature-card {
        padding: 18px 14px;
        border-radius: 14px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .emoji-icon {
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        font-size: 0.87rem;
        line-height: 1.55;
    }
    
    .supported-platforms {
        padding: 40px 0;
    }
    
    .platforms-grid {
        gap: 15px;
        padding: 0 8px;
    }
    
    .platform-card {
        min-width: 90px;
        padding: 20px 16px;
    }
    
    .platform-card i {
        font-size: 40px;
    }
    
    .platform-card span {
        font-size: 13px;
    }
    
    .premium-container {
        padding: 0 8px;
    }
    
    /* تحسينات للأيقونة الموسيقية في Hero على الهواتف */
    .hero-music-icon {
        width: 320px;
        height: 320px;
        margin: 0 auto 30px;
    }
    
    .hero-music-icon-inner {
        width: 220px;
        height: 220px;
    }
    
    .hero-music-icon-inner .music-symbol {
        font-size: 80px;
    }
    
    .hero-volume-bars {
        bottom: -40px;
        gap: 6px;
    }
    
    .hero-volume-bars .volume-bar {
        width: 5px;
    }
    
    .hero-volume-bars .volume-bar:nth-child(1) { height: 12px; }
    .hero-volume-bars .volume-bar:nth-child(2) { height: 20px; }
    .hero-volume-bars .volume-bar:nth-child(3) { height: 28px; }
    .hero-volume-bars .volume-bar:nth-child(4) { height: 35px; }
    .hero-volume-bars .volume-bar:nth-child(5) { height: 28px; }
    .hero-volume-bars .volume-bar:nth-child(6) { height: 20px; }
    .hero-volume-bars .volume-bar:nth-child(7) { height: 12px; }
        .hero-volume-bars .volume-bar:nth-child(8) { height: 8px; }
        
        /* تحسينات للنغمات الموسيقية على الهواتف */
        .music-note {
            font-size: 14px;
        }
        
    .hero-music-icon:hover .music-note {
        animation-duration: 1.5s;
    }
    
    /* تحسينات للأزرار على الهواتف */
    .btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 110px;
        letter-spacing: 1px;
    }
    
    /* تحسينات لشريط التنقل على الهواتف */
    body {
        padding-top: 70px; /* تقليل padding للهواتف */
    }
    
    .navbar {
        padding: 10px 0; /* تقليل padding */
    }
    
    .navbar.scrolled {
        padding: 8px 0; /* تقليل padding عند التمرير */
    }
    
    /* تحسينات لأزرار اللغة على الهواتف */
    .nav-actions {
        gap: 15px;
    }
    
    .lang-toggle-btn {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }
    
    .lang-toggle-btn i {
        font-size: 14px;
    }
    
    .lang-toggle-btn span {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    /* تحسينات لصورة البوت على الهواتف */
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon:hover {
        transform: scale(1.03);
    }
    
    .logo-icon:hover .bot-avatar {
        transform: scale(1.05);
        filter: contrast(1.15) brightness(1.1) saturate(1.15);
    }
    
    .bot-avatar {
        border-width: 1px;
    }
    
    /* تحديث شريط التنقل للهواتف */
    .navbar {
        top: 0;
        width: 100%;
        padding: 8px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar.hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    
    .navbar.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-container {
        height: 50px;
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 18px;
        gap: 8px;
        position: absolute;
        left: 15px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .nav-links {
        gap: 12px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-link {
        font-size: 16px;
        padding: 4px 8px;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 60px;
    }
    
    .lang-toggle-btn {
        width: 52px;
        height: 52px;
        font-size: 13px;
    }
    
    .lang-toggle-btn i {
        font-size: 15px;
    }
    
    .lang-toggle-btn span {
        font-size: 11px;
        font-weight: 600;
    }
    
    .nav-actions {
        gap: 12px;
        margin-left: auto;
        position: absolute;
        right: 15px;
    }
    
    .login-btn {
        order: 2;
    }
    
    .lang-toggle-btn {
        order: 1;
    }
    
    /* RTL للهواتف */
    body[dir="rtl"] .nav-logo {
        position: absolute;
        right: 15px;
        left: auto;
    }
    
    body[dir="rtl"] .nav-actions {
        position: absolute;
        left: 15px;
        right: auto;
    }
    
    body[dir="rtl"] .hero-container {
        direction: rtl;
    }
    
    /* الإنجليزية - النص على اليسار، الصورة على اليمين */
    .hero-content {
        order: 1;
        margin-right: 0;
    }
    
    .hero-music-icon,
    .discord-icon-container {
        order: 2;
    }
    
    /* العربية - النص على اليمين، الصورة على اليسار */
    body[dir="rtl"] .hero-content {
        text-align: right;
        order: 2;
        margin-left: 0;
    }
    
    body[dir="rtl"] .hero-music-icon,
    body[dir="rtl"] .discord-icon-container {
        order: 1;
    }
    
    
    /* تحسينات لأزرار اللغة على الهواتف */
    .lang-toggle-btn {
        width: 52px;
        height: 52px;
        font-size: 13px;
    }
    
    .lang-toggle-btn i {
        font-size: 15px;
    }
    
    .lang-toggle-btn span {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
    .lang-toggle-btn.active {
        transform: translateY(-1px);
    }
    
    /* تحسينات للأيقونة الموسيقية على الهواتف */
    .music-icon-container {
        width: 70px;
        height: 70px;
        margin: 0 auto 15px;
    }
    
    .music-icon {
        width: 50px;
        height: 50px;
    }
    
    .music-symbol {
        font-size: 20px;
    }
    
    .volume-bars {
        bottom: -20px;
    }
    
    .volume-bar {
        width: 3px;
    }
    
    .volume-bar:nth-child(1) { height: 6px; }
    .volume-bar:nth-child(2) { height: 10px; }
    .volume-bar:nth-child(3) { height: 14px; }
    .volume-bar:nth-child(4) { height: 10px; }
    .volume-bar:nth-child(5) { height: 6px; }
    .volume-bar:nth-child(6) { height: 4px; }
    
    /* تحسينات للخوادم المتحركة على الهواتف */
    .server-list {
        padding: 20px 0;
    }
    
    .server-container {
        gap: 20px;
        animation-duration: 25s;
    }
    
    .discord-widget-card {
        width: 300px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 18px;
        min-height: 120px;
    }
    
    .discord-widget-card .server-avatar {
        width: 45px;
        height: 45px;
    }
    
    .discord-widget-card .server-name {
        font-size: 1rem;
        justify-content: center;
    }
    
    .discord-widget-card .server-members {
        font-size: 0.8rem;
    }
    
    .discord-widget-card .server-description {
        font-size: 0.7rem;
    }
    
    .premium-card {
        padding: 15px 12px;
    }
    
    .plan-price {
        margin-bottom: 12px;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .plan-features {
        margin-bottom: 15px;
    }
    
    .plan-features li {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .server-list {
        padding: 8px 0;
    }
    
    .server-card {
        min-width: 120px;
        padding: 10px;
    }
    
    .server-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .server-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .server-members {
        font-size: 10px;
    }
    
    .footer {
        padding: 25px 0 12px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .discord-icon {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    .pulse-ring {
        width: 120px;
        height: 120px;
    }
    
    .pulse-ring-2 {
        width: 160px;
        height: 160px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .discord-icon,
    .feature-icon,
    .server-avatar,
    .logo-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .lang-toggle-btn,
    .hero-actions,
    .scroll-indicator,
    .nav-actions {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        color: #000 !important;
    }
    
    .hero-subtitle {
        color: #333 !important;
    }
    
    .feature-card,
    .premium-card,
    .server-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .links-col {
        width: 100%;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .social-link.discord-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-links-grid {
        gap: 10px;
    }
    
    .footer-section ul li a:hover {
        transform: translateX(0);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #FFFFFF;
        --bg-secondary: #F8F9FA;
        --bg-tertiary: #E9ECEF;
        --text-primary: #212529;
        --text-secondary: #495057;
        --text-muted: #6C757D;
    }
}

/* ===== FOCUS STYLES ===== */
@media (prefers-reduced-motion: no-preference) {
    *:focus {
        outline: 2px solid var(--primary-purple);
        outline-offset: 2px;
    }
    
    button:focus,
    .btn:focus {
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
    }
}
