/* Admin Panel Specific Styles */

/* ===== Admin Navigation Bar Responsive Layout Fix (Full Width & Balanced) ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    height: var(--nav-height, 70px);
    width: 100%;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-actions {
    flex-shrink: 0;
}

.navbar .nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 6px 8px;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #bae6fd transparent;
}

.navbar .nav-links::-webkit-scrollbar {
    height: 4px;
}

.navbar .nav-links::-webkit-scrollbar-thumb {
    background: #bae6fd;
    border-radius: 10px;
}

.navbar .nav-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 10px;
    gap: 0.35rem;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: none;
    color: #475569;
    cursor: pointer;
}

.navbar .nav-link:hover {
    color: #0284c7;
    background: #ffffff;
    border-color: #cbd5e1;
}

.navbar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.navbar .nav-link i {
    font-size: 1.05rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.stat-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.stat-card-number {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin table-like cards */
.admin-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
    flex-wrap: wrap;
}

.admin-item-card:hover {
    border-color: var(--border-glow);
}

.admin-item-info {
    flex: 1;
    min-width: 0;
}

.admin-item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

/* Topup slip card */
.topup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.topup-card:hover {
    border-color: var(--border-glow);
}

.topup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.topup-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.topup-card-body .slip-preview {
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: contain;
    width: 100%;
    cursor: pointer;
}

.topup-card-body .slip-preview:hover {
    opacity: 0.8;
}

.topup-card-details p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.topup-card-details .amount {
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.topup-card-actions {
    display: flex;
    gap: 0.75rem;
}

/* Category & Product Admin Styles */
.admin-item-img {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.admin-item-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ===== Exclusive Jiksaw Custom Admin Category Cards ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.admin-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    position: relative;
}

.admin-cat-card:hover {
    border-color: #0284c7;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.14);
    transform: translateY(-4px);
}

.cat-card-cover-wrap {
    width: 100%;
    height: 160px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.admin-cat-card:hover .cat-card-cover-wrap img {
    transform: scale(1.06);
}

/* Glass Floating Count Tag over Image */
.cat-card-float-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cat-card-float-badge i {
    color: #38bdf8;
    font-size: 0.9rem;
}

.cat-card-main-content {
    padding: 1.15rem 1.25rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.cat-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cat-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cat-card-title {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.cat-card-body p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.25rem 0 0;
    line-height: 1.45;
}

.cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem 1rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

/* Game IDs Table inside Modal */
.game-ids-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.game-ids-table th, .game-ids-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.game-ids-table th {
    background: rgba(0, 0, 0, 0.25);
    color: #94a3b8;
    font-weight: 600;
}

.status-badge-available {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-sold {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Featured Star Badge & Toggle Button */
.badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #facc15;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

.btn-toggle-featured {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-toggle-featured:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.4);
    color: #facc15;
}

.btn-toggle-featured.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(217, 119, 6, 0.3));
    border-color: #f59e0b;
    color: #fef08a;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Settings Layout */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.settings-card:hover {
    border-color: var(--border-glow);
}

.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.settings-card-title i {
    font-size: 1.3rem;
    color: var(--primary-light);
}

/* Image Upload Preview Components */
.upload-preview-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.preview-box-square {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0b0f19;
    flex-shrink: 0;
    position: relative;
}

.preview-box-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-box-banner {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0b0f19;
    position: relative;
    margin-top: 0.5rem;
}

.preview-box-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Maintenance Mode Card & Switch */
.maintenance-card {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.9));
}

.maintenance-card.active-maintenance {
    border-color: #ef4444;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.switch-label-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.switch-label-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Toggle Switch Control */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.maintenance-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-live {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-maintenance {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .admin-item-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .topup-card-body {
        grid-template-columns: 1fr;
    }

    .upload-preview-group {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* 5. MEMBERS & ROLE MANAGEMENT STYLES (Clean White / Blue Theme) */
/* ========================================= */
.user-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 1.25rem 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.05);
    transition: all 0.25s ease;
}

.user-card:hover {
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
}

.user-card-info {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.user-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    flex-shrink: 0;
}

.user-avatar-superadmin {
    background: linear-gradient(135deg, #7c3aed, #d97706) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
    border: 2px solid #fde047;
}

.user-name-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-email-text {
    font-size: 0.84rem;
    color: #64748b !important;
    margin-top: 3px;
}

/* Specific High-Contrast Role Badges */
.badge-role-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.badge-role-admin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.badge-role-superadmin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 900;
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1.5px solid #fcd34d !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

@keyframes superadminPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.7); }
}

.user-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ========================================= */
/* 6. ANNOUNCEMENT STYLES (ข้อ 6) */
/* ========================================= */
.announcement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.announcement-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.announcement-card.is-inactive {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.05);
}

.announcement-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.type-marquee {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.type-popup {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* ========================================= */
/* 7. REVIEWS MODERATION STYLES (ข้อ 7) */
/* ========================================= */
.review-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
}

.review-admin-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.review-admin-card.is-hidden {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.status-badge-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge-hidden {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ========================================= */
/* 8. AUDIT LOGS STYLES (ข้อ 8) */
/* ========================================= */
.audit-log-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
}

.audit-log-item:hover {
    border-color: var(--border-glow);
}

.audit-action-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-adjust_balance {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.action-change_role {
    background: rgba(245, 158, 11, 0.15);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.action-delete_user, .action-delete_product {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-dispute_replace_id, .action-dispute_refund {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.action-update_settings {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* ========================================= */
/* 9. DISPUTES & CLAIMS STYLES (ข้อ 9) */
/* ========================================= */
.dispute-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.dispute-card:hover {
    border-color: var(--border-glow);
}

.dispute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================= */
/* 10. PAYMENT ACCOUNTS CARD STYLES */
/* ========================================= */
.payment-acc-card {
    background: linear-gradient(135deg, #111827 0%, #0b0f19 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.payment-acc-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(14, 165, 233, 0.2);
}

.payment-acc-card.is-default-acc {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 15px rgba(245, 158, 11, 0.15);
}

.payment-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.payment-acc-bank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.payment-acc-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.payment-acc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.payment-acc-holder {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.payment-acc-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 700;
    color: #facc15;
}

.payment-acc-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.dispute-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-dispute-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

.badge-dispute-replacement {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-dispute-refund {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-dispute-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.dispute-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .dispute-body-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* 11. GORGEOUS ACTION DIALOG POPUP & TOP-RIGHT TOASTS */
/* ========================================= */

/* Action Dialog Modal Card */
.action-dialog-overlay {
    backdrop-filter: blur(12px);
    background: rgba(3, 7, 18, 0.85);
    z-index: 100000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.action-dialog-card {
    background: linear-gradient(145deg, #111827 0%, #0b0f19 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(14, 165, 233, 0.25);
    border-radius: 24px;
    padding: 2.2rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.75); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.action-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.action-dialog-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    position: relative;
    transition: transform 0.3s ease;
}

.action-dialog-icon-wrapper.success {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.05) 70%);
    color: #4ade80;
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    animation: pulseGlowSuccess 2s infinite;
}

.action-dialog-icon-wrapper.error {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 70%);
    color: #f87171;
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    animation: pulseGlowError 2s infinite;
}

.action-dialog-icon-wrapper.warning {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
    color: #facc15;
    border: 2px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.action-dialog-icon-wrapper.info {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.05) 70%);
    color: #38bdf8;
    border: 2px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
}

@keyframes pulseGlowSuccess {
    0%, 100% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 45px rgba(34, 197, 94, 0.7); }
}

@keyframes pulseGlowError {
    0%, 100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 45px rgba(239, 68, 68, 0.7); }
}

.action-dialog-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.action-dialog-message {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.action-dialog-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ===== ENHANCED TOP-RIGHT TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: toastSlideInRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.toast.toast-hide {
    animation: toastSlideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

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

.toast-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 197, 94, 0.25);
}
.toast-success .toast-icon-box {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239, 68, 68, 0.25);
}
.toast-error .toast-icon-box {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.25);
}
.toast-warning .toast-icon-box {
    background: rgba(245, 158, 11, 0.2);
    color: #facc15;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.toast-info {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(14, 165, 233, 0.25);
}
.toast-info .toast-icon-box {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.toast-message {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close-btn:hover {
    color: #ffffff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    animation: toastProgress 3.5s linear forwards;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}
.toast-error .toast-progress {
    background: linear-gradient(90deg, #f87171, #ef4444);
}
.toast-warning .toast-progress {
    background: linear-gradient(90deg, #facc15, #f59e0b);
}

/* ======================================================
   ADMIN MODAL & POPUP ENHANCEMENTS (Smooth, Wide, White & Blue)
====================================================== */
.modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.25s ease !important;
}

.modal {
    background: #ffffff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #bae6fd transparent !important;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-thumb {
    background: #bae6fd;
    border-radius: 10px;
}

.modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.75rem !important;
    position: sticky;
    top: 0;
    z-index: 20;
}

.modal-title {
    color: #0f172a !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

.modal-title i {
    color: #0284c7 !important;
}

.modal-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
}

.modal-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: none !important;
}

.modal-body {
    padding: 1.5rem 1.75rem !important;
}

.modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.75rem !important;
    border-bottom-left-radius: 22px !important;
    border-bottom-right-radius: 22px !important;
}

/* Modal Form Inputs on White Background */
.modal .form-input,
.modal textarea.form-input,
.modal select.form-input {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 12px !important;
}

.modal .form-input:focus,
.modal textarea.form-input:focus,
.modal select.form-input:focus {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.modal .form-label {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

/* User & Review & Dispute Cards in Admin */
.user-admin-card,
.review-admin-card,
.audit-log-item,
.dispute-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.06) !important;
    transition: all 0.2s ease !important;
    color: #0f172a !important;
}

.user-admin-card:hover,
.review-admin-card:hover,
.audit-log-item:hover,
.dispute-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12) !important;
    transform: translateY(-2px);
}

.user-name-text,
.audit-log-item b,
.dispute-card b,
.review-admin-card div {
    color: #0f172a !important;
}

.game-ids-table {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.game-ids-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
}

/* Dashboard Analytics & Charts Grid Responsive */
@media (max-width: 1024px) {
    .dashboard-analytics-grid {
        grid-template-columns: 1fr !important;
    }
}

.analytics-card {
    transition: all 0.25s ease;
}

.analytics-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12) !important;
}

/* Smooth & Highly Responsive Delete Button */
.btn-danger,
button.btn-danger {
    background: #ef4444 !important;
    border: 1px solid #dc2626 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
}

.btn-danger:hover,
button.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-danger:active,
button.btn-danger:active {
    transform: scale(0.96) !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2) !important;
}

/* Action Dialog Fast Response */
.action-dialog-overlay {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.action-dialog-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    max-width: 440px !important;
    padding: 1.75rem !important;
    text-align: center !important;
    position: relative !important;
}

.action-dialog-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
}

.action-dialog-icon-wrapper {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin: 0 auto 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
}

.action-dialog-icon-wrapper.danger {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border: 1.5px solid #fca5a5 !important;
}

.action-dialog-icon-wrapper.success {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border: 1.5px solid #bbf7d0 !important;
}

.action-dialog-icon-wrapper.warning {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border: 1.5px solid #fde68a !important;
}

.action-dialog-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.action-dialog-message {
    font-size: 0.92rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

.action-dialog-buttons {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: center !important;
}




