/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Dark Theme Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-elevated: #1e293b;
    
    /* Accent Colors */
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.1);
    
    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(59, 130, 246, 0.3);
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Button Styles */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-special {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-special:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-safe {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.4);
}

.btn-safe:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #6d28d9, #5b21b6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #42a5f5;
    border-radius: 6px;
    padding: 0.4rem;
    margin-left: 0.2rem;
    font-size: 1rem;
    vertical-align: middle;
    transition: background 0.18s;
}
.btn-icon:hover, .btn-icon:focus {
    background: #223040;
    color: #64b5f6;
    outline: none;
}

.btn-icon i {
    pointer-events: none;
}

/* Main Content */
.main {
    padding: 2rem 0 4rem;
}

/* Controls Bar */
.controls-bar {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
    gap: 1.5rem;
}

.controls-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.controls-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Filter Styles */
.status-filter,
.platform-filter,
.sort-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-filter label,
.platform-filter label,
.sort-filter label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.bulk-actions-bar .bulk-actions-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.bulk-actions-bar .bulk-actions-label i {
    color: var(--accent-primary);
}

.bulk-actions-bar .btn {
    white-space: nowrap;
}

/* Table Header Info */
.table-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 1rem 1rem 0 0;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.table-header-info .account-count {
    margin-left: auto;
}

.table-header-info > .pagination-info-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-header-info .platform-filter,
.table-header-info .sort-filter {
    margin: 0;
}

.pagination-info-top {
    display: flex;
    align-items: center;
}

.pagination-info-top span {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.025em;
}

.account-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    transition: color var(--transition-fast);
}

.checkbox-container:hover {
    color: var(--text-primary);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    border-radius: 0.25rem;
}

/* Status Filter */
.status-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.status-filter label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

/* Platform select with icons */
.platform-select.has-icon {
    padding-left: 2.75rem !important;
}

.filter-select:hover {
    border-color: var(--border-accent);
    background-color: var(--bg-elevated);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filter-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Custom Platform Select with Icon Preview */
.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-select {
    flex: 1;
}

.platform-icon-preview {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 20px;
    min-width: 50px;
    justify-content: center;
}

.platform-icon-preview img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
}

.platform-icon-preview .icon-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 0.15rem;
}

/* Search Box */
.search-box {
    position: relative;
    min-width: 280px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.search-box input:hover {
    border-color: var(--border-accent);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--bg-elevated);
}

.search-box input:focus + i {
    color: var(--accent-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Refresh Button */
.btn-refresh {
    padding: 0.625rem;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.btn-refresh i {
    font-size: 1rem;
}

/* Table Styles */
.table-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    border-top: none;
}

.accounts-table {
    width: 100%;
    border-collapse: collapse;
}

.accounts-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
}

.accounts-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-secondary);
    vertical-align: middle;
    font-size: 0.875rem;
}

.account-row {
    transition: background-color var(--transition-fast);
}

.account-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.account-row:last-child td {
    border-bottom: none;
}

/* Column Widths */
.checkbox-col { width: 50px; }
.date-col { width: 140px; }
.email-col { width: 200px; }
.coins-col { width: 100px; }
.players-col { width: 90px; }
.market-col { width: 70px; text-align: center; }
.device-col { width: 80px; text-align: center; }
.checked-col { width: 70px; }
.action-col { width: 220px; }

/* Date/Time Display */
.date-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* Last Checked Display */
.last-checked-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-ago {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Email Display */
.email {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

.email:hover {
    color: var(--accent-primary-hover);
}

/* Live Message Badges */
.livemessage-badge {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0.3125rem;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
}

.livemessage-badge.banned {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulseRed 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.livemessage-badge.safe {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.email:hover::after {
    width: 100%;
}

/* Coins Cell */
.coins-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    justify-content: center;
    padding-right: 0.5rem;
}

.coins-row,
.points-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coins-value {
    font-weight: 600;
    color: #e8eaed;
}

.points-value {
    font-weight: 500;
    color: #a0a6b1;
    font-size: 0.9em;
}

.coin-icon,
.points-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.points-icon {
    width: 18px;
    height: 18px;
}

/* Device Icons */
.device-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Button Spinner */
.btn-spinner {
    display: none;
    margin-left: 6px;
}

.btn-spinner i {
    font-size: 0.9em;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-error {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Safe Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.badge-safe {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: 0.5rem;
}

.email-col .badge-safe,
.account-card-email .badge-safe {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
}

.status-unchecked {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-enabled {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-error {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-credentials {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-signed-in {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-banned {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-checking {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-signed-in {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-top-color: var(--info);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Refresh Button - Only icon spins on hover */
.btn-refresh {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.625rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: none; /* Button doesn't rotate */
}

.btn-refresh i {
    color: var(--accent-primary);
    font-size: 1.125rem;
    transition: transform 0.6s ease;
}

.btn-refresh:hover i {
    transform: rotate(360deg); /* Only icon rotates */
}

/* Coins Value */
.coins-value {
    font-weight: 700;
    color: var(--success);
    font-size: 0.9375rem;
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* Device Info */
.device-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.device-info i {
    color: var(--accent-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.page-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    padding: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 1000;
    animation: fadeIn 0.25s ease;
    padding: 1rem;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.modal-credentials {
    max-width: 640px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.75rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.modal-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.modal-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.modal-tab i {
    font-size: 0.875rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Notes Styling */
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.notes-input-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    transition: all var(--transition-base);
}

.notes-input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notes-input-group input::placeholder {
    color: var(--text-tertiary);
}

.notes-input-group .btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.note-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-base);
}

.note-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.note-text {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.note-date {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.note-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.note-delete-btn:hover {
    background: var(--error);
    color: white;
}

.notes-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.notes-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* History Styling */
.history-container {
    display: flex;
    flex-direction: column;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.history-entry {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all var(--transition-base);
}

.history-entry:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-data {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.375rem;
}

.history-item i {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.history-item.tm-enabled {
    color: var(--success);
    font-weight: 600;
}

.history-item.tm-disabled {
    color: var(--text-tertiary);
}

.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.history-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Notes Icon (next to email) */
.notes-icon {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all var(--transition-base);
    margin-left: 0.5rem;
}

.notes-icon:hover {
    color: var(--accent-primary);
    background: var(--bg-elevated);
}

.notes-icon.has-notes {
    color: var(--accent-primary);
}

.notes-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.modal-header h3 i {
    color: var(--accent-primary);
    font-size: 1.125rem;
}

.modal-close {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.75rem;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    background: var(--bg-secondary);
    flex: 1;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
}

.player-item {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 0.625rem;
    border-left: 3px solid var(--accent-primary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-primary);
}

.player-item:hover {
    background: var(--bg-elevated);
    border-left-color: var(--accent-secondary);
    transform: translateX(4px);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-email {
    color: #6c95eb !important;
    font-size: 0.9em !important;
    font-weight: 500;
    margin-top: 0.25rem;
}

.special-player-item {
    border-left-color: #9333ea;
}

.special-player-item:hover {
    border-left-color: #7c3aed;
}

/* Empty Players Message */
.empty-players-message {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-players-message i {
    display: block;
    margin-bottom: 1rem;
}

.empty-players-message p {
    margin: 0.5rem 0;
}

/* Credentials Modal Specific Styles */
.cred-field-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.cred-field-group:last-child {
    margin-bottom: 0;
}

.cred-field-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
}

.cred-value {
    display: block;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    line-height: 1.6;
}

.cred-field-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.8125rem;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.cred-field-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-xs {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    min-width: auto;
}

.btn-clip {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    margin-left: 0.5rem;
}

.btn-clip:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

#copyCredFeedback {
    padding: 0.75rem 1rem;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
    background: var(--bg-secondary);
    padding: 3rem 4rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.loading-spinner i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-spinner p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Coin and Platform Icons */
.coins-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coin-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.platform-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
    padding: 6px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-info i {
    font-size: 18px;
    color: var(--text-secondary);
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Cards Layout (hidden on desktop) */
.accounts-cards {
    display: none; /* Hidden by default, shown on mobile */
}

.account-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all var(--transition-base);
}

/* Mobile optimization - reduced padding */
@media (max-width: 768px) {
    /* Platform icons should be clearly visible on mobile */
    .platform-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px;
        min-height: 28px;
    }
    
    .account-card {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
        border-radius: 0.625rem;
    }
    
    .account-card-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .account-card-body {
        gap: 0.625rem !important;
    }
    
    .account-card-field {
        padding: 0.5rem 0;
    }
    
    .account-card-actions {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
        gap: 0.5rem !important;
    }
}

.account-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-secondary);
}

.account-card-email {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    flex: 1;
    cursor: pointer;
}

.account-card-email:hover {
    color: var(--accent-primary);
}

.account-card-select {
    margin-left: 0.75rem;
}

.account-card-select input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
}

.account-card-body {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.account-card-field {
    display: flex;
    flex-direction: row; /* Side-by-side: Label left, Value right */
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1rem;
}

.account-card-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    white-space: nowrap;
}

.account-card-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    text-align: right;
}

.account-card-value img {
    height: 20px;
    width: auto;
}

.account-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.account-card-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .accounts-table th,
    .accounts-table td {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    * {
        box-sizing: border-box;
    }

    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    /* Hide menu by default on mobile - CRITICAL */
    .header-actions {
        display: none !important;
        width: 100%;
        order: 3;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-primary);
    }
    
    /* Show menu when active */
    .header-actions.mobile-active {
        display: flex !important;
    }
    
    /* Full width buttons on mobile */
    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .header-actions .btn .btn-text {
        display: inline;
    }
    
    .header-actions .btn i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
    
    .controls-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .controls-left,
    .controls-right {
        width: 100%;
    }
    
    .controls-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .status-filter {
        margin-left: 0;
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        width: 100%;
    }
    
    .controls-right {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-box {
        width: 100%;
        min-width: auto;
    }
    
    .btn-refresh {
        width: 100%;
    }
    
    /* Bulk Actions Bar */
    .bulk-actions-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }
    
    .bulk-actions-bar .bulk-actions-label {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .bulk-actions-bar .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Table Header Info */
    .table-header-info {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }
    
    .table-header-info > .pagination-info-top {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .table-header-info .pagination-info-top > span {
        flex: 0 0 auto;
        min-width: 0;
        font-size: 0.8125rem;
    }
    
    .table-header-info .platform-filter,
    .table-header-info .sort-filter {
        flex: 1 1 auto;
        min-width: 120px;
        max-width: 100%;
    }
    
    .table-header-info .platform-filter,
    .table-header-info .sort-filter,
    .table-header-info .market-filter,
    .table-header-info .date-filter {
        width: 100%;
        margin: 0 !important;
    }
    
    .table-header-info .platform-filter > select,
    .table-header-info .sort-filter > select,
    .table-header-info .market-filter > select,
    .table-header-info .date-filter > select {
        width: 100%;
    }
    
    .table-header-info .platform-filter > .custom-select-wrapper {
        width: 100%;
    }
    
    .table-header-info .platform-filter > .custom-select-wrapper > select {
        width: 100%;
    }
    
    .pagination-info-top span {
        font-size: 0.875rem;
        width: 100%;
    }
    
    .account-count {
        font-size: 0.8125rem;
        width: 100%;
        text-align: left;
    }
    
    #showingInfo {
        width: 100%;
        text-align: left;
    }
    
    /* Hide table and table-header-info on mobile, show cards instead */
    .table-container,
    .table-header-info {
        display: none !important;
    }
    
    .accounts-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1.25rem;
    }
    
    .page-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        font-size: 0.8125rem;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .loading-spinner {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .subtitle {
        font-size: 0.8125rem;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.125rem;
    }
    
    .players-list {
        grid-template-columns: 1fr;
    }
    
    .loading-spinner {
        padding: 2rem;
    }
    
    .loading-spinner i {
        font-size: 3rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 0.5rem;
    border: 2px solid var(--bg-tertiary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

::-webkit-scrollbar-corner {
    background: var(--bg-tertiary);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) var(--bg-tertiary);
}

/* Action Buttons */
.action-btns {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Reduced from 0.5rem to prevent overflow */
}

/* Utility Classes */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus Visible Styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Total Stats Styling */
.total-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    align-items: center;
}

.total-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile Responsiveness - Complete Redesign */
@media (max-width: 768px) {
    /* Global mobile padding */
    .container {
        padding: 0 10px !important;
    }
    
    .accounts-cards {
        padding: 0 !important;
        gap: 10px !important;
    }
    
    .account-card {
        margin: 0 !important;
        width: calc(100% - 20px) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    
    /* Mobile coins/points display */
    .coins-cell {
        align-items: center;
        padding-right: 0;
    }
    
    .coins-row,
    .points-row {
        gap: 0.35rem;
    }
    
    .coins-value {
        font-size: 0.95em;
    }
    
    .points-value {
        font-size: 0.85em;
    }
    
    .coin-icon {
        width: 18px;
        height: 18px;
    }
    
    .points-icon {
        width: 16px;
        height: 16px;
    }
    
    #minRatingFilter {
        width: 70px !important;
    }
    
    /* Hide desktop pagination/showing info */
    .table-header-info #paginationInfo,
    .table-header-info .account-count {
        display: none !important;
    }
    
    /* Hide desktop bulk actions bar */
    .bulk-actions-bar {
        display: none !important;
    }
    
    /* Shared card styling for all mobile elements */
    .mobile-filter-card {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0.75rem;
        padding: 0.875rem;
        margin: 0 10px 10px 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Platform & Sort Row */
    .mobile-platform-sort-row {
        display: flex !important;
        gap: 10px;
        align-items: stretch;
    }
    
    .mobile-platform-sort-row .platform-filter,
    .mobile-platform-sort-row .sort-filter {
        flex: 1;
        min-width: 0; /* Allow proper flex shrinking */
        margin: 0 !important;
    }
    
    .mobile-platform-sort-row select {
        width: 100% !important;
        font-size: 0.8125rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Bulk Actions Row - Compact Design */
    .mobile-bulk-actions {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-bulk-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    
    .mobile-bulk-label i {
        font-size: 0.75rem;
    }
    
    .mobile-bulk-buttons {
        display: flex;
        gap: 0.375rem;
    }
    
    .mobile-bulk-btn {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.375rem 0.625rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: var(--transition-base);
    }
    
    .mobile-bulk-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .mobile-bulk-btn i {
        font-size: 0.875rem;
    }
    
    .mobile-bulk-btn.check { 
        background: #6366f1; 
        color: white; 
    }
    .mobile-bulk-btn.queue { 
        background: #f59e0b; 
        color: white; 
    }
    .mobile-bulk-btn.done { 
        background: #10b981; 
        color: white; 
    }
    .mobile-bulk-btn.delete { 
        background: #ef4444; 
        color: white; 
    }
    
    .mobile-bulk-btn:not(:disabled):active {
        opacity: 0.9;
        transform: scale(0.97);
    }
    
    /* Coins & Players Row */
    .mobile-totals-row {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-totals-row span {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .mobile-totals-row i {
        font-size: 1rem;
    }
    
    /* Select All Button */
    .mobile-select-all-btn {
        width: 100%;
        padding: 0.75rem;
        background: var(--bg-tertiary);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        color: var(--text-primary);
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-base);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .mobile-select-all-btn:active {
        transform: scale(0.98);
    }
    
    .mobile-select-all-btn input[type="checkbox"] {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    /* Page Info Row */
    .mobile-page-info-row {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-page-info-row span {
        font-size: 0.8125rem;
        color: var(--text-secondary);
    }
    
    .mobile-showing-info {
        font-weight: 600;
    }
    
    /* Hide old mobile header */
    .mobile-cards-header {
        display: none !important;
    }
    
    /* Hide platform/sort from main filter bar on mobile */
    .table-header-info {
        margin-bottom: 0 !important;
    }
    
    .pagination-info-top {
        display: none !important;
    }
}

/* Hide mobile elements on desktop */
.mobile-filter-card {
    display: none;
}

@media (max-width: 768px) {
    .mobile-filter-card {
        display: block;
    }
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
    .mobile-cards-header {
        display: none !important;
    }
    
    .mobile-filter-card {
        display: none !important;
    }
}
