/* === SMART FEATURES STYLES === */

/* 1. Voice Search Button */
.btn-voice {
    background: transparent;
    border: none;
    color: var(--brand-blue);
    cursor: pointer;
    padding: 0 10px;
    border-radius: 50%;
    transition: all 0.2s;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
}

.btn-voice:hover {
    background: rgba(0, 101, 189, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.btn-voice.listening {
    color: #ef4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.input-group input {
    padding-right: 50px !important;
}

/* 2. Smart Fee Alert Badge */
.fee-alert-badge {
    background: #fffcdb;
    border: 1px solid #fcd34d;
    color: #b45309;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s;
}

.fee-alert-badge strong {
    color: #d97706;
}

.fee-alert-icon {
    font-size: 1.2rem;
}

/* 3. V3 CLEAN MODAL STYLES (POLISHED) */

.modal-clean {
    width: 90%;
    max-width: 400px;
    padding: 2.5rem 2rem !important;
    /* Spacious padding */
    border-radius: 24px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header with Icon */
.modal-header-clean {
    margin-bottom: 1.5rem;
    width: 100%;
}

.icon-shield-wrapper {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    /* Blue 50 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    /* Blue 500 */
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 8px #f8fafc;
    /* Multi-layer ring effect */
}

.modal-title-clean {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    /* Slate 900 */
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.modal-subtitle-clean {
    color: #64748b;
    /* Slate 500 */
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Warning Box */
.security-warning {
    background: #fff7ed;
    /* Orange 50 */
    border: 1px solid #ffedd5;
    /* Orange 100 */
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
    color: #9a3412;
    /* Orange 800 */
    font-size: 0.85rem;
    line-height: 1.5;
    width: 100%;
}

.security-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ea580c;
    /* Orange 600 */
}

/* QR Section */
.qr-section-clean {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#share-qr-code {
    padding: 0;
    border: 4px solid white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

#share-qr-code:hover {
    transform: scale(1.02);
}

#share-qr-code img {
    display: block;
    max-width: 100%;
}

.qr-helper-text {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Clean Input */
.copy-link-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.share-input-wrapper-clean {
    display: flex;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.35rem;
    transition: all 0.2s ease;
    align-items: center;
}

.share-input-wrapper-clean:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.share-input-wrapper-clean:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.input-share-clean {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #334155;
    outline: none;
    font-family: 'Consolas', 'Monaco', monospace;
    /* Monospace for URL */
}

.btn-copy-clean {
    background: #0f172a;
    /* Slate 900 */
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-copy-clean svg {
    opacity: 0.8;
}

.btn-copy-clean:hover {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-copy-clean:active {
    transform: translateY(0);
}

/* Close Button */
.btn-close-clean {
    background: transparent;
    color: #64748b;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 2rem;
    transition: all 0.2s;
    border-radius: 99px;
}

.btn-close-clean:hover {
    color: #ef4444;
    /* Red on hover */
    background: #fef2f2;
}

/* Reset Festive Conflicts */
.btn-copy-clean {
    background-image: none !important;
    box-shadow: none !important;
}

/* 4. PREMIUM SHARE BUTTON */
.btn-share-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-share-premium:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-share-premium:active {
    transform: translateY(0);
}

.btn-share-premium svg {
    transition: transform 0.2s;
}

.btn-share-premium:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* 5. RESPONSIVE MOBILE MODAL */
@media (max-width: 480px) {
    .modal-clean {
        width: 95%;
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
        margin-top: 20px;
        /* Ensure spacing from top */
    }

    .modal-header-clean {
        margin-bottom: 1rem;
    }

    .icon-shield-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .icon-shield-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .modal-title-clean {
        font-size: 1.25rem;
    }

    .modal-subtitle-clean {
        font-size: 0.85rem;
    }

    .security-warning {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .qr-section-clean {
        margin-bottom: 1.5rem;
    }

    #share-qr-code {
        max-width: 140px;
        /* Limit QR size */
    }

    #share-qr-code img {
        width: 100% !important;
        height: auto !important;
    }

    .share-input-wrapper-clean {
        flex-direction: column;
        padding: 0.5rem;
        gap: 8px;
    }

    .input-share-clean {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px dashed #e2e8f0;
    }

    .btn-copy-clean {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .btn-close-clean {
        padding: 0.75rem 1.5rem;
        width: 100%;
        /* Full width close button for easier tapping */
        background: #f1f5f9;
        /* Subtle background for better visibility */
    }
}