/* Footer Styles */

.footer {
    background: linear-gradient(135deg, 
        rgba(2, 6, 23, 0.98) 0%,
        rgba(2, 6, 23, 1) 100%);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--sky), 
        var(--electric), 
        transparent);
}

/* Footer Top */
.footer-top {
    padding: 5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.footer-top .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-logo i {
    color: var(--sky);
    font-size: 1.5rem;
}

.logo-point {
    color: var(--electric);
}

.footer-tagline {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.link-column h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.link-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 0.75rem;
}

.link-column a {
    color: var(--gray);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-column a:hover {
    color: var(--sky);
    padding-left: 5px;
}

.link-column a::before {
    content: '›';
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.link-column a:hover::before {
    opacity: 1;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.newsletter-content {
    flex: 1;
}

.newsletter h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.newsletter p {
    color: var(--gray);
    line-height: 1.7;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--light);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.form-note {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    color: var(--gray);
    font-size: 0.95rem;
}

.footer-extra {
    display: flex;
    gap: 2rem;
}

.footer-extra span {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-extra span::before {
    content: '✓';
    color: var(--sky);
    font-weight: bold;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.payment-methods i {
    font-size: 1.5rem;
    color: var(--gray);
    transition: color var(--transition-fast);
}

.payment-methods i:hover {
    color: var(--sky);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-normal);
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--dark);
    animation: pulse 2s infinite;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.chat-widget.active .chat-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    color: var(--light);
    font-size: 1.1rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.chat-close:hover {
    color: var(--sky);
}

.chat-body {
    padding: 1.5rem;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--sky);
    border-radius: 3px;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--light);
    font-size: 0.95rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--sky);
}

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    animation: modalIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    padding: 3rem 2rem 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .footer-top .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .newsletter .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 3rem 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-extra {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chat-widget {
        right: 2rem;
        bottom: 6rem;
    }
    
    .chat-container {
        width: 300px;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-brand {
        max-width: 100%;
    }
    
    .newsletter-form input {
        padding-right: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
    }
    
    .chat-container {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
    
    .payment-methods {
        justify-content: center;
        flex-wrap: wrap;
    }
}