* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background: #0D1117;
    color: #C9D1D9;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

body.light {
    background: #F0F6FC;
    color: #0D1117;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
header {
    background: linear-gradient(135deg, #00DDEB, #FF007A);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 25px rgba(0, 221, 235, 0.5);
}

.logo {
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 15px #FF007A;
}

.header-actions {
    display: flex;
    gap: 15px;
}

#search-bar {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.3);
}

#theme-toggle, #cart-toggle, #register-btn, #dashboard-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#theme-toggle:hover, #cart-toggle:hover, #register-btn:hover, #dashboard-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #FF007A;
}

#register-btn:hover {
    box-shadow: 0 0 20px #00DDEB;
}

/* Main Content */
.main-content {
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.panel {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.panel.active {
    display: block;
    opacity: 1;
}

/* Auth Container */
.auth-container {
    background: rgba(13, 17, 23, 0.95);
    padding: 50px;
    border-radius: 25px;
    border: 2px solid #00DDEB;
    box-shadow: 0 0 40px rgba(0, 221, 235, 0.3);
    max-width: 600px;
    margin: 100px auto;
}

.auth-container h2 {
    color: #00DDEB;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 15px #00DDEB;
    font-size: 36px;
}

.auth-container input, .auth-container textarea {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #FF007A;
    border-radius: 12px;
    color: #C9D1D9;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-container input:focus, .auth-container textarea:focus {
    border-color: #00DDEB;
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

.auth-container button {
    width: 100%;
    padding: 15px;
    background: #FF007A;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #FF007A;
}

.auth-container p {
    margin-top: 20px;
    text-align: center;
    color: #8B949E;
}

.auth-container a {
    color: #00DDEB;
    text-decoration: none;
}

.error {
    color: #FF5555;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: rgba(13, 17, 23, 0.8);
    border-radius: 25px;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    background: linear-gradient(90deg, #FF007A, #00DDEB);
    -webkit-background-clip: text;
    color: transparent;
    animation: fadeInDown 1s ease;
    text-shadow: 0 0 20px #FF007A;
}

.hero p {
    font-size: 24px;
    color: #8B949E;
    margin: 25px 0 50px;
    animation: fadeInUp 1s ease 0.5s;
}

.cta {
    background: #FF007A;
    border: none;
    padding: 18px 60px;
    border-radius: 35px;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #FF007A;
}

/* Categories */
.categories {
    padding: 100px 0;
}

.categories h2 {
    font-size: 44px;
    text-align: center;
    color: #00DDEB;
    margin-bottom: 60px;
    text-shadow: 0 0 15px #00DDEB;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.category-card {
    background: rgba(22, 27, 34, 0.95);
    padding: 30px;
    border-radius: 25px;
    border: 2px solid #00DDEB;
    box-shadow: 0 0 30px rgba(0, 221, 235, 0.2);
}

.category-card h3 {
    color: #FF007A;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #FF007A;
}

.item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 0, 122, 0.5);
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #00DDEB;
}

.item-info {
    padding: 20px;
    text-align: center;
}

.item-info h4 {
    color: #C9D1D9;
    font-size: 20px;
    margin-bottom: 10px;
}

.item-info p {
    color: #00DDEB;
    font-size: 18px;
    margin-bottom: 15px;
}

.item-info .stock {
    font-size: 14px;
    color: #8B949E;
}

.quick-view {
    background: #FF007A;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-view:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #FF007A;
}

/* Dashboard */
#dashboard-panel {
    padding: 100px 20px;
    background: rgba(13, 17, 23, 0.8);
    border-radius: 25px;
}

#dashboard-panel h2 {
    font-size: 44px;
    text-align: center;
    color: #00DDEB;
    margin-bottom: 60px;
    text-shadow: 0 0 15px #00DDEB;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.dash-section {
    background: rgba(22, 27, 34, 0.95);
    padding: 30px;
    border-radius: 25px;
    border: 2px solid #FF007A;
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.2);
}

.dash-section h3 {
    color: #00DDEB;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #00DDEB;
}

#profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px #FF007A;
}

#profile-pic-upload {
    margin: 15px 0;
}

#logout, #edit-profile {
    background: #FF007A;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 15px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    padding: 40px;
    border-left: 2px solid #00DDEB;
    transition: right 0.3s ease;
    z-index: 1000;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar h2 {
    color: #00DDEB;
    margin-bottom: 40px;
    text-shadow: 0 0 15px #00DDEB;
}

#cart-items {
    color: #C9D1D9;
    margin-bottom: 40px;
}

#cart-total {
    font-weight: 700;
    color: #00DDEB;
}

#checkout, #clear-cart, #close-cart {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #FF007A;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

#checkout {
    background: #00DDEB;
    color: #0D1117;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content, .quick-view-content {
    background: rgba(13, 17, 23, 0.95);
    padding: 50px;
    border-radius: 25px;
    border: 2px solid #00DDEB;
    text-align: center;
    color: #C9D1D9;
    box-shadow: 0 0 40px rgba(0, 221, 235, 0.3);
    max-width: 500px;
    width: 100%;
}

.quick-view-content {
    max-width: 600px;
}

.modal-content h3, .quick-view-content h3 {
    color: #00DDEB;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #00DDEB;
}

.quick-view-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.modal-content p, .quick-view-content p {
    margin-bottom: 30px;
}

.modal-content button, .quick-view-content button, .modal-content input {
    padding: 15px 30px;
    margin: 10px;
    background: #FF007A;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
}

#modal-login, #edit-email, .quick-view-content .add-to-wishlist {
    background: #00DDEB;
    color: #0D1117;
}

#edit-username, #edit-fullname, #edit-phone {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #FF007A;
    color: #C9D1D9;
}

.quick-view-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.quick-view-actions select {
    background: #8B949E;
    border: none;
    padding: 10px;
    border-radius: 12px;
    color: #FFFFFF;
}

.reviews {
    margin-top: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.review-text {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    background: #00DDEB;
    color: #0D1117;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 221, 235, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3000;
}

.toast.active {
    opacity: 1;
}

/* Back to Dashboard Button */
#back-to-dashboard, #shop-now, #exit-admin {
    background: #00DDEB;
    color: #0D1117;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#back-to-dashboard:hover, #shop-now:hover, #exit-admin:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00DDEB;
}

/* Admin Panel */
#admin-panel {
    padding: 50px;
    background: rgba(13, 17, 23, 0.95);
    border-radius: 25px;
}

.admin-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.admin-section {
    background: rgba(22, 27, 34, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #FF007A;
}

.admin-section h3 {
    color: #00DDEB;
    margin-bottom: 20px;
}

#admin-orders, #admin-users {
    max-height: 300px;
    overflow-y: auto;
}

#order-status-filter, #admin-user-search {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #FF007A;
    border-radius: 12px;
    color: #C9D1D9;
}

#add-product-form input, #add-product-form textarea, #add-product-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #FF007A;
    border-radius: 12px;
    color: #C9D1D9;
}

#add-product-form button {
    background: #FF007A;
    padding: 10px;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .category-grid, .dashboard-content {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .header-actions {
        flex-wrap: wrap;
    }
}