/* Admin Manipulation - Comprehensive Control Center Styles */

.admin-dashboard.comprehensive {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #141428 100%);
    padding: 0;
}

/* Trading Mode Toggle Styles */
.mode-toggle {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.mode-btn {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid rgba(93, 79, 232, 0.3);
    background: rgba(255, 255, 255, 0.03);
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-btn:hover {
    background: rgba(93, 79, 232, 0.1);
    border-color: rgba(93, 79, 232, 0.5);
    color: #aaa;
}

.mode-btn.active {
    background: linear-gradient(135deg, #5d4fe8, #4938d4);
    border-color: #5d4fe8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(93, 79, 232, 0.4);
}

.mode-btn i {
    font-size: 16px;
}

.mode-description {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* Full Admin Header with Navigation */
.admin-header-full {
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93, 79, 232, 0.2);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 30px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #5d4fe8;
}

.header-brand i {
    font-size: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-back-to-users {
    background: rgba(93, 79, 232, 0.2);
    border: 1px solid #5d4fe8;
    color: #5d4fe8;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back-to-users:hover {
    background: #5d4fe8;
    color: white;
    transform: translateX(-5px);
}

/* Section Navigation */
.section-nav {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.section-tab {
    padding: 10px 20px;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.section-tab:hover {
    background: rgba(30, 30, 50, 0.6);
    color: white;
    transform: translateY(-2px);
}

.section-tab.active {
    background: #5d4fe8;
    border-color: #5d4fe8;
    color: white;
}

/* Section Content */
.section-content {
    display: none;
}

.section-header-main {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
}

.section-header-main h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header-main .subtitle {
    color: #9ca3af;
    font-size: 18px;
}

/* User Selection View */
.view-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.user-selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.user-selection-header h1 {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #9ca3af;
    font-size: 16px;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
}

.search-input-large {
    width: 100%;
    padding: 15px 50px 15px 55px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input-large:focus {
    outline: none;
    border-color: #5d4fe8;
    background: rgba(30, 30, 50, 0.8);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #9ca3af;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Search Filters */
.search-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(30, 30, 50, 0.6);
    color: white;
}

.filter-btn.active {
    background: #5d4fe8;
    border-color: #5d4fe8;
    color: white;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.user-card {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-5px);
    border-color: #5d4fe8;
    background: rgba(30, 30, 50, 0.8);
    box-shadow: 0 10px 30px rgba(93, 79, 232, 0.2);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar-small {
    font-size: 40px;
    color: #5d4fe8;
}

.user-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
}

.user-status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.user-status-indicator.suspended {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.user-card-body h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.user-card-body p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 15px;
}

.user-card-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
}

.user-card-stats i {
    margin-right: 5px;
    color: #5d4fe8;
}

.user-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.user-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-badge.user {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.user-badge.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.user-badge.admin {
    background: rgba(93, 79, 232, 0.2);
    color: #5d4fe8;
}

/* User Edit View */
.user-edit-header {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.user-avatar {
    font-size: 80px;
    color: #5d4fe8;
}

.user-details h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 5px;
}

.user-details p {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 15px;
}

.user-badges {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge.suspended {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge.verified {
    background: rgba(93, 79, 232, 0.2);
    color: #5d4fe8;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: rgba(20, 20, 40, 0.4);
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

/* Control Panels */
.control-panels {
    display: grid;
    gap: 20px;
}

.control-panel {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
}

.control-panel h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-panel h3 i {
    color: #5d4fe8;
}

/* Balance Controls */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.balance-item label {
    display: block;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 8px;
}

.balance-control {
    display: flex;
    gap: 10px;
}

.balance-control input {
    flex: 1;
    padding: 10px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 16px;
}

.btn-apply {
    padding: 10px 20px;
    background: #5d4fe8;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply:hover {
    background: #4b3dd6;
    transform: translateY(-2px);
}

/* Quick Actions Buttons */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-quick {
    padding: 10px 20px;
    background: rgba(93, 79, 232, 0.2);
    border: 1px solid #5d4fe8;
    border-radius: 6px;
    color: #5d4fe8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-quick:hover {
    background: #5d4fe8;
    color: white;
}

.btn-quick.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-quick.danger:hover {
    background: #ef4444;
    color: white;
}

.btn-quick.warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-quick.warning:hover {
    background: #f59e0b;
    color: white;
}

/* Trading Controls */
.trading-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-row label {
    min-width: 150px;
    color: #9ca3af;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(20, 20, 40, 0.6);
    border-radius: 3px;
    outline: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: #5d4fe8;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

#win-rate-display {
    min-width: 50px;
    color: white;
    font-weight: 600;
}

.input-control {
    display: flex;
    gap: 10px;
    flex: 1;
}

.input-control input {
    flex: 1;
    padding: 10px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
}

.toggle-controls {
    display: flex;
    gap: 10px;
}

.btn-force {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-force.win {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.btn-force.win:hover {
    background: #22c55e;
    color: white;
}

.btn-force.lose {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-force.lose:hover {
    background: #ef4444;
    color: white;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 15px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn i {
    font-size: 24px;
}

.action-btn:hover {
    transform: translateY(-3px);
    background: rgba(20, 20, 40, 0.8);
}

.action-btn.success {
    border-color: #22c55e;
    color: #22c55e;
}

.action-btn.success:hover {
    background: rgba(34, 197, 94, 0.2);
}

.action-btn.warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.action-btn.warning:hover {
    background: rgba(245, 158, 11, 0.2);
}

.action-btn.danger {
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.action-btn.gold {
    border-color: #fbbf24;
    color: #fbbf24;
}

.action-btn.gold:hover {
    background: rgba(251, 191, 36, 0.2);
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(20, 20, 40, 0.4);
    border-radius: 8px;
    margin-bottom: 10px;
}

.activity-item i {
    color: #5d4fe8;
    font-size: 18px;
}

.activity-details {
    flex: 1;
}

.activity-action {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 2px;
}

.activity-time {
    display: block;
    color: #9ca3af;
    font-size: 12px;
}

/* Authentication Required */
.auth-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(93, 79, 232, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.auth-card i {
    font-size: 64px;
    color: #5d4fe8;
    margin-bottom: 20px;
}

.auth-card h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.auth-card p {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 30px;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-login, .btn-token {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    background: #5d4fe8;
    color: white;
}

.btn-login:hover {
    background: #4b3dd6;
    transform: translateY(-2px);
}

.btn-token {
    background: rgba(93, 79, 232, 0.2);
    border: 1px solid #5d4fe8;
    color: #5d4fe8;
}

.btn-token:hover {
    background: rgba(93, 79, 232, 0.3);
}

.auth-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.info-text {
    color: #6b7280;
    font-size: 14px;
    margin: 5px 0;
}

/* Floating Emergency Button */
.fab-emergency {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.fab-emergency:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
}

/* Notifications */
.admin-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transition: right 0.3s ease;
    z-index: 10000;
}

.admin-notification.show {
    right: 20px;
}

.admin-notification.success {
    border-color: #22c55e;
}

.admin-notification.success i {
    color: #22c55e;
}

.admin-notification.error {
    border-color: #ef4444;
}

.admin-notification.error i {
    color: #ef4444;
}

.admin-notification.warning {
    border-color: #f59e0b;
}

.admin-notification.warning i {
    color: #f59e0b;
}

.admin-notification.info i {
    color: #5d4fe8;
}

/* No Users State */
.no-users {
    text-align: center;
    padding: 60px;
    color: #9ca3af;
}

.no-users i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: #22c55e;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* System Controls Section */
.system-panels {
    display: grid;
    gap: 20px;
}

.control-panel.large {
    padding: 30px;
}

/* Price Controls */
.price-controls {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.price-item {
    background: rgba(20, 20, 40, 0.4);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.currency-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #5d4fe8;
    font-family: 'JetBrains Mono', monospace;
}

.price-adjuster {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 10px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.price-buttons {
    display: flex;
    gap: 5px;
}

.btn-adjust {
    padding: 8px 12px;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-adjust.down {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-adjust.down:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-adjust.up {
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.btn-adjust.up:hover {
    background: rgba(34, 197, 94, 0.2);
}

/* Market Presets */
.market-presets {
    margin-top: 30px;
}

.market-presets h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.btn-preset {
    padding: 15px 20px;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-preset:hover {
    transform: translateY(-2px);
}

.btn-preset.danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-preset.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-preset.warning {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.btn-preset.warning:hover {
    background: rgba(245, 158, 11, 0.2);
}

.btn-preset.success {
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.btn-preset.success:hover {
    background: rgba(34, 197, 94, 0.2);
}

.btn-preset.gold {
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.btn-preset.gold:hover {
    background: rgba(251, 191, 36, 0.2);
}

/* System Settings */
.system-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(20, 20, 40, 0.4);
    border-radius: 8px;
}

.setting-row label {
    color: #9ca3af;
    font-weight: 500;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Simulation Controls */
.simulation-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn-simulate {
    padding: 20px;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(93, 79, 232, 0.3);
    border-radius: 10px;
    color: #5d4fe8;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-simulate:hover {
    background: rgba(93, 79, 232, 0.2);
    transform: translateY(-3px);
}

.btn-simulate i {
    font-size: 24px;
}

/* Emergency Controls */
.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.emergency-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn-emergency {
    padding: 15px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-emergency:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.02);
}

.btn-emergency.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Analytics Section */
.stats-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-large {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5d4fe8, #4b3dd6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    display: block;
    color: #9ca3af;
    font-size: 14px;
    margin-top: 5px;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
}

.chart-card h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.chart-card canvas {
    max-height: 300px;
}

/* Admin Actions Log */
.admin-actions-log {
    max-height: 400px;
    overflow-y: auto;
}

/* Error and Loading States */
.loading-users, .error-message {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.loading-users i, .error-message i {
    font-size: 48px;
    margin-bottom: 20px;
}

.btn-retry {
    margin-top: 20px;
    padding: 10px 20px;
    background: #5d4fe8;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retry:hover {
    background: #4b3dd6;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .balance-grid {
        grid-template-columns: 1fr;
    }
    
    .section-nav {
        gap: 10px;
    }
    
    .section-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .stats-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .view-container {
        padding: 20px;
    }
    
    .user-selection-header h1 {
        font-size: 24px;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-row label {
        min-width: auto;
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-info-section {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header-full {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .section-nav {
        width: 100%;
        justify-content: space-around;
    }
    
    .section-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .section-tab span {
        display: none;
    }
    
    .price-buttons {
        flex-wrap: wrap;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}