.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    min-height: 60px;
}

.sidebar-header img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.logo {
    width: 36px;
    height: 36px;
    background: var(--shell-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 640px) {
    .sidebar-header {
        padding: 10px;
        min-height: 50px;
    }
    
    .sidebar-header img {
        max-height: 40px;
    }
    
    .logo {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--shell-red);
}

.brand-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-item.active {
    background: rgba(86, 227, 65, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    margin-left: -3px;
    font-weight: 700;
}

.nav-item .material-symbols-outlined {
    font-size: 18px;
    flex-shrink: 0;
}

.nav-item span:not(.material-symbols-outlined) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .nav-item {
        padding: 10px 12px;
        font-size: 13px;
        gap: 8px;
    }
    
    .nav-item .material-symbols-outlined {
        font-size: 18px;
    }
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
}

.sidebar-footer > div:first-child {
    font-size: 11px;
    color: #64748B;
    margin-bottom: 10px;
    padding: 0 6px;
    line-height: 1.4;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sidebar-footer {
        padding: 10px;
    }
    
    .sidebar-footer > div:first-child {
        font-size: 10px;
        display: none;
    }
    
    .user-card {
        padding: 8px;
        gap: 8px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

.user-info {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .user-info {
        display: none;
    }
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    width: 100%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    margin-bottom: 16px;
    text-decoration: none;
    justify-content: center;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.logout-btn .material-symbols-outlined {
    font-size: 18px;
}

@media (max-width: 640px) {
    .logout-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .logout-btn span:not(.material-symbols-outlined) {
        display: none;
    }
    
    .logout-btn .material-symbols-outlined {
        margin: 0 auto;
    }
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: #64748b;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.header-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

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

@media (min-width: 640px) {
    .header {
        margin-bottom: 28px;
        gap: 18px;
    }
    
    .header-title {
        font-size: 26px;
    }
    
    .header-subtitle {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 32px;
        gap: 20px;
    }
    
    .header-title {
        font-size: 28px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .header-actions {
        gap: 12px;
    }
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-toggle:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-toggle .material-symbols-outlined {
    font-size: 22px;
    color: #475569;
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .header-actions .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
}

/* Grid system responsive */
@media (max-width: 640px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive flex utilities for mobile */
@media (max-width: 640px) {
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .flex-wrap-mobile {
        flex-wrap: wrap;
    }
    
    .items-center-mobile {
        align-items: center;
    }
    
    .justify-between-mobile {
        justify-content: space-between;
    }
}

.main-grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
/* ============================================================
   KYC LOCK OVERLAY
   ============================================================ */
.kyc-lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.kyc-lock-card {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 48px 32px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kyc-lock-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: white;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.kyc-lock-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.kyc-lock-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.kyc-lock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: #166534;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.kyc-lock-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 101, 52, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

body.kyc-locked {
    overflow: hidden !important;
    height: 100vh !important;
}
