/* ================= VARIABLES ================= */
:root {
    --footer-bg: #0f172a;
    --footer-dark: #020617;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --primary: #4f46e5;
    --accent: #6366f1;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* ================= CONTAINER ================= */
.footer-container {
    max-width: 1250px; margin: 0 auto; padding: 0 25px;
}

/* ================= 1. NEWSLETTER ================= */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 60px 0; position: relative; overflow: hidden;
}
.newsletter-wrapper {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}
.news-text h3 {
    margin: 0 0 10px; color: white; font-size: 1.8rem; font-weight: 700;
}
.news-text p { margin: 0; color: rgba(255,255,255,0.9); font-size: 1.1rem; }

.news-form {
    display: flex; background: white; padding: 5px; border-radius: 50px;
    width: 100%; max-width: 500px; box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.news-form input {
    border: none; outline: none; padding: 15px 25px; flex: 1; border-radius: 50px; font-size: 1rem;
}
.btn-subscribe {
    background: var(--footer-dark); color: white; border: none; padding: 12px 35px;
    border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-subscribe:hover { background: black; transform: scale(1.05); }

/* ================= 2. MAIN FOOTER ================= */
.main-footer {
    background: var(--footer-bg); padding: 80px 0 50px; color: var(--text-gray);
    border-bottom: 1px solid var(--border-color); font-size: 0.95rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px;
}

/* Widgets */
.f-widget-title {
    color: var(--text-white); font-size: 1.3rem; font-weight: 700; margin-bottom: 25px;
    position: relative; display: inline-block;
}
.f-widget-title::after {
    content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px;
    background: var(--primary); border-radius: 2px;
}

/* Brand */
.footer-logo img { height: 45px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.brand-desc { line-height: 1.7; margin-bottom: 25px; opacity: 0.9; }
.contact-list { list-style: none; padding: 0; }
.contact-list li {
    display: flex; gap: 15px; margin-bottom: 15px; align-items: center; transition: 0.3s;
}
.contact-list li:hover { color: var(--text-white); transform: translateX(5px); }
.contact-list i { color: var(--primary); font-size: 1.1rem; }

/* Links */
.f-links { list-style: none; padding: 0; }
.f-links li { margin-bottom: 12px; }
.f-links a {
    color: var(--text-gray); text-decoration: none; transition: 0.3s; display: flex; align-items: center;
}
.f-links a::before {
    content: '›'; font-size: 1.5rem; margin-right: 8px; color: var(--primary); line-height: 0; opacity: 0; transition: 0.3s;
}
.f-links a:hover { color: var(--text-white); padding-left: 5px; }
.f-links a:hover::before { opacity: 1; margin-right: 12px; }

/* Payments & Badges */
.payment-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.pay-card {
    background: white; width: 60px; height: 35px; border-radius: 6px; display: flex;
    align-items: center; justify-content: center; padding: 5px; transition: 0.3s;
}
.pay-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,255,255,0.1); }
.pay-card img { max-width: 100%; max-height: 100%; }

.app-btn {
    display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 10px;
    color: white; text-decoration: none; transition: 0.3s; margin-top: 10px;
}
.app-btn:hover { background: var(--primary); border-color: var(--primary); }
.app-btn i { font-size: 1.8rem; }
.app-btn div { display: flex; flex-direction: column; line-height: 1.2; }
.app-btn small { font-size: 0.7rem; opacity: 0.8; }
.app-btn span { font-weight: bold; font-size: 1rem; }

.award-badges { display: flex; gap: 15px; margin-top: 25px; }
.award-badges img { height: 40px; opacity: 0.7; transition: 0.3s; }
.award-badges img:hover { opacity: 1; }

/* ================= 3. FOOTER BOTTOM ================= */
.footer-bottom { background: var(--footer-dark); padding: 25px 0; border-top: 1px solid var(--border-color); }
.bottom-wrapper {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.bottom-links { display: flex; gap: 25px; }
.bottom-links a { color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 0.9rem; }
.bottom-links a:hover { color: var(--primary); }

/* Social Icons */
.social-icons { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; background: rgba(255,255,255,0.05); transition: 0.3s; text-decoration: none;
}
.social-btn:hover { transform: translateY(-5px) rotate(360deg); }
.facebook:hover { background: #3b5998; }
.twitter:hover { background: #1da1f2; }
.linkedin:hover { background: #0077b5; }
.youtube:hover { background: #ff0000; }

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary);
    color: white; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--accent); transform: translateY(-5px); }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .newsletter-wrapper { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .f-widget-title::after { left: 50%; transform: translateX(-50%); }
    .contact-list li { justify-content: center; }
    .bottom-wrapper { flex-direction: column; text-align: center; }
    .payment-grid, .award-badges, .contact-list li { justify-content: center; }
}