/**
 * ═══════════════════════════════════════════════════════════════════════════════
 * 🎵 RADIO STATION - Auth & Profile Styles
 * ═══════════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   User Header
   ═══════════════════════════════════════════════════════════════════════════════ */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-coins, .user-xp {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
}

.user-coins {
    color: #fbbf24;
}

.user-xp {
    color: #60a5fa;
}

.coin-icon, .xp-icon {
    font-size: 16px;
}

.user-avatar-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar-wrapper:hover {
    transform: scale(1.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.user-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 2px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.login-icon {
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Auth Modal
   ═══════════════════════════════════════════════════════════════════════════════ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, .4) transparent;
}
.auth-modal-content::-webkit-scrollbar { width: 6px; }
.auth-modal-content::-webkit-scrollbar-track { background: transparent; }
.auth-modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, .4);
    border-radius: 3px;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: white;
}

.auth-header p {
    color: #94a3b8;
    margin: 0;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    color: white;
    font-family: inherit;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.auth-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.auth-btn-loader {
    display: inline-flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-error {
    color: #f87171;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.auth-mobile-display {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 24px;
}

.auth-mobile-display strong {
    color: white;
    direction: ltr;
    display: inline-block;
}

/* OTP Inputs */
.auth-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    direction: ltr;
}

.auth-otp-input {
    width: 48px;
    height: 56px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s;
}

.auth-otp-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.auth-otp-single {
    width: 100%;
    height: 56px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s;
    letter-spacing: 8px;
    direction: ltr;
}

.auth-otp-single:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.auth-otp-single::placeholder {
    letter-spacing: normal;
    font-size: 14px;
    color: #64748b;
}

.auth-resend {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.auth-resend-btn {
    background: none;
    border: none;
    color: #a855f7;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    padding: 4px 8px;
}

.auth-resend-btn:disabled {
    color: #64748b;
    cursor: not-allowed;
}

.auth-back {
    display: block;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    margin: 16px auto 0;
    transition: color 0.2s;
}

.auth-back:hover {
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Profile Modal
   ═══════════════════════════════════════════════════════════════════════════════ */
.profile-modal {
    max-width: 420px;
}

.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.avatar-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.profile-header h3 {
    font-size: 20px;
    margin: 0 0 4px;
    color: white;
}

.profile-mobile {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    direction: ltr;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.profile-stat {
    text-align: center;
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.profile-btn.danger {
    color: #f87171;
}

.profile-btn.danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

/* 🆕 [PROFILE-INSTALL-PWA] دکمه نصب اپ — متمایز، gradient بنفش/فیروزه‌ای
   فقط در پروفایل خود کاربر نمایش داده می‌شود (اگر هنوز نصب نشده باشد). */
.profile-btn.profile-install-pwa {
    background: linear-gradient(135deg, rgba(168, 85, 247, .22) 0%, rgba(99, 102, 241, .18) 50%, rgba(6, 182, 212, .22) 100%);
    border: 1px solid rgba(168, 85, 247, .35);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    margin-bottom: 4px;
}
.profile-btn.profile-install-pwa:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, .32) 0%, rgba(99, 102, 241, .26) 50%, rgba(6, 182, 212, .32) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 85, 247, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.profile-btn.profile-install-pwa > span:first-child {
    font-size: 18px;
}

/* Profile Form */
.profile-form {
    padding: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.profile-form-actions .auth-btn {
    flex: 1;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.status-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-option.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

.status-emoji {
    font-size: 28px;
}

.status-text {
    font-size: 12px;
    color: #94a3b8;
}

.status-option.active .status-text {
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════════════════════════════════════════ */
.radio-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 24px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.radio-toast.success {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), transparent);
}

.radio-toast.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), transparent);
}

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

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

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

/* ═══════════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .auth-modal {
        padding: 10px;
        align-items: flex-start;
    }
    .auth-modal-content {
        padding: 24px 18px;
        border-radius: 18px;
        max-height: calc(100vh - 20px);
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .auth-otp-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .user-coins, .user-xp {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Notifications
   ═══════════════════════════════════════════════════════════════════════════════ */
.user-notif {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.user-notif:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.notif-icon {
    font-size: 18px;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.1);
    border-right: 3px solid var(--primary);
}

.notif-item .notif-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-text {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notif-thank-btn {
    padding: 5px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s;
}

.notif-thank-btn:hover {
    transform: scale(1.05);
}

.notif-profile-link {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notif-profile-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Coin Packages
   ═══════════════════════════════════════════════════════════════════════════════ */
.coin-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.coin-package {
    position: relative;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.coin-package:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.pkg-coins {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
}

.pkg-price {
    font-size: 14px;
    color: var(--text-secondary);
}

.pkg-discount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

/* Notification Toast */
.notif-toast{background:linear-gradient(135deg,#1e1b4b,#312e81);border:1px solid rgba(99,102,241,.3);border-radius:12px;padding:14px 18px;box-shadow:0 10px 40px rgba(0,0,0,.4);pointer-events:auto;transform:translateX(120%);transition:transform .3s ease;display:flex;align-items:center;gap:12px}
.notif-toast.show{transform:translateX(0)}
.notif-toast-body{flex:1;font-size:14px;color:#fff;line-height:1.5}
.notif-toast-thank{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .2s}
.notif-toast-thank:hover{transform:scale(1.05)}
.notif-toast-thank:disabled{opacity:.7;cursor:not-allowed;transform:none}

/* Timeline Loader */
.timeline-loader{padding:16px;text-align:center}
.tl-loader-spin{display:inline-block;width:20px;height:20px;border:2px solid rgba(255,255,255,.2);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ═══════════════════════════════════════════════════════════════════════════
   💰 Coin Shop Modal (خرید سکه در همان صفحه)
   ═══════════════════════════════════════════════════════════════════════════ */
.coin-shop-modal {
    max-width: 640px !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.shop-modal-header {
    text-align: center;
    margin-bottom: 18px;
    padding-top: 6px;
}
.shop-modal-icon {
    font-size: 52px;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 16px rgba(251, 191, 36, .4));
    animation: shopIconBob 2.5s ease-in-out infinite;
}
@keyframes shopIconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.shop-modal-header h2 {
    margin: 4px 0;
    font-size: 22px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.shop-modal-header p {
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    margin: 0;
    line-height: 1.6;
}
.shop-modal-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(251, 191, 36, .08);
    border: 1px solid rgba(251, 191, 36, .2);
    border-radius: 12px;
    margin-bottom: 18px;
}
.shop-modal-balance .balance-label {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}
.shop-modal-balance .balance-amount {
    color: #fbbf24;
    font-weight: 800;
    font-size: 16px;
}
.shop-modal-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    min-height: 120px;
}
.shop-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, .4);
}
.shop-spinner::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(251, 191, 36, .2);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.shop-pkg {
    position: relative;
    padding: 18px 10px 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1.5px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    text-align: center;
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
    overflow: hidden;
}
.shop-pkg:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, .35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}
.shop-pkg.popular {
    border-color: rgba(251, 191, 36, .55);
    background: linear-gradient(145deg, rgba(251, 191, 36, .08), rgba(168, 85, 247, .08));
}
.shop-popular, .shop-discount {
    position: absolute;
    top: 8px;
    padding: 3px 7px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    color: #fff;
}
.shop-popular {
    right: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 6px rgba(251, 191, 36, .4);
}
.shop-discount {
    left: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, .4);
}
.shop-pkg-icon {
    font-size: 32px;
    margin-top: 4px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, .3));
}
.shop-pkg-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.shop-pkg-coins {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.shop-coins-main {
    font-size: 19px;
    font-weight: 800;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}
.shop-coins-bonus {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    font-variant-numeric: tabular-nums;
}
.shop-coins-label {
    font-size: 10px;
    color: rgba(255, 255, 255, .45);
}
.shop-pkg-price {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 10px;
    font-weight: 600;
}
.shop-pkg-buy {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.shop-pkg-buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(251, 191, 36, .35);
}
.shop-pkg-buy:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.shop-pkg.popular .shop-pkg-buy {
    background: linear-gradient(135deg, #a855f7, #fbbf24);
    color: #fff;
}
@media (max-width: 500px) {
    .shop-modal-packages {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-pkg { padding: 14px 8px 10px; }
    .shop-pkg-icon { font-size: 28px; }
    .shop-coins-main { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   💳 Payment Result Modal
   ═══════════════════════════════════════════════════════════════════════════ */
.pay-result-modal {
    max-width: 420px !important;
    text-align: center;
}
.pay-result-icon {
    font-size: 64px;
    margin: 10px 0 6px;
    animation: payBounce .7s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes payBounce {
    0%  { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100%{ transform: scale(1); opacity: 1; }
}
.pay-result-modal h2 {
    margin: 4px 0 8px;
    font-size: 22px;
    font-weight: 800;
}
.pay-result-subtitle {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 16px;
}
.pay-result-details {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    text-align: right;
}
.pay-result-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.pay-result-detail + .pay-result-detail {
    border-top: 1px solid rgba(255, 255, 255, .05);
    margin-top: 4px;
    padding-top: 10px;
}
.pay-result-detail .label { color: rgba(255, 255, 255, .6); }
.pay-result-detail .value { color: #fbbf24; font-weight: 700; }
.pay-result-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pay-result-actions .auth-btn {
    flex: 1;
    max-width: 180px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔄 XP → Coin Converter
   ═══════════════════════════════════════════════════════════════════════════ */
.xp-convert-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.xp-stat {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    text-align: center;
}
.xp-stat-label {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    margin-bottom: 4px;
}
.xp-stat-value {
    display: block;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
}
.xp-convert-empty {
    padding: 20px 16px;
    background: rgba(251, 191, 36, .08);
    border: 1px solid rgba(251, 191, 36, .2);
    border-radius: 12px;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 14px;
    line-height: 1.7;
}
.xp-convert-form {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}
.xp-convert-label {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    margin-bottom: 8px;
}
.xp-convert-max {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}
.xp-convert-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .2);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    direction: ltr;
    transition: border-color .15s;
}
.xp-convert-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, .5);
}
.xp-convert-result {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(168, 85, 247, .08);
    border: 1px solid rgba(168, 85, 247, .2);
    border-radius: 8px;
}
.xp-result-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}
.xp-result-row.highlight {
    font-weight: 800;
    font-size: 15px;
    color: #fbbf24;
    border-top: 1px dashed rgba(255, 255, 255, .1);
    margin-top: 4px;
    padding-top: 8px;
}
.xp-convert-presets {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.xp-preset-btn {
    flex: 1;
    min-width: 60px;
    padding: 6px 8px;
    border: 1px solid rgba(168, 85, 247, .3);
    background: rgba(168, 85, 247, .05);
    color: #c084fc;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.xp-preset-btn:hover {
    background: rgba(168, 85, 247, .2);
    color: #fff;
}
