/* --- Auth & Pricing Modals CSS --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    0% { transform: scale(0.95) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.modal-close:hover {
    background: #e2e8f0; color: #0f172a;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}
.modal-header h2 {
    font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-bottom: 10px;
}
.modal-header p {
    color: #64748b; font-size: 0.95rem;
}

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 6px;
}
.form-group input {
    width: 100%; padding: 12px 16px; border-radius: 12px;
    border: 1px solid #cbd5e1; background: #f8fafc;
    font-size: 1rem; color: #0f172a;
    transition: all 0.2s;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none; border-color: var(--primary); background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-full {
    width: 100%; padding: 14px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: white; font-weight: bold; font-size: 1rem;
    border: none; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}
.btn-full:hover {
    transform: translateY(-2px); box-shadow: 0 8px 16px rgba(236, 72, 153, 0.35);
}

.auth-switch {
    text-align: center; margin-top: 16px; font-size: 0.85rem; color: #64748b;
}
.auth-switch a {
    color: var(--primary); font-weight: 600; text-decoration: none;
}

/* Pricing Modal */
.pricing-modal-content {
    max-width: 800px;
    padding: 40px;
}
.pricing-plans {
    display: flex; gap: 24px; margin-top: 32px;
}
.plan-card {
    flex: 1; border: 1px solid #e2e8f0; border-radius: 20px; padding: 24px;
    text-align: center; transition: all 0.3s; position: relative;
    background: #ffffff;
}
.plan-card:hover {
    transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}
.plan-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.15);
}
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #ec4899, var(--primary));
    color: white; font-size: 0.75rem; font-weight: 800;
    padding: 4px 12px; border-radius: 20px;
}
.plan-name { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: #0f172a; margin-bottom: 24px; }
.plan-price span { font-size: 1rem; color: #64748b; font-weight: normal; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px 0; text-align: left; }
.plan-features li { font-size: 0.9rem; color: #475569; margin-bottom: 12px; padding-left: 24px; position: relative; }
.plan-features li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: #10b981;
}

/* Payment QR Modal */
.payment-qr-container {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px 0;
}
.qr-box {
    width: 200px; height: 200px; background: #f8fafc; border-radius: 16px;
    padding: 16px; border: 1px solid #e2e8f0; margin-bottom: 16px;
    position: relative;
}
.qr-box img { width: 100%; height: 100%; display: block; }
.qr-instruction { font-size: 1rem; color: #0f172a; font-weight: 600; margin-bottom: 8px; }
.qr-sub { font-size: 0.85rem; color: #64748b; }

/* Header Auth UI */
.auth-buttons { display: flex; gap: 12px; align-items: center; }
.user-profile { display: none; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.profile-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #e0e7ff, #fce7f3); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: bold; }
.profile-info { display: flex; flex-direction: column; }
.profile-username { font-size: 0.9rem; font-weight: 600; color: #0f172a; }
.profile-badge { font-size: 0.7rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.badge-pro { background: #fdf2f8; color: #ec4899; }
.badge-free { background: #f1f5f9; color: #64748b; }

/* User Center */
.user-center-content {
    background: #f8fafc;
}
.uc-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 40px 30px;
    position: relative;
    color: white;
}
.uc-close {
    background: rgba(255,255,255,0.1);
    color: white;
}
.uc-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}
.uc-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.uc-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #fce7f3);
    color: var(--primary);
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid rgba(255,255,255,0.2);
}
.uc-details h3 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
}
.uc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
.uc-badge.pro {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.uc-body {
    padding: 24px;
}
.uc-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}
.uc-card-header h4 {
    margin: 0 0 16px 0;
    color: #334155;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}
.plan-expire {
    font-size: 0.85rem;
    color: #64748b;
}
.plan-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.uc-menu-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.uc-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.uc-menu-item:last-child {
    border-bottom: none;
}
.uc-menu-item:hover {
    background: #f8fafc;
}
.uc-menu-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 16px;
    font-size: 1rem;
}
.uc-menu-text {
    flex: 1;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}
.uc-menu-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
}
