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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: var(--background-light);
    overflow-x: hidden;
}

/* ========== Hide Scrollbars ========== */
/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ========== Variables ========== */
:root {
    --primary-color: #121314;
    --primary-hover: #34383E;
    --secondary-color: #2DFFE0;
    --success-color: #10b981;
    --success-hover: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-light: #18191A;
    --background-secondary: #2A2D30;
    --background-white: #232426;
    --border-color: #23272a;
    --text-primary: #F3F4F6;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.10);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.15);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.18);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.20);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ========== Login Page Styles ========== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--secondary-color);
}

.login-header .logo {
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    color: var(--text-primary);
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--background-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ========== Payouts Page Styles ========== */
.payouts-page {
    background: var(--background-light);
    min-height: 100vh;
}

/* Desktop version - add body styles for all pages */
@media (min-width: 769px) {
    .payouts-page,
    .dashboard-page,
    .appeals-page,
    .cards-page,
    .mail-page,
    .admin-page {
        padding-left: 0;
    }
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--background-white);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar.show {
    transform: translateX(0);
}

/* Desktop version - always show sidebar */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
        z-index: 100;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-close {
        display: none;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.sidebar-close:hover {
    color: var(--text-primary);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--background-light);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.menu-item.active {
    background: var(--background-light);
    color: var(--text-primary);
    border-left-color: var(--secondary-color);
    font-weight: 600;
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.menu-text {
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--background-light);
    border-radius: var(--radius-md);
}

.user-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.user-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--background-light);
    transform: scale(1.05);
}

.menu-toggle .logo-icon {
    font-size: 24px;
}

/* Desktop version - hide menu toggle button */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

.page-title {
    margin-left: 16px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Desktop version - reduce left margin for page title */
@media (min-width: 769px) {
    .page-title {
        margin-left: 0;
    }
}

/* Header */
.header {
    top: 0;
    z-index: 100;
}

/* Desktop version - add left margin for sidebar */
@media (min-width: 769px) {
    .header {
        margin-left: 280px;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    width: 100%;
}

.header-left .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-left .logo-icon {
    font-size: 24px;
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: var(--text-secondary);
}

.nav-tab:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--primary-color);
    color: white;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.nav-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

.header-right {
    display: flex;
    gap: 12px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Desktop version - add left margin for sidebar */
@media (min-width: 769px) {
    .main-content {
        margin-left: 280px;
        margin-right: 0;
        max-width: calc(100% - 280px);
    }
}

/* Stats Section */
.stats-section {
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Export Section */
.export-section {
    margin: 0 0 24px 0;
}

.export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.stat-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    color: var(--secondary-color);
    font-size: 32px;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    color: currentColor;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Payouts Section */
.payouts-container {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.loading-state, .empty-state {
    padding: 60px 40px;
    text-align: center;
    color: var(--text-primary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.empty-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Payouts List */
.payouts-list {
    divide-y: 1px solid var(--border-color);
}

.payout-item {
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.payout-item:hover {
    background: var(--background-light);
    border-left-color: var(--secondary-color);
}

.payout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.payout-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.payout-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
}

.status-awaits-accept {
    background: #fef3c7;
    color: #92400e;
}

.status-awaits-approve {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.payout-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.payout-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.payout-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.payout-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.payout-amount {
    text-align: right;
}

.amount-ars {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.amount-usdt {
    font-size: 12px;
    color: var(--text-secondary);
}

.payout-time {
    text-align: right;
    font-size: 12px;
}

.payout-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
    min-width: fit-content;
}

.time-remaining {
    background: rgba(45, 255, 224, 0.15);
    color: var(--text-primary);
    border: 1px solid var(--secondary-color);
}

.time-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--background-light);
}

.page-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

/* Dual Modal for Appeal Details & Photo */
.dual-modal-content {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dual-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.dual-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dual-modal-body {
    display: flex;
    flex: 1;
    min-height: 500px;
    max-height: calc(90vh - 140px);
}

.dual-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.dual-panel.right-panel {
    border-right: none;
}

.panel-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.dual-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--background-light);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Photo Panel Specific Styles */
.photo-panel-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.photo-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
}

.photo-viewport.dragging {
    cursor: grabbing;
}

.photo-viewport #appealPhoto {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    display: block !important;
}

/* Photo Controls */
.photo-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.zoom-btn {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-primary);
}

.zoom-btn:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.zoom-btn:active {
    transform: translateY(0);
}

.zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.zoom-level {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

/* Photo Loading State in Panel */
.photo-panel-content .loading-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-panel-content .empty-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive Design for Dual Modal */
@media (max-width: 1200px) {
    .dual-modal-content {
        max-width: 1000px;
    }
}

@media (max-width: 900px) {
    .dual-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .dual-modal-body {
        flex-direction: column;
        max-height: calc(95vh - 140px);
    }
    
    .dual-panel {
        flex: none;
        height: 50%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dual-panel.right-panel {
        border-bottom: none;
    }
    
    .dual-modal-header,
    .dual-modal-footer {
        padding: 16px 20px;
    }
    
    .panel-content {
        padding: 16px;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-body {
    padding: 0 32px 32px 32px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--background-light);
}

/* Detail Fields */
.detail-grid {
    display: grid;
    gap: 20px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-field:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.detail-value.amount {
    font-size: 18px;
    color: var(--success-color);
}

.detail-value.status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* ========== Toggle Switch Styles ========== */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
    background-color: var(--success-color);
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px var(--success-color);
}

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

.toggle-switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.stbl-toggle-field {
    margin-bottom: 16px;
}

.stbl-toggle-field .detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* Ban Toggle Styles */
.ban-toggle-field {
    margin-bottom: 16px;
}

.ban-toggle-field .detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.ban-toggle input:checked + .ban-slider {
    background-color: var(--danger-color);
}

.ban-toggle .ban-slider {
    background-color: #ccc;
    transition: 0.4s;
}

.ban-toggle .ban-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.ban-toggle input:disabled + .ban-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 40px;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

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

.btn-secondary:hover:not(:disabled) {
    background: var(--background-white);
    border-color: var(--secondary-color);
}

/* GTX Payout Toggle Button */
.btn-toggle {
    background: var(--background-white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    min-height: 40px;
}

.btn-toggle:hover {
    background: var(--background-white);
    border-color: var(--secondary-color);
}

.btn-toggle.active {
    border-color: #22c55e;
}

.btn-toggle.inactive {
    border-color: #ef4444;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    font-size: 14px;
}

/* Spinners */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-white);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--text-primary);
    background: var(--background-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    max-width: 400px;
    z-index: 1100;
    transform: translateX(500px);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

/* Photo Upload Modal */
.upload-container {
    text-align: center;
}

.upload-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 10px;
    background: var(--background-light);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
    border-color: var(--background-light);
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.upload-drop-zone:hover h3,
.upload-drop-zone.dragover h3 {
    color: var(--primary-color);
}

.upload-drop-zone:hover p,
.upload-drop-zone.dragover p {
    color: var(--primary-color);
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.upload-drop-zone h3 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.upload-drop-zone p {
    margin: 4px 0;
    color: var(--text-primary);
    font-size: 13px;
}

.upload-formats {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.upload-preview {
    text-align: center;
    padding: 10px;
}

.upload-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 8px;
}

.upload-info {
    background: var(--background-light);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    text-align: left;
}

.upload-info p {
    margin: 2px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.upload-progress {
    padding: 10px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-success {
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.upload-success h3 {
    color: var(--success-color);
    margin: 0 0 8px 0;
}

.upload-success p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Multiple File Upload Styles */
.multi-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.multi-files-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.files-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.file-preview {
    flex-shrink: 0;
}

.file-preview img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

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

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-size {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.file-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.file-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.file-status.uploaded {
    background: #d1fae5;
    color: #065f46;
}

.btn-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.multi-files-actions {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Image Preview Modal Styles */
.image-preview-modal {
    z-index: 1100; /* Higher than regular modals */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.image-preview-content {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-preview-modal.show .image-preview-content {
    transform: scale(1);
}

.image-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.image-preview-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.image-preview-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: calc(90vh - 140px);
    overflow: hidden;
}

.image-preview-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.image-preview-body img:hover {
    transform: scale(1.02);
}

.image-preview-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--background-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: center;
}

/* Make file preview images clickable */
.file-preview img {
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-preview img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Button variations */
.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .nav-tabs {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .payout-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .payout-amount, .payout-time {
        text-align: left;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .modal-footer {
        padding: 20px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
    
    .payout-item {
        padding: 16px;
    }
    
    .detail-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    /* Payout modal exception - keep inline on mobile */
    #payoutModal .detail-field {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    #payoutModal .detail-label {
        min-width: 120px;
        font-size: 14px;
    }
    
    #payoutModal .detail-value {
        text-align: right;
        font-size: 14px;
    }
    
    /* Special mobile styles for status badges, copy buttons and timers */
    #payoutModal .detail-value.status,
    #payoutModal .detail-value.cbu-copy,
    #payoutModal .detail-value.payout-timer {
        flex-grow: 0;
        flex-shrink: 0;
        width: auto;
        max-width: fit-content;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* ========== Appeals Page Styles ========== */
.appeals-page .payouts-section {
    margin-bottom: 0;
}

.appeals-section {
    /* padding: 20px; */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.appeals-container {
    /* max-width: 1200px; */
    margin: 0 auto;
}

.appeals-list {
    display: grid;
    gap: 10px;
}

.appeal-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.appeal-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.appeal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.appeal-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.appeal-status {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--warning-color);
}


.appeal-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appeal-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.appeal-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.appeal-amount {
    text-align: right;
}

.appeal-amount .amount-ars {
    font-size: 20px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.appeal-amount .amount-time {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== Card Item Styles (duplicate of appeal styles for cards) ========== */
.card-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.card-status {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--warning-color);
}

.card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.card-amount {
    text-align: right;
}

.card-amount .amount-ars {
    font-size: 20px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.card-amount .amount-time {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Appeal status colors */
.appeal-status.status-in-process,
.appeal-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.appeal-status.status-new,
.appeal-status.status-created {
    background: #dbeafe;
    color: #1e40af;
}

.appeal-status.status-approved,
.appeal-status.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.appeal-status.status-rejected,
.appeal-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.appeal-status.status-processing {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.appeal-status.status-active {
    color: var(--warning-color);
}

.appeal-status.status-inactive {
    color: #991b1b;
}

/* Lucide icons in appeal status */
.appeal-status svg[data-lucide] {
    color: var(--secondary-color) !important;
    stroke: var(--secondary-color) !important;
}

/* Card status colors (duplicate of appeal status colors) */
.card-status.status-active {
    color: var(--warning-color);
}

.card-status.status-inactive {
    color: #991b1b;
}

/* Lucide icons in card status */
.card-status svg[data-lucide] {
    color: var(--secondary-color) !important;
    stroke: var(--secondary-color) !important;
}

.appeal-processed-info {
    margin-top: 8px;
}

.appeal-processed-info small {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 12px;
}

/* Payout Modal - specific styles for inline layout */
#payoutModal .detail-field {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

#payoutModal .detail-field:last-child {
    border-bottom: none;
}

#payoutModal .detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 140px;
    flex-shrink: 0;
}

#payoutModal .detail-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    flex-grow: 1;
}

/* Special styles for status badges, copy buttons and timers in payout modal */
#payoutModal .detail-value.status {
    flex-grow: 0;
    flex-shrink: 0;
    width: auto;
    max-width: fit-content;
}

#payoutModal .detail-value.cbu-copy {
    flex-grow: 0;
    flex-shrink: 0;
    width: auto;
    max-width: fit-content;
}

#payoutModal .detail-value.payout-timer {
    flex-grow: 0;
    flex-shrink: 0;
    width: auto;
    max-width: fit-content;
}

/* Special color for awaits-approve status in payout modal */
#payoutModal .detail-value.status.status-awaits-approve {
    color: #f59e0b;
}

/* Special color for expired timer in payout modal */
#payoutModal .detail-value.payout-timer.time-expired {
    color: #dc2626;
}

/* Modal appeal details */
.modal-body .detail-grid .detail-field .detail-value.status {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-body .detail-grid .detail-field .detail-value.status.status-in-process,
.modal-body .detail-grid .detail-field .detail-value.status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.modal-body .detail-grid .detail-field .detail-value.status.status-new,
.modal-body .detail-grid .detail-field .detail-value.status.status-created {
    background: #dbeafe;
    color: #1e40af;
}

.modal-body .detail-grid .detail-field .detail-value.status.status-approved,
.modal-body .detail-grid .detail-field .detail-value.status.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.modal-body .detail-grid .detail-field .detail-value.status.status-rejected,
.modal-body .detail-grid .detail-field .detail-value.status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.modal-body .detail-grid .detail-field .detail-value.status.status-awaits-approve {
    background: #fef3c7;
    color: #92400e;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

/* Photo Modal Styles */
#photoModal .modal-content {
    max-width: 800px;
    max-height: 90vh;
}

#photoModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#appealPhoto {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}

#appealPhoto:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.appeal-summary {
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

.appeal-summary h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.appeal-summary p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive design for appeals */
@media (max-width: 768px) {
    .appeal-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .appeal-amount {
        text-align: left;
        width: 100%;
    }
    
    .appeal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Deposit mobile styles */
    .deposit-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .deposit-amount {
        text-align: left;
        width: 100%;
    }
    
    .deposit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sidebar {
        width: 100vw;
    }
}

/* ========== Admin Panel Styles ========== */
.admin-panel .modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
}

.admin-content {
    display: flex;
    flex-direction: column;
    height: 85vh;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--background-light);
    padding: 0 24px;
}

.admin-tab {
    background: none;
    border: none;
    padding: 16px 24px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.admin-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
    background: var(--primary-color);
}

.admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.admin-tab-content {
    display: none;
    padding: 24px;
    height: 100%;
}

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

/* User Info Clickable for Admin */
.user-info.admin-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.user-info.admin-clickable:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Users List Styles */
.users-list {
    display: grid;
    gap: 16px;
}

.user-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.user-details h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role.admin {
    background: #fee2e2;
    color: #991b1b;
}

.user-role.user {
    background: #dbeafe;
    color: #1e40af;
}

.user-role.gtx {
    background: var(--secondary-color);
    color: var(--background-color);
}


.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.active {
    background: var(--success-color);
}

.status-indicator.inactive {
    background: var(--secondary-color);
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

.status-text.active {
    color: var(--success-color);
}

.status-text.inactive {
    color: var(--secondary-color);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--background-light);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* Удален конфликтующий .btn-toggle стиль - теперь используется GTX версия выше */

.btn-toggle.deactivate {
    background: var(--secondary-color);
}

.btn-toggle.deactivate:hover {
    background: #4b5563;
}

/* Placeholder styles */
.settings-placeholder,
.logs-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.settings-placeholder .empty-icon,
.logs-placeholder .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.settings-placeholder h3,
.logs-placeholder h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.settings-placeholder p,
.logs-placeholder p {
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Payouts Styles */
.admin-payouts-stats {
    margin-bottom: 24px;
}

.admin-payouts-list {
    display: grid;
    gap: 16px;
}

.admin-payout-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.admin-payout-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.admin-payout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-payout-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.admin-payout-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-payout-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.admin-payout-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.admin-payout-main {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 20px;
    align-items: center;
}

.admin-payout-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-payout-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-payout-amount {
    text-align: right;
}

.admin-payout-amount .amount-ars {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.admin-payout-amount .amount-usdt {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-payout-profit {
    text-align: right;
}

.admin-payout-profit .profit-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 2px;
}

.admin-payout-profit .profit-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-payout-time {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-payout-time .time-created {
    font-weight: 500;
    margin-bottom: 2px;
}

.admin-payout-time .time-closed {
    opacity: 0.8;
}

.admin-payout-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
}

.admin-payout-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.admin-payout-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Admin Section Header */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.admin-section-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Styles for Admin Modals */
#addUserModal .form-group,
#editUserModal .form-group,
#editCardModal .form-group {
    margin-bottom: 20px;
}

#addUserModal .form-group label,
#editUserModal .form-group label,
#editCardModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

#addUserModal .form-group input,
#addUserModal .form-group select,
#editUserModal .form-group input,
#editUserModal .form-group select,
#editCardModal .form-group input,
#editCardModal .form-group select,
#editCardModal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--background-white);
    font-family: inherit;
}

#addUserModal .form-group input:focus,
#addUserModal .form-group select:focus,
#editUserModal .form-group input:focus,
#editUserModal .form-group select:focus,
#editCardModal .form-group input:focus,
#editCardModal .form-group select:focus,
#editCardModal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#addUserModal .form-group small,
#editUserModal .form-group small,
#editCardModal .form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

#addUserModal .form-group input.error,
#editUserModal .form-group input.error,
#editUserModal .form-group select.error,
#editCardModal .form-group input.error,
#editCardModal .form-group select.error {
    border-color: var(--danger-color);
    background: #fef2f2;
}

#addUserModal .form-group .error-message,
#editUserModal .form-group .error-message,
#editCardModal .form-group .error-message {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Field error styles for edit user modal */
#editUserModal .form-group.has-error input,
#editUserModal .form-group.has-error select {
    border-color: var(--danger-color);
    background: #fef2f2;
}

#editUserModal .field-error {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

#editCardModal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#editCardModal .form-group input[readonly] {
    background: var(--background-light);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Notification Settings Styles */
.form-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
    margin-bottom: 16px;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Admin Cards Styles */
.admin-cards-list {
    display: grid;
    gap: 16px;
}

.admin-card-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.admin-card-item.card-active {
    border-left: 4px solid var(--success-color);
}

.admin-card-item.card-inactive {
    border-left: 4px solid var(--secondary-color);
    opacity: 0.7;
}

.admin-card-item.card-error {
    border-left: 4px solid var(--danger-color);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-card-email {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-email-icon {
    font-size: 18px;
}

.admin-card-email-address {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.admin-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.admin-card-status.status-active {
    background: #d1fae5;
    color: #065f46;
}

.admin-card-status.status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.admin-card-status.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.admin-card-info {
    margin-bottom: 16px;
}

.admin-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-card-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.admin-card-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.admin-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-card-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-card-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-card-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.admin-card-detail-value.cbu {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.admin-card-error-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.admin-card-error-icon {
    font-size: 16px;
    color: var(--danger-color);
}

.admin-card-error-message {
    font-size: 12px;
    color: var(--danger-color);
    flex: 1;
}

.admin-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.admin-card-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-card-actions {
    display: flex;
    gap: 8px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Responsive design for admin panel */
@media (max-width: 768px) {
    .admin-panel .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .admin-tabs {
        padding: 0 16px;
    }
    
    .admin-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .admin-tab-content {
        padding: 16px;
    }
    
    .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-meta {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .admin-payout-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-payout-amount,
    .admin-payout-profit,
    .admin-payout-time {
        text-align: left;
    }
    
    .admin-card-details {
        grid-template-columns: 1fr;
    }
    
    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .admin-card-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ========== Mail Page Styles ========== */
.mail-page .main-content {
    padding: 24px;
}

/* Desktop version - add left margin for sidebar on mail page */
@media (min-width: 769px) {
    .mail-page .main-content {
        margin-left: 280px;
        margin-right: 0;
        max-width: calc(100% - 280px);
    }
}

.mail-section {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Mailbox Styles */
.mailboxes-list {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.mailbox-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.mailbox-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.mailbox-item.has-error {
    border-left: 4px solid var(--danger-color);
}

.mailbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mailbox-email {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.email-address {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mailbox-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.mailbox-status.status-active {
    background: #d1fae5;
    color: #065f46;
}

.mailbox-status.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.mailbox-info {
    margin-bottom: 16px;
}

.mailbox-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mailbox-stats .stat-item {
    text-align: center;
    padding: 8px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
}

.mailbox-stats .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mailbox-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.mailbox-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.error-icon {
    font-size: 16px;
    color: var(--danger-color);
}

.error-message {
    font-size: 12px;
    color: var(--danger-color);
}

.mailbox-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.last-sync {
    /* Sync timestamp */
}

.mailbox-action {
    /* Action button */
}

/* Email Header */
.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.email-filters {
    display: flex;
    gap: 12px;
}

.form-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-white);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.form-select:disabled {
    background: var(--background-light);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Appeals Filters */
.appeals-filters {
    /* Base styles already defined inline */
}

.appeals-filters .form-select {
    font-size: 14px;
}

.appeals-filters input[type="number"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-white);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.appeals-filters input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.appeals-filters input[type="number"]:disabled {
    background: var(--background-light);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.email-actions {
    /* Email action buttons */
}

/* Email Styles */
.emails-list {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.email-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.email-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.email-item.unread {
    border-left: 4px solid var(--primary-color);
    background: #f8fafc;
}

.email-item.high-priority {
    border-left: 4px solid var(--danger-color);
}

.email-item .email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: none;
}

.email-sender {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-type-icon {
    font-size: 16px;
}

.sender-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

.email-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.email-content {
    margin-bottom: 12px;
}

.email-subject {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.email-preview {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.email-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.email-mailbox {
    /* Mailbox info */
}

.mailbox-label {
    font-weight: 500;
}

.mailbox-email {
    /* Mailbox email */
}

.email-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-indicator {
    color: var(--primary-color);
    font-size: 16px;
}

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

/* Email Detail Modal */
.email-detail-header {
    margin-bottom: 20px;
}

.email-detail-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.email-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.email-date {
    color: var(--text-secondary);
}

.email-status {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.email-status.read {
    background: #d1fae5;
    color: #065f46;
}

.email-status.unread {
    background: #dbeafe;
    color: #1e40af;
}

.email-detail-info {
    margin-bottom: 20px;
}

.email-body {
    /* Email body content */
}

.email-body h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.email-content-body {
    background: var(--background-light);
    padding: 16px;
    border-radius: var(--radius-md);
    line-height: 1.6;
    color: var(--text-primary);
    max-height: 400px;
    overflow-y: auto;
}

.email-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Responsive Design for Mail Page */
@media (max-width: 768px) {
    .mailbox-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mailbox-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .email-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .email-filters {
        width: 100%;
        flex-direction: column;
    }
    
    .form-select {
        width: 100%;
    }
    
    .email-item .email-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .email-sender {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========== Webhook Page Styles ========== */
.webhooks-list {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.webhook-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--success-color);
}

.webhook-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.webhook-item.unread {
    background: #f8fafc;
    border-left-color: var(--primary-color);
}

.webhook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.webhook-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.webhook-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.webhook-user-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.webhook-user-details p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.webhook-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.webhook-status.read {
    background: #d1fae5;
    color: #065f46;
}

.webhook-status.unread {
    background: #dbeafe;
    color: #1e40af;
}

.webhook-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.webhook-deposit-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

.webhook-deposit-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.webhook-amount {
    text-align: right;
}

.webhook-amount .amount-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 2px;
}

.webhook-amount .amount-currency {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.webhook-time {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
}

.webhook-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.webhook-email-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.webhook-email-icon {
    font-size: 14px;
}

.webhook-card-name {
    font-weight: 500;
    color: var(--text-primary);
}

.webhook-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.deposit-badge {
    background: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Source and STBL badges */
.source-badge {
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.stbl-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.stbl-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.stbl-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Source-specific styling */
.webhook-item.source-mailgun {
    border-left: 4px solid #e74c3c;
}

.webhook-item.source-mailslurp {
    border-left: 4px solid #3498db;
}

/* Mail page source styling */
.stat-card.source-mailgun {
    border-left: 4px solid #e74c3c;
}

.stat-card.source-mailslurp {
    border-left: 4px solid #3498db;
}

.mailbox-item.source-mailgun {
    border-left: 4px solid #e74c3c;
}

.mailbox-item.source-mailslurp {
    border-left: 4px solid #3498db;
}

.email-item.source-mailgun {
    border-left: 4px solid #e74c3c;
}

.email-item.source-mailslurp {
    border-left: 4px solid #3498db;
}

/* Mail filters */
.mail-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 60px;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Source badges */
.source-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.source-badge.mailgun {
    background: #fee2e2;
    color: #991b1b;
}

.source-badge.mailslurp {
    background: #dbeafe;
    color: #1e40af;
}

/* Email and mailbox item enhancements */
.mailbox-source,
.email-source {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.mailbox-source.mailgun,
.email-source.mailgun {
    background: #fee2e2;
    color: #991b1b;
}

.mailbox-source.mailslurp,
.email-source.mailslurp {
    background: #dbeafe;
    color: #1e40af;
}

/* Email types */
.email-type-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.email-type-badge.deposit {
    background: #d1fae5;
    color: #065f46;
}

.email-type-badge.other {
    background: #f3f4f6;
    color: #374151;
}

/* Email detail enhancements */
.email-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.email-detail-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.email-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.email-detail-info {
    margin-bottom: 1.5rem;
}

.email-body-toggle {
    margin-bottom: 1rem;
}

.email-html-content,
.email-body-simple {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.email-html-content iframe {
    border: none;
    width: 100%;
    min-height: 400px;
}

/* Deposit info styling */
.deposit-info {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.deposit-info h4 {
    margin: 0 0 1rem 0;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.deposit-amount {
    font-weight: 600;
    color: #065f46;
    font-size: 1.1em;
}

/* Mail filters responsive */
@media (max-width: 768px) {
    .mail-filters {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .filter-actions {
        justify-content: center;
    }
}

/* MailSlurp deposit info styling */
.mailslurp-deposit-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.mailslurp-deposit-info h4 {
    margin: 0 0 15px 0;
    color: #3498db;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Design for Webhook Page */
@media (max-width: 768px) {
    .webhook-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .webhook-amount,
    .webhook-time {
        text-align: left;
    }
    
    .webhook-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .webhook-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* STBL Status styles removed - replaced with floating appeals notification */

/* Bot Settings Styles for Admin */
.bot-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timing-settings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.bot-features .checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bot-features .checkbox-field small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.85rem;
}

.setting-item.main-toggle .toggle-switch {
    transform: scale(1.2);
}

.setting-item.status-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

/* ========== Dashboard Styles ========== */

/* Dashboard Content */
.dashboard-content {
    padding: 0;
}

/* Profile Section */
.profile-section {
    margin-bottom: 30px;
}

.profile-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-role {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.profile-role.user {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.profile-role.admin {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.profile-stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.profile-stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
}

.quick-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quick-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.quick-stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.quick-stat-content {
    flex: 1;
}

.quick-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quick-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Statistics Grid */
.stats-grid-section {
    margin-bottom: 30px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-stat-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-header {
    padding: 24px 24px 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
}

.payouts-card .stat-card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.cards-card .stat-card-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mail-card .stat-card-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.actions-card .stat-card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-card-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card-title p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-card-body {
    padding: 20px 24px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.success {
    color: #059669;
}

.stat-value.warning {
    color: #d97706;
}

.stat-value.error {
    color: #dc2626;
}

.stat-value.profit {
    color: #059669;
    font-weight: 700;
}

.stat-card-footer {
    padding: 16px 24px;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    min-height: 44px;
    box-sizing: border-box;
}

.quick-action:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
}

.quick-action-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-action-icon svg {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.quick-action-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    text-align: center;
}

/* Activities Section */
.activities-section {
    margin-bottom: 30px;
}

.activities-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.activities-header {
    padding: 24px 24px 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.activities-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.activities-body {
    padding: 24px;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.activity-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-status {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.activity-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

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

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

.activity-status.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Empty State for Activities */
.activities-body .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.activities-body .empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.activities-body .empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.activities-body .empty-state p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-info h2 {
        font-size: 24px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .quick-action {
        padding: 10px 6px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .quick-action-icon {
        font-size: 14px;
    }
    
    .quick-action-text {
        font-size: 11px;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .activity-content {
        text-align: center;
    }
    
    .activities-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .profile-card,
    .activities-card,
    .dashboard-stat-card {
        padding: 20px;
    }
    
    .stat-card-header,
    .stat-card-body,
    .stat-card-footer,
    .activities-header,
    .activities-body {
        padding: 16px;
    }
    
    .quick-stat-item {
        padding: 16px;
    }
    
    .activity-item {
        padding: 16px;
    }
}

/* ========== Cards Page Enhancements ========== */
.stat-card.deposit-stat .stat-icon {
    color: var(--success-color);
}

.stat-card.deposit-stat .stat-value {
    color: var(--success-color);
    font-weight: 800;
}

/* Enhanced Card Items with Deposit Stats */
.card-deposits-stats {
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}

.deposit-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: 12px;
}

.deposit-stat .stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.deposit-stat .stat-value {
    color: var(--success-color);
    font-weight: 600;
}

/* ========== Deposits Tab Styles ========== */

/* Filters Bar */
.filters-bar {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-white);
    font-size: 14px;
    min-width: 140px;
    transition: all 0.2s ease;
}

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

/* Deposits Container */
.deposits-container {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.deposits-list {
    divide-y: 1px solid var(--border-color);
}

/* ========== Deposit Item Styles ========== */
.deposit-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.deposit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.deposit-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.deposit-status {
    border-radius: var(--radius-md);
    padding: 4px 12px;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

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

.deposit-status.status-unknown {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.deposit-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deposit-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.deposit-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.deposit-amount {
    text-align: right;
}

.deposit-amount .amount-ars {
    font-size: 20px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.deposit-amount .amount-time {
    font-size: 14px;
    color: var(--text-secondary);
}

.deposit-amount .amount-source {
    font-size: 10px;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Lucide icons in deposit status */
.deposit-status svg[data-lucide] {
    color: currentColor !important;
    stroke: currentColor !important;
}

/* ========== Analytics Tab Styles ========== */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.analytics-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.analytics-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chart-period {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container {
    padding: 20px 24px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    color: var(--text-secondary);
    font-style: italic;
}

/* Performance List */
.performance-list {
    padding: 20px 24px;
    max-height: 300px;
    overflow-y: auto;
}

.performance-item {
    margin-bottom: 16px;
}

.performance-item:last-child {
    margin-bottom: 0;
}

.performance-card {
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.performance-email {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.performance-stats .stat {
    text-align: center;
}

.performance-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.performance-stats .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Activity Stats */
.activity-stats {
    padding: 20px 24px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.activity-stat {
    text-align: center;
    padding: 16px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.activity-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.activity-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== Sidebar Open State ========== */
@media (max-width: 768px) {
    .sidebar.open {
        transform: translateX(0);
    }
}

/* ========== Floating Appeals Notification ========== */
.appeals-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.appeals-notification:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

.appeals-notification-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appeals-notification-icon {
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.appeals-notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff6b6b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.appeals-notification-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.appeals-notification:hover .appeals-notification-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.appeals-notification-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.8);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4), 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .appeals-notification {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .appeals-notification-icon {
        font-size: 20px;
    }
    
    .appeals-notification-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
}

/* ========== Form Input Styles ========== */
.form-input {
    color: var(--text-primary);
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--background-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-white);
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* ========== Enhanced Button Styles ========== */
.btn .btn-text {
    display: inline;
}

.btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* ========== Mobile Responsiveness for New Features ========== */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card {
        margin-bottom: 16px;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-deposits-stats {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .deposit-stat {
        font-size: 11px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .stat-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .nav-tabs {
        gap: 4px;
    }
    
    .nav-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tab-count {
        padding: 1px 6px;
        font-size: 10px;
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        padding: 16px;
    }
    
    .analytics-header {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .chart-container {
        padding: 16px;
        height: 200px;
    }
    
    .performance-list,
    .activity-stats {
        padding: 16px;
    }
    
    .deposit-item {
        padding: 16px;
    }
    
    .appeal-main {
        flex-direction: column;
        gap: 12px;
    }
    
    .appeal-amount {
        text-align: left;
    }
}

/* ========== Pagination Styles ========== */
.pagination-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

#loadMoreEmailsBtn {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

#loadMoreEmailsBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #5a67d8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

#loadMoreEmailsBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#loadMoreEmailsBtn .btn-icon {
    font-size: 1rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .pagination-info {
        order: 2;
    }
    
    .pagination-actions {
        order: 1;
        justify-content: center;
    }
} 

/* ========== Settings Page Styles ========== */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(220, 53, 69, 0.02));
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.settings-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.setting-content {
    flex: 1;
}

.setting-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.setting-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

.reset-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.reset-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.warning-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #856404;
}

.setting-action {
    flex-shrink: 0;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Reset Stats Modal Styles */
.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 2rem;
    line-height: 1;
}

.warning-content h3 {
    margin: 0 0 0.5rem 0;
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 600;
}

.warning-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.reset-preview {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.reset-preview h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.will-be-deleted,
.will-be-saved {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.will-be-deleted li,
.will-be-saved li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.will-be-deleted li {
    color: #dc3545;
}

.will-be-saved li {
    color: #28a745;
}

.confirmation-input {
    margin-bottom: 1rem;
}

.confirmation-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Responsive Settings */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .setting-action {
        align-self: stretch;
    }
    
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
} 

/* ========== STBL Cards Styles ========== */
.stable-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 24px;
    padding: 0;
}

.stable-card-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stable-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stable-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.stable-card-bank {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stable-card-bank-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.stable-card-bank-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.stable-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stable-card-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stable-card-status.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: var(--secondary-color);
}

.stable-card-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stable-card-status.active .status-dot {
    background: var(--success-color);
}

.stable-card-status.inactive .status-dot {
    background: var(--secondary-color);
}

.stable-card-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stable-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stable-card-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stable-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stable-card-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

.stable-card-detail-value.card-number,
.stable-card-detail-value.cbu {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    background: var(--background-light);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.stable-card-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stable-card-amount-item {
    text-align: center;
}

.amount-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.amount-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.stable-card-meta {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.stable-card-id {
    margin-bottom: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.stable-card-sync {
    color: var(--text-secondary);
}

.stable-card-debug {
    margin-top: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
}

.stable-card-debug details summary {
    cursor: pointer;
    color: #6c757d;
    font-weight: 500;
}

.stable-card-debug details summary:hover {
    color: var(--text-primary);
}

.stable-card-debug pre {
    margin: 8px 0 0 0;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 10px;
    line-height: 1.4;
}

/* STBL Sync Button Styles */
#syncStableCards {
    position: relative;
    min-width: 200px;
}

#syncStableCards .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

#syncStableCards:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions .btn {
    white-space: nowrap;
}

/* STBL Integration Styles */
.stbl-indicator {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.admin-card-full-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Card Full Name for regular cards page */
.card-full-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    margin-bottom: 4px;
}

.admin-card-detail-value.stbl-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    background: var(--background-light);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.admin-card-detail-value.stbl-balance {
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive STBL Cards */
@media (max-width: 1200px) {
    .stable-cards-list {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stable-cards-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stable-card-item {
        padding: 16px;
    }
    
    .stable-card-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stable-card-amounts {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .stable-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stable-card-bank-name {
        font-size: 14px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stable-card-detail-value.card-number,
    .stable-card-detail-value.cbu {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .stable-card-meta {
        font-size: 11px;
    }
    
    .stable-card-debug pre {
        font-size: 9px;
        max-height: 150px;
    }
}

/* ========== Payout Settings Styles ========== */

/* Loading, Error and Status States */
.payout-settings-loading,
.payout-settings-error {
    padding: 40px;
    text-align: center;
}

.error-state {
    padding: 40px;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--danger-color);
}

.error-state h3 {
    color: var(--danger-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.error-state p {
    color: #7f1d1d;
    margin-bottom: 20px;
}

/* Main Toggle Switch */
.main-toggle {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.main-toggle .setting-content h5 {
    color: #0c4a6e;
    font-size: 16px;
    margin-bottom: 8px;
}

.main-toggle .setting-content p {
    color: #075985;
    font-size: 14px;
}

/* Toggle Switch Component */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--success-color);
}

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

/* Status Display */
.status-display {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.status-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.status-value {
    font-weight: 600;
    color: var(--text-primary);
    padding: 4px 8px;
    background: #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.status-value.active {
    background: #dcfce7;
    color: var(--success-color);
}

.status-value.inactive {
    background: #fee2e2;
    color: var(--danger-color);
}

/* Limits Grid */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.limit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.limit-field label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.limit-field input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--background-white);
}

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

.limit-field input:invalid {
    border-color: var(--danger-color);
}

/* Additional Settings */
.additional-settings {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-white);
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.select-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.select-field label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.select-field select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--background-white);
    min-height: 120px;
}

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

/* Balance Section */
.balance-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.balance-section .setting-content h5 {
    color: #92400e;
    font-size: 16px;
    margin-bottom: 8px;
}

.balance-section .setting-content p {
    color: #a16207;
    font-size: 14px;
}

.balance-display {
    margin-top: 16px;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--background-light)
}

.balance-label {
    font-weight: 500;
    color: #92400e;
    font-size: 15px;
}

.balance-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 17px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.balance-value.available {
    color: var(--success-color);
}

.balance-value.frozen {
    color: var(--warning-color);
}

.balance-value.crypto {
    color: #6366f1;
}

.balance-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-align: center;
    color: #92400e;
    font-weight: 500;
}

.balance-loading .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    border-color: #f59e0b;
    border-top-color: transparent;
}

.balance-error {
    padding: 16px;
    text-align: center;
    border-radius: var(--radius-md);
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.balance-error .error-text {
    color: var(--danger-color);
    font-weight: 500;
}

.balance-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

.balance-actions .btn {
    min-width: 160px;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.btn-warning:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Transfer Balance Modal Styles */
.transfer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #f59e0b;
}

.transfer-icon {
    font-size: 48px;
    opacity: 0.8;
}

.transfer-content h3 {
    color: #92400e;
    margin-bottom: 8px;
    font-size: 18px;
}

.transfer-content p {
    color: #a16207;
    margin: 0;
    font-size: 14px;
}

.transfer-details {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.transfer-amount {
    color: var(--warning-color);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 16px;
}

.transfer-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 24px;
    color: var(--danger-color);
    margin-top: 2px;
}

.warning-text p {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.5;
}

.warning-text strong {
    color: var(--danger-color);
}

/* Setting Actions */
.setting-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.setting-actions .btn {
    min-width: 140px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .limits-grid {
        grid-template-columns: 1fr;
    }
    
    .setting-actions {
        flex-direction: column-reverse;
    }
    
    .setting-actions .btn {
        width: 100%;
    }
    
    .main-toggle .setting-item {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-toggle {
        padding: 16px;
    }
    
    .status-display,
    .setting-item {
        padding: 16px;
    }
    
    .toggle-switch {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* ========== Bulk Add Modal Styles ========== */
.modal-large {
    max-width: 800px;
    width: 90%;
}

.bulk-add-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.format-info {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.format-info h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.format-info ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.format-info li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.format-info code {
    background: var(--background-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.format-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.proxy-example {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.proxy-example strong {
    color: var(--text-primary);
}

.proxy-example code {
    background: var(--background-secondary);
    padding: 2px 4px;
    border-radius: 3px;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', monospace;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: var(--background-white);
    resize: vertical;
}

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

.form-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.bulk-preview {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.bulk-preview h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.preview-item.valid {
    border-color: var(--success-color);
    background: var(--background-light);
}

.preview-item.invalid {
    border-color: var(--danger-color);
    background: var(--background-light);
}

.preview-icon {
    font-size: 16px;
}

.preview-data {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.preview-field {
    display: flex;
    flex-direction: column;
}

.preview-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.preview-value {
    color: var(--text-primary);
}

.btn-info {
    background: var(--info-color, #17a2b8);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========== CBU Copy Styles ========== */
.cbu-copy {
    background: var(--background-light) !important;
    position: relative;
    transition: all 0.2s ease;
}

.cbu-copy:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cbu-copy:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Freeze Modal Styles */
#freezeModal .form-group {
    margin-bottom: 16px;
}

#freezeModal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

#freezeModal .form-group textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

#freezeModal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#freezeModal .form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Modal Header Actions */
.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Switch Styles for Kill Switches */
.switch-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.switch-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Merch Controls Layout */
.merch-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.merch-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.merch-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.divider {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 18px;
}

.action-switches {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.action-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch.small {
    width: 36px;
    height: 20px;
}

.switch.small .slider {
    border-radius: 20px;
}

.switch.small .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.switch.small input:checked + .slider:before {
    transform: translateX(16px);
}

.switch-label.small {
    font-size: 12px;
    font-weight: 400;
}

/* Merch Badge Styles */
.merch-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    border: 1px solid #1e40af;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 8px;
}

/* Simple GTX Payout Modal Styles */
.simple-payout-modal {
    text-align: center;
    padding: 20px;
}

.simple-payout-header h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.simple-payout-info {
    background: var(--background-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.simple-payout-info > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.simple-payout-info > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.simple-payout-info span[class$="-label"] {
    color: var(--text-secondary);
    font-size: 14px;
}

.simple-payout-info span[class$="-value"] {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.amount-value {
    color: var(--success-color) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.simple-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin: 20px 0;
}

.simple-warning p {
    color: var(--warning-color);
    margin: 0;
    font-size: 14px;
}

/* PDF Viewer Styles */
.pdf-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.pdf-header a.btn {
    margin-left: auto;
    font-size: 12px;
    padding: 4px 8px;
}

#appealPdf {
    flex: 1;
    min-height: 500px;
    border-radius: 8px;
}

/* ========== GTX Management Styles ========== */
.gtx-page {
    background: var(--background-light);
    min-height: 100vh;
}

.gtx-balance-section {
    margin-bottom: 32px;
}

.balance-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.balance-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.refresh-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
    border-color: var(--primary-hover);
}

.balance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.balance-label {
    color: var(--text-primary);
    font-weight: 500;
}

.balance-value {
    color: var(--text-primary);
    font-size: 16px;
}

.balance-value.profit {
    color: var(--secondary-color);
}

.balance-value.daily {
    color: var(--text-primary);
    font-size: 16px;
}

.balance-timestamp {
    color: var(--text-primary);
    font-size: 14px;
}

/* GTX Conversion Section */
.gtx-conversion-section {
    margin-bottom: 32px;
}

.conversion-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.conversion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.conversion-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.conversion-content {
    display: grid;
    gap: 20px;
}

.conversion-stats {
    display: grid;
    gap: 16px;
}

.conversion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.conversion-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.conversion-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.conversion-ratio {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.conversion-percentage {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    margin-left: 8px;
}

.conversion-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--background-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.breakdown-item span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.breakdown-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.conversion-timestamp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.conversion-timestamp .conversion-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.conversion-timestamp span:last-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.gtx-tabs {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.tab-btn {
    flex: 1;
    background: var(--background-white);
    border: none;
    padding: 16px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--background-white);
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.tab-count {
    background: var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.tab-btn.active .tab-count {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.filters-section {
    padding: 20px 24px;
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
}

.filters-left {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.filters-right {
    display: flex;
    gap: 12px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.filter-btn, .export-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover, .export-btn:hover {
    background: #26d6bb;
    transform: translateY(-1px);
}

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

.export-btn:hover {
    background: var(--primary-hover);
}

.tab-pane {
    display: none;
}

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

.table-container {
    padding: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.gtx-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-white);
}

.gtx-table th {
    background: var(--background-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.gtx-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

.gtx-table .table-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.gtx-table .table-row:hover {
    background: var(--background-light);
}

.gtx-table .payment-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

.gtx-table .amount {
    font-weight: 600;
    text-align: right;
}

.gtx-table .recipient {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gtx-table .card-number {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.gtx-table .timestamp {
    color: var(--text-secondary);
    font-size: 12px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.status-badge.secondary {
    background: rgba(160, 174, 192, 0.2);
    color: var(--text-secondary);
}

.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.table-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.table-empty p {
    font-size: 16px;
    margin: 0;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

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

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pagination-btn {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-left-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-spinner p {
    color: var(--text-secondary);
    margin: 0;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.toast-message {
    color: var(--text-primary);
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 12px;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--secondary-color);
}

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

/* Responsive styles for GTX page */
@media (max-width: 768px) {
    .balance-content {
        grid-template-columns: 1fr;
    }
    
    .balance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .conversion-breakdown {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .conversion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .conversion-values {
        align-items: flex-start;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .table-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .pagination-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Withdrawal Modal Styles ========== */
.profile-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.profile-title-row h2 {
    margin: 0;
    flex: 1;
}

.profile-title-row .btn {
    flex-shrink: 0;
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-input {
    padding-right: 60px;
}

/* Hide number input spinners */
.input-wrapper .form-input[type="number"]::-webkit-outer-spin-button,
.input-wrapper .form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper .form-input[type="number"] {
    -moz-appearance: textfield;
}

.input-currency {
    position: absolute;
    right: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    pointer-events: none;
}

.conversion-rate {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.withdrawal-info {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header h3 i {
    width: 20px;
    height: 20px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: var(--background-light);
}

#withdrawalSubmitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Chart Button Styles ========== */
.chart-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.chart-btn:hover {
    background: var(--background-secondary);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.chart-btn i {
    width: 18px;
    height: 18px;
}

/* ========== Chart Modal Styles ========== */
.chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.chart-modal-content {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    width: 900px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
}

.chart-header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chart-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-filter-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.chart-filter-select {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    padding: 6px 12px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-filter-select:hover {
    border-color: var(--secondary-color);
}

.chart-filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(45, 255, 224, 0.1);
}

.chart-filter-select option {
    background: var(--background-white);
    color: var(--text-primary);
}

.chart-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.chart-modal-header h3 i {
    color: var(--secondary-color);
    width: 20px;
    height: 20px;
}

.chart-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-modal-close:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.chart-modal-close i {
    width: 20px;
    height: 20px;
}

.chart-modal-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--background-light);
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-white);
    gap: 16px;
}

.chart-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.chart-loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== Responsive Chart Modal ========== */
@media (max-width: 768px) {
    .chart-modal-content {
        width: 95vw;
        height: 80vh;
        margin: 20px;
    }
    
    .chart-modal-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .chart-modal-header h3 {
        font-size: 16px;
    }
    
    .chart-header-controls {
        justify-content: space-between;
    }
    
    .chart-filter-group {
        flex: 1;
    }
    
    .chart-filter-select {
        min-width: auto;
        flex: 1;
    }
    
    .chart-modal-body {
        padding: 20px;
    }
    
    .chart-container {
        min-height: 300px;
    }
}

/* Admin Cards Styles */