/* ========================================
   MARKETPLACE - E-COMMERCE STYLES
   ======================================== */

/* Modal Backdrop & Container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow: hidden;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content Base */
.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    position: relative;
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
}

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

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin: 0;
    background: linear-gradient(135deg, var(--neon-blue), var(--cyber-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal Close Button */
.modal-close {
    background: rgba(255, 51, 102, 0.1);
    border: 2px solid rgba(255, 51, 102, 0.3);
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 3;
}

.modal-close:hover {
    background: rgba(255, 51, 102, 0.2);
    border-color: var(--danger);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

/* Hero Section */
.marketplace-hero {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.marketplace-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    animation: float 20s infinite;
}

.marketplace-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marketplace-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat strong {
    display: block;
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.hero-stats .stat span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Marketplace Section */
.marketplace-section {
    padding: 4rem 0;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.search-filter {
    display: flex;
    gap: 1rem;
    flex: 1;
    flex-wrap: nowrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    background: rgba(0, 217, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 20px;
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        inset 0 0 15px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.search-input:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background-color: rgba(0, 217, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Filter Selects */
.search-filter select {
    padding: 0.875rem 2rem 0.875rem 0.75rem;
    background-color: rgba(0, 217, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 18px !important;
    min-width: 80px;
    max-width: 150px;
    white-space: nowrap;
}

.search-filter select::-ms-expand {
    display: none;
}

.search-filter select::-webkit-inner-spin-button,
.search-filter select::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
}

.search-filter select:focus {
    outline: none;
    border-color: var(--neon-blue);
    background-color: rgba(0, 217, 255, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 18px;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        inset 0 0 15px rgba(0, 217, 255, 0.1);
}

.search-filter select:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background-color: rgba(0, 217, 255, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 18px;
}

.search-filter select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.875rem;
}

.filter-select {
    padding: 0.875rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--neon-blue);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-blue), var(--cyber-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.featured {
    background: linear-gradient(135deg, var(--cyber-green), var(--neon-green));
    color: var(--bg-primary);
}

.product-badge.bestseller {
    background: linear-gradient(135deg, var(--warning), #ff9500);
    color: white;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--neon-purple), #d946ef);
    color: white;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-neon);
    border-radius: 6px;
    color: var(--neon-blue);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.375rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li::before {
    content: '';
    width: 0.42rem;
    height: 0.7rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    color: var(--cyber-green);
    flex: 0 0 auto;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--cyber-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.price-stack {
    display: flex;
    flex-direction: column;
}

.billing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.billing-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.checkout-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-blue));
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-now-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-blue);
}

.checkout-now-btn.added {
    background: linear-gradient(135deg, var(--success), var(--neon-green));
    border-color: var(--success);
}

/* Product Modal */
.product-modal-content {
    max-width: min(980px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 1.25rem 1.35rem;
    overflow: hidden;
}

.product-modal-content > .modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    border-width: 1px;
    background: rgba(255, 51, 102, 0.16);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    gap: 1.35rem;
    align-items: start;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.25rem;
}

.product-detail-icon {
    width: 78px;
    height: 78px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--border-neon);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    margin: 0 auto 0.15rem;
}

.product-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.screenshot {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-detail-right h2 {
    color: var(--text-primary);
    font-size: 1.85rem;
    line-height: 1.12;
    margin: 0 2.2rem 0.5rem 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.stars {
    color: var(--warning);
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-detail-price {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--cyber-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.product-detail-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.product-detail-features {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-detail-features h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.product-detail-features ul {
    list-style: none;
}

.product-detail-features li {
    color: var(--text-secondary);
    padding: 0.28rem 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
}

.product-detail-features li::before {
    content: '';
    width: 0.45rem;
    height: 0.78rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    color: var(--cyber-green);
    flex: 0 0 auto;
}

.purchase-options {
    display: grid;
    gap: 0.55rem;
}

.purchase-option-btn {
    width: 100%;
    padding: 0.72rem 0.9rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-option-btn:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.2);
}

/* Checkout Modal */
.checkout-modal-content {
    max-width: 1200px;
    width: 95%;
    padding: 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 2rem 3rem 3rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Custom Scrollbar for Checkout Content */
.checkout-content::-webkit-scrollbar {
    width: 8px;
}

.checkout-content::-webkit-scrollbar-track {
    background: rgba(0, 217, 255, 0.05);
    border-radius: 4px;
}

.checkout-content::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

.checkout-content::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-green);
}

.checkout-left h3,
.checkout-right h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-note {
    margin: -0.25rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.payment-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
    padding: 0.85rem;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.payment-consent input {
    margin-top: 0.2rem;
    accent-color: var(--neon-blue);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:has(input:checked) {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--neon-blue);
}

.payment-option span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.card-details {
    margin-top: 1.5rem;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

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

.order-item-price {
    color: var(--neon-blue);
    font-weight: 700;
}

.discount-box {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
}

.discount-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.discount-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.65rem;
    align-items: center;
}

.discount-entry input {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.discount-entry input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.18);
}

.discount-entry input::placeholder {
    color: var(--text-muted);
    text-transform: none;
}

.discount-message {
    min-height: 1.2rem;
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.discount-message.success {
    color: var(--success);
}

.discount-message.error {
    color: var(--danger);
}

.order-totals {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
}

.order-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.order-row.discount {
    color: var(--success);
    font-weight: 700;
}

.order-row.total {
    border-top: 2px solid var(--border-glass);
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1.25rem;
}

.order-row.total strong {
    color: var(--neon-blue);
}

.security-badges {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--success);
}

/* ========================================
   FORM INPUTS - CYBER FUTURISTIC STYLING
   ======================================== */

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--neon-blue), var(--cyber-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Inputs & Select */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Input Focus State */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        inset 0 0 15px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

/* Input Hover State */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
select:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.08);
}

/* Placeholder Styling */
input::placeholder {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
}

/* Select Dropdown Custom Styling */
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 20px !important;
    padding-right: 3rem;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

select::-webkit-inner-spin-button,
select::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
}

/* Select Focused */
select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231de9b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Select Options */
select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
}

/* Custom Radio Buttons */
.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--neon-blue), var(--cyber-green));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.payment-option:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.payment-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(29, 233, 182, 0.15));
    border-color: var(--neon-blue);
    box-shadow: 
        0 0 25px rgba(0, 217, 255, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.payment-option:has(input:checked)::before {
    transform: scaleY(1);
}

/* Hide Default Radio */
.payment-option input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.payment-option input[type="radio"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--cyber-green));
    box-shadow: 0 0 10px var(--neon-blue);
    transition: transform 0.3s ease;
}

.payment-option input[type="radio"]:checked {
    border-color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.payment-option input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Payment Method Icons & Text */
.payment-option span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Card Details Grid */
.card-details {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.card-details .form-group:first-child {
    grid-column: 1 / -1;
}

/* Input Icons (Left side) */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 3rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    font-size: 1.25rem;
    pointer-events: none;
}

/* Input Animation on Focus */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    }
}

input:focus,
select:focus {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Input Valid State (when filled) */
input:valid:not(:placeholder-shown) {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.05);
}

/* Disabled State */
input:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

/* Form Row (for inline fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Required Field Indicator */
.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 0.25rem;
}

/* Primary Buttons Styling */
.btn-primary,
button[type="submit"].btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-blue));
    border: 2px solid var(--neon-blue);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.btn-primary::before,
button[type="submit"].btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover,
button[type="submit"].btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 217, 255, 0.6);
    background: linear-gradient(135deg, var(--neon-blue), var(--cyber-green));
}

.btn-primary:hover::before,
button[type="submit"].btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active,
button[type="submit"].btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.pagination button.active {
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-blue));
    border-color: var(--neon-blue);
    color: white;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

/* ========================================
   MARKETPLACE UPGRADE - BUYER EXPERIENCE
   ======================================== */
.marketplace-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
}

.marketplace-hero-copy {
    text-align: left;
}

.marketplace-hero-copy h1 {
    margin: 1rem 0 1.25rem;
}

.marketplace-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.marketplace-hero-actions .btn-primary,
.marketplace-hero-actions .btn-secondary {
    min-height: 52px;
}

.hero-bullets {
    display: grid;
    gap: 0.7rem;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 720px;
}

.hero-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.hero-bullet::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--cyber-green);
    box-shadow: 0 0 0 4px rgba(29, 233, 182, 0.1);
    flex: 0 0 auto;
}

.marketplace-hero-panel {
    display: grid;
    gap: 1rem;
}

.hero-buyer-panel,
.hero-spotlight,
.collection-card,
.product-fact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.2rem;
    backdrop-filter: blur(20px);
}

.hero-buyer-panel {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
}

.hero-panel-kicker,
.product-fact-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-buyer-panel h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 0;
}

.hero-workflow-list {
    display: grid;
    gap: 0.85rem;
}

.hero-workflow-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 0.8rem;
    align-items: flex-start;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(10, 14, 39, 0.38);
}

.hero-workflow-item > span {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(29, 233, 182, 0.1);
    border: 1px solid rgba(29, 233, 182, 0.24);
    color: var(--cyber-green);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.hero-workflow-item strong {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.25;
}

.hero-workflow-item p {
    grid-column: 2;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.product-fact-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.65rem;
    margin-top: 0.4rem;
}

.product-modal-content .product-fact-card {
    border-radius: 12px;
    padding: 0.85rem;
}

.product-modal-content .product-fact-card span {
    font-size: 0.7rem;
}

.product-modal-content .product-fact-card strong {
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.25;
    margin-top: 0.25rem;
}

.product-modal-content .product-category-row {
    margin-bottom: 0.5rem;
    padding-right: 2.4rem;
}

.product-modal-content .product-category,
.product-modal-content .ownership-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.62rem;
}

.product-modal-content .product-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.product-modal-content .product-modal-actions .btn-secondary {
    min-height: 44px;
    padding: 0.75rem 0.9rem;
}

.checkout-modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.hero-spotlight h3,
.collection-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.hero-spotlight ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.hero-spotlight li,
.collection-card p {
    color: var(--text-secondary);
}

.hero-spotlight li::before,
.product-features li::before,
.product-detail-features li::before {
    content: '';
    width: 0.45rem;
    height: 0.75rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    color: var(--cyber-green);
    flex: 0 0 auto;
    margin: 0.1rem 0.2rem 0 0.15rem;
}

.marketplace-signal-bar {
    padding: 0 0 3rem;
}

.signal-bar-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    background: var(--border-glass);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.signal-bar-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.2rem;
    background: rgba(21, 25, 50, 0.88);
    color: var(--text-secondary);
    min-height: 100%;
}

.signal-bar-marker {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.24);
    color: var(--neon-blue);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.signal-bar-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.signal-bar-item div span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.collections-section {
    padding: 1rem 0 4rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.collection-card {
    display: grid;
    gap: 1rem;
}

.collection-topline,
.results-toolbar,
.product-topline,
.product-category-row,
.product-stats,
.product-cta-row,
.collection-featured-product,
.product-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.collection-product-type,
.purchase-status,
.ownership-badge,
.product-stat,
.filter-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.results-toolbar {
    margin-bottom: 0.85rem;
}

.results-copy {
    display: grid;
    gap: 0.25rem;
    max-width: 660px;
}

.results-copy strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.results-copy span {
    color: var(--text-secondary);
    line-height: 1.5;
}

.results-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.filter-chip-clear {
    cursor: pointer;
    color: var(--neon-blue);
}

.product-topline {
    min-height: 2rem;
    margin-bottom: 0.75rem;
}

.product-category-row {
    margin-bottom: 0.75rem;
}

.product-stats {
    margin-bottom: 1rem;
}

.product-stat {
    color: var(--text-muted);
}

.product-price {
    font-size: 1.55rem;
}

.product-cta-row {
    margin-top: 1.25rem;
}

.docs-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.empty-results {
    padding: 3rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    text-align: center;
    margin-bottom: 2rem;
}

.empty-results h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.empty-results p,
.checkout-note {
    color: var(--text-secondary);
}

.product-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.product-modal-actions {
    margin-bottom: 0.75rem;
}

.purchase-option-btn {
    display: grid;
    text-align: left;
    gap: 0.2rem;
}

.purchase-option-title,
.purchase-option-price,
.purchase-option-action {
    display: block;
}

.purchase-option-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
}

.purchase-option-price {
    color: var(--neon-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

.purchase-option-copy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

.purchase-option-action {
    color: var(--cyber-green);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.purchase-option-btn.added .purchase-option-action {
    color: var(--text-primary);
}

.checkout-note {
    text-align: center;
    font-size: 0.86rem;
    margin-top: 1rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .marketplace-hero-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .signal-bar-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-filter {
        flex-wrap: wrap;
    }
    
    .search-filter select {
        min-width: 140px;
    }
}

@media (max-width: 968px) {
    .marketplace-hero h1 {
        font-size: 2.5rem;
    }

    .marketplace-hero-copy {
        text-align: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .marketplace-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-filter select {
        width: 100%;
        min-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-modal-content {
        overflow-y: auto;
    }

    .product-detail-left {
        gap: 0.75rem;
    }

    .product-detail-icon {
        width: 68px;
        height: 68px;
        font-size: 2.35rem;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .product-fact-grid {
        grid-template-columns: 1fr;
    }

    .signal-bar-track {
        grid-template-columns: 1fr;
    }
    
    .card-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .marketplace-hero {
        padding: 4rem 0 3rem;
    }
    
    .marketplace-hero h1 {
        font-size: 2rem;
    }

    .hero-workflow-item {
        grid-template-columns: 1fr;
    }

    .hero-workflow-item p {
        grid-column: 1;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .product-modal-content,
    .checkout-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        padding: 1rem;
    }

    .product-modal-content .product-fact-grid,
    .product-modal-content .product-modal-actions {
        grid-template-columns: 1fr;
    }

    .product-detail-right h2 {
        font-size: 1.55rem;
        margin-right: 2rem;
    }
    
    .payment-option {
        font-size: 0.875rem;
        padding: 1rem;
    }
    
    input, select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
