/* ============================================
   ADMIN PANEL - ENHANCED STYLES
   ============================================ */

/* Modern Admin Panel */
.modern-admin-panel {
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--bg-primary);
    background-image: none !important;
}

.admin-container-enhanced {
    max-width: 1400px;
    margin: 0 auto;
}

/* Enhanced Header */
.admin-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-title-section-enhanced {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.admin-badge {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-main-title h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
}

.admin-main-title p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.admin-btn-enhanced {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.admin-btn-enhanced.primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

.admin-btn-enhanced.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.admin-btn-enhanced.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-btn-enhanced.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Enhanced Stats Grid */
.admin-stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card-enhanced {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.admin-stat-card-enhanced:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.admin-stat-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.stat-icon-large.users {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.stat-icon-large.orders {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.stat-icon-large.pending {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.stat-icon-large.revenue {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.stat-trend.up {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.stat-card-body {
    position: relative;
    z-index: 1;
}

.stat-value-large {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label-main {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-meta-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Enhanced Tabs */
.admin-tabs-enhanced {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: rgba(139, 92, 246, 0.05);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    flex-wrap: wrap;
}

.admin-tab-enhanced {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.admin-tab-enhanced:hover {
    background: rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.admin-tab-enhanced.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.tab-badge-enhanced {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.admin-tab-enhanced.active .tab-badge-enhanced {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Area */
.admin-content-enhanced {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 30px;
}

.admin-tab-content-enhanced {
    display: none;
}

.admin-tab-content-enhanced.active {
    display: block;
}

.content-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px 0;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 12px;
}

/* Admin Orders Grid */
.admin-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.admin-order-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.admin-order-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* Status Badge Enhanced */
.status-badge-enhanced {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge-enhanced.pending {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.status-badge-enhanced.processing {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-badge-enhanced.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-enhanced.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge-enhanced.active,
.status-badge-enhanced.unused {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-enhanced.used {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-badge-enhanced.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge-enhanced.open {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge-enhanced.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge-enhanced.answered {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-badge-enhanced.closed {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Action Button Enhanced */
.action-btn-enhanced {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.action-btn-enhanced.view {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.action-btn-enhanced.view:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.action-btn-enhanced.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-btn-enhanced.delete:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

/* Admin Transactions Grid */
.admin-transactions-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.transaction-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.transaction-card:hover .transaction-icon {
    transform: scale(1.1);
}

.transaction-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.transaction-type {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type .type-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.transaction-type .transaction-id {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

.transaction-amount {
    font-size: 20px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.transaction-amount.purchase {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.transaction-amount.order {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.transaction-amount.refund {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.transaction-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
    font-size: 14px;
}

.transaction-user i {
    font-size: 18px;
    color: rgba(139, 92, 246, 0.7);
}

.transaction-user span:first-of-type {
    font-weight: 600;
    color: #fff;
}

.transaction-user .user-email {
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
    font-size: 13px;
}

.transaction-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid rgba(139, 92, 246, 0.5);
}

.transaction-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.transaction-balance .balance-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-balance .balance-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.transaction-balance .balance-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.transaction-balance .fa-arrow-right {
    color: rgba(139, 92, 246, 0.5);
    font-size: 14px;
}

.transaction-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.transaction-meta .meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.transaction-meta i {
    opacity: 0.7;
}

/* Responsive Transaction Cards */
@media (max-width: 768px) {
    .transaction-card {
        flex-direction: column;
        gap: 16px;
    }
    
    .transaction-icon {
        align-self: center;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .transaction-amount {
        text-align: center;
    }
    
    .transaction-user .user-email {
        margin-left: 0;
        display: block;
        width: 100%;
        margin-top: 4px;
    }
    
    .transaction-balance {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Admin Users Grid */
.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.user-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.user-card-header {
    padding: 24px;
    background: rgba(139, 92, 246, 0.05);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.user-header-info {
    flex: 1;
}

.user-full-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.user-email-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0 0 12px 0;
}

.user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.role-badge-enhanced {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    text-transform: capitalize;
}

.role-badge-enhanced.admin {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-badge-enhanced.user {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.user-card-body {
    padding: 20px 24px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.user-stat-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-stat-item .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 16px;
}

.user-stat-item .stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-stat-item .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.user-stat-item .stat-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.user-card-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* Admin Codes Grid */
.admin-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.code-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.code-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.code-display-section {
    background: rgba(139, 92, 246, 0.08);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #8b5cf6;
    letter-spacing: 2px;
    flex: 1;
}

.copy-code-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-code-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: scale(1.05);
}

.code-value-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.05));
    border-radius: 12px;
    margin-bottom: 20px;
}

.code-value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.code-value-display i {
    font-size: 24px;
    color: #8b5cf6;
}

.value-amount {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.code-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.code-detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.code-detail-item .detail-icon {
    color: #8b5cf6;
    margin-top: 2px;
}

.code-detail-item .detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-detail-item .detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.code-detail-item .detail-value {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.code-actions {
    padding-top: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* Admin Tickets Grid */
.admin-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.ticket-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ticket-id {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b5cf6;
    font-weight: 700;
    font-size: 14px;
}

.ticket-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.priority-badge-enhanced {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-subject {
    margin-bottom: 16px;
}

.ticket-subject h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.ticket-user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.ticket-user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.ticket-user-info .user-details {
    flex: 1;
}

.ticket-user-info .user-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.ticket-user-info .user-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.meta-item i {
    color: #8b5cf6;
}

.ticket-actions {
    padding-top: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    gap: 12px;
}

.loading-state span {
    font-size: 15px;
    font-weight: 500;
}

.loading-state i {
    font-size: 36px;
    color: #8b5cf6;
    animation: spin 1s linear infinite, pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Pill Button Small */
.pill-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.pill-btn-sm i {
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-stats-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs-enhanced {
        flex-direction: column;
    }
    
    .admin-tab-enhanced {
        min-width: 100%;
    }
    
    .content-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-orders-grid,
    .admin-users-grid,
    .admin-codes-grid,
    .admin-tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BOOTSTRAP MODALS - LAYOUT & CONTENT STYLES ===== */
/* Bootstrap handles all modal appearance - these are just content layouts */

.modal-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Modal Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 16px;
    border-radius: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.detail-item value {
    display: block;
    font-size: 15px;
}

/* Status Buttons in Modal */
.status-update-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.status-btn.pending {
    border-color: #fbbf24;
    color: #fbbf24;
}

.status-btn.processing {
    border-color: #3b82f6;
    color: #3b82f6;
}

.status-btn.completed,
.status-btn.active {
    border-color: #22c55e;
    color: #22c55e;
}

.status-btn.cancelled,
.status-btn.suspended,
.status-btn.banned {
    border-color: #ef4444;
    color: #ef4444;
}

/* Service and Status Badges */
.service-badge,
.role-badge,
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.service-badge.followers,
.role-badge.admin {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.service-badge.tells {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.service-badge.likes {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.role-badge.user {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.status-badge.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge.completed,
.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-badge.cancelled,
.status-badge.suspended,
.status-badge.banned {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ===== TICKET DETAILS MODAL CONTENT ===== */
.ticket-details-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ticket-info-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.ticket-info-card:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.info-card-icon.ticket-id {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

.info-card-icon.status-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.info-card-icon.priority-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

.info-card-icon.category-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.ticket-user-section {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.ticket-user-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.ticket-user-info {
    flex: 1;
    min-width: 200px;
}

.ticket-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.ticket-user-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 4px 0;
}

.ticket-user-tellonym {
    font-size: 13px;
    color: rgba(139, 92, 246, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.date-item i {
    color: rgba(139, 92, 246, 0.6);
}

.ticket-content-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: rgba(139, 92, 246, 0.7);
}

.ticket-subject {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.ticket-description {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-left: 3px solid rgba(139, 92, 246, 0.6);
    border-radius: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.ticket-replies-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.replies-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.reply-item.admin-reply {
    flex-direction: row-reverse;
}

.reply-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reply-item.admin-reply .reply-avatar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 18px;
}

.reply-item.user-reply .reply-avatar {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

.reply-content {
    flex: 1;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 14px;
}

.reply-item.admin-reply .reply-content {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.24);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.reply-author {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reply-item.admin-reply .reply-author {
    color: #ef4444;
}

.reply-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.reply-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ticket-actions-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.reply-form-textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.reply-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.action-btn.primary-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    color: #fff;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.action-btn.primary-btn:hover {
    background: linear-gradient(135deg, rgb(139, 92, 246), rgb(124, 58, 237));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.action-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.status-update-section {
    padding: 20px;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

.status-update-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-update-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.status-update-btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.status-update-btn i {
    font-size: 12px;
}

.status-update-btn.is-loading,
.status-btn.is-loading {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.status-update-btn.open {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.status-update-btn.open:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    transform: translateY(-2px);
}

.status-update-btn.in-progress {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.status-update-btn.in-progress:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.status-update-btn.answered {
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.status-update-btn.answered:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    transform: translateY(-2px);
}

.status-update-btn.closed {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-update-btn.closed:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    transform: translateY(-2px);
}

.ticket-closed-notice {
    padding: 20px;
    text-align: center;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22c55e;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ticket-closed-notice i {
    font-size: 20px;
}

/* Responsive Ticket Details */
@media (max-width: 768px) {
    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-user-section {
        flex-direction: column;
        text-align: center;
    }
    
    .ticket-user-info {
        min-width: 100%;
    }
    
    .ticket-dates {
        width: 100%;
    }
    
    .status-update-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== SIMPLE MODAL ===== */
.simple-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.simple-overlay.active {
    opacity: 1;
    visibility: visible;
}

.simple-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.simple-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.simple-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.simple-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.simple-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.simple-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.simple-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #16213e;
}

.simple-modal-body::-webkit-scrollbar {
    width: 8px;
}

.simple-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.simple-modal-body::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

.simple-modal-body::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.admin-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.08);
}

.admin-detail-main {
    min-width: 0;
}

.admin-detail-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.admin-detail-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.admin-detail-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
}

.admin-detail-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.admin-detail-amount {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
}

.admin-detail-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-detail-progress-wrap .progress-bar {
    flex: 1;
}

.admin-detail-progress-text {
    min-width: 44px;
    text-align: right;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    background: rgba(139, 92, 246, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-item value {
    display: block;
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

.status-update-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.status-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.inline-detail-panel {
    margin: 0 0 18px;
}

.inline-detail-card {
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.12));
    overflow: hidden;
}

.inline-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(139, 92, 246, 0.24);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.inline-detail-title {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.inline-detail-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-detail-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.inline-detail-body {
    padding: 16px;
    background: rgba(139, 92, 246, 0.06);
}

@media (max-width: 768px) {
    .simple-modal {
        width: 95%;
        max-height: 90vh;
    }

    .simple-modal-header {
        padding: 16px 20px;
    }

    .simple-modal-header h3 {
        font-size: 18px;
    }

    .simple-modal-body {
        padding: 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-hero {
        flex-direction: column;
    }

    .admin-detail-side {
        width: 100%;
        align-items: flex-start;
    }

    .inline-detail-header,
    .inline-detail-body {
        padding: 12px;
    }
}

/* ===== MODAL FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-style: italic;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.admin-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.admin-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.admin-input[type="datetime-local"] {
    color-scheme: dark;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.admin-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-btn.primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    color: #fff;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.admin-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(139, 92, 246), rgb(124, 58, 237));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== CREATE CODE SECTION ===== */
.create-code-section {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
}

.create-code-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-code-section .section-header:hover {
    background: rgba(139, 92, 246, 0.12);
}

.create-code-section .section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-section-btn {
    background: rgba(139, 92, 246, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #8b5cf6;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-section-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

.create-code-section .section-body {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.announcement-editor-row {
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02) !important;
}

.announcement-editor-row .admin-input {
    background: rgba(10, 10, 18, 0.55);
    border-color: rgba(139, 92, 246, 0.28);
}

.announcement-editor-row .admin-input:focus {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.announcement-editor-row select.admin-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-inline-end: 42px;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.announcement-editor-row select.admin-input option {
    background: #141223;
    color: #f5f3ff;
}

.ann-icon-preview {
    min-height: 46px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    background: rgba(10, 10, 18, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ann-icon-preview-inner {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9d5ff;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* ===== TICKET DETAIL PAGE ===== */
.ticket-detail-page {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: #8b5cf6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(-5px);
}

.ticket-detail-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticket-detail-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .ticket-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== TICKET LOADING STATE ===== */
.loading-state-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.loading-state-container .loading-state {
    flex: 1;
    min-height: 400px;
}

/* Mobile motion: removed global forced slow transitions */

/* ============ ANALYTICS TAB STYLES ============ */

/* Period selector */
#tab-analytics .analytics-period-select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b5cf6' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}
#tab-analytics .analytics-period-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
#tab-analytics .analytics-period-select:hover {
    background-color: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
}
#tab-analytics .analytics-period-select option {
    background: #1a1a2e;
    color: #d0d0e0;
}

/* Header actions in analytics */
#tab-analytics .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* KPI Row */
#tab-analytics .analytics-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 28px;
}

#tab-analytics .analytics-kpi-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

#tab-analytics .analytics-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

#tab-analytics .analytics-kpi-card.green::before { background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%); }
#tab-analytics .analytics-kpi-card.blue::before { background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%); }
#tab-analytics .analytics-kpi-card.purple::before { background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%); }
#tab-analytics .analytics-kpi-card.orange::before { background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%); }

#tab-analytics .analytics-kpi-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

#tab-analytics .analytics-kpi-card .kpi-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#tab-analytics .analytics-kpi-card.green .kpi-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
#tab-analytics .analytics-kpi-card.blue .kpi-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
#tab-analytics .analytics-kpi-card.purple .kpi-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}
#tab-analytics .analytics-kpi-card.orange .kpi-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

#tab-analytics .analytics-kpi-card .kpi-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

#tab-analytics .analytics-kpi-card .kpi-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

#tab-analytics .analytics-kpi-card .kpi-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Charts Grid */
#tab-analytics .analytics-charts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

#tab-analytics .analytics-chart-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

#tab-analytics .analytics-chart-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

#tab-analytics .analytics-chart-card.wide {
    grid-column: span 2;
}

#tab-analytics .chart-card-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#tab-analytics .chart-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#tab-analytics .chart-card-header h3 svg {
    color: #8b5cf6;
}

#tab-analytics .chart-card-body {
    padding: 20px 24px 24px;
    position: relative;
    height: 300px;
}

#tab-analytics .chart-card-body canvas {
    max-width: 100%;
    max-height: 100%;
}

#tab-analytics .chart-card-body.no-canvas {
    height: auto;
    max-height: 400px;
    overflow-y: auto;
}

#tab-analytics .chart-card-body.no-canvas::-webkit-scrollbar {
    width: 6px;
}
#tab-analytics .chart-card-body.no-canvas::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 3px;
}
#tab-analytics .chart-card-body.no-canvas::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}
#tab-analytics .chart-card-body.no-canvas::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.35);
}

/* Analytics Table */
#tab-analytics .analytics-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

#tab-analytics .analytics-table thead th {
    text-align: right;
    padding: 12px 16px;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    white-space: nowrap;
    background: rgba(139, 92, 246, 0.03);
}

#tab-analytics .analytics-table thead th:first-child {
    border-radius: 0 10px 0 0;
}
#tab-analytics .analytics-table thead th:last-child {
    border-radius: 10px 0 0 0;
}

#tab-analytics .analytics-table tbody td {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(139, 92, 246, 0.06);
    transition: background 0.2s;
}

#tab-analytics .analytics-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.06);
}

#tab-analytics .analytics-table tbody tr:last-child td {
    border-bottom: none;
}

#tab-analytics .analytics-table .email-cell {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tab-analytics .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

#tab-analytics .rank-badge.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}
#tab-analytics .rank-badge.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #fff;
    box-shadow: 0 3px 10px rgba(156, 163, 175, 0.25);
}
#tab-analytics .rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.25);
}
#tab-analytics .rank-badge.rank-other {
    background: rgba(139, 92, 246, 0.08);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.12);
}

/* Stats List */
#tab-analytics .analytics-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

#tab-analytics .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.2s ease;
}

#tab-analytics .stat-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.18);
}

#tab-analytics .stat-item span:nth-child(2) {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
}

#tab-analytics .stat-item strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

#tab-analytics .stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

#tab-analytics .stat-dot.green { background: #10b981; color: rgba(16, 185, 129, 0.4); }
#tab-analytics .stat-dot.blue { background: #3b82f6; color: rgba(59, 130, 246, 0.4); }
#tab-analytics .stat-dot.red { background: #ef4444; color: rgba(239, 68, 68, 0.4); }
#tab-analytics .stat-dot.purple { background: #8b5cf6; color: rgba(139, 92, 246, 0.4); }
#tab-analytics .stat-dot.orange { background: #f59e0b; color: rgba(245, 158, 11, 0.4); }

/* Analytics loading state */
#tab-analytics .analytics-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

#tab-analytics .analytics-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.15);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: analyticsSpin 0.8s linear infinite;
}

@keyframes analyticsSpin {
    to { transform: rotate(360deg); }
}

#tab-analytics .analytics-loading span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    #tab-analytics .analytics-charts-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    #tab-analytics .analytics-chart-card.wide {
        grid-column: span 2;
    }
    #tab-analytics .analytics-kpi-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #tab-analytics .analytics-charts-grid {
        grid-template-columns: 1fr !important;
    }
    #tab-analytics .analytics-chart-card.wide {
        grid-column: span 1;
    }
    #tab-analytics .analytics-kpi-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    #tab-analytics .analytics-kpi-card {
        padding: 18px;
    }
    #tab-analytics .analytics-kpi-card .kpi-value {
        font-size: 22px;
    }
    #tab-analytics .analytics-kpi-card .kpi-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    #tab-analytics .chart-card-body {
        height: 250px;
        padding: 16px;
    }
    #tab-analytics .chart-card-header {
        padding: 14px 16px 10px;
    }
    #tab-analytics .chart-card-header h3 {
        font-size: 13px;
    }
    #tab-analytics .header-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    #tab-analytics .analytics-kpi-row {
        grid-template-columns: 1fr !important;
    }
    #tab-analytics .analytics-kpi-card .kpi-value {
        font-size: 20px;
    }
    #tab-analytics .chart-card-body {
        height: 220px;
    }
}

/* ===== WAITLIST CARDS ===== */
.wl-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.wl-loading, .wl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
}
.wl-error { color: #f87171; }

.wl-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s, background 0.25s;
    position: relative;
}
.wl-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.06);
}
.wl-card.wl-status-pending { border-inline-start: 3px solid #eab308; }
.wl-card.wl-status-approved { border-inline-start: 3px solid #22c55e; }
.wl-card.wl-status-rejected { border-inline-start: 3px solid #ef4444; }

.wl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.wl-card-info { flex: 1; min-width: 0; }
.wl-card-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-card-email {
    font-size: 12px;
    color: #a78bfa;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.wl-card-email:hover { text-decoration: underline; }

.wl-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.wl-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.wl-status.wl-status-pending { background: rgba(234, 179, 8, 0.15); color: #fbbf24; }
.wl-status.wl-status-approved { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.wl-status.wl-status-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.wl-date {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.6);
}

.wl-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wl-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}
.wl-tag svg { opacity: 0.7; }
.wl-tag-platform {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}
.wl-tag-reason {
    background: rgba(234, 179, 8, 0.1);
    color: #fbbf24;
}
.wl-tag-source {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

.wl-link, .wl-message {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}
.wl-link svg, .wl-message svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.45;
}
.wl-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #a78bfa;
}
.wl-message span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-card-code {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.wl-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a78bfa;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    transition: background 0.2s;
}
.wl-code:hover { background: rgba(139, 92, 246, 0.2); }

.wl-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.wl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}
.wl-btn-approve {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.wl-btn-approve:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}
.wl-btn-reject {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.wl-btn-reject:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}
.wl-action-done {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.5);
    font-weight: 500;
}

@media (max-width: 480px) {
    .wl-cards-container { grid-template-columns: 1fr; }
    .wl-card { padding: 16px; }
    .wl-card-top { flex-direction: column; gap: 8px; }
    .wl-card-meta { flex-direction: row; align-items: center; }
}
