/* ==========================================================================
   💎 LINKGPT PREMIUM POP-UP STYLES
   ========================================================================== */
.premium-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Elegant subtle dim backdrop */
    backdrop-filter: blur(4px);    /* Glassmorphic touch */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999; /* Higher layer index to keep over settings/auth */
    animation: fadeInModal 0.2s ease-out;
}

.premium-popup-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    box-sizing: border-box;
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode compatibility override */
.dark-theme .premium-popup-card {
    background: #181922;
    border: 1px solid #272936;
}

.premium-popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #8e92a4;
    cursor: pointer;
    transition: color 0.2s;
}

.premium-popup-close-btn:hover {
    color: #111111;
}
.dark-theme .premium-popup-close-btn:hover {
    color: #ffffff;
}

.premium-popup-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #f0edff;
    color: #6344ff; /* Custom brand focus violet tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
}
.dark-theme .premium-popup-icon-wrapper {
    background: #232236;
}

.premium-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 16px 0;
}
.dark-theme .premium-popup-title {
    color: #ffffff;
}

.premium-popup-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #585c6d;
    margin: 0 0 12px 0;
}
.dark-theme .premium-popup-content p {
    color: #a0a5b9;
}

.premium-popup-content .premium-thanks-note {
    font-weight: 500;
    color: #333333;
    margin-top: 16px;
}
.dark-theme .premium-popup-content .premium-thanks-note {
    color: #e2e4ed;
}

.premium-popup-action-btn {
    width: 100%;
    padding: 12px 24px;
    background: #6344ff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.premium-popup-action-btn:hover {
    background: #4f32db;
}

/* Core Animations */
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUpModal {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}