/* Design Tokens for AuraMarket */
:root {
    --bg-primary: #070913;
    --bg-secondary: #0c0f1d;
    --bg-card: rgba(16, 20, 38, 0.65);
    --bg-card-hover: rgba(22, 28, 52, 0.85);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-hover: rgba(251, 191, 36, 0.15); /* Gold hover */
    
    /* Luxury Gold Palette */
    --color-gold: #fbbf24;
    --color-gold-dark: #d97706;
    --color-gold-glow: rgba(251, 191, 36, 0.25);
    
    /* Neon Accents */
    --color-primary: #6366f1; /* Indigo */
    --color-info: #3b82f6; /* Blue */
    --color-info-glow: rgba(59, 130, 246, 0.2);
    --color-success: #10b981; /* Emerald */
    --color-success-glow: rgba(16, 185, 129, 0.25);
    --color-danger: #ef4444; /* Red */
    --color-danger-glow: rgba(239, 68, 68, 0.25);
    --color-purple: #8b5cf6;
    --color-purple-glow: rgba(139, 92, 246, 0.2);
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #475569;
    
    /* Dimensions */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Font */
    --font-family: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Top Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-icon {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 15px var(--color-gold-glow);
}

.logo-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search bar */
.search-box {
    position: relative;
    width: 360px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    padding: 10px 16px 10px 42px;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Role Selector Dropdown */
.role-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.role-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.role-select option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

.role-select:focus {
    border-color: var(--color-gold);
}

/* Cart Trigger button */
.cart-btn {
    position: relative;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--color-gold);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.cart-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.08);
}

.cart-btn i {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-gold-dark);
    color: black;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
}

/* Sub-nav-bar tabs */
.sub-nav-bar {
    background: #090b16;
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    height: 52px;
    display: flex;
    align-items: center;
}

.sub-nav-tabs {
    display: flex;
    gap: 24px;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 0;
    position: relative;
    transition: var(--transition-smooth);
}

.sub-tab-btn:hover {
    color: var(--text-main);
}

.sub-tab-btn.active {
    color: var(--color-gold);
}

.sub-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    box-shadow: 0 0 8px var(--color-gold-glow);
}

/* Main Content container */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* View Section Control */
.role-view {
    display: none;
    animation: slideUp 0.4s ease;
}

.role-view.active-view {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Banner (Buyer View) */
.hero-banner {
    background: linear-gradient(135deg, rgba(16, 20, 38, 0.95), rgba(12, 15, 29, 0.9)), 
                radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 50%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
    position: relative;
}

.hero-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.hero-banner h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition-bounce);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: black;
    box-shadow: 0 4px 20px var(--color-gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-secondary-flat {
    background: transparent;
    color: var(--text-muted);
}

.btn-secondary-flat:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-small {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Shop Category Rows */
.shop-filter-row {
    margin-bottom: 32px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cat-tab:hover, .cat-tab.active {
    background: rgba(251, 191, 36, 0.08);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Product Card design */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.08);
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(12, 15, 29, 0.85);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    backdrop-filter: blur(4px);
}

.product-status-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.status-pending { background: #ef4444; }
.status-approved { background: #10b981; }

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-vendor {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-gold);
}

/* Metrics Row (Vendor / Admin) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gold-glow {
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-gold);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.bg-blue-glow {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bg-purple-glow {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bg-red-glow {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.metric-footer {
    font-size: 12px;
    color: var(--text-muted);
}

/* Portals Structure (Vendor & Admin Layouts) */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 32px;
    align-items: start;
}

.full-width-card {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
}

/* Forms */
.portal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    padding: 12px;
    font-size: 14px;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group select option {
    background-color: #0f1123;
    color: var(--text-main);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 8px var(--color-gold-glow);
}

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

/* Tables */
.table-container {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.portal-table th {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.portal-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.portal-table tbody tr {
    transition: var(--transition-smooth);
}

.portal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges inside tables */
.badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-icon {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
}

.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Side Cart & Checkout Drawer */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.show-cart {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

.cart-backdrop.show-cart .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.cart-drawer-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

/* Cart list and item rows */
.cart-items-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    gap: 14px;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(0,0,0,0.2);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 2px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.q-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.q-val {
    font-size: 13px;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

/* Cart Footer elements */
.cart-drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

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

.total-row {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 6px;
}

.total-row #cart-total {
    color: var(--color-gold);
}

/* Simulated Checkout Form inside drawer */
.checkout-form-container {
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: fadeIn 0.3s ease;
}

.checkout-form-container h3 {
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.checkout-form-buttons {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 12px;
    margin-top: 8px;
}

/* Toast Notification systems */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
}

.toast {
    background: #0f1325;
    border-left: 4px solid var(--color-gold);
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: translateX(120%);
    animation: slideIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-success {
    border-left-color: var(--color-success);
}

.toast i {
    width: 18px;
    height: 18px;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Utility empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    gap: 14px;
    grid-column: 1 / -1;
}

.empty-state i {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.12);
}

/* User Authentication UI Styling */
.auth-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 55vh;
    padding: 20px 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.auth-header-container {
    display: flex;
    align-items: center;
}

.auth-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: var(--transition-smooth);
}
.btn-logout:hover {
    color: #ff3b30;
    transform: scale(1.1);
}

.admin-label {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-gold);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-gold-glow);
}

.btn-login-trigger {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid var(--color-gold-glow);
    color: var(--color-gold);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}
.btn-login-trigger:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: var(--color-gold);
}

.btn-aliexpress {
    background: linear-gradient(135deg, #FF4747, #FF8E25);
    color: white !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 71, 71, 0.3);
    transition: all 0.3s ease;
}
.btn-aliexpress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 71, 71, 0.4);
    filter: brightness(1.1);
}

/* Live Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 17, 35, 0.95);
    border: 1px solid var(--color-gold-glow);
    border-radius: var(--radius-md);
    max-height: 360px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    display: none;
}

.search-suggestions-dropdown.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(251, 191, 36, 0.1);
}

.suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-details {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold);
    margin-left: auto;
}

/* =============================================
   PRODUCT RATINGS & REVIEWS SYSTEM
   ============================================= */

/* Star Rating Display (on product cards) */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-rating:hover {
    opacity: 0.85;
}

.stars-display {
    display: inline-flex;
    gap: 1px;
}

.stars-display .star {
    width: 14px;
    height: 14px;
    color: #3a3a4a;
}

.stars-display .star.filled {
    color: var(--color-gold);
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4));
}

.stars-display .star.half {
    color: var(--color-gold);
    opacity: 0.6;
}

.rating-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.rating-text .rating-value {
    color: var(--color-gold);
    font-weight: 700;
}

/* Review Modal Backdrop */
.review-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

.review-modal-backdrop.show {
    display: flex;
}

/* Review Modal Container */
.review-modal {
    background: rgba(16, 20, 42, 0.97);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(251, 191, 36, 0.06);
    animation: slideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Modal Header */
.review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.review-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-modal-header .avg-badge {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: #000;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.review-modal-header .btn-close-review {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.review-modal-header .btn-close-review:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
}

/* Modal Body (Scrollable) */
.review-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Review Summary Bar */
.review-summary-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.review-summary-big-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
}

.review-summary-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-summary-stars {
    display: flex;
    gap: 2px;
}

.review-summary-stars .star {
    width: 20px;
    height: 20px;
    color: #3a3a4a;
}

.review-summary-stars .star.filled {
    color: var(--color-gold);
}

.review-summary-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* Individual Review Card */
.review-card {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.review-card:last-child {
    border-bottom: none;
}

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

.review-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), var(--color-info));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
}

.review-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-card-stars {
    display: flex;
    gap: 2px;
}

.review-card-stars .star {
    width: 14px;
    height: 14px;
    color: #3a3a4a;
}

.review-card-stars .star.filled {
    color: var(--color-gold);
}

.review-card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 6px;
}

.reviews-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.reviews-empty i {
    display: block;
    margin: 0 auto 12px;
    opacity: 0.4;
}

/* Modal Footer — Write Review Form */
.review-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 12, 28, 0.6);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.review-form-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* Interactive Star Input */
.star-input-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.star-input-row .star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #3a3a4a;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-input-row .star-btn:hover {
    transform: scale(1.2);
}

.star-input-row .star-btn.active {
    color: var(--color-gold);
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.star-input-row .star-btn svg,
.star-input-row .star-btn i {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.star-input-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

/* Review text area */
.review-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 13px;
    padding: 10px 12px;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.review-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.review-textarea::placeholder {
    color: var(--text-dark);
}

.btn-submit-review {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-review:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.btn-submit-review:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.review-login-prompt {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.review-login-prompt a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
}
