@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: hsl(230, 25%, 10%);
    --bg-secondary: hsl(230, 20%, 15%);
    --accent-primary: hsl(280, 85%, 60%);
    --accent-secondary: hsl(200, 85%, 55%);
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(0, 0%, 70%);
    --error: hsl(0, 75%, 60%);
    --success: hsl(140, 65%, 55%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-bg: linear-gradient(135deg, hsl(230, 30%, 12%), hsl(260, 40%, 15%));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Glass Card */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View Container */
.view {
    display: none;
    animation: slideIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typography */
h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
}

input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

input:focus+label {
    color: var(--accent-primary);
}

/* Buttons */
button {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background: rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: shake 0.4s ease;
}

.error-message.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Info */
.user-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-role {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 32px 24px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.mt-16 {
    margin-top: 16px;
}

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

/* ===== ADMIN INTERFACE ===== */
.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.6s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: var(--error);
    font-weight: 600;
    width: auto;
    transition: all var(--transition-normal);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Products Section */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-select,
.product-type-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: auto;
}

.filter-select:hover,
.product-type-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.filter-select:focus,
.product-type-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(147, 51, 234, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.product-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-type-badge.physical {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--success);
}

.product-type-badge.digital {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--accent-secondary);
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete,
.btn-add-cart {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    width: auto;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--accent-secondary);
}

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

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--error);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-add-cart {
    flex: 1;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* File Upload */
textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
    resize: vertical;
}

textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

.file-input {
    padding: 12px;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all var(--transition-normal);
}

.file-input::-webkit-file-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.file-info {
    margin-top: 8px;
}

.file-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

.image-preview {
    margin-top: 12px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.files-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.file-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    color: var(--text-primary);
    font-weight: 500;
}

.file-size {
    color: var(--text-secondary);
    font-size: 12px;
}

.btn-remove-file {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}

.btn-remove-file:hover {
    background: rgba(239, 68, 68, 0.3);
}

.media-icon {
    font-size: 16px;
    margin-right: 8px;
}

.media-type-label {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
}

/* Media Preview Players */
.media-preview-container {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.preview-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-duration-badge {
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-secondary);
}

.media-preview-container audio,
.media-preview-container video {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    outline: none;
}

.media-preview-container audio {
    height: 40px;
}

/* ===== SHOP INTERFACE ===== */
.shop-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.6s ease;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo h1 {
    margin-bottom: 0;
}

.brand-logo p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-btn {
    position: relative;
    padding: 12px 20px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.cart-icon {
    font-size: 20px;
}

.cart-count {
    padding: 2px 8px;
    background: white;
    color: var(--accent-primary);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.shop-filters {
    margin-bottom: 32px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Wishlist & Cart Buttons in Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wishlist-btn,
.cart-btn {
    position: relative;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.wishlist-btn:hover,
.cart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.wishlist-icon,
.cart-icon {
    font-size: 20px;
}

.wishlist-count,
.cart-count {
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Product Card Actions */
.product-card-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.btn-wishlist {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: auto;
    flex-shrink: 0;
}

.btn-wishlist:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    color: #ef4444;
}

.btn-wishlist.in-wishlist {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-move-cart {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--accent-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: auto;
}

.btn-move-cart:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Cart Sidebar */

/* Shopping Cart & Wishlist Sidebars */
.cart-sidebar,
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
    transition: right var(--transition-slow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active,
.wishlist-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-type {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-remove {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    width: auto;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-md);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {

    .products-grid,
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {

    .admin-container,
    .shop-container {
        padding: 16px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .admin-header,
    .shop-header {
        flex-direction: column;
        gap: 16px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .products-grid,
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.payment-body {
    padding: 24px;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-pay {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 8px;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-info {
    margin-top: 16px;
    text-align: center;
}

.payment-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Payment Success Modal */
.success-modal {
    text-align: center;
    padding: 40px 32px;
}

.success-icon {
    margin: 0 auto 24px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.success-detail-row:last-child {
    margin-bottom: 0;
}

.success-detail-row.total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.success-value {
    font-weight: 600;
    color: var(--text-primary);
}

.success-detail-row.total .success-value {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
}

.btn-success {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:active {
    transform: translateY(0);
}

/* Order History */
.orders-section {
    margin-top: 60px;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.order-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(147, 51, 234, 0.3);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.order-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.order-user {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-total {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.order-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.order-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
}

.order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-status {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--success);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-delete-order {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--error);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: auto;
}

.btn-delete-order:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 18px;
    margin: 0;
}

/* ===== FOOTER & SOCIAL LINKS ===== */
.shop-footer {
    margin-top: 80px;
    padding: 40px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-icon {
    font-size: 18px;
    font-weight: 700;
}

.social-label {
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-social {
        width: 100%;
    }

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

/* ===== GUEST CHECKOUT & SETTINGS ===== */

/* Guest checkout button */
.btn-guest {
    width: 100%;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 8px;
}

.btn-guest:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.guest-separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.guest-separator::before,
.guest-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-separator span {
    padding: 0 16px;
}

/* Settings section */
.settings-container {
    display: grid;
    gap: 32px;
    max-width: 800px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-section-customer {
    margin-top: 48px;
}

.btn-save {
    width: auto;
    padding: 12px 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Saved cards list */
.saved-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.saved-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 51, 234, 0.3);
}

.card-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.card-type {
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 80px;
}

.card-number {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.card-expiry {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-delete-card {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-delete-card:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Add card button */
.btn-add-card {
    margin: 16px 0;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-add-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.no-cards {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
    font-size: 14px;
}

/* Saved cards in payment modal */
.saved-cards-payment {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(147, 51, 234, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
}

.saved-cards-payment h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.saved-card-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.saved-card-option:hover,
.saved-card-option.selected {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--accent-primary);
}

.saved-card-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.card-option-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.card-type-badge {
    padding: 4px 8px;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
}

.card-exp-small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: auto;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Guest email field */
#guestEmailGroup {
    margin-top: 8px;
}

/* Customer Navigation */
.customer-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    flex-wrap: wrap;
}

.customer-nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-nav-btn:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.customer-nav-btn.active {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.customer-section {
    margin-top: 24px;
}

/* Back to login button for guests */

.btn-back-to-login {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: none;
}

.btn-back-to-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

/* ===== CUSTOMER SUPPORT ===== */

.customer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.customer-contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.customer-contact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}

.contact-info {
    flex: 1;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-orders {
    padding: 4px 12px;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
}

.contact-email {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-last-order {
    color: var(--text-secondary);
    font-size: 12px;
}

.btn-email-customer {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-email-customer:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== AUTH TOGGLE ===== */

.auth-toggle {
    text-align: center;
    margin: 16px 0;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.auth-toggle strong {
    color: var(--accent-primary);
    cursor: pointer;
}

.auth-toggle:hover strong {
    text-decoration: underline;
}

#signupForm {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODAL CENTERING ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    margin: auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.payment-modal-content {
    max-width: 600px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}