/* Admin Panel Styles - Integrated with Unity Design */

/* ===== ADMIN PANEL SECTION ===== */
.admin-panel-section {
    padding: 120px 0 80px;
    position: relative;
    min-height: 100vh;
}

/* ===== ADMIN HEADER ===== */
.admin-header {
    margin-bottom: 48px;
}

.admin-header-content {
    text-align: center;
    margin-bottom: 40px;
}

.admin-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.admin-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.admin-tab svg {
    width: 20px;
    height: 20px;
}

.admin-tab span {
    /* Badge styling handled separately */
}

.admin-tab:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

.admin-tab.active svg {
    color: white;
    stroke: white;
}

.tab-badge {
    background: var(--red);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

.admin-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== ADMIN SEARCH ===== */
.admin-search {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.admin-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.admin-search svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.admin-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

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



/* ===== TAB CONTENT ===== */
.admin-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

/* ===== STATS GRID ===== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.admin-stat-card {
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.admin-stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

.admin-stat-card:hover::before {
    opacity: 1;
}

.stat-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.stat-icon-wrapper.purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.05) 100%);
    color: var(--accent);
}

.stat-icon-wrapper.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--green);
}

.stat-icon-wrapper.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--red);
}

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

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.stat-glow.purple {
    background: var(--accent);
    top: -20px;
    right: -20px;
}

.stat-glow.green {
    background: rgba(16, 185, 129, 0.7);
    top: -20px;
    right: -20px;
}

.stat-glow.red {
    background: var(--red);
    top: -20px;
    right: -20px;
}

.admin-stat-card:hover .stat-glow {
    opacity: 0.3;
}

/* ===== TABLE ===== */
.admin-table-container {
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.admin-table-wrapper {
    overflow-x: auto;
}

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

.admin-table thead {
    background: rgba(16, 16, 24, 0.8);
}

.admin-table th {
    padding: 20px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}

.admin-table tbody tr {
    transition: all 0.3s;
}

.admin-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* User Cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}



.user-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0;
}

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

/* Deletion countdown (inline with nickname) */
.deletion-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.2px;
    line-height: 1.35;
    transition: all 0.2s;
    flex-shrink: 0;
}

.deletion-badge:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28) 0%, rgba(239, 68, 68, 0.12) 100%);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.18);
}

/* Role Badge */
.role-badge {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.role-badge.role-admin {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--accent-light);
}

.role-badge.role-user {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

.role-badge.role-moderator {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Status Badge */
.status-badge {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.status-badge.status-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--green);
}

.status-badge.status-banned {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--red);
}

.status-badge.status-not-verified {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24;
}

/* Chat Status Badge */
.chat-status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.chat-status-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--green);
    transition: all 0.3s;
}

.chat-status-badge.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.chat-status-badge.blocked {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--red);
    transition: all 0.3s;
}

.chat-status-badge.blocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent);
}

.btn-icon:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.btn-icon.btn-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.btn-icon.btn-warning:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.btn-icon.btn-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.btn-icon.btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

/* Chat Actions */
.chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent);
}

.chat-action-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.chat-action-btn.blocked {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.chat-action-btn.blocked:hover {
    background: rgba(239, 68, 68, 0.3);
}

.chat-action-btn svg {
    width: 20px;
    height: 20px;
}

.btn-icon:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-icon.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.btn-icon.btn-danger:hover {
    background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== CHATS SECTION ===== */
.admin-chats-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    height: 700px;
}

.admin-chats-list {
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

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

.chats-list-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.chats-count-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.chats-list-items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 16px;
    align-items: center;
}

.chat-item:hover {
    background: rgba(124, 58, 237, 0.05);
}

.chat-item.active {
    background: rgba(124, 58, 237, 0.1);
    border-left: 3px solid var(--accent);
}

.chat-item.unread {
    background: rgba(124, 58, 237, 0.03);
}

.chat-item.blocked {
    opacity: 0.6;
}

.chat-item.blocked .chat-avatar {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.chat-item.user-blocked {
    opacity: 0.7;
    border-left: 3px solid var(--red);
}

.chat-item.user-blocked .chat-avatar {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.chat-item.user-blocked .chat-preview {
    color: var(--red);
    font-weight: 600;
}

.chat-item.chat-blocked {
    opacity: 0.85;
    border-left: 3px solid #f59e0b;
}

.chat-item.chat-blocked .chat-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.chat-item.chat-blocked .chat-preview {
    color: #f59e0b;
    font-weight: 600;
}

.block-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    stroke: #64748b;
}

.block-icon.user-block {
    stroke: #ef4444;
}

.block-icon-inline {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    stroke: currentColor;
}

.chat-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

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

.chat-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

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

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

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

.chat-unread {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Chat Window */
.admin-chat-window {
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-user-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.chat-user-details {
    flex: 1;
}

.chat-user-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.chat-user-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.chat-messages-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.empty-chat-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-chat-state p {
    font-size: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    animation: messageSlide 0.3s ease;
}

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

.message.user {
    align-items: flex-start;
}

.message.admin {
    align-items: flex-end;
    margin-left: auto;
}

.message-content {
    background: rgba(16, 16, 24, 0.8);
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 6px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.message.admin .message-content {
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    color: white;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 8px;
}

.chat-input-container {
    padding: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input-field {
    flex: 1;
    background: rgba(16, 16, 24, 0.8);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.chat-input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.chat-send-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.chat-send-btn svg {
    width: 20px;
    height: 20px;
}


/* ===== MODAL ===== */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.admin-modal-content {
    background: rgba(12, 12, 18, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.admin-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.admin-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: var(--red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.admin-modal-close svg {
    width: 20px;
    height: 20px;
}

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

.admin-form-group {
    margin-bottom: 24px;
}

.admin-form-group:last-child {
    margin-bottom: 0;
}

.admin-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-input,
.admin-select {
    width: 100%;
    background: rgba(16, 16, 24, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.admin-input:focus,
.admin-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}

.btn-secondary {
    background: rgba(16, 16, 24, 0.8);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(24, 24, 32, 0.9);
    border-color: var(--accent);
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 14px;
}

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

/* ===== BALANCE EDIT MODAL ===== */
.balance-modal {
    max-width: 420px;
}

.admin-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.admin-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.balance-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(124, 58, 237, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    margin-bottom: 16px;
}

.balance-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.balance-user-details {
    flex: 1;
    min-width: 0;
}

.balance-user-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.balance-user-email {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.balance-info-item {
    padding: 10px 12px;
    background: rgba(16, 16, 24, 0.4);
    border-radius: 10px;
}

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

.balance-info-value {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.balance-input-wrapper::before {
    content: '$';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    pointer-events: none;
}

.balance-input {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 14px 16px 14px 36px;
    border: 2px solid var(--border);
}

.balance-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.input-hint {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.balance-quick-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    justify-content: center;
}

.quick-action-btn {
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.balance-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
}

.balance-change.negative {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

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

.change-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--green);
}

.balance-change.negative .change-amount {
    color: var(--red);
}

.admin-modal-body {
    padding: 20px 24px;
}

.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.admin-modal-footer .btn {
    padding: 12px 24px;
    font-size: 13px;
}

/* ===== HOLD TO CONFIRM BUTTON ===== */
.btn-hold-confirm {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
}

.btn-hold-confirm.holding {
    cursor: grabbing;
}

.btn-hold-confirm.completed {
    cursor: default;
}

.hold-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    width: 0%;
    transition: none;
}

.btn-hold-confirm.holding .hold-progress {
    animation: holdProgress 5s linear forwards;
}

@keyframes holdProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.hold-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hold-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.btn-hold-confirm.holding .hold-icon {
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hold-timer {
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-hold-confirm.holding .hold-timer {
    opacity: 1;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(16, 16, 24, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .admin-chats-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .admin-chats-list {
        max-height: 400px;
    }
    
    .admin-chat-window {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .admin-panel-section {
        padding: 100px 0 60px;
    }
    
    .admin-title {
        font-size: 32px;
    }
    
    .admin-subtitle {
        font-size: 16px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        width: 100%;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-wrapper {
        overflow-x: scroll;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    .admin-chats-container {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .admin-title {
        font-size: 28px;
    }
    
    .admin-stat-card {
        padding: 20px;
    }
    
    .stat-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}
