/* ===================================== */
/* FIX FOR LEFT CORNER BADGES OVERLAP */
/* ===================================== */

/* Add this to your styles.css */

/* Ensure generator section has proper spacing */
#generator {
    margin-top: 40px;
    clear: both;
    position: relative;
    z-index: 1;
}

/* If you have badges in a hero section, fix their positioning */
.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 0 15px;
}

.badge {
    background: white;
    color: #0f766e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Fix any floating/positioned elements */
.hero-section {
    position: relative;
    z-index: 0;
    margin-bottom: 30px;
}

/* Ensure main card doesn't overlap */
.gen-card-split {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

/* Mobile fixes */
@media (max-width: 768px) {
    #generator {
        margin-top: 20px;
    }
    
    .badges {
        gap: 8px;
        margin: 15px 0;
    }
    
    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ===================================== */
/* MODAL MOBILE OPTIMIZATION */
/* ===================================== */

@media (max-width: 500px) {
    .modal-content {
        padding: 25px 20px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .qrcode-container {
        padding: 10px;
    }
    
    .qrcode-container img,
    .qrcode-container canvas {
        max-width: 150px !important;
        max-height: 150px !important;
        width: 150px !important;
        height: 150px !important;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .link-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-copy {
        width: 100%;
    }
}
/* ===================================== */
/* FIX FOR BADGES APPEARING IN TOP LEFT */
/* ===================================== */

/* Option 1: Hide badges on generator page */
.generator-page .trust-badges,
#generator ~ .trust-badges,
.trust-section {
    display: none;
}

/* Option 2: Properly position badges if you want to keep them */
.trust-section {
    position: relative;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: transparent;
    margin: 20px 0;
    z-index: 1;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Ensure badges don't float to top-left */
.badge {
    position: static !important;
    float: none !important;
    margin: 0 !important;
}

/* If badges are in hero section, ensure they stay there */
.hero-section .trust-badges,
.hero-bg .trust-badges {
    position: relative;
    margin: 20px auto 0;
}

/* Fix for badges breaking layout */
.container {
    position: relative;
}

.container .trust-section {
    clear: both;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .trust-badges {
        gap: 10px;
        padding: 0 15px;
    }
    
    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Emergency fix - if badges still appear wrongly positioned */
div[class*="badge"]:not(.trust-badges .badge) {
    position: static !important;
    display: inline-flex !important;
}

/* Prevent absolute positioning issues */
.trust-section .badge,
.trust-badges .badge {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}