/**
 * Casinofy Dashboard & Profile - Modern Light Theme
 * Enhanced design with smooth animations and better UX
 */

/* =====================================================
   CSS Variables - Light Theme
   ===================================================== */
:root {
    --dash-bg-primary: #ffffff;
    --dash-bg-secondary: #f5f7fa;
    --dash-bg-card: #ffffff;
    --dash-bg-card-hover: #fafafa;
    --dash-bg-input: #f8f9fb;
    --dash-border: rgba(0, 0, 0, 0.08);
    --dash-border-hover: rgba(139, 92, 246, 0.4);
    --dash-text-primary: #1a1a2e;
    --dash-text-secondary: #4a4a5a;
    --dash-text-muted: #8b8fa3;
    --dash-accent: #8b5cf6;
    --dash-accent-light: #a78bfa;
    --dash-accent-hover: #7c3aed;
    --dash-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --dash-gradient-hover: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    --dash-success: #10b981;
    --dash-warning: #f59e0b;
    --dash-error: #ef4444;
    --dash-radius: 20px;
    --dash-radius-md: 16px;
    --dash-radius-sm: 12px;
    --dash-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --dash-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --dash-shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.15);
    --dash-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Base Dashboard Layout
   ===================================================== */
.page-template-user_profile,
.page-template-user_profile_update {
    background: var(--dash-bg-secondary);
    min-height: 100vh;
}

.page-template-user_profile .breadcrumb-section,
.page-template-user_profile_update .breadcrumb-section {
    background: transparent;
    padding: 24px 0 8px;
}

.page-template-user_profile .breadcrumb,
.page-template-user_profile_update .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.page-template-user_profile .breadcrumb-item a,
.page-template-user_profile_update .breadcrumb-item a {
    color: var(--dash-text-muted);
    text-decoration: none;
    transition: var(--dash-transition);
}

.page-template-user_profile .breadcrumb-item a:hover,
.page-template-user_profile_update .breadcrumb-item a:hover {
    color: var(--dash-accent);
}

.page-template-user_profile .breadcrumb-item.active,
.page-template-user_profile_update .breadcrumb-item.active {
    color: var(--dash-text-primary);
    font-weight: 500;
}

.page-template-user_profile .breadcrumb-item + .breadcrumb-item::before,
.page-template-user_profile_update .breadcrumb-item + .breadcrumb-item::before {
    color: var(--dash-text-muted);
}

/* =====================================================
   Dashboard Container
   ===================================================== */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

@media (max-width: 1024px) {
    .dashboard-wrapper {
        grid-template-columns: 260px 1fr;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px 60px;
    }
}

/* =====================================================
   Sidebar
   ===================================================== */
.dashboard-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        position: relative;
        top: 0;
    }
}

.dashboard-sidebar-inner {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
}

/* User Profile Card */
.sidebar-profile {
    padding: 32px 24px 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--dash-border);
    position: relative;
}

.sidebar-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--dash-gradient);
    opacity: 0.08;
    border-radius: var(--dash-radius) var(--dash-radius) 0 0;
}

.sidebar-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 16px;
    position: relative;
    background: var(--dash-gradient);
    padding: 3px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    transition: var(--dash-transition);
}

.sidebar-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.sidebar-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--dash-accent);
}

.sidebar-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-text-primary);
    margin-bottom: 4px;
    position: relative;
}

.sidebar-email {
    font-size: 13px;
    color: var(--dash-text-muted);
    margin-bottom: 14px;
    word-break: break-all;
}

.sidebar-member-since {
    font-size: 12px;
    color: var(--dash-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

.sidebar-member-since svg {
    width: 14px;
    height: 14px;
    stroke: var(--dash-accent);
}

/* Sidebar Stats */
.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--dash-border);
}

.sidebar-stat {
    padding: 18px 12px;
    text-align: center;
    border-right: 1px solid var(--dash-border);
    transition: var(--dash-transition);
    cursor: default;
}

.sidebar-stat:last-child {
    border-right: none;
}

.sidebar-stat:hover {
    background: rgba(139, 92, 246, 0.04);
}

.sidebar-stat-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--dash-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.sidebar-stat-label {
    font-size: 11px;
    color: var(--dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--dash-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--dash-transition);
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
}

.sidebar-nav-item::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
    transition: var(--dash-transition);
}

.sidebar-nav-item:hover {
    color: var(--dash-text-primary);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.06) 0%, transparent 100%);
}

.sidebar-nav-item:hover::after {
    opacity: 0.5;
}

.sidebar-nav-item.active {
    color: var(--dash-accent);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    border-left-color: var(--dash-accent);
}

.sidebar-nav-item.active::after {
    opacity: 0;
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: var(--dash-transition);
}

.sidebar-nav-item:hover svg {
    transform: scale(1.1);
}

.sidebar-nav-item .badge {
    margin-left: auto;
    background: var(--dash-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--dash-border);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--dash-radius-sm);
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--dash-transition);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.sidebar-logout svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   Main Content Area
   ===================================================== */
.dashboard-main {
    min-width: 0;
}

/* Welcome Header */
.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-welcome h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dash-text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.dashboard-welcome p {
    color: var(--dash-text-muted);
    font-size: 15px;
    margin: 0;
}

@media (max-width: 768px) {
    .dashboard-welcome h1 {
        font-size: 26px;
    }
}

/* Quick Stats Cards */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.dashboard-stat-card {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-md);
    padding: 24px;
    box-shadow: var(--dash-shadow);
    transition: var(--dash-transition);
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dash-gradient);
    opacity: 0;
    transition: var(--dash-transition);
}

.dashboard-stat-card:hover {
    border-color: var(--dash-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--dash-shadow-hover);
}

.dashboard-stat-card:hover::before {
    opacity: 1;
}

.dashboard-stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--dash-transition);
}

.dashboard-stat-card:hover .dashboard-stat-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.dashboard-stat-card-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: var(--dash-accent);
}

.dashboard-stat-card-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--dash-success);
}

.dashboard-stat-card-icon.yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--dash-warning);
}

.dashboard-stat-card-icon svg {
    width: 26px;
    height: 26px;
}

.dashboard-stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--dash-text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.dashboard-stat-card-label {
    font-size: 13px;
    color: var(--dash-text-muted);
    font-weight: 500;
}

/* Content Sections */
.dashboard-section {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-md);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--dash-shadow);
    transition: var(--dash-transition);
}

.dashboard-section:hover {
    box-shadow: var(--dash-shadow-lg);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--dash-accent);
}

.dashboard-section-action {
    font-size: 13px;
    color: var(--dash-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--dash-transition);
}

.dashboard-section-action:hover {
    color: var(--dash-accent-hover);
    gap: 8px;
}

/* Panels */
.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.dashboard-empty {
    text-align: center;
    padding: 60px 24px;
}

.dashboard-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef0f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-empty-icon svg {
    width: 36px;
    height: 36px;
    color: var(--dash-text-muted);
}

.dashboard-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dash-text-primary);
    margin-bottom: 8px;
}

.dashboard-empty p {
    color: var(--dash-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--dash-gradient);
    border: none;
    border-radius: var(--dash-radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--dash-transition);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.dashboard-empty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* =====================================================
   Profile Settings Page
   ===================================================== */
.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Form Section */
.profile-form-section {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-md);
    padding: 28px;
    box-shadow: var(--dash-shadow);
    transition: var(--dash-transition);
}

.profile-form-section:hover {
    box-shadow: var(--dash-shadow-lg);
}

.profile-form-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dash-text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
}

.profile-form-title svg {
    color: var(--dash-accent);
}

/* Form Groups */
.profile-form-group {
    margin-bottom: 20px;
}

.profile-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--dash-bg-input);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--dash-transition);
}

.profile-form-input:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.profile-form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.profile-form-input:disabled {
    background: #f0f2f5;
    color: var(--dash-text-muted);
    cursor: not-allowed;
}

.profile-form-input::placeholder {
    color: var(--dash-text-muted);
}

.profile-form-hint {
    font-size: 12px;
    color: var(--dash-text-muted);
    margin-top: 6px;
}

.profile-form-error {
    font-size: 12px;
    color: var(--dash-error);
    margin-top: 6px;
    font-weight: 500;
}

/* Checkbox */
.profile-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--dash-text-secondary);
}

.profile-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--dash-accent);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
}

.profile-checkbox span {
    line-height: 1.5;
}

/* Avatar Selection */
.profile-avatars {
    margin-bottom: 24px;
}

.profile-avatars-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-avatars-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-avatars-grid .profile-avatar-option {
    width: 60px;
    height: 60px;
}

@media (max-width: 576px) {
    .profile-avatars-grid .profile-avatar-option {
        width: 52px;
        height: 52px;
    }
}

.profile-avatar-option {
    position: relative;
    cursor: pointer;
    border-radius: var(--dash-radius-sm);
    overflow: hidden;
    transition: var(--dash-transition);
    border: 3px solid transparent;
}

.profile-avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-avatar-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: var(--dash-transition);
    border-radius: 8px;
}

.profile-avatar-option:hover {
    transform: translateY(-2px);
}

.profile-avatar-option:hover img {
    transform: scale(1.05);
}

.profile-avatar-option.active {
    border-color: var(--dash-accent);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.profile-avatar-option.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--dash-accent);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upload Avatar */
.profile-upload-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(168, 85, 247, 0.02) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: var(--dash-radius-md);
    cursor: pointer;
    transition: var(--dash-transition);
    text-align: center;
}

.profile-upload-avatar:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: var(--dash-accent);
}

.profile-upload-avatar svg {
    width: 40px;
    height: 40px;
    color: var(--dash-accent);
    margin-bottom: 12px;
}

.profile-upload-avatar p {
    font-size: 13px;
    color: var(--dash-text-muted);
    margin: 0;
}

.profile-upload-avatar input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-upload-avatar.hide {
    display: none;
}

.file_output {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file_output.hide {
    display: none;
}

.file_output img {
    border-radius: var(--dash-radius-sm);
    box-shadow: var(--dash-shadow);
}

/* Wide Profile Section */
.profile-form-section-wide {
    grid-column: 1 / -1;
}

/* Profile Picture Layout */
.profile-picture-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .profile-picture-layout {
        flex-direction: column;
        gap: 24px;
    }
}

.profile-current-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.current-avatar-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--dash-accent);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
    position: relative;
}

.current-avatar-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.current-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-avatar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-avatar-selection {
    flex: 1;
}

.profile-upload-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--dash-border);
}

.upload_profile_image {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-upload-avatar {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(168, 85, 247, 0.02) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: var(--dash-radius-sm);
    cursor: pointer;
    transition: var(--dash-transition);
}

.profile-upload-avatar:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: var(--dash-accent);
}

.profile-upload-avatar svg {
    width: 22px;
    height: 22px;
    color: var(--dash-accent);
    margin: 0;
}

.profile-upload-avatar span {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-accent);
}

.profile-upload-avatar p {
    display: none;
}

.uploaded-preview {
    position: relative;
    display: inline-block;
}

.uploaded-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--dash-radius-sm);
    box-shadow: var(--dash-shadow);
}

.btn-remove-upload {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dash-error);
    border: 2px solid #fff;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    transition: var(--dash-transition);
}

.btn-remove-upload:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.upload-hint {
    font-size: 11px;
    color: var(--dash-text-muted);
    margin: 0;
}

/* Buttons */
.profile-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--dash-gradient);
    border: none;
    border-radius: var(--dash-radius-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dash-transition);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    width: 100%;
}

.profile-btn-primary:hover {
    background: var(--dash-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.profile-btn-primary:active {
    transform: translateY(0);
}

.profile-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--dash-radius-sm);
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dash-transition);
}

.profile-btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* =====================================================
   Enhanced Profile Picture Section
   ===================================================== */
.profile-picture-section {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-md);
    padding: 28px;
    box-shadow: var(--dash-shadow);
}

.profile-picture-section .profile-form-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dash-text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-picture-section .profile-form-title svg {
    width: 22px;
    height: 22px;
    color: var(--dash-accent);
}

/* Avatar Selection Grid */
.avatar-selection {
    margin-bottom: 28px;
}

.avatar-selection-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 576px) {
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.avatar-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 3px solid transparent;
    background: var(--dash-bg-secondary);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.avatar-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-item img,
.avatar-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
    color: var(--dash-accent);
    opacity: 0.7;
}

.avatar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.avatar-item:hover img,
.avatar-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.avatar-item.active {
    border-color: var(--dash-accent);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
}

.avatar-item.active img,
.avatar-item.active svg {
    opacity: 1;
}

.avatar-item.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: var(--dash-gradient);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Upload Your Own Section */
.upload-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--dash-border);
}

.upload-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-preview-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.upload-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--dash-shadow);
    border: 2px solid var(--dash-border);
    background: var(--dash-bg-secondary);
    flex-shrink: 0;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.upload-preview .remove-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.upload-preview .remove-image svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.upload-dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(168, 85, 247, 0.02) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 120px;
}

.upload-dropzone:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: var(--dash-accent);
    transform: translateY(-2px);
}

.upload-dropzone svg {
    width: 36px;
    height: 36px;
    color: var(--dash-accent);
    margin-bottom: 12px;
}

.upload-dropzone-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dash-text-primary);
    margin-bottom: 4px;
}

.upload-dropzone-hint {
    font-size: 12px;
    color: var(--dash-text-muted);
}

/* =====================================================
   Enhanced Danger Zone Section
   ===================================================== */
.danger-zone-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(220, 38, 38, 0.01) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--dash-radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.danger-zone-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #ef4444 100%);
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.danger-zone-icon {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.danger-zone-icon svg {
    width: 22px;
    height: 22px;
    color: #ef4444;
}

.danger-zone-title {
    font-size: 17px;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
}

.danger-zone-content {
    text-align: center;
    padding: 16px 0;
}

.danger-zone-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.danger-zone-warning svg {
    width: 20px;
    height: 20px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.danger-zone-warning p {
    font-size: 13px;
    color: var(--dash-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.danger-zone-warning strong {
    color: #ef4444;
}

.btn-delete-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-delete-account svg {
    width: 18px;
    height: 18px;
}

.btn-delete-account:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.btn-delete-account:active {
    transform: translateY(0);
}

/* Form Actions */
.profile-form-actions {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--dash-border);
}

/* Countries List Dropdown */
.profile-form-group {
    position: relative;
}

#countries_list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--dash-shadow-lg);
    z-index: 100;
}

#countries_list:empty {
    display: none;
}

#countries_list .result_entry {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dash-border);
    color: var(--dash-text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--dash-transition);
}

#countries_list .result_entry:last-child {
    border-bottom: none;
}

#countries_list .result_entry:hover {
    background: rgba(139, 92, 246, 0.08);
}

/* Hide empty dropdown line */
#countries_list .loader_wrapper {
    padding: 16px;
    text-align: center;
}

/* Fix for country field wrapper */
.profile-form-group #countries_list:not(:has(.result_entry)):not(:has(.loader_wrapper)) {
    display: none !important;
    border: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =====================================================
   Responsible Gaming Widget
   ===================================================== */
.sidebar-responsible-gaming {
    margin: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--dash-radius-sm);
}

.sidebar-responsible-gaming h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-responsible-gaming h4 svg {
    width: 16px;
    height: 16px;
    stroke: var(--dash-accent);
}

.sidebar-responsible-gaming p {
    font-size: 12px;
    color: var(--dash-text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.sidebar-responsible-gaming .btn-exclusion {
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    color: var(--dash-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dash-transition);
}

.sidebar-responsible-gaming .btn-exclusion:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--dash-accent);
}

.sidebar-exclusion-active {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--dash-warning);
}

/* =====================================================
   Sidebar Danger Zone (Compact)
   ===================================================== */
.sidebar-danger-zone {
    margin: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(220, 38, 38, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: var(--dash-radius-sm);
}

.sidebar-danger-zone h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--dash-error);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-danger-zone h4 svg {
    width: 14px;
    height: 14px;
    stroke: var(--dash-error);
}

.sidebar-danger-zone p {
    font-size: 11px;
    color: var(--dash-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.sidebar-btn-delete {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: var(--dash-error);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dash-transition);
}

.sidebar-btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--dash-error);
}

/* =====================================================
   Mobile Tabs
   ===================================================== */
.dashboard-tabs-mobile {
    display: none;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .dashboard-tabs-mobile {
        display: block;
    }
}

.dashboard-tabs-mobile .tabs-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0;
    list-style: none;
}

.dashboard-tabs-mobile .tab-item {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 25px;
    color: var(--dash-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dash-transition);
}

.dashboard-tabs-mobile .tab-item:hover {
    border-color: var(--dash-border-hover);
}

.dashboard-tabs-mobile .tab-item.active {
    background: var(--dash-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* =====================================================
   Review & Message Items
   ===================================================== */
.dashboard-review-item,
.dashboard-message-item {
    background: var(--dash-bg-input);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    padding: 20px;
    margin-bottom: 12px;
    transition: var(--dash-transition);
}

.dashboard-review-item:hover,
.dashboard-message-item:hover {
    border-color: var(--dash-border-hover);
    transform: translateX(4px);
}

.dashboard-review-item:last-child,
.dashboard-message-item:last-child {
    margin-bottom: 0;
}

.dashboard-review-header {
    display: flex;
    align-items: center;
        gap: 12px;
    margin-bottom: 10px;
}

.dashboard-review-target,
.dashboard-message-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dash-text-primary);
}

.dashboard-review-content,
.dashboard-message-preview {
    font-size: 14px;
    color: var(--dash-text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.dashboard-review-date,
.dashboard-message-date {
    font-size: 12px;
    color: var(--dash-text-muted);
}

/* =====================================================
   Review Item Styles (New Design)
   ===================================================== */
.dashboard-review-item {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--dash-transition);
}

.dashboard-review-item:hover {
    border-color: var(--dash-border-hover);
    box-shadow: var(--dash-shadow);
}

.dashboard-review-item:last-child {
    margin-bottom: 0;
}

.review-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.review-item-meta {
    flex: 1;
}

.review-item-target {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dash-text-primary);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.review-item-target:hover {
    color: var(--dash-accent);
}

.review-item-date {
    font-size: 13px;
    color: var(--dash-text-muted);
}

.review-item-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.review-item-rating .rating-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-accent);
}

.review-item-rating .rating-stars {
    display: flex;
    gap: 2px;
}

.review-item-rating .star {
    width: 16px;
    height: 16px;
    stroke: #d1d5db;
    fill: none;
}

.review-item-rating .star.filled {
    stroke: #fbbf24;
    fill: #fbbf24;
}

.review-item-content {
    margin-bottom: 16px;
}

.review-item-content .review-text {
    font-size: 14px;
    color: var(--dash-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Review Actions */
.review-item-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--dash-border);
}

.btn-edit-review,
.btn-delete-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
}

.btn-edit-review {
    color: var(--dash-accent);
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.btn-edit-review:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--dash-accent);
}

.btn-edit-review svg {
    width: 14px;
    height: 14px;
}

.btn-delete-review {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.btn-delete-review:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

.btn-delete-review svg {
    width: 14px;
    height: 14px;
}

/* Review Edit Form */
.review-edit-form {
    padding: 16px;
    background: var(--dash-bg-secondary);
    border-radius: var(--dash-radius-sm);
    margin-bottom: 16px;
}

.review-edit-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dash-text-primary);
    background: #ffffff;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.review-edit-textarea:focus {
    outline: none;
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.review-edit-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.review-edit-rating label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-secondary);
}

.review-edit-rating-select {
    padding: 8px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dash-text-primary);
    background: #ffffff;
    cursor: pointer;
}

.review-edit-rating-select:focus {
    outline: none;
    border-color: var(--dash-accent);
}

.review-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-save-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--dash-gradient);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-save-review svg {
    width: 14px;
    height: 14px;
}

.btn-cancel-edit {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    color: var(--dash-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-edit:hover {
    background: var(--dash-bg-secondary);
    border-color: var(--dash-text-muted);
}

/* Review Item being edited */
.dashboard-review-item.editing .review-item-content,
.dashboard-review-item.editing .review-item-actions {
    display: none;
}

.dashboard-review-item.editing .review-edit-form {
    display: block !important;
}

/* Delete confirmation */
.dashboard-review-item.deleting {
    opacity: 0.5;
    pointer-events: none;
}

/* Legacy review styles override */
.max-review {
    display: none !important;
}

.btm-line {
    display: none !important;
}

/* =====================================================
   Favorites Grid Styles
   ===================================================== */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 576px) {
    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.favorite-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dash-bg-secondary);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: var(--dash-accent);
}

.favorite-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-item:hover .favorite-image img {
    transform: scale(1.05);
}

.favorite-item-name {
    display: block;
    width: 100%;
    padding: 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.03) 0%, transparent 100%);
    color: var(--dash-text-primary);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--dash-border);
}

/* Game-specific favorites - Wider with 4:3 ratio */
.favorite-item-game .favorite-image {
    aspect-ratio: 4/3;
    background: #1a1a2e;
}

.favorite-item-game .favorite-image img {
    border-radius: 0;
    object-fit: cover;
}

/* Casino-specific favorites - Uniform light gray background */
.favorite-item-casino {
    background: #f5f5f7 !important;
}

.favorite-item-casino .favorite-image {
    aspect-ratio: 1;
    padding: 20px;
    background: #f5f5f7;
}

.favorite-item-casino .favorite-image img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.favorite-item-casino img {
    object-fit: contain;
    max-height: 70%;
}

/* Favorite count badge in title */
.fav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--dash-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
}

/* =====================================================
   Recommendations Grid Styles
   ===================================================== */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 576px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.recommendation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: var(--dash-bg-secondary);
    border: 1px solid var(--dash-border);
}

.recommendation-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: var(--dash-accent);
}

.recommendation-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.recommendation-item:hover .recommendation-image img {
    transform: scale(1.05);
}

.recommendation-name {
    display: block;
    width: 100%;
    padding: 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.03) 0%, transparent 100%);
    color: var(--dash-text-primary);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--dash-border);
}

/* Casino-specific - Uniform light gray background */
.recommendation-casino {
    background: #f5f5f7 !important;
}

.recommendation-casino .recommendation-image {
    padding: 20px;
    background: #f5f5f7;
}

.recommendation-casino .recommendation-image img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

/* Game-specific - Wider cards */
.recommendation-game {
    aspect-ratio: auto;
}

.recommendation-game .recommendation-image {
    padding: 0;
    background: #1a1a2e;
    aspect-ratio: 4/3;
}

.recommendation-game .recommendation-image img {
    border-radius: 0;
    object-fit: cover;
}

/* No recommendations message */
.no-recommendations {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--dash-text-muted);
    font-size: 14px;
}

/* =====================================================
   Utilities
   ===================================================== */
.hide {
    display: none !important;
}

/* Custom Scrollbar */
.dashboard-sidebar-inner::-webkit-scrollbar,
#countries_list::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar-inner::-webkit-scrollbar-track,
#countries_list::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar-inner::-webkit-scrollbar-thumb,
#countries_list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

.dashboard-sidebar-inner::-webkit-scrollbar-thumb:hover,
#countries_list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* =====================================================
   Profile Page Existing Element Overrides
   ===================================================== */

/* Fix country field dropdown line issue */
.page-template-user_profile_update #countries_list,
.page-template-user_profile #countries_list {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    box-shadow: var(--dash-shadow-lg);
    margin-top: 4px;
    z-index: 100;
}

.page-template-user_profile_update #countries_list:empty,
.page-template-user_profile #countries_list:empty,
.page-template-user_profile_update #countries_list:not(.active),
.page-template-user_profile #countries_list:not(.active) {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Profile Picture Section - Override existing styles */
.page-template-user_profile_update .profile .profile-form-section:has(.avatars_list),
.page-template-user_profile .profile .profile-form-section:has(.avatars_list) {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-md);
    padding: 28px;
    box-shadow: var(--dash-shadow);
}

/* Avatar list styling */
.avatars_list {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 24px;
}

@media (max-width: 576px) {
    .avatars_list {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.avatars_list label {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 3px solid transparent;
    background: var(--dash-bg-secondary);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.avatars_list label img,
.avatars_list label svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.avatars_list label:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.avatars_list label:hover img,
.avatars_list label:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.avatars_list label.active,
.avatars_list label:has(input:checked) {
    border-color: var(--dash-accent) !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
}

.avatars_list label.active img,
.avatars_list label.active svg,
.avatars_list label:has(input:checked) img,
.avatars_list label:has(input:checked) svg {
    opacity: 1;
}

.avatars_list label.active::after,
.avatars_list label:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: var(--dash-gradient);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.avatars_list input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* File output / uploaded image styling */
.file_output {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.file_output img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--dash-shadow);
    border: 2px solid var(--dash-border);
}

.file_output .remove_profile_image,
.file_output .btn-remove {
    position: relative;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    margin-left: -36px;
    margin-top: -8px;
    z-index: 1;
}

.file_output .remove_profile_image:hover,
.file_output .btn-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.file_output .remove_profile_image svg,
.file_output .remove_profile_image img,
.file_output .btn-remove svg,
.file_output .btn-remove img {
    width: 14px !important;
    height: 14px !important;
    filter: brightness(0) invert(1);
}

/* Danger Zone - Override existing styles */
.page-template-user_profile_update .profile .profile-form-section:has(.btn-delete-account),
.page-template-user_profile_update .profile .profile-form-section:has(.remove_user),
.page-template-user_profile .profile .profile-form-section:has(.btn-delete-account),
.page-template-user_profile .profile .profile-form-section:has(.remove_user) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(220, 38, 38, 0.01) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--dash-radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.page-template-user_profile_update .profile .profile-form-section:has(.btn-delete-account)::before,
.page-template-user_profile_update .profile .profile-form-section:has(.remove_user)::before,
.page-template-user_profile .profile .profile-form-section:has(.btn-delete-account)::before,
.page-template-user_profile .profile .profile-form-section:has(.remove_user)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #ef4444 100%);
}

.page-template-user_profile_update .profile .profile-form-section:has(.remove_user) .profile-form-title,
.page-template-user_profile .profile .profile-form-section:has(.remove_user) .profile-form-title {
    color: #ef4444;
    border-bottom-color: rgba(239, 68, 68, 0.1);
}

/* Remove user / Delete account button styling */
.remove_user,
.btn-delete-account,
a.remove_user {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    background: transparent !important;
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 12px !important;
    color: #ef4444 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.remove_user:hover,
.btn-delete-account:hover,
a.remove_user:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: #ef4444 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15) !important;
}

.remove_user svg,
.btn-delete-account svg {
    width: 18px;
    height: 18px;
}

/* Danger Zone content center */
.page-template-user_profile_update .profile .profile-form-section:has(.remove_user) > *:not(.profile-form-title),
.page-template-user_profile .profile .profile-form-section:has(.remove_user) > *:not(.profile-form-title) {
    text-align: center;
}
