/**
 * Nexus Marketplace - Frontend Styles
 * Dark theme with purple gradients & glassmorphism
 */

/* ============ CSS Variables (fallbacks; overridden inline by Frontend.php) ============ */
:root {
    --nexmp-primary: #8b5cf6;
    --nexmp-primary-rgb: 139, 92, 246;
    --nexmp-secondary: #a78bfa;
    --nexmp-accent: #c4b5fd;
    --nexmp-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --nexmp-bg: #0a0a12;
    --nexmp-bg-elev: #14141f;
    --nexmp-bg-card: rgba(30, 30, 46, 0.6);
    --nexmp-border: rgba(255, 255, 255, 0.08);
    --nexmp-border-hover: rgba(var(--nexmp-primary-rgb), 0.4);
    --nexmp-text: #e5e7eb;
    --nexmp-text-muted: #9ca3af;
    --nexmp-text-dim: #6b7280;
    --nexmp-success: #10b981;
    --nexmp-warning: #f59e0b;
    --nexmp-danger: #ef4444;
    --nexmp-info: #3b82f6;
    --nexmp-radius: 12px;
    --nexmp-radius-sm: 8px;
    --nexmp-radius-lg: 20px;
    --nexmp-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --nexmp-shadow-glow: 0 0 40px -10px rgba(var(--nexmp-primary-rgb), 0.4);
    --nexmp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Base Container ============ */
.nexmp {
    color: var(--nexmp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    box-sizing: border-box;
}

.nexmp *,
.nexmp *::before,
.nexmp *::after {
    box-sizing: border-box;
}

body.nexmp-dark {
    background: var(--nexmp-bg);
    background-image:
        radial-gradient(at 20% 0%, rgba(var(--nexmp-primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(at 80% 100%, rgba(var(--nexmp-primary-rgb), 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--nexmp-text);
}

.nexmp a {
    color: var(--nexmp-secondary);
    text-decoration: none;
    transition: var(--nexmp-transition);
}

.nexmp a:hover {
    color: var(--nexmp-accent);
}

.nexmp h1, .nexmp h2, .nexmp h3, .nexmp h4, .nexmp h5, .nexmp h6 {
    color: #fff;
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.3;
}

.nexmp img { max-width: 100%; height: auto; }

/* ============ Typography Helpers ============ */
.nexmp-gradient-text {
    background: var(--nexmp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nexmp-muted { color: var(--nexmp-text-muted); }
.nexmp-dim { color: var(--nexmp-text-dim); }
.nexmp-page-title { font-size: 2rem; margin-bottom: 24px; }
.nexmp-section-title { font-size: 1.5rem; margin-bottom: 20px; }

/* ============ Hero ============ */
.nexmp-hero {
    position: relative;
    padding: 80px 32px;
    border-radius: var(--nexmp-radius-lg);
    background:
        linear-gradient(135deg, rgba(var(--nexmp-primary-rgb), 0.15) 0%, rgba(var(--nexmp-primary-rgb), 0.05) 100%),
        var(--nexmp-bg-elev);
    border: 1px solid var(--nexmp-border);
    overflow: hidden;
    margin-bottom: 40px;
    text-align: center;
}

.nexmp-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(var(--nexmp-primary-rgb), 0.15) 0%, transparent 50%);
    animation: nexmp-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nexmp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.nexmp-hero h1 {
    position: relative;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.nexmp-hero p {
    position: relative;
    color: var(--nexmp-text-muted);
    font-size: 1.125rem;
    max-width: 620px;
    margin: 0 auto 32px;
}

.nexmp-hero__search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.nexmp-hero__search input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 1px solid var(--nexmp-border);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--nexmp-text);
    border-radius: 999px;
    font-size: 1rem;
    outline: none;
    transition: var(--nexmp-transition);
}

.nexmp-hero__search input:focus {
    border-color: var(--nexmp-primary);
    box-shadow: 0 0 0 4px rgba(var(--nexmp-primary-rgb), 0.15);
}

.nexmp-hero__search-icon {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    color: var(--nexmp-text-muted);
    display: flex;
}

/* ============ Buttons ============ */
.nexmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--nexmp-radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--nexmp-text);
    transition: var(--nexmp-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.nexmp-btn:hover { transform: translateY(-1px); }
.nexmp-btn:active { transform: translateY(0); }
.nexmp-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.nexmp-btn-primary {
    background: var(--nexmp-gradient);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(var(--nexmp-primary-rgb), 0.5);
}

.nexmp-btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 20px -4px rgba(var(--nexmp-primary-rgb), 0.7);
}

.nexmp-btn-ghost {
    background: rgba(var(--nexmp-primary-rgb), 0.1);
    color: var(--nexmp-secondary);
    border-color: rgba(var(--nexmp-primary-rgb), 0.3);
}

.nexmp-btn-ghost:hover {
    background: rgba(var(--nexmp-primary-rgb), 0.2);
    color: var(--nexmp-accent);
}

.nexmp-btn-lg { padding: 14px 28px; font-size: 1rem; }
.nexmp-btn-sm { padding: 6px 12px; font-size: 0.8125rem; }
.nexmp-btn-block { width: 100%; }

.nexmp-btn-icon {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text-muted);
}

.nexmp-btn-icon:hover {
    background: rgba(var(--nexmp-primary-rgb), 0.2);
    color: var(--nexmp-accent);
    border-color: var(--nexmp-border-hover);
}

.nexmp-btn-icon.is-on { color: var(--nexmp-danger); }

/* ============ Grid Layouts ============ */
.nexmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.nexmp-grid--2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

@media (max-width: 640px) {
    .nexmp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}

/* ============ Product Card ============ */
.nexmp-card-product {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    overflow: hidden;
    transition: var(--nexmp-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.nexmp-card-product:hover {
    transform: translateY(-4px);
    border-color: var(--nexmp-border-hover);
    box-shadow: var(--nexmp-shadow-glow);
}

.nexmp-card-product__icon {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--nexmp-primary-rgb), 0.15) 0%, rgba(var(--nexmp-primary-rgb), 0.05) 100%);
    color: var(--nexmp-secondary);
    border-bottom: 1px solid var(--nexmp-border);
    position: relative;
}

.nexmp-card-product__icon svg { width: 64px; height: 64px; opacity: 0.9; }

.nexmp-card-product__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nexmp-card-product__cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nexmp-secondary);
    font-weight: 600;
}

.nexmp-card-product__title {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.nexmp-card-product__title a { color: inherit; }

.nexmp-card-product__excerpt {
    font-size: 0.875rem;
    color: var(--nexmp-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nexmp-card-product__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--nexmp-text-muted);
    margin-top: auto;
}

.nexmp-card-product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--nexmp-border);
    background: rgba(0, 0, 0, 0.2);
}

.nexmp-card-product__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.nexmp-card-product__actions {
    display: flex;
    gap: 8px;
}

.nexmp-price-old {
    text-decoration: line-through;
    color: var(--nexmp-text-dim);
    font-size: 0.875rem;
}

.nexmp-price-now {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: var(--nexmp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nexmp-badge-featured {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--nexmp-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* ============ Rating Stars ============ */
.nexmp-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.nexmp-star {
    color: var(--nexmp-text-dim);
    display: inline-flex;
}

.nexmp-star.is-on { color: var(--nexmp-warning); }

/* ============ Sidebar Layouts ============ */
.nexmp-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .nexmp-with-sidebar { grid-template-columns: 1fr; }
}

.nexmp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nexmp-sidebar__section {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 20px;
}

.nexmp-sidebar__section h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nexmp-text-muted);
    margin-bottom: 16px;
}

.nexmp-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nexmp-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--nexmp-radius-sm);
    color: var(--nexmp-text);
    font-size: 0.9375rem;
    transition: var(--nexmp-transition);
}

.nexmp-cat-list li a:hover,
.nexmp-cat-list li.is-active a {
    background: rgba(var(--nexmp-primary-rgb), 0.15);
    color: var(--nexmp-accent);
}

.nexmp-cat-list li a span {
    color: var(--nexmp-text-dim);
    font-size: 0.8125rem;
}

/* ============ Toolbar ============ */
.nexmp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--nexmp-bg-card);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.nexmp-toolbar select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text);
    padding: 8px 12px;
    border-radius: var(--nexmp-radius-sm);
    outline: none;
    cursor: pointer;
}

.nexmp-toolbar select:focus { border-color: var(--nexmp-primary); }

/* ============ Pagination ============ */
.nexmp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 8px;
    flex-wrap: wrap;
}

.nexmp-pagination a, .nexmp-pagination span {
    padding: 8px 14px;
    border-radius: var(--nexmp-radius-sm);
    background: var(--nexmp-bg-card);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--nexmp-transition);
}

.nexmp-pagination a:hover {
    background: rgba(var(--nexmp-primary-rgb), 0.15);
    border-color: var(--nexmp-border-hover);
    color: var(--nexmp-accent);
}

.nexmp-pagination .current {
    background: var(--nexmp-gradient);
    color: #fff;
    border-color: transparent;
}

/* ============ Empty & Notices ============ */
.nexmp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--nexmp-text-muted);
    background: var(--nexmp-bg-card);
    border: 1px dashed var(--nexmp-border);
    border-radius: var(--nexmp-radius);
}

.nexmp-empty svg { color: var(--nexmp-text-dim); margin-bottom: 16px; }

.nexmp-notice {
    padding: 14px 18px;
    border-radius: var(--nexmp-radius-sm);
    background: rgba(var(--nexmp-primary-rgb), 0.1);
    border-left: 3px solid var(--nexmp-primary);
    color: var(--nexmp-text);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.nexmp-notice--danger {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--nexmp-danger);
}

.nexmp-notice--warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--nexmp-warning);
}

.nexmp-notice--success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--nexmp-success);
}

/* ============ Cart ============ */
.nexmp-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .nexmp-cart-layout { grid-template-columns: 1fr; }
}

.nexmp-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--nexmp-bg-card);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .nexmp-cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas: "icon info" "qty total";
    }
    .nexmp-cart-item__icon { grid-area: icon; }
    .nexmp-cart-item__info { grid-area: info; }
    .nexmp-cart-item__qty { grid-area: qty; }
    .nexmp-cart-item__total { grid-area: total; text-align: right; }
}

.nexmp-cart-item__icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(var(--nexmp-primary-rgb), 0.15), rgba(var(--nexmp-primary-rgb), 0.05));
    border-radius: var(--nexmp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexmp-secondary);
}

.nexmp-cart-item__title { font-weight: 600; margin-bottom: 4px; color: #fff; }
.nexmp-cart-item__title a { color: inherit; }
.nexmp-cart-item__price { color: var(--nexmp-text-muted); font-size: 0.875rem; }

.nexmp-cart-item__qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nexmp-cart-item__total {
    font-weight: 700;
    color: #fff;
    min-width: 90px;
    text-align: right;
}

.nexmp-qty-btn {
    width: 32px; height: 32px;
    border: 1px solid var(--nexmp-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--nexmp-text);
    border-radius: var(--nexmp-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    line-height: 1;
    transition: var(--nexmp-transition);
}

.nexmp-qty-btn:hover {
    background: rgba(var(--nexmp-primary-rgb), 0.2);
    border-color: var(--nexmp-border-hover);
}

.nexmp-qty-input {
    width: 48px;
    height: 32px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text);
    border-radius: var(--nexmp-radius-sm);
    -moz-appearance: textfield;
}

.nexmp-qty-input::-webkit-outer-spin-button,
.nexmp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============ Summary Sidebar ============ */
.nexmp-summary {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 24px;
    position: sticky;
    top: 24px;
}

.nexmp-summary h3 { margin-bottom: 20px; }

.nexmp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--nexmp-text-muted);
    font-size: 0.9375rem;
}

.nexmp-summary-row--total {
    border-top: 1px solid var(--nexmp-border);
    margin-top: 8px;
    padding-top: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.nexmp-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nexmp-summary-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--nexmp-text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nexmp-border);
}

.nexmp-summary-list li:last-child { border-bottom: 0; }

/* ============ Panels / Cards ============ */
.nexmp-card-panel {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.nexmp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============ Payment Methods ============ */
.nexmp-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.nexmp-pay-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    cursor: pointer;
    transition: var(--nexmp-transition);
}

.nexmp-pay-option:hover { border-color: var(--nexmp-border-hover); }

.nexmp-pay-option input[type="radio"] {
    accent-color: var(--nexmp-primary);
    width: 20px; height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.nexmp-pay-option:has(input:checked) {
    border-color: var(--nexmp-primary);
    background: rgba(var(--nexmp-primary-rgb), 0.1);
    box-shadow: 0 0 0 3px rgba(var(--nexmp-primary-rgb), 0.15);
}

.nexmp-pay-option__icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, rgba(var(--nexmp-primary-rgb), 0.15), rgba(var(--nexmp-primary-rgb), 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexmp-secondary);
    flex-shrink: 0;
}

.nexmp-pay-option__body { flex: 1; }
.nexmp-pay-option__body strong { color: #fff; display: block; }
.nexmp-pay-option__body span { font-size: 0.875rem; color: var(--nexmp-text-muted); }

/* ============ Crypto Payment Panel ============ */
.nexmp-crypto-payment {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 24px;
    margin-bottom: 20px;
    display: none;
}

.nexmp-crypto-payment.is-active { display: block; }

.nexmp-qr {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nexmp-qr__box {
    width: 160px; height: 160px;
    background: #fff;
    border-radius: var(--nexmp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.75rem;
    text-align: center;
    padding: 12px;
    flex-shrink: 0;
}

.nexmp-crypto-fields { flex: 1; min-width: 240px; }

.nexmp-field {
    margin-bottom: 16px;
}

.nexmp-field label {
    display: block;
    font-size: 0.8125rem;
    color: var(--nexmp-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.nexmp-field input,
.nexmp-field textarea,
.nexmp-field select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text);
    border-radius: var(--nexmp-radius-sm);
    font-size: 0.9375rem;
    outline: none;
    font-family: inherit;
    transition: var(--nexmp-transition);
}

.nexmp-field input:focus,
.nexmp-field textarea:focus,
.nexmp-field select:focus {
    border-color: var(--nexmp-primary);
    box-shadow: 0 0 0 3px rgba(var(--nexmp-primary-rgb), 0.15);
}

.nexmp-copy {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.nexmp-copy input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.nexmp-copy-btn {
    padding: 0 16px;
    background: var(--nexmp-gradient);
    color: #fff;
    border: 0;
    border-top-right-radius: var(--nexmp-radius-sm);
    border-bottom-right-radius: var(--nexmp-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--nexmp-transition);
    white-space: nowrap;
}

.nexmp-copy-btn:hover { filter: brightness(1.1); }
.nexmp-copy-btn.is-copied { background: var(--nexmp-success); }

.nexmp-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--nexmp-warning);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.nexmp-timer.is-expired {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--nexmp-danger);
}

/* ============ Dashboard ============ */
.nexmp-dashboard__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .nexmp-dashboard__layout { grid-template-columns: 1fr; }
}

.nexmp-dashboard__sidebar {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 20px;
    position: sticky;
    top: 24px;
}

.nexmp-dashboard__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nexmp-border);
}

.nexmp-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--nexmp-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    flex-shrink: 0;
}

.nexmp-dashboard__user strong { display: block; color: #fff; }
.nexmp-dashboard__user span { font-size: 0.8125rem; color: var(--nexmp-text-muted); }

.nexmp-dashnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nexmp-dashnav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--nexmp-radius-sm);
    color: var(--nexmp-text);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--nexmp-transition);
}

.nexmp-dashnav__link:hover {
    background: rgba(var(--nexmp-primary-rgb), 0.1);
    color: var(--nexmp-accent);
}

.nexmp-dashnav__link.is-active {
    background: var(--nexmp-gradient);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(var(--nexmp-primary-rgb), 0.5);
}

.nexmp-dashnav__link svg { flex-shrink: 0; }

.nexmp-dashnav__logout {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--nexmp-border);
    color: var(--nexmp-danger);
}

.nexmp-dashboard__main {
    min-width: 0;
}

/* ============ Stat Cards ============ */
.nexmp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.nexmp-stat-card {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--nexmp-transition);
}

.nexmp-stat-card:hover {
    border-color: var(--nexmp-border-hover);
    transform: translateY(-2px);
}

.nexmp-stat-card--primary {
    background: var(--nexmp-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--nexmp-shadow-glow);
}

.nexmp-stat-card--primary * { color: #fff !important; }

.nexmp-stat-card__icon {
    width: 40px; height: 40px;
    background: rgba(var(--nexmp-primary-rgb), 0.15);
    border-radius: var(--nexmp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexmp-secondary);
    margin-bottom: 4px;
}

.nexmp-stat-card--primary .nexmp-stat-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nexmp-stat-card__label {
    font-size: 0.8125rem;
    color: var(--nexmp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.nexmp-stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nexmp-stat-card__action {
    font-size: 0.8125rem;
    color: var(--nexmp-secondary);
    margin-top: 4px;
}

/* ============ Tables ============ */
.nexmp-user-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--nexmp-bg-card);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    overflow: hidden;
}

.nexmp-user-table th,
.nexmp-user-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--nexmp-border);
    font-size: 0.9375rem;
}

.nexmp-user-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--nexmp-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.nexmp-user-table tr:last-child td { border-bottom: 0; }
.nexmp-user-table tr:hover td { background: rgba(var(--nexmp-primary-rgb), 0.05); }

/* ============ Badges ============ */
.nexmp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.1);
    color: var(--nexmp-text);
}

.nexmp-badge--pending          { background: rgba(245, 158, 11, 0.15); color: var(--nexmp-warning); }
.nexmp-badge--awaiting_payment { background: rgba(59, 130, 246, 0.15); color: var(--nexmp-info); }
.nexmp-badge--paid             { background: rgba(16, 185, 129, 0.15); color: var(--nexmp-success); }
.nexmp-badge--processing       { background: rgba(139, 92, 246, 0.15); color: var(--nexmp-secondary); }
.nexmp-badge--completed        { background: rgba(16, 185, 129, 0.15); color: var(--nexmp-success); }
.nexmp-badge--cancelled        { background: rgba(107, 114, 128, 0.2); color: var(--nexmp-text-dim); }
.nexmp-badge--refunded         { background: rgba(107, 114, 128, 0.2); color: var(--nexmp-text-dim); }
.nexmp-badge--rejected         { background: rgba(239, 68, 68, 0.15); color: var(--nexmp-danger); }
.nexmp-badge--disputed         { background: rgba(239, 68, 68, 0.15); color: var(--nexmp-danger); }

/* ============ Wallet Hero ============ */
.nexmp-wallet-hero {
    background: var(--nexmp-gradient);
    border-radius: var(--nexmp-radius-lg);
    padding: 40px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--nexmp-shadow-glow);
}

.nexmp-wallet-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.nexmp-wallet-hero__label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    opacity: 0.85;
    margin-bottom: 12px;
    position: relative;
}

.nexmp-wallet-hero__amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.nexmp-wallet-hero__actions {
    display: flex;
    gap: 12px;
    position: relative;
    flex-wrap: wrap;
}

.nexmp-wallet-hero__actions .nexmp-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nexmp-wallet-hero__actions .nexmp-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============ Top-up ============ */
.nexmp-topup__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .nexmp-topup__layout { grid-template-columns: 1fr; }
}

.nexmp-topup__aside {
    background: var(--nexmp-bg-card);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 24px;
}

.nexmp-input-prefix {
    position: relative;
}

.nexmp-input-prefix::before {
    content: attr(data-prefix);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nexmp-text-muted);
    font-weight: 600;
    pointer-events: none;
}

.nexmp-input-prefix input {
    padding-left: 32px;
    font-size: 1.25rem;
    font-weight: 600;
}

.nexmp-steps {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nexmp-steps li {
    display: flex;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--nexmp-text);
}

.nexmp-steps__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--nexmp-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ============ Auth ============ */
.nexmp-auth {
    max-width: 440px;
    margin: 40px auto;
}

.nexmp-auth__card {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius-lg);
    padding: 40px;
    box-shadow: var(--nexmp-shadow);
}

.nexmp-auth__brand {
    text-align: center;
    margin-bottom: 32px;
}

.nexmp-auth__brand h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.nexmp-auth__brand p { color: var(--nexmp-text-muted); }

.nexmp-auth__foot {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--nexmp-border);
    font-size: 0.9375rem;
    color: var(--nexmp-text-muted);
}

.nexmp-auth .login-username,
.nexmp-auth .login-password,
.nexmp-auth .login-remember,
.nexmp-auth .login-submit { margin-bottom: 16px; }

.nexmp-auth input[type="text"],
.nexmp-auth input[type="password"],
.nexmp-auth input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text);
    border-radius: var(--nexmp-radius-sm);
    font-size: 0.9375rem;
    outline: none;
}

.nexmp-auth input:focus { border-color: var(--nexmp-primary); }

.nexmp-auth .login-submit .button,
.nexmp-auth .login-submit input[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    background: var(--nexmp-gradient);
    color: #fff;
    border: 0;
    border-radius: var(--nexmp-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(var(--nexmp-primary-rgb), 0.5);
}

/* ============ Single Product ============ */
.nexmp-single__layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .nexmp-single__layout { grid-template-columns: 1fr; }
}

.nexmp-single__gallery {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(var(--nexmp-primary-rgb), 0.15) 0%, rgba(var(--nexmp-primary-rgb), 0.05) 100%);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexmp-secondary);
    position: relative;
    overflow: hidden;
}

.nexmp-single__gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.nexmp-single__gallery svg { width: 160px; height: 160px; }

.nexmp-single__info { display: flex; flex-direction: column; gap: 16px; }
.nexmp-single__cat { font-size: 0.875rem; color: var(--nexmp-secondary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.nexmp-single__title { font-size: 2.25rem; margin: 0; line-height: 1.2; }

.nexmp-single__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--nexmp-border);
    border-bottom: 1px solid var(--nexmp-border);
}

.nexmp-single__price .nexmp-price-now { font-size: 2rem; }
.nexmp-single__price .nexmp-price-old { font-size: 1.125rem; }

.nexmp-single__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nexmp-single__meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--nexmp-radius);
    padding: 20px;
}

.nexmp-single__meta-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--nexmp-border);
    font-size: 0.9375rem;
}

.nexmp-single__meta-list li:last-child { border-bottom: 0; }
.nexmp-single__meta-list strong { color: #fff; }

.nexmp-single__desc,
.nexmp-single__reviews {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 32px;
    margin-bottom: 20px;
}

.nexmp-prose { color: var(--nexmp-text); line-height: 1.7; }
.nexmp-prose p { margin: 0 0 1em; }
.nexmp-prose h2, .nexmp-prose h3 { margin: 1.5em 0 0.5em; }

.nexmp-review {
    padding: 16px 0;
    border-bottom: 1px solid var(--nexmp-border);
}

.nexmp-review:last-child { border-bottom: 0; }

.nexmp-review__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.nexmp-review__head strong { color: #fff; }
.nexmp-review__head time { font-size: 0.8125rem; color: var(--nexmp-text-muted); }

/* ============ Breadcrumbs ============ */
.nexmp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--nexmp-text-muted);
    flex-wrap: wrap;
}

.nexmp-breadcrumbs a { color: var(--nexmp-text-muted); }
.nexmp-breadcrumbs a:hover { color: var(--nexmp-accent); }
.nexmp-breadcrumbs span:not(.sep) { color: #fff; }

/* ============ Search Results ============ */
.nexmp-search-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nexmp-bg-elev);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    margin-top: 8px;
    box-shadow: var(--nexmp-shadow);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.nexmp-search-results.is-open { display: block; }

.nexmp-search-results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--nexmp-text);
    border-bottom: 1px solid var(--nexmp-border);
    transition: var(--nexmp-transition);
}

.nexmp-search-results a:last-child { border-bottom: 0; }
.nexmp-search-results a:hover { background: rgba(var(--nexmp-primary-rgb), 0.1); }

.nexmp-search-results__icon {
    width: 40px; height: 40px;
    background: rgba(var(--nexmp-primary-rgb), 0.1);
    border-radius: var(--nexmp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexmp-secondary);
    flex-shrink: 0;
}

.nexmp-search-results__body { flex: 1; min-width: 0; }
.nexmp-search-results__title { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nexmp-search-results__price { font-size: 0.875rem; color: var(--nexmp-secondary); font-weight: 600; }

.nexmp-searchbar {
    position: relative;
    max-width: 640px;
    margin: 0 auto 32px;
}

.nexmp-searchbar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--nexmp-bg-card);
    border: 1px solid var(--nexmp-border);
    color: var(--nexmp-text);
    border-radius: 999px;
    font-size: 1rem;
    outline: none;
}

.nexmp-searchbar input:focus { border-color: var(--nexmp-primary); }

.nexmp-searchbar__icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--nexmp-text-muted);
}

/* ============ Category Grid ============ */
.nexmp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.nexmp-cat-card {
    background: var(--nexmp-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--nexmp-border);
    border-radius: var(--nexmp-radius);
    padding: 24px;
    text-align: center;
    color: var(--nexmp-text);
    transition: var(--nexmp-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nexmp-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--nexmp-border-hover);
    color: var(--nexmp-accent);
    box-shadow: var(--nexmp-shadow-glow);
}

.nexmp-cat-card__icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(var(--nexmp-primary-rgb), 0.2), rgba(var(--nexmp-primary-rgb), 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexmp-secondary);
}

.nexmp-cat-card__name { font-weight: 600; color: #fff; }
.nexmp-cat-card__count { font-size: 0.8125rem; color: var(--nexmp-text-muted); }

/* ============ Utilities ============ */
.nexmp-mt-0 { margin-top: 0 !important; }
.nexmp-mt-1 { margin-top: 8px !important; }
.nexmp-mt-2 { margin-top: 16px !important; }
.nexmp-mt-3 { margin-top: 24px !important; }
.nexmp-mb-0 { margin-bottom: 0 !important; }
.nexmp-mb-1 { margin-bottom: 8px !important; }
.nexmp-mb-2 { margin-bottom: 16px !important; }
.nexmp-mb-3 { margin-bottom: 24px !important; }
.nexmp-text-center { text-align: center; }
.nexmp-flex { display: flex; gap: 12px; }
.nexmp-flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ============ Loading / Skeletons ============ */
.nexmp-loading {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(var(--nexmp-primary-rgb), 0.2);
    border-top-color: var(--nexmp-primary);
    border-radius: 50%;
    animation: nexmp-spin 0.8s linear infinite;
}

@keyframes nexmp-spin {
    to { transform: rotate(360deg); }
}

/* ============ Responsive ============ */
@media (max-width: 640px) {
    .nexmp { padding: 16px 12px; }
    .nexmp-hero { padding: 48px 20px; }
    .nexmp-single__title { font-size: 1.5rem; }
    .nexmp-wallet-hero { padding: 28px; }
    .nexmp-wallet-hero__amount { font-size: 2.25rem; }
    .nexmp-stat-card__value { font-size: 1.5rem; }
    .nexmp-single__desc,
    .nexmp-single__reviews { padding: 20px; }
}
