/**
 * Universal Take Profit Popup CSS - TOPGRADE Dark Luxury Fintech Edition
 * Obsidian Black UI | Champagne Gold Accents | Glassmorphism
 * Author: TOPGRADE
 * Version: 3.0
 */

* {
    box-sizing: border-box;
}

/* Main popup overlay */
.universal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.88);
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 10000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px;
    padding-top: 6vh;
}

/* Main popup container */
.universal-popup {
    background: #141414;
    border-radius: 20px;
    padding: 0;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(200, 166, 78, 0.45);
}

.universal-popup.show {
    transform: scale(1);
    opacity: 1;
}

/* Close X button */
.popup-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close-x:hover {
    background: #ef4444;
    color: #FFFFFF;
    border-color: #ef4444;
    transform: scale(1.1);
}

.popup-close-x::after {
    content: '×';
}

/* Header section */
.universal-popup-header {
    background: linear-gradient(110deg, #806020, #B99A4A, #D8BD7A);
    padding: 24px;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.success-icon::after {
    content: '✓';
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
}

#universalPopupTitle {
    color: #080808;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    padding-right: 25px;
}

/* Content section */
.universal-popup-content {
    padding: 28px 24px 20px;
    background: #141414;
    color: #FFFFFF;
}

/* Profit display */
.profit-display {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 14px;
    border: 1px solid rgba(200, 166, 78, 0.30);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.profit-amount {
    font-size: 44px;
    font-weight: 800;
    color: #D8BD7A;
    margin-bottom: 4px;
    line-height: 1;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.profit-label {
    color: #BDBDBD;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social sharing section */
.social-sharing {
    margin-bottom: 20px;
}

.social-title {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

.container1 {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.a2a_kit {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.a2a_button_whatsapp,
.a2a_button_x,
.a2a_button_twitter,
.a2a_button_facebook {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: #1e1e1e !important;
}

.a2a_button_whatsapp:hover,
.a2a_button_x:hover,
.a2a_button_twitter:hover,
.a2a_button_facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border-color: #C8A64E !important;
}

.share-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    background-size: 24px 24px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #1e1e1e;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border-color: #C8A64E;
}

/* Action buttons */
.container2 {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.affiliate-btn,
.community-btn {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: none;
}

.affiliate-btn {
    background: linear-gradient(110deg, #806020, #B99A4A, #D8BD7A);
    color: #080808;
    border: 1px solid rgba(216, 189, 122, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.affiliate-btn:hover {
    background: linear-gradient(110deg, #A08030, #C8A64E, #E5D3A0);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.community-btn {
    background: #1e1e1e;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.community-btn:hover {
    background: #252525;
    border-color: #C8A64E;
    color: #D8BD7A;
    transform: translateY(-2px);
}

/* Close footer button */
.close-footer {
    padding: 0 24px 24px;
    background: #141414;
    border-radius: 0 0 20px 20px;
}

.universal-close-btn {
    width: 100%;
    background: #101010;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.universal-close-btn:hover {
    background: #181818;
    border-color: #C8A64E;
    color: #D8BD7A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
