/* GM Subscription Packages - Fancy Premium Design */

/* Popup */
.gm-subscription-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.gm-subscription-overlay {
    position: absolute;
    inset: 0;
}

/* Modal */
.gm-subscription-modal {
    position: relative;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.03),
        0 24px 48px -12px rgba(0, 0, 0, 0.18);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close */
.gm-subscription-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    z-index: 10;
}

.gm-subscription-close:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Header with integrated balance */
.gm-subscription-header {
    text-align: center;
    padding: 28px 24px 20px;
}

.gm-subscription-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

.gm-header-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0c3130 0%, #134e4a 100%);
    padding: 10px 12px 10px 16px;
    border-radius: 50px;
}

.gm-bal-text {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.gm-bal-amount {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.gm-bal-topup {
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.gm-bal-topup:hover {
    background: rgba(255,255,255,0.3);
}

/* Packages Grid */
.gm-subscription-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px 28px;
}

/* Package Card */
.gm-subscription-package {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px 20px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gm-subscription-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

/* Standard */
.gm-package-standard {
    border-color: #e2e8f0;
}
.gm-package-standard .gm-package-name { color: #64748b; }
.gm-package-standard .gm-package-buy-btn {
    background: #0c3130;
    color: #fff;
}
.gm-package-standard .gm-package-buy-btn:hover { background: #134e4a; }

/* Classic - Recommended */
.gm-package-classic {
    border-color: #0c3130;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 40%);
}
.gm-package-classic .gm-package-name { color: #0c3130; font-weight: 700; }
.gm-package-classic .gm-package-buy-btn {
    background: #0c3130;
    color: #fff;
}
.gm-package-classic .gm-package-buy-btn:hover { background: #134e4a; }

/* Premium */
.gm-package-premium {
    border-color: #d97706;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 40%);
}
.gm-package-premium .gm-package-name { color: #b45309; font-weight: 700; }
.gm-package-premium .gm-package-buy-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}
.gm-package-premium .gm-package-buy-btn:hover { filter: brightness(1.05); }

/* Recommended Badge */
.gm-recommended-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0c3130 0%, #134e4a 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(12, 49, 48, 0.3);
}

/* Package Name */
.gm-package-name {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Price */
.gm-package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}

.gm-price-amount {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.gm-price-currency {
    font-size: 18px;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 2px;
}

.gm-price-period {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    margin-bottom: 16px;
}

/* Features */
.gm-package-features {
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.gm-package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: #475569;
}

.gm-package-features li strong {
    font-weight: 700;
    color: #0f172a;
}

.gm-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
}

/* Buy Button */
.gm-package-buy-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.gm-package-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Trigger */
.gm-subscription-trigger {
    padding: 12px 24px;
    background: #0c3130;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.gm-subscription-trigger:hover {
    background: #134e4a;
}

/* Toast */
.gm-subscription-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #0f172a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999999;
    opacity: 0;
    transition: all 0.25s ease;
}

.gm-subscription-toast.gm-toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.gm-subscription-toast.gm-toast-success {
    background: #059669;
}

/* Success Modal */
.gm-subscription-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    animation: modalIn 0.3s ease;
}

.gm-subscription-success .gm-success-icon {
    width: 56px;
    height: 56px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

.gm-subscription-success h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
}

.gm-subscription-success p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 800px) {
    .gm-subscription-popup {
        padding: 0;
        align-items: flex-end;
    }
    
    .gm-subscription-modal {
        border-radius: 24px 24px 0 0;
        max-height: 92vh;
    }
    
    .gm-subscription-packages {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 20px 24px;
    }
    
    .gm-subscription-header {
        padding: 24px 20px 16px;
    }
    
    .gm-subscription-header h2 {
        font-size: 20px;
    }
}

/* Scrollbar */
.gm-subscription-modal::-webkit-scrollbar {
    width: 6px;
}

.gm-subscription-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
