﻿/* ============================================
   CHECKSHOP - Admin Panel Stylesheet (Pro)
   ============================================ */

/* ============ Admin Layout ============ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* ============ Sidebar ============ */
.admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0d1528 0%, #0a0e1a 100%);
    border-left: 1px solid rgba(255,255,255,0.06);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.admin-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-sidebar-header img { height: 36px; width: auto; border-radius: 8px; }

.admin-sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.admin-nav-section {
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
}

.admin-nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.75rem 1rem 0.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 2px 10px;
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    position: relative;
}

.admin-nav a:hover {
    background: rgba(0, 126, 128, 0.1);
    color: rgba(255,255,255,0.9);
}

.admin-nav a.active {
    background: linear-gradient(135deg, rgba(0,52,146,0.2), rgba(0,126,128,0.15));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,52,146,0.15);
}

.admin-nav a.active::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.admin-nav a .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-nav a .nav-badge {
    margin-right: auto;
    background: var(--danger);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0 5px;
}

.admin-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.admin-sidebar-footer .admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-sidebar-footer .admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.admin-sidebar-footer .admin-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.admin-sidebar-footer .admin-user-role {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
}

.admin-sidebar-footer .admin-links {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.admin-sidebar-footer .admin-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.admin-sidebar-footer .admin-links a:hover { color: var(--secondary); }
.admin-sidebar-footer .admin-links a.logout:hover { color: var(--danger); }

/* ============ Main Content ============ */
.admin-main {
    flex: 1;
    margin-right: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header-title h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.admin-header-title .header-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
}

/* ============ Stats Cards (Pro) ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    cursor: default;
}

.stat-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.stat-card .stat-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.stat-card:hover .stat-glow { opacity: 0.15; }

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: #fff;
}

.stat-card .stat-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
}

.stat-card .stat-change.up { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-card .stat-change.down { background: rgba(239,68,68,0.1); color: #ef4444; }

/* Card color variants */
.stat-card.blue .stat-icon { background: rgba(59,130,246,0.12); color: #3b82f6; }
.stat-card.blue .stat-glow { background: #3b82f6; }
.stat-card.green .stat-icon { background: rgba(16,185,129,0.12); color: #10b981; }
.stat-card.green .stat-glow { background: #10b981; }
.stat-card.purple .stat-icon { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stat-card.purple .stat-glow { background: #8b5cf6; }
.stat-card.yellow .stat-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }
.stat-card.yellow .stat-glow { background: #f59e0b; }
.stat-card.red .stat-icon { background: rgba(239,68,68,0.12); color: #ef4444; }
.stat-card.red .stat-glow { background: #ef4444; }
.stat-card.teal .stat-icon { background: rgba(0,126,128,0.12); color: var(--secondary); }
.stat-card.teal .stat-glow { background: var(--secondary); }

/* ============ Admin Card (Pro) ============ */
.admin-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-card:hover {
    border-color: rgba(255,255,255,0.1);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.admin-card-body { padding: 1.25rem; }

.admin-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* ============ Data Table (Pro) ============ */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: right;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.data-table tbody tr:last-child td { border-bottom: none; }

/* Table Header Bar */
.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 12px;
}

.data-table-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table-search {
    position: relative;
}

.data-table-search input {
    padding: 9px 14px 9px 38px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    width: 260px;
    transition: all 0.2s;
    font-family: inherit;
}

.data-table-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,52,146,0.06);
    box-shadow: 0 0 0 3px rgba(0,52,146,0.1);
}

.data-table-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    width: 16px;
    height: 16px;
}

/* ============ Admin Buttons ============ */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.admin-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.admin-btn.primary {
    background: linear-gradient(135deg, var(--primary), rgba(0,52,146,0.8));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,52,146,0.2);
}

.admin-btn.primary:hover {
    box-shadow: 0 4px 16px rgba(0,52,146,0.3);
    transform: translateY(-1px);
}

.admin-btn.success {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
}

.admin-btn.success:hover { background: rgba(16,185,129,0.2); }

.admin-btn.danger {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.2);
    color: #ef4444;
}

.admin-btn.danger:hover { background: rgba(239,68,68,0.2); }

.admin-btn.warning {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.2);
    color: #f59e0b;
}

.admin-btn.sm { padding: 5px 10px; font-size: 0.78rem; border-radius: 8px; }
.admin-btn.lg { padding: 10px 20px; font-size: 0.92rem; }

/* ============ Admin Badge ============ */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-badge.success { background: rgba(16,185,129,0.12); color: #10b981; }
.admin-badge.warning { background: rgba(245,158,11,0.12); color: #f59e0b; }
.admin-badge.danger { background: rgba(239,68,68,0.12); color: #ef4444; }
.admin-badge.info { background: rgba(59,130,246,0.12); color: #3b82f6; }
.admin-badge.neutral { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }

/* ============ Admin Table Actions Row ============ */
.admin-table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============ Admin Form ============ */
.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 9px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,52,146,0.06);
    box-shadow: 0 0 0 3px rgba(0,52,146,0.1);
}

.admin-form-group textarea { resize: vertical; min-height: 80px; }

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============ Modal (Pro) ============ */
.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal.active { display: flex; }

.admin-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.admin-modal-content {
    position: relative;
    background: linear-gradient(145deg, #141b2d, #0d1528);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    animation: slideUp 0.3s cubic-bezier(.4,0,.2,1);
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.admin-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.admin-modal-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; }

.admin-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.admin-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============ Pagination (Pro) ============ */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.25rem;
}

.admin-pagination button {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.admin-pagination button:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.admin-pagination button.active {
    background: linear-gradient(135deg, var(--primary), rgba(0,126,128,0.8));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,52,146,0.2);
}

/* ============ Empty State ============ */
.admin-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255,255,255,0.3);
}

.admin-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.admin-empty h3 {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}

.admin-empty p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

/* ============ Product Image Thumb ============ */
.admin-product-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ============ Switch Toggle ============ */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: all 0.3s;
}

.switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    right: 3px;
    bottom: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.switch input:checked + .switch-slider { background: var(--secondary); }
.switch input:checked + .switch-slider::before { transform: translateX(-20px); background: white; }

/* ============ Quick Actions ============ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1.25rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
}

.quick-action:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}

.quick-action .qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quick-action .qa-label {
    font-size: 0.82rem;
    font-weight: 600;
}

/* ============ Chart Container ============ */
.chart-container {
    position: relative;
    padding: 1rem 0;
}

/* Mini bar chart for dashboard */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding-top: 8px;
}

.mini-chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s cubic-bezier(.4,0,.2,1);
    opacity: 0.7;
}

.mini-chart-bar:hover { opacity: 1; }

/* ============ Animations ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-in { animation: slideUp 0.4s ease forwards; }
.animate-delay-1 { animation-delay: 0.05s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.15s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.25s; opacity: 0; }
.animate-delay-6 { animation-delay: 0.3s; opacity: 0; }

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============ Admin Responsive ============ */
.admin-sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.admin-sidebar-toggle:hover { background: rgba(255,255,255,0.06); }

@media (max-width: 1024px) {
    .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.active { transform: translateX(0); box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .admin-main { margin-right: 0; }
    .admin-sidebar-toggle { display: flex; }
}

@media (max-width: 768px) {
    .admin-content { padding: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-header { padding: 0 1rem; height: 56px; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-table-actions { flex-direction: column; align-items: stretch; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============ Order Timeline ============ */
.order-timeline {
    position: relative;
    padding-right: 30px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.06);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-right: 35px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.03);
}

.timeline-item.active::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(0,52,146,0.2); }

/* ============ User Panel ============ */
.panel-layout {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.panel-sidebar { width: 280px; flex-shrink: 0; }

.panel-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.panel-user-info {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.panel-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    font-weight: 800;
}

.panel-user-info h3 { font-size: 1.1rem; font-weight: 700; }
.panel-user-info p { color: var(--text-muted); font-size: 0.85rem; }

.panel-nav { padding: 1rem; }

.panel-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.panel-nav a:hover { background: rgba(0, 52, 146,0.08); color: var(--primary); }

.panel-nav a.active {
    background: rgba(0, 52, 146,0.12);
    color: var(--primary);
    font-weight: 600;
}

.panel-nav a svg { width: 20px; height: 20px; }
.panel-nav a.danger { color: var(--danger); }
.panel-nav a.danger:hover { background: rgba(239,68,68,0.08); }

.panel-content { flex: 1; min-width: 0; }

@media (max-width: 768px) {
    .panel-layout { flex-direction: column; }
    .panel-sidebar { width: 100%; }
    .panel-sidebar-card { position: static; }
}

/* ============ Auth Pages ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 52, 146,0.08), transparent 70%);
    border-radius: 50%;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 126, 128,0.06), transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease-out;
}

.auth-card-header { text-align: center; margin-bottom: 2rem; }

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-logo img { display: block; max-width: 100%; height: auto; }

.auth-card-header h1 { font-size: 1.5rem; font-weight: 800; }
.auth-card-header p { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.9rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a { font-weight: 600; }

/* ============ Empty State ============ */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state svg { width: 80px; height: 80px; color: var(--text-muted); margin-bottom: 1.5rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============ Chip / Tag ============ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.chip-close {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.chip-close:hover { background: var(--danger); color: white; }
