/* ==================== SELL PAGE ==================== */
.page-vender {
    padding: 48px 24px 72px;
}

.sell-hero {
    max-width: 1300px;
    margin: 0 auto 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background:
        radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.24), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.2), transparent 45%),
        linear-gradient(130deg, rgba(16, 16, 28, 0.94), rgba(28, 21, 50, 0.94));
    min-height: 220px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.sell-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: rgba(124, 58, 237, 0.18);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.sell-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.sell-hero p {
    max-width: 660px;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.sell-orbital {
    position: absolute;
    right: -40px;
    top: -10px;
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(192, 132, 252, 0.35);
    animation: sellSpin 14s linear infinite;
}

.orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}

.orbit-1 { inset: 25px; }
.orbit-2 { inset: 55px; animation-duration: 10s; animation-direction: reverse; }
.orbit-3 { inset: 85px; animation-duration: 7s; }

@keyframes sellSpin {
    to { transform: rotate(360deg); }
}

.sell-form-wrap,
.sell-flow,
.sell-collections-strip {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(17, 17, 30, 0.9);
    box-shadow: var(--shadow-md);
}

.sell-form-wrap {
    max-width: 1300px;
    margin: 0 auto 24px;
    padding: 26px 28px;
    position: relative;
}

.sell-mode-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 22px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

.sell-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.sell-mode-tab i {
    font-size: 0.85rem;
    color: var(--accent-secondary);
}

.sell-mode-tab:hover {
    color: var(--text-primary);
}

.sell-mode-tab.active {
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.32), rgba(59, 130, 246, 0.28));
    border-color: rgba(168, 85, 247, 0.6);
    color: #fff;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.25);
}

.sell-mode-tab.active i {
    color: #fff;
}

.sell-mode-panel.hidden {
    display: none;
}

#bulkCards {
    width: 100%;
    min-height: 220px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    resize: vertical;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

#bulkCards:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.sale-bulk-contact-field.hidden {
    display: none;
}

.sell-form-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.sell-form-head {
    margin-bottom: 16px;
}

.sell-form-head h2 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sell-form-head p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sell-cards-form .form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.sale-contact-toggle {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 8px;
}

.sale-contact-btn {
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.sale-contact-btn:hover {
    border-color: rgba(6, 182, 212, 0.5);
    color: var(--text-primary);
}

.sale-contact-btn.active {
    background: rgba(124, 58, 237, 0.28);
    border-color: rgba(168, 85, 247, 0.9);
    color: #fff;
}

.sale-contact-field.hidden {
    display: none;
}

.sell-flow {
    max-width: 1300px;
    margin: 0 auto 22px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sell-step {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.sell-step:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.5);
}

.sell-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-tertiary);
    font-weight: 700;
    margin-bottom: 8px;
}

.sell-step h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.sell-step p {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.sell-collections-strip {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px;
    overflow: hidden;
}

.sell-collections-strip h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.sell-strip-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sell-collections-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: collectionsMarquee 22s linear infinite;
}

.sell-collections-track.paused {
    animation-play-state: paused;
}

@keyframes collectionsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.sell-sale-card {
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.45);
    background: linear-gradient(150deg, rgba(124, 58, 237, 0.16), rgba(59, 130, 246, 0.12));
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.sale-card-image-wrap {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.sale-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sale-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.2));
}

.sell-sale-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.75);
}

.sale-card-glow {
    position: absolute;
    inset: auto -40% -60% -40%;
    height: 90px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.sell-sale-card:hover .sale-card-glow {
    opacity: 1;
}

.sell-sale-card strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.sell-sale-card span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.sale-card-meta {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sale-card-meta em {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.sale-card-meta b {
    font-family: 'Orbitron', sans-serif;
    color: #fbbf24;
    font-size: 0.88rem;
}

.sale-photo-preview {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.sale-photo-preview img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.sell-appointment-inline {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

.sell-appointment-inline h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 6px;
}

.sell-appointment-inline p {
    margin-bottom: 10px;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

#saleAppointmentPicked {
    display: block;
    margin-top: 8px;
    color: var(--accent-secondary);
    font-size: 0.8rem;
}

.sell-appointments {
    max-width: 1300px;
    margin: 22px auto 0;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(17, 17, 30, 0.9);
    box-shadow: var(--shadow-md);
}

.sell-appointments-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.sell-appointments-head p {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.sell-appointments-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
}

.sell-appointments-booking,
.sell-appointments-mine {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
}

.sell-appointments-booking label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

#saleAppointmentDate,
#saleAppointmentNotes {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

#saleAppointmentNotes {
    resize: vertical;
}

.sell-slot-list {
    margin: 12px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sell-slot-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition-normal), transform var(--transition-normal), background var(--transition-normal);
}

.sell-slot-item:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.sell-slot-item.active {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.16);
    color: #ecfdf5;
}

.sell-slot-item.booked {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.13);
    color: #fecaca;
    cursor: not-allowed;
}

.sell-slot-item.mine {
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(59, 130, 246, 0.17);
    color: #dbeafe;
}

.sell-slot-empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
}

.sell-appointments-mine h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sell-my-appointment-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.sell-my-appointment-item strong {
    display: block;
    font-size: 0.9rem;
}

.sell-my-appointment-item p {
    margin: 4px 0 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.sell-my-appointment-item .btn {
    width: 100%;
}

@media (max-width: 980px) {
    .sell-flow {
        grid-template-columns: 1fr;
    }

    .sell-orbital {
        display: none;
    }

    .sell-form-wrap {
        padding: 20px;
    }

    .sell-mode-tabs {
        display: flex;
        width: 100%;
    }

    .sell-mode-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .sell-appointments-grid {
        grid-template-columns: 1fr;
    }

    .sell-slot-list {
        grid-template-columns: 1fr;
    }
}
