/* =====================================================
   FOOTER STYLES
===================================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-1: #f59e0b;
    --gradient-2: #ec4899;
    --gradient-3: #8b5cf6;
    --gradient-4: #3b82f6;
    --brand-gradient: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
    --accent-buy: #10b981;
    --accent-sell: #f87171;
    --accent-primary: #3b82f6;
    --color-gold: #ff9800;
}

/* 1. Main Footer Container */
.footer-market {
    position: relative;
    background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
    color: white;
    font-family: "Inter", sans-serif;
    overflow: hidden;
}

.footer-market::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Size can be as big as you want now without blur */
    width: 80%;
    height: 60%;
    
    /* Point to the new SVG file */
    background-image: url('/static/website/images/brand-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    
    /* Opacity: 0.03 = 3% visible (Very subtle watermark) */
    /* Change to 0.05 or 0.10 if you want it darker */
    opacity: 0.03; 
    
    z-index: 0;
    pointer-events: none;
}

/* Background Pattern */
.footer-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 200, 83, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 200, 83, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* Custom Container for Footer */
.footer-market .container-custom {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* 2. Main Grid Layout */
.footer-main {
    display: grid;
    /* Layout: Brand | Company | Policies | Regulatory */
    grid-template-columns: 1.8fr 0.8fr 0.8fr 1.2fr; 
    gap: 3rem;
    padding: 4rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* 3. Brand Column (Logo & Socials) */
.brand-column {
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand-logo {
    width: 65px;
    height: 50px;
    object-fit: contain;
}

.footer-brand-name-logo {
    width: 200px;
    height: 50px;
    object-fit: contain;
}

/* =========================================
   BRAND NAME GRADIENT
   ========================================= */
.footer-brand-name {
    /* 1. Define the gradient (matches your other brand gradients) */
    background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
    
    /* 2. Clip the background to the text */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* 3. Make the text transparent so the background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 4. Ensure font is thick enough for the gradient to look good */
    font-size: 2.5rem;
    font-weight: 500;
    
    /* Optional: Ensure it displays correctly */
    display: inline-block;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* SEBI Badge */
/* .sebi-footer-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    width: fit-content;
}

.sebi-seal {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.sebi-info {
    display: flex;
    flex-direction: column;
}

.sebi-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
}

.sebi-reg {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00c853;
} */


/* =========================================
   CREDENTIAL CARD STYLES (Boxed Design)
   ========================================= */
.sebi-credential-card {
    /* The Box Look */
    border: 2px solid rgba(255, 255, 255, 0.15); /* Subtle grey border */
    background: rgba(255, 255, 255, 0.03); /* Very faint background fill */
    border-radius: 8px; /* Slightly rounded corners */
    
    /* Spacing & Layout */
    padding: 12px 18px;
    margin-bottom: 2rem;
    display: inline-flex; /* Wraps tightly around the text */
    flex-direction: column;
    width: fit-content; /* Only as wide as the text */
    
    /* Hover Effect */
    transition: all 0.3s ease;
}

/* =========================================
   ANIMATION DEFINITION (Moving Gradient)
   ========================================= */
@keyframes footerBorderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sebi-credential-card:hover {
    /* 1. Hide the physical border */
    border-color: transparent;

    /* 2. Background Layers:
       - LAYER 1 (Top): Vertical Gradient (Lighter Dark -> Darker Dark). 
         This adds a subtle "surface shine" inside the box while still blocking the border bleed.
       - LAYER 2 (Bottom): The Moving Gradient Border.
    */
    background-image: 
        linear-gradient(to bottom, #1f1f27, #0a0a0f), 
        linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    
    /* 3. Clip Logic */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    /* 4. Animation Settings */
    background-size: 100% 100%, 300% 100%;
    animation: footerBorderFlow 3s ease infinite;

    /* 5. Keep clean */
    box-shadow: none; 
    transform: translateY(-2px);
}

.credential-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.credential-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Tablet/Mobile Adjustment */
@media (max-width: 991px) {
    .sebi-credential-card {
        /* Ensure it stays centered on mobile */
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* =========================================
   SOCIAL ICONS (Simple & Cool Hover)
   ========================================= */
.social-links-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Base Social Link Styling */
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    
    /* NEW: A custom 'springy' transition curve for a premium feel */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; 
    position: relative;
}

/* 1. Facebook (Blue) Default */
.social-link[aria-label="Facebook"] {
    background-color: #1877F2;
    color: white;
}

/* .social-link[aria-label="Facebook"] i {
    position: relative;
    top: 0.4rem;
    left: 0.1rem;
    font-size: 1.5rem;
} */

/* 2. Twitter / X (White/Black) Default */
.social-link[aria-label="Twitter"] {
    background-color: #ffffff;
    color: #000000;
}

/* 3. LinkedIn (Corporate Blue) Default */
.social-link[aria-label="LinkedIn"] {
    background-color: #0A66C2;
    color: white;
}

/* 4. Instagram (Gradient) Default */
.social-link[aria-label="Instagram"] {
    background: 
    /* The bottom-left yellow/orange burst fading into transparency */
    radial-gradient(
      circle farthest-corner at 28% 100%, 
      #fcdf8f 0%, 
      #fbd377 10%, 
      #fa8e37 22%, 
      #f73344 35%, 
      transparent 65%
    ), 
    /* The blue to purple base layer sitting underneath */
    linear-gradient(
      145deg, 
      #3051f1 10%, 
      #c92bb7 70%
    );
    color: white;
    font-size: 2rem;
}

/* 5. Telegram (Light Blue) Default */
.social-link[aria-label="Telegram"] {
    background-color: white;
    color: #0088cc;
    font-size: 2.2rem;
}

/* =========================================
   THE "SIMPLE BUT COOL" HOVER
   ========================================= */

/* The sleek elastic lift and slight tilt */
.social-link:hover {
    transform: translateY(-5px) scale(1.05) rotate(5deg); 
}

/* Optional touch: Make alternating icons tilt the opposite way for variety */
.social-link[aria-label="Twitter"]:hover,
.social-link[aria-label="Instagram"]:hover {
    transform: translateY(-5px) scale(1.05) rotate(-5deg); 
}

/* Clean, modern colored glows */
.social-link[aria-label="Facebook"]:hover { box-shadow: 0 8px 16px rgba(24, 119, 242, 0.4); }
.social-link[aria-label="Twitter"]:hover  { box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2); }
.social-link[aria-label="LinkedIn"]:hover { box-shadow: 0 8px 16px rgba(10, 102, 194, 0.4); }
.social-link[aria-label="Instagram"]:hover{ box-shadow: 0 8px 16px rgba(214, 36, 159, 0.4); }
.social-link[aria-label="Telegram"]:hover { box-shadow: 0 8px 16px rgba(0, 136, 204, 0.4); }

/* 4. Link Columns */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gradient-1);
    transform: translateX(4px);
}

/* 5. Contact & Download Column */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-item-footer i {
    color: #8b5cf6; /* Gradient Purple */
    font-size: 1rem;
}

.download-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.store-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-badge-link img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-badge-link:hover img {
    transform: translateY(-2px);
}

/* =========================================
   INTERACTIVE CONTACT LINKS (Footer)
   ========================================= */

/* 1. Base Style for the Link Container */
a.contact-item-footer {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7); /* Default text color */
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* 2. Icon Style (Always Purple) */
a.contact-item-footer i {
    color: #8b5cf6; /* Original Purple */
    font-size: 1rem;
    /* No transition needed if color doesn't change */
}

/* 3. Text Element Style */
a.contact-item-footer span {
    transition: all 0.3s ease;
}

/* 4. HOVER EFFECTS */
a.contact-item-footer:hover {
    transform: translateX(5px); /* Slide entire link right */
}

/* Apply Gradient ONLY to the text span */
a.contact-item-footer:hover span {
    background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700; /* Optional: Makes the gradient pop more */
}

/* =========================================
   FINTECH VERIFICATION TICKET
   ========================================= */
.footer-fintech-ticket {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 2rem 0 3rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ticket-stub {
    padding: 2.5rem 2rem;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* NEW: Transparent Brand Gradient (10% opacity) */
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.1), /* Gold */
        rgba(236, 72, 153, 0.1), /* Pink */
        rgba(139, 92, 246, 0.1), /* Purple */
        rgba(59, 130, 246, 0.1)  /* Blue */
    );
    
    border-radius: 16px 0 0 16px;
}

.stub-icon {
    width: 60px;
    height: 60px;
    /* Changed from green to a transparent white/glass look */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Apply the brand gradient to the icon itself */
    background-image: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.15); /* Soft pink glow */
}

.stub-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stub-sebi {
    font-size: 1.6rem;
    font-weight: 800;
    color: #10b981;
    text-decoration: none;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* .stub-sebi:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
} */

.stub-sebi i {
    font-size: 1.1rem;
}

.stub-bse {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* The Perforated Line Effect */
.ticket-perforation {
    width: 2px;
    margin: 1rem 0;
    position: relative;
    /* Background moved to .ticket-line */
}

/* NEW: The Gradient Dashed Line */
.ticket-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    
    /* Apply the Brand Gradient */
    background: linear-gradient(to bottom, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    
    /* Use a Mask to cut the gradient into vertical dashes */
    -webkit-mask-image: repeating-linear-gradient(to bottom, black 0, black 8px, transparent 8px, transparent 16px);
    mask-image: repeating-linear-gradient(to bottom, black 0, black 8px, transparent 8px, transparent 16px);
}

/* The Ticket Edge Cutouts */
.ticket-perforation::before,
.ticket-perforation::after {
    content: '';
    position: absolute;
    left: -10px;
    width: 22px;
    height: 22px;
    background: #0e0e0e; /* Matches your dark footer background */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-perforation::before {
    top: -1.2rem;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
}

.ticket-perforation::after {
    bottom: -1.2rem;
    border-top-color: transparent;
    border-right-color: transparent;
    transform: rotate(-45deg);
}

.ticket-details {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-row {
    display: flex;
    /* gap: 2rem; */
}

.detail-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-group span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.highlight-name {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700;
}

.detail-contact a {
    color: var(--gradient-4);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-contact a:hover {
    color: var(--gradient-2);
}

/* Gradient effect specifically for the ticket phone numbers */
.ticket-gradient-phone {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease;
}

.ticket-gradient-phone:hover {
    transform: translateY(-2px);
    color: transparent; 
}

/* Responsive Ticket Layout */
@media (max-width: 991px) {
    .footer-fintech-ticket {
        flex-direction: column;
    }
    
    .ticket-stub {
        border-radius: 16px 16px 0 0;
        padding: 2rem;
    }

    .ticket-perforation {
        height: 2px;
        width: auto;
        margin: 0 1.5rem;
    }

    .ticket-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        
        /* Gradient flows left-to-right on mobile */
        background: linear-gradient(to right, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
        
        /* Mask cuts horizontal dashes */
        -webkit-mask-image: repeating-linear-gradient(to right, black 0, black 8px, transparent 8px, transparent 16px);
        mask-image: repeating-linear-gradient(to right, black 0, black 8px, transparent 8px, transparent 16px);
    }

    .ticket-perforation::before,
    .ticket-perforation::after {
        left: auto;
        top: -10px;
    }

    .ticket-perforation::before {
        left: -1.6rem;
        border-top-color: transparent;
        border-left-color: transparent;
        transform: rotate(45deg);
    }

    .ticket-perforation::after {
        right: -1.6rem;
        border-bottom-color: transparent;
        border-right-color: transparent;
        transform: rotate(45deg);
    }

    .detail-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
===================================================== */

/* Tablet Layout (Landscape & Portrait) - 991px and below */
@media (max-width: 991px) {
    .footer-main {
        /* Switch to 2 columns grid for the links */
        grid-template-columns: 1fr 1fr;
        gap: 3rem; 
        text-align: left;
    }

    .brand-column {
        grid-column: 1 / -1; 
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Plaque responsiveness */
    .plaque-body {
        flex-direction: column;
        gap: 1.5rem;
    }
    .plaque-divider {
        height: 1px;
        width: 100%;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    .footer-disclaimer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .disclaimer-content {
        text-align: center;
    }
}

/* Mobile Layout - 576px and below */
@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr; /* Single column */
        gap: 2.5rem;
        text-align: center;
    }

    .footer-heading {
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
        display: inline-block;
        margin-bottom: 1rem;
    }

    /* Plaque responsiveness */
    .plaque-header {
        padding: 1rem 1.5rem;
    }
    .plaque-body {
        padding: 1.5rem;
    }
    .plaque-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    .plaque-sebi-link {
        font-size: 1.2rem;
    }
}

/* 6. Disclaimer Section */
.footer-disclaimer {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 152, 0, 0.2); /* Gold alpha */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9800;
    font-size: 1.5rem;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ff9800;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* 7. Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-left p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-left p a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-right a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: var(--gradient-1);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Chart Decoration (Bottom Right) */
.footer-chart-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
===================================================== */

/* Tablet Layout (Landscape & Portrait) - 991px and below */
@media (max-width: 991px) {
    .footer-main {
        /* Switch to 2 columns grid */
        grid-template-columns: 1fr 1fr;
        gap: 3rem; 
        text-align: left;
    }

    .brand-column {
        grid-column: 1 / -1; 
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-entity-details {
        grid-template-columns: 1fr; /* Stack entity details on tablet */
    }

    .entity-item[style] {
        grid-column: 1 / -1 !important; /* Ensure full-width items stay full width */
    }

    .footer-disclaimer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .disclaimer-content {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Layout - 576px and below */
@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr; /* Single column */
        gap: 2.5rem;
        text-align: center;
    }

    .footer-heading {
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .footer-entity-details {
        padding: 1.5rem;
        text-align: left; /* Keep list left-aligned for readability */
    }

    .store-badges {
        justify-content: center;
    }
}

/* =========================================
   ADDRESS HOVER MAP TOOLTIP
   ========================================= */
.address-hover-wrapper {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.address-text-link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding-bottom: 4px; /* Space for the dashed line */
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* NEW: The Dashed Gradient Underline */
.address-text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px; /* Thickness of the line */
    
    /* 1. Apply the Brand Gradient */
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    
    /* 2. Use a CSS Mask to cut the gradient into dashes */
    -webkit-mask-image: repeating-linear-gradient(90deg, black 0px, black 5px, transparent 5px, transparent 9px);
    mask-image: repeating-linear-gradient(90deg, black 0px, black 5px, transparent 5px, transparent 9px);
    
    transition: all 0.3s ease;
}

.address-text-link i {
    color: #8b5cf6; 
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Effects */
.address-text-link:hover {
    color: #ffffff;
}

.address-text-link:hover::after {
    height: 2.5px; /* Makes the dashed line slightly thicker on hover */
}

.address-text-link:hover i {
    transform: translateY(-2px);
    color: var(--gradient-1); 
}

/* The Popup Map Card with Gradient Border */
.address-map-tooltip {
    position: absolute;
    bottom: 100%;
    left: -20px;
    width: 280px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    margin-bottom: 14px;
    
    /* NEW: Gradient Border Trick */
    border: 1px solid transparent; 
    background: linear-gradient(#16161f, #16161f) padding-box,
                linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4)) border-box;
}

/* Small pointer arrow for the tooltip */
.address-map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 40px; 
    border-width: 8px;
    border-style: solid;
    /* Colored to match the bottom edge of the gradient border (Purple/Blue mix) */
    border-color: var(--gradient-3) transparent transparent transparent; 
}

/* Trigger the hover effect */
.address-hover-wrapper:hover .address-map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile fix: Disable the hover map on phones so it doesn't get cut off. 
   Tapping the link will just open the Maps app directly. */
@media (max-width: 767px) {
    .address-map-tooltip {
        display: none !important; 
    }
}