body.admin-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #f8fafc;
    padding: 5px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    font-size: 13px;
}

body.admin-body .nav {
    width: 100%;
    left: 0;
    right: 0;
}

body.admin-body .nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
}

.admin-shell {
    max-width: 1600px;
    margin: 80px auto 0;
    display: block;
    align-items: start;
    padding: 0 4px 12px 260px;
}

.admin-sidebar {
    position: fixed;
    top: 80px;
    left: max(16px, calc((100vw - 1600px) / 2 + 4px));
    width: 240px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: start;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 12px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.sidebar-subtitle {
    font-size: 11px;
    color: #94a3b8;
}

.sidebar-section {
    margin-bottom: 16px;
    display: grid;
    gap: 8px;
}

.sidebar-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(30, 41, 59, 0.8);
}

.sidebar-item.active {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4);
    background: rgba(37, 99, 235, 0.18);
}

.sidebar-item-muted {
    opacity: 0.55;
    cursor: not-allowed;
}

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

.sidebar-text {
    flex: 1;
    text-align: left;
}

.sidebar-pill {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.sidebar-pill.muted {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5f5;
}

.admin-lock {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
}

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

.admin-lock-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    padding: 28px;
    width: min(400px, 90vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 100px rgba(59, 130, 246, 0.2);
}

.admin-lock-card h2 {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-lock-card p {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 0 10px;
}

.admin-lock-card input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 5px 12px;
    margin-bottom: 7px;
    font-size: 13px;
    transition: all 0.2s;
}

.admin-lock-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.admin-lock-card button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: #fff;
    padding: 5px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-lock-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.admin-lock-card .admin-meta {
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.admin-container {
    margin: 0;
    max-width: none;
    display: grid;
    gap: 8px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 8px;
    font-size: 11px;
}

.breadcrumb {
    color: #94a3b8;
}

.admin-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-token {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
}

.admin-token-inline {
    flex-wrap: wrap;
    gap: 6px;
}

.admin-token input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 6px;
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    width: 220px;
}

.admin-user {
    color: #60a5fa;
    font-weight: 600;
}

.admin-hero {
    padding: 8px 20px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.admin-title {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.admin-subtitle {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.admin-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-label {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
}

.admin-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-input-row input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    width: 200px;
    transition: all 0.2s;
}

.admin-input-row input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

.btn-large:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

.btn-secondary:hover {
    background: rgba(96, 165, 250, 0.25);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.btn-ghost:hover {
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(148, 163, 184, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-danger:hover {
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.admin-panel {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.1);
    display: grid;
    gap: 5px;
}

.section-subtitle {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.status-pill {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5f5;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-summary.main-account-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.main-account-list {
    display: grid;
    gap: 12px;
}

.ma-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 10px;
    transition: all 0.2s ease;
}

.ma-card:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}

.ma-card.active {
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 10px 20px rgba(59, 130, 246, 0.2);
}

.ma-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ma-title {
    font-weight: 700;
    color: #f8fafc;
}

.ma-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

.ma-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #cbd5f5;
}

.ma-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.time-pill {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.risk-pill {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.risk-pill.low {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.risk-pill.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.risk-pill.high {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.status-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
}

.status-badge.pending {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.4);
}

.status-badge.review {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.4);
}

.main-account-details .details-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 12px;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-label {
    font-size: 11px;
    color: #94a3b8;
}

.detail-value {
    font-size: 13px;
    color: #f8fafc;
    font-weight: 600;
}

.details-notes textarea {
    width: 100%;
    min-height: 80px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    padding: 10px;
    font-size: 12px;
    resize: vertical;
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.details-audit {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 12px;
    display: grid;
    gap: 6px;
    font-size: 11px;
    color: #cbd5f5;
}

.audit-title {
    font-weight: 700;
    color: #e2e8f0;
}

.admin-list.empty-state,
.admin-details.empty-state {
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.section-header {
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    letter-spacing: 0.3px;
}

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

.analytics-widget {
    font-size: 11px;
    color: #94a3b8;
}

.trend-indicator {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.trend-indicator strong {
    color: #10b981;
}

.control-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 10px;
    padding: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.control-box + .control-box {
    margin-top: 16px;
}

.toolbar-sticky {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
}

.admin-toolbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 4px;
}

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

.quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.filter-chip.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    font-size: 12px;
    pointer-events: none;
}

.search-wrapper input {
    padding-left: 32px !important;
    width: 300px !important;
}

.search-results {
    position: absolute;
    right: 10px;
    color: #10b981;
    font-size: 11px;
    font-weight: 600;
}

.bulk-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(96, 165, 250, 0.15);
}

.bulk-selected {
    font-size: 12px;
    color: #60a5fa;
    font-weight: 600;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(100, 116, 139, 0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #64748b;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.toggle-label {
    font-size: 12px;
    color: #94a3b8;
}

.tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.tab:hover {
    color: #cbd5e1;
    background: rgba(96, 165, 250, 0.1);
}

.tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 7px 12px;
    font-size: 12px;
    width: 200px;
    transition: all 0.2s;
}

.admin-actions input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-actions input::placeholder {
    color: #64748b;
}

.admin-actions select {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
}

.toggle input {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

#summaryBar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
}

.summary-card {
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 10px;
    padding: 6px 14px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 65px;
}

.summary-card.pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.12));
    border-color: rgba(251, 191, 36, 0.35);
}

.summary-card.approved {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.12));
    border-color: rgba(34, 197, 94, 0.35);
}

.summary-card.rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.12));
    border-color: rgba(239, 68, 68, 0.35);
}

.summary-card.total {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border-color: rgba(96, 165, 250, 0.35);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}

.summary-title {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-grid {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 6px;
}

#licenseSection > div:nth-child(3) > div.admin-grid {
    grid-template-columns: 1fr 1fr;
}

#mainAccountSection > div:nth-child(3) > div.admin-grid {
    grid-template-columns: 1fr 1fr;
}

.admin-list {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding: 5px;
    display: grid;
    gap: 8px;
    align-content: start;
}

/* Custom scrollbar */
.admin-list::-webkit-scrollbar,
.admin-details::-webkit-scrollbar {
    width: 8px;
}

.admin-list::-webkit-scrollbar-track,
.admin-details::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

.admin-list::-webkit-scrollbar-thumb,
.admin-details::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

.admin-list::-webkit-scrollbar-thumb:hover,
.admin-details::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.request-item {
    position: relative;
    padding: 5px 12px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 5px;
    align-items: start;
}

.request-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
}

.request-item:hover .inline-actions {
    opacity: 1;
}

.request-item.selected {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 6px 18px rgba(59, 130, 246, 0.2);
}

.request-item.selected::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #3b82f6;
}

.request-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
    margin-top: 2px;
}

.request-content {
    flex: 1;
}

.request-badges {
    display: flex;
    gap: 4px;
    align-items: center;
}

.platform-badge {
    font-size: 14px;
}

.priority-flag {
    font-size: 10px;
}

.inline-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.inline-btn {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.inline-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.inline-btn.approve {
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.inline-btn.reject {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.request-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.request-email {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    opacity: 0;
    font-size: 11px;
    cursor: pointer;
    color: #60a5fa;
    transition: opacity 0.2s;
}

.request-item:hover .copy-btn {
    opacity: 1;
}

.request-meta {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 400;
}

.request-meta div {
    margin: 2px 0;
}

.request-time {
    color: #64748b;
    font-size: 10px;
    margin-top: 4px;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
}

.status-badge.approved {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-details {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 10px;
    padding: 8px;
    max-height: 520px;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    align-content: start;
}

.details-empty {
    color: #64748b;
    text-align: center;
    padding: 30px 20px;
    font-size: 12px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.details-empty h4 {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 8px;
}

.details-empty p {
    color: #64748b;
    font-size: 11px;
    margin: 0 0 16px;
}

.quick-tips {
    text-align: left;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 6px;
    margin-top: 16px;
}

.quick-tips strong {
    color: #60a5fa;
    font-size: 11px;
    display: block;
    margin-bottom: 8px;
}

.quick-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-tips li {
    font-size: 10px;
    color: #94a3b8;
    padding: 4px 0;
}

.loading-skeleton {
    display: grid;
    gap: 8px;
}

.skeleton-item {
    height: 60px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.5) 25%, rgba(59, 130, 246, 0.1) 50%, rgba(30, 41, 59, 0.5) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.details-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    display: grid;
    gap: 6px;
}

.details-action-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 10px;
    margin-bottom: 7px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.details-policy-bar {
    padding: 14px 16px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 10px;
    margin-bottom: 7px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.details-policy-bar h4 {
    font-size: 11px;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 6px;
    font-weight: 700;
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.policy-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.btn-large {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.details-header h3 {
    margin: 0 0 6px;
    font-size: 14px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.details-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    margin-bottom: 12px;
}

.details-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.details-tab:hover {
    background: rgba(96, 165, 250, 0.1);
}

.details-tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
}

.details-tab-content {
    display: grid;
    gap: 14px;
}

.details-id {
    font-size: 10px;
    color: #64748b;
    font-family: 'Courier New', monospace;
}

.details-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
}

.details-section h4 {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 6px;
    font-weight: 700;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
    font-size: 12px;
}

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

.detail-label {
    color: #94a3b8;
    font-weight: 500;
    font-size: 11px;
}

.detail-value {
    color: #fff;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
    font-size: 12px;
}

.detail-select {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    color: #fff;
    padding: 7px 10px;
    font-size: 12px;
    width: 100%;
    cursor: pointer;
}

.details-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 18px;
}

.details-actions button {
    padding: 9px;
    font-size: 12px;
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    resize: vertical;
    line-height: 1.6;
}

.notes-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.notes-textarea::placeholder {
    color: #64748b;
}

.history-entry {
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid #3b82f6;
    padding: 5px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 11px;
}

.history-entry-time {
    color: #64748b;
    font-size: 10px;
    margin-top: 4px;
}

.admin-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: #64748b;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(96, 165, 250, 0.15);
    font-size: 11px;
}

.pagination-info {
    color: #94a3b8;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-numbers {
    display: flex;
    gap: 4px;
    color: #60a5fa;
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
}

.activity-entry {
    background: rgba(30, 41, 59, 0.5);
    border-left: 3px solid #3b82f6;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.activity-time {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    min-width: 60px;
}

.activity-text {
    color: #cbd5e1;
    flex: 1;
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toast {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    border-color: rgba(239, 68, 68, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-details {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    body.admin-body {
        padding: 6px;
    }
    
    .admin-hero {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .admin-actions {
        width: 100%;
    }
    
    .admin-actions input {
        width: 100%;
    }
    
    #summaryBar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-actions {
        grid-template-columns: 1fr;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}
