:root {
    --btc: #f7931a;
    --btc-light: #ffad42;
    --bg: #0b0f14;
    --card: #111820;
    --card-2: #151e28;
    --border: rgba(255, 255, 255, .08);
    --text: #f5f7fa;
    --muted: #8e9aa8;
    --success: #22c55e;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(247, 147, 26, .12),
            transparent 38%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(247, 147, 26, .04),
            transparent 30%
        ),
        var(--bg);
}

.sell-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px 15px 70px;
}

/* Main */

.sell-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(17, 24, 32, .95);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(255, 255, 255, .01);
}

.sell-header {
    padding: 34px 30px 30px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(
            180deg,
            rgba(247, 147, 26, .07),
            transparent
        );
    text-align: center;
}

.sell-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border: 1px solid rgba(247, 147, 26, .18);
    border-radius: 17px;
    color: var(--btc);
    background: rgba(247, 147, 26, .08);
    box-shadow: 0 12px 30px rgba(247, 147, 26, .08);
    font-size: 23px;
}

.sell-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 4vw, 29px);
    font-weight: 750;
    letter-spacing: -.7px;
}

.sell-header h1 span {
    color: var(--btc);
}

.sell-header p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.sell-body {
    padding: 30px;
}

/* Alerts */

#formAlert {
    border-radius: 14px;
    border-width: 1px;
}

/* Section */

.form-section {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .035),
            rgba(255, 255, 255, .012)
        );
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    color: var(--btc);
    background: rgba(247, 147, 26, .09);
    font-size: 14px;
}

.section-heading h2 {
    margin: 0;
    color: #edf1f4;
    font-size: 14px;
    font-weight: 700;
}

.section-heading small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

/* Upload */

.upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 235px;
    padding: 25px;
    border: 1px dashed rgba(247, 147, 26, .28);
    border-radius: 16px;
    background:
        radial-gradient(
            circle at center,
            rgba(247, 147, 26, .06),
            transparent 65%
        );
    text-align: center;
    transition: all .2s ease;
}

.upload-box.dragover {
    border-color: var(--btc);
    background: rgba(247, 147, 26, .08);
    transform: translateY(-1px);
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 13px;
    border-radius: 15px;
    color: var(--btc);
    background: rgba(247, 147, 26, .1);
    font-size: 21px;
}

.upload-title {
    margin-bottom: 5px;
    color: #e9edf1;
    font-size: 13px;
    font-weight: 650;
}

.upload-description {
    max-width: 290px;
    margin-bottom: 17px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 17px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--btc-light),
        var(--btc)
    );
    box-shadow: 0 8px 22px rgba(247, 147, 26, .14);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.upload-btn:hover {
    color: #fff;
    background: linear-gradient(
        135deg,
        #ffb85f,
        #f7931a
    );
}

.file-name {
    max-width: 90%;
    margin-top: 12px;
    overflow: hidden;
    color: #8f9ba7;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form */

.form-label {
    margin-bottom: 8px;
    color: #dce2e8;
    font-size: 11px;
    font-weight: 650;
}

.form-label i {
    margin-right: 4px;
    color: var(--btc);
}

.form-control,
.form-select {
    min-height: 45px;
    border: 1px solid var(--border) !important;
    border-radius: 11px !important;
    color: #e7ebef !important;
    background-color: rgba(255, 255, 255, .035) !important;
    box-shadow: none !important;
    font-size: 12px;
}

textarea.form-control {
    min-height: auto;
    resize: vertical;
    line-height: 1.7;
}

.form-control::placeholder {
    color: #626e7b;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(247, 147, 26, .5) !important;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, .07) !important;
}

.form-select {
    background-image:
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238e9aa8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-text {
    margin-top: 7px;
    color: #687583 !important;
    font-size: 9px;
    line-height: 1.6;
}

/* Markdown */

.markdown-help {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.markdown-help-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    color: #cfd6dd;
    font-size: 10px;
    font-weight: 650;
}

.markdown-help-title i {
    color: var(--btc);
}

.markdown-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.markdown-list li {
    color: #7d8995;
    font-size: 9px;
}

.markdown-list code {
    padding: 3px 6px;
    border-radius: 5px;
    color: #f3a54b;
    background: rgba(247, 147, 26, .08);
    font-size: 9px;
}

.markdown-list strong {
    color: #aeb8c2;
}

/* Price */

.price-summary {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid rgba(247, 147, 26, .1);
    border-radius: 13px;
    background: rgba(247, 147, 26, .035);
}

.price-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: #74818e;
    font-size: 9px;
}

.price-info:last-child {
    margin-bottom: 0;
}

.price-info span:last-child {
    color: #b2bbc4;
    font-weight: 600;
}

.price-info.receive span:last-child {
    color: #6ee7a0;
}

/* Range */

.range-container {
    padding: 8px 2px 0;
}

.form-range {
    height: 5px;
}

.form-range::-webkit-slider-thumb {
    background: var(--btc);
}

.form-range::-moz-range-thumb {
    background: var(--btc);
    border: 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #64717e;
    font-size: 9px;
}

#sellLimitValue {
    margin-top: 11px;
    color: #c2cad2;
    font-size: 10px;
    font-weight: 600;
}

#sellLimitValue i {
    color: var(--btc);
}

/* Publish */

.publish-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.publish-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: min(100%, 390px);
    min-height: 54px;
    padding: 13px 25px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--btc-light),
        var(--btc)
    );
    box-shadow:
        0 12px 30px rgba(247, 147, 26, .18),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    font-size: 13px;
    font-weight: 750;
    transition: all .2s ease;
}

.publish-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 17px 38px rgba(247, 147, 26, .25),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

.publish-button:active {
    transform: translateY(0);
}

.terms-text {
    margin: 12px auto 0;
    max-width: 500px;
    color: #606d79;
    font-size: 9px;
    line-height: 1.7;
}

.terms-text a {
    color: var(--btc);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Remove File Button */
#removeFile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
    padding: 10px 18px;

    color: #ff6b6b;
    background: rgba(255, 77, 77, 0.07);

    border: 1px solid rgba(255, 77, 77, 0.25);
    border-radius: 12px;

    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.2px;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* Trash icon */
#removeFile i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

/* Hover effect */
#removeFile:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff5252, #e53935);
    border-color: #ff5252;

    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.22);
    transform: translateY(-2px);
}

/* Animate trash icon */
#removeFile:hover i {
    transform: rotate(-10deg) scale(1.12);
}

/* Click effect */
#removeFile:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* Keyboard accessibility */
#removeFile:focus-visible {
    outline: 2px solid #ff7777;
    outline-offset: 3px;
}

/* Responsive */

@media (max-width: 768px) {

    .sell-page {
        padding: 20px 10px 50px;
    }

    .sell-card {
        border-radius: 20px;
    }

    .sell-header {
        padding: 28px 18px 24px;
    }

    .sell-body {
        padding: 18px 13px;
    }

    .form-section {
        padding: 17px;
    }

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

@media (max-width: 576px) {

    .upload-box {
        min-height: 210px;
    }

    .price-summary {
        font-size: 9px;
    }

    .publish-button {
        width: 100%;
    }
}