.sell-page .sell-search-hide {
    opacity: 0.35;
    pointer-events: none;
}

.sell-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.sell-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.sell-back {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sell-back:hover {
    color: #fff;
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.sell-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 4px;
}

.sell-step-label {
    margin: 0;
    font-size: 14px;
    color: var(--text-3);
}

.sell-progress {
    height: 4px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
    margin-bottom: 28px;
}

.sell-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--green-grad);
    transition: width 0.35s var(--ease);
}

.sell-hint {
    font-size: 15px;
    color: var(--text-2);
    margin: 0 0 18px;
}

.sell-step[hidden] {
    display: none !important;
}

.sell-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--text-3);
}

.sell-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
}

.sell-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sell-game-card:hover {
    border-color: rgba(46, 204, 113, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.sell-game-card.is-selected {
    border-color: rgba(46, 204, 113, 0.55);
    background: rgba(46, 204, 113, 0.06);
    box-shadow: var(--green-glow);
}

.sell-game-card img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.sell-game-card span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    line-height: 1.3;
}

.sell-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.sell-cat-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.sell-cat-card:hover {
    border-color: rgba(46, 204, 113, 0.35);
    background: var(--surface-2);
}

.sell-cat-card.is-selected {
    border-color: rgba(46, 204, 113, 0.55);
    background: rgba(46, 204, 113, 0.08);
}

.sell-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sell-field-wide {
    grid-column: 1 / -1;
}

.sell-field-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sell-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}

.sell-opt {
    font-weight: 500;
    color: var(--text-3);
}

.sell-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.sell-input:focus {
    border-color: rgba(46, 204, 113, 0.45);
}

.sell-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.sell-gallery-hint {
    margin: -4px 0 12px;
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.45;
}

.sell-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sell-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}

.sell-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c0c0e;
}

.sell-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sell-gallery-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.92);
    color: #0a0a0b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sell-gallery-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sell-gallery-remove:hover {
    background: rgba(220, 60, 60, 0.9);
}

.sell-gallery-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 148px;
    padding: 20px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: var(--surface);
    color: var(--text-3);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.sell-gallery-add.is-empty-state {
    grid-column: 1 / -1;
    min-height: 200px;
}

.sell-gallery-add:not(.is-empty-state) {
    aspect-ratio: 4 / 3;
    min-height: 0;
    padding: 12px;
}

.sell-gallery-add i {
    font-size: 28px;
    color: var(--green);
    opacity: 0.85;
}

.sell-gallery-add span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.sell-gallery-add small {
    font-size: 12px;
    color: var(--text-3);
}

.sell-gallery-add:hover {
    border-color: rgba(46, 204, 113, 0.45);
    color: var(--text-2);
}

.sell-gallery.is-drag .sell-gallery-add {
    border-color: var(--green);
    background: rgba(46, 204, 113, 0.06);
}

.sell-gallery-add[hidden] {
    display: none !important;
}

.sell-discount {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    font-size: 13px;
    color: var(--green-bright);
    font-weight: 600;
}

.sell-summary {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
}

.sell-summary strong {
    color: var(--text);
}

.sell-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #0a0a0b;
    background: var(--green-grad);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.sell-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sell-submit:not(:disabled):hover {
    transform: translateY(-1px);
}

.sell-denied {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(46, 204, 113, 0.12), transparent 60%),
        radial-gradient(700px 400px at 90% 10%, rgba(46, 204, 113, 0.06), transparent 55%),
        var(--bg);
}

.sell-denied[hidden] {
    display: none !important;
}

.sell-denied-glow {
    display: none;
}

.sell-denied-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    text-align: center;
    padding: 32px 28px 28px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.sell-denied-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.18);
    color: var(--green-bright);
    font-size: 26px;
}

.sell-denied-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
    color: var(--text);
}

.sell-denied-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
    margin: 0 0 22px;
}

.sell-denied-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.sell-denied-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sell-denied-btn-ghost {
    color: var(--text-2);
    background: #0a0a0b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sell-denied-btn-ghost:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.sell-denied-btn-primary {
    color: #0a0a0b;
    background: var(--green);
    border: 1px solid transparent;
}

.sell-denied-btn-primary:hover {
    background: var(--green-bright);
}

.sell-debug {
    margin-top: 22px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.sell-debug-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.sell-debug-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
}

.sell-debug-btns {
    display: flex;
    gap: 6px;
}

.sell-debug-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111114;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.sell-debug-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.sell-debug-log {
    margin: 0;
    padding: 12px;
    max-height: 280px;
    overflow: auto;
    border-radius: 10px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b8f5c8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: all;
}

.sell-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60000;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid var(--line);
    color: #fff;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
    .sell-form,
    .sell-field-row {
        grid-template-columns: 1fr;
    }

    .sell-title {
        font-size: 24px;
    }
}
