
:root {
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-surface-2: #2d2d2d;
    --primary: #8a2be2;
    --primary-light: #9d44e6;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --danger: #e53935;
    --success: #43a047;
    --warning: #fb8c00;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --mobile-nav-timing: 0.5s;
}


.mobile-nav-toggle {
    display: none;
}

.mobile-nav {
    display: none;
}


@media screen and (max-width: 768px) {
    
    .main-nav, .nav-buttons {
        display: none;
    }    
    .mobile-nav-toggle {
        display: block;
        cursor: pointer;
        z-index: 99;
        padding: 15px;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px; 
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-primary);
        position: relative;
        transition: background-color 0.2s ease;
    }
    
    .hamburger:before,
    .hamburger:after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--text-primary);
        transition: transform 0.2s ease;
    }
    
    .hamburger:before {
        top: -8px;
    }
    
    .hamburger:after {
        top: 8px;
    }
      
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 999;
        transition: left var(--mobile-nav-timing) cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    .mobile-nav-container {
        width: 85%;
        height: 100%;
        background-color: var(--dark-surface);
        padding: 20px;
        display: flex;
        flex-direction: column;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        padding-left: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 24px;
        padding: 5px;
        cursor: pointer;
    }
    
    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav ul li {
        margin-bottom: 20px;
    }
    
    .mobile-nav ul li a {
        color: var(--text-primary);
        font-size: 18px;
        text-decoration: none;
        display: block;
        padding: 10px 0;
        transition: color 0.3s ease;
    }
    
    .mobile-nav ul li a:hover,
    .mobile-nav ul li a.active {
        color: var(--primary);
    }
    
    .mobile-nav-buttons {
        margin-top: auto;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-nav-buttons button {
        width: 100%;
    }
}


@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px auto;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
        margin-right: 0;
    }
    
    
    .payment-method-selection {
        flex-direction: column;
    }
    
    .payment-option {
        width: 100%;
        margin-bottom: 10px;
    }
}


@media screen and (max-width: 768px) {
    
    .modal {
        align-items: center; 
        padding: 15px; 
        justify-content: center; 
    }
    
    .modal-content {
        width: 95%;
        max-width: 400px; 
        margin: 0 auto; 
        border-radius: var(--border-radius);
        max-height: 85vh;
        overflow-y: auto;
        transform: none !important; 
    }
    
    
    #login-modal .modal-content,
    #register-modal .modal-content {
        animation: fadeInModal 0.3s ease-out forwards;
    }
    
    @keyframes fadeInModal {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    
    .form-group input {
        font-size: 16px; 
        padding: 15px 10px 15px 40px; 
    }
    
    
    .form-input-icon i {
        font-size: 18px;
        left: 12px;
    }
    
    
    .btn-full {
        padding: 15px; 
        font-size: 16px;
    }
    
    
    .remember-me {
        margin: 15px 0;
    }
    
    .remember-me input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    
    .alternative-action {
        padding: 15px 0;
    }
    
    .alternative-action a {
        display: inline-block;
        padding: 5px 0;
    }
    
    
    .h-captcha {
        transform: scale(0.9);
        transform-origin: center;
        margin: 15px auto;
    }
      
    #payment-modal .modal-content {
        padding-bottom: 40px; 
        max-width: 95%; 
        margin: 0 auto; 
        width: 100%;
    }
    
    
    #payment-modal .modal-header h2 {
        font-size: 17px;
        max-width: 75%;
        text-align: center; 
        margin: 0 auto; 
    }
    
    .payment-details {
        padding: 15px;
        text-align: center; 
    }
    
    
    .close-modal {
        font-size: 28px;
        padding: 10px;
    }
}


@media screen and (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
}


@media screen and (max-width: 768px) {
    .stats .container {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 25px;
    }

    
    .card-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .feature-card {
        width: 100%;
        max-width: 320px; 
    }
}


@media screen and (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 25px;
    }
}


@media screen and (max-width: 768px) {
    
    .products {
        padding: 40px 0;
    }
    
    .product-grid {
        grid-gap: 15px;
        padding: 10px 5px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-card img {
        height: 180px; 
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 18px;
    }
    
    
    .product-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-buttons .btn {
        width: 100%;
        text-align: center;
    }
}


@media screen and (max-width: 768px) {
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    p {
        font-size: 14px;
    }    
    .navbar {
        padding: 10px 0;
        position: relative;
    }
    
    .navbar .container {
        display: flex;
        justify-content: center; 
        align-items: center;
        position: relative; 
        min-height: 60px; 
    }
    
    
    .navbar .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    
    .navbar .logo h1 {
        color: var(--primary); 
        margin: 0;
    }
    
    
    .cta {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    
    .notification {
        width: 90%;
        font-size: 14px;
        padding: 12px;
        left: 50%;
        transform: translateX(-50%); 
        margin: 0 auto; 
        text-align: center; 
    }
    
    
    html, body {
        overflow-x: hidden;
    }
    
    
    button, a, 
    input[type="checkbox"] + label,
    input[type="radio"] + label {
        min-height: 44px; 
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    
    .footer {
        position: relative;
    }
}
