@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}
.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
    border-color: rgba(14, 165, 233, 0.5);
}
.nav-link {
    position: relative;
    padding: 8px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ea5e9;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: #0ea5e9;
    transform: translateY(-3px);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: rgba(15, 23, 42, 0.9);
    border-left: 4px solid #0ea5e9;
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.4s ease;
    z-index: 1000;
}
.notification.show {
    transform: translateX(0);
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 40;
}
.mobile-menu.active {
    display: block;
}
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -12px;
    left: 0.5rem;
    font-size: 0.85rem;
    color: #0ea5e9;
    background: #0f172a;
    padding: 0 0.5rem;
}
.heart {
    position: absolute;
    opacity: 0;
    animation: float 6s infinite ease-in-out;
    color: #ff2d75;
    z-index: 0;
}
.background-effect {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, 
        rgba(255, 107, 139, 0.1) 0%, 
        rgba(255, 107, 139, 0) 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s infinite;
}
.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}
.file-upload-btn {
    transition: all 0.3s ease;
}
.file-upload-btn:hover {
    background: rgba(100, 116, 139, 0.3);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.qr-preview-container {
    position: relative;
    display: inline-block;
}
.qr-preview-container canvas {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.shape-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.bg-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}
.shape-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    nav {
        padding: 15px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
}
/* Ad Modal Styles */
#ad-modal-desktop,
#ad-modal-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#ad-modal-desktop.active,
#ad-modal-mobile.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#ad-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #e2e8f0;
    padding: 25px;
    height: 100%;
    justify-content: space-between;
}

.ad-content h3 {
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    color: #e2e8f0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ad-description {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
    margin: 15px 0;
    color: #94a3b8;
    line-height: 1.6;
}

.ad-container-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#ad-container-desktop,
#ad-container-mobile {
    width: 100%;
    min-height: 250px;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #334155;
}

.ad-fallback {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.ad-fallback p:first-of-type {
    color: #f87171;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ad-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #0ea5e9;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.copy-btn:disabled {
    background-color: #475569 !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}
.ads-btn {
    background-color: #0ea5e9 !important;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    width: auto;
    margin: 10px auto;
    display: block;
    color: white;
}

.ads-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

#close-ad-desktop,
#close-ad-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.8;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-ad-desktop:hover,
#close-ad-mobile:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ad-footer {
    text-align: center;
    padding-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    #ad-box {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
