.cart-sidebar, .profile-sidebar {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: rgba(13,13,24,0.96);
  backdrop-filter: blur(28px);
  border-left: 1px solid rgba(199,125,255,0.5);
  z-index: 200;
  transition: right 0.4s;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open, .profile-sidebar.open { right: 0; }
.profile-sidebar { width: 480px; }
.cart-header, .profile-header {
  padding: 26px 24px;
  border-bottom: 1px solid #2a2a3a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2, .profile-header h2 { font-size: 1.7rem; color: #f0edff; }
.close-cart, .close-profile { font-size: 2rem; cursor: pointer; transition: 0.2s; color: #ccc; }
.close-cart:hover, .close-profile:hover { color: #c77dff; transform: rotate(90deg); }
.cart-items, .profile-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.cart-item { display: flex; gap: 16px; background: rgba(23,23,36,0.8); border-radius: 20px; padding: 12px; }
.cart-item-img { width: 60px; height: 60px; object-fit: contain; border-radius: 10px; }
.cart-footer { padding: 24px; border-top: 1px solid #2a2a3a; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.checkout-btn { width: 100%; background: #c77dff; border: none; padding: 16px; border-radius: 50px; font-weight: 700; cursor: pointer; }
.empty-cart-msg { text-align: center; padding: 48px 20px; color: #aaaacc; }
.profile-info { background: rgba(30, 28, 45, 0.6); border-radius: 24px; padding: 20px; border: 1px solid rgba(199,125,255,0.2); }
.profile-field { margin-bottom: 12px; display: flex; gap: 12px; }
.profile-field .label { color: #a99ad9; width: 100px; }
.profile-field input { background: rgba(255,255,255,0.1); border: 1px solid #c77dff; border-radius: 12px; padding: 8px; color: white; flex: 1; }
.login-btn, .logout-btn { width: 100%; padding: 12px; border-radius: 40px; font-weight: 700; cursor: pointer; margin-top: 16px; }
.login-btn { background: #c77dff; color: #0a0a0f; }
.logout-btn { background: rgba(255, 100, 100, 0.2); border: 1px solid rgba(255, 100, 100, 0.5); color: #ff9e8f; }
.order-card { background: rgba(30, 28, 45, 0.6); border-radius: 20px; padding: 16px; border: 1px solid rgba(199,125,255,0.2); }
.order-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.order-id { color: #d4b4ff; font-weight: 600; }
.order-status { color: #7fff00; font-size: 0.85rem; background: rgba(127,255,0,0.1); padding: 2px 10px; border-radius: 20px; }
.order-total { color: #f7d44a; font-weight: 700; }

/* ===== PREMIUM ADMIN PANEL UPGRADE ===== */

.premium-admin-panel,
.admin-panel,
.dashboard-panel {
    background:
        radial-gradient(circle at top left, rgba(120,119,198,0.20), transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #111827 40%, #1e293b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.45),
        0 0 80px rgba(120,119,198,0.18);
    backdrop-filter: blur(18px);
    overflow-x: hidden;
overflow-y: auto;
    position: relative;
}

.premium-admin-panel::before,
.admin-panel::before,
.dashboard-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.06),
        transparent);
    transform: translateX(-100%);
    animation: premiumSweep 8s infinite linear;
    pointer-events: none;
}

@keyframes premiumSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

.admin-panel button,
.dashboard-panel button {
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    box-shadow: 0 8px 25px rgba(99,102,241,0.35);
    transition: all .35s ease;
}

.admin-panel button:hover,
.dashboard-panel button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 35px rgba(139,92,246,0.45);
}

.admin-panel h1,
.dashboard-panel h1 {
    letter-spacing: 0.04em;
    font-weight: 800;
    text-transform: uppercase;
}


/* ===== ADMIN SCROLL FIX ===== */

html, body {
    min-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.admin-panel,
.dashboard-panel,
.admin-content,
.admin-wrapper {
    max-height: none !important;
    overflow-y: visible !important;
}
