/* Premium Page Styles */

/* Hero Section */
.premium-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, rgba(114, 137, 218, 0.05) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.pricing-card.premium-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.03) 0%, rgba(114, 137, 218, 0.03) 100%);
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.premium-card:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-card);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.tier-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}

.period {
    font-size: 18px;
    color: var(--text-body);
    font-weight: 500;
}

/* Features List */
.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #10b981;
    margin-top: 2px;
}

.check-icon.premium-check {
    color: var(--primary-color);
}

.x-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #ef4444;
    margin-top: 2px;
}

.feature-item.feature-disabled {
    opacity: 0.5;
}

/* CTA Button */
.cta-button {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: var(--gradient-card);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.cta-button.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.cta-button.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-body);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-body);
    display: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-body);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.modal-body {
    padding: 32px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(88, 101, 242, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-state p {
    font-size: 16px;
    color: var(--text-body);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 12px;
}

.empty-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* Server List */
.server-list {
    display: grid;
    gap: 16px;
}

.server-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.server-card:hover {
    border-color: var(--primary-color);
    background: rgba(88, 101, 242, 0.02);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.server-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.server-icon-default {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-card);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.server-details {
    flex: 1;
}

.server-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.server-members {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-badge.free {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-body);
}

.status-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.server-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.server-action-btn.upgrade {
    background: var(--gradient-card);
    color: white;
}

.server-action-btn.upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.server-action-btn.manage {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.server-action-btn.manage:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    pointer-events: all;
    max-width: 400px;
}

.notification.info {
    background: var(--primary-color);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-card.premium-card {
        transform: scale(1);
    }

    .pricing-card.premium-card:hover {
        transform: translateY(-5px);
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-body {
        padding: 24px;
    }

    .server-card {
        flex-direction: column;
        gap: 16px;
    }

    .server-info {
        width: 100%;
    }

    .server-action-btn {
        width: 100%;
    }

    #notification-container {
        right: 10px;
        left: 10px;
    }

    .notification {
        max-width: 100%;
    }
}
