/* Scan page, collector guide, grading and rarity */

.upload-box {
    min-height: 255px;
    border: 2px dashed #43516a;
    border-radius: 22px;
    background: #0c1322;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: white;
    padding: 28px;
}

.upload-box input {
        display: none;
    }

.upload-symbol {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #263247;
    border: 1px solid #41506b;
    color: #cbd5e1;
    font-size: 42px;
    line-height: 1;
}

.upload-box b {
    font-size: 20px;
}

.upload-box small {
    color: #7f8ca6;
}

.preview-strip {
    margin-top: 18px;
    min-height: 105px;
    border-radius: 18px;
    background: var(--soft);
    color: rgba(17,24,39,.55);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.preview-strip img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

.step-card, .feature-box, .price-card, .signature-card, .note-card, .editor-card, .scan-panel {
    background: #111827;
    border: 1px solid #253044;
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(0,0,0,.12);
}

.scan-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.scan-panel {
    padding: 28px;
}

.scan-upload {
    min-height: 330px;
}

.result-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.result-item {
    border: 1px solid #263347;
    background: #0f172a;
    border-radius: 14px;
    padding: 14px;
    color: #e5e7eb;
    text-align: left;
}

.result-item:hover {
        border-color: var(--gold);
    }

.result-item b {
        color: #fff;
    }

.result-item small {
        display: block;
        color: #94a3b8;
        margin-top: 4px;
    }

.scan-preview {
    margin-top: 18px;
}

.upload-box small {
    display: none;
}

/* SCAN COLLECTOR GUIDE V1 */

.scan-page .page-title{color:#fff!important;opacity:1!important}

.scan-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:26px}

.scan-eyebrow{display:inline-flex;align-items:center;padding:8px 13px;margin-bottom:14px;border-radius:999px;border:1px solid rgba(245,164,0,.35);background:rgba(245,164,0,.10);color:#ffd35b;font-size:13px;font-weight:900}

.scan-guide-grid{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:18px;margin:20px 0 30px}

.scan-guide-card{background:#111827;border:1px solid #334155;border-radius:22px;padding:22px;box-shadow:0 18px 45px rgba(0,0,0,.14)}

.scan-guide-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(245,164,0,.13);color:#ffcc00;font-weight:900;margin-bottom:14px}

.scan-guide-card h3{margin:0 0 10px;color:#fff;font-size:20px}

.scan-guide-card p,.scan-guide-card li{color:#cbd5e1;line-height:1.6;font-weight:650}

.scan-guide-card ol,.scan-tips ul{margin:0;padding-left:20px}

.grade-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

.grade-chip-grid span{display:grid;grid-template-columns:42px 54px 1fr;gap:8px;align-items:center;background:#0f172a;border:1px solid #253044;border-radius:12px;padding:9px}

.grade-chip-grid b,.rarity-mini-grid b{color:#ffcc00;font-weight:900}

.grade-chip-grid em{color:#fff;font-style:normal;font-size:12px;font-weight:900}

.grade-chip-grid small,.rarity-mini-grid small{color:#a9b6cf;font-size:12px;font-weight:750}

.rarity-mini-grid{display:grid;gap:8px}

.rarity-mini-grid span{display:grid;grid-template-columns:54px 1fr;align-items:center;gap:10px;background:#0f172a;border:1px solid #253044;border-radius:12px;padding:9px 11px}

.scan-panel-title{margin:0 0 14px;color:#fff;font-size:22px}

.scan-tips{margin-top:18px;padding:18px;border-radius:18px;background:#0f172a;border:1px solid #334155}

.scan-tips h3{margin:0 0 10px;color:#fff}

.scan-tips li{color:#cbd5e1;margin:7px 0;line-height:1.55}

.collector-guide-section{margin-top:30px;background:#111827;border:1px solid #334155;border-radius:24px;padding:24px;display:flex;justify-content:space-between;gap:18px;align-items:center}

.collector-guide-section h2{margin:0 0 8px;color:#fff}

.collector-guide-section p{margin:0;color:#a9b6cf;max-width:720px;line-height:1.6}

.collector-guide-panel{width:min(980px,calc(100% - 28px))!important;background:#f8fafc!important;color:#111827!important}

.collector-guide-content{padding:34px}

.collector-guide-head{border-bottom:1px solid #e2e8f0;padding-bottom:22px;margin-bottom:22px}

.collector-guide-head span{color:#b45309;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:12px}

.collector-guide-head h2{margin:8px 0;font-size:34px;color:#111827}

.collector-guide-head p{margin:0;color:#64748b;line-height:1.7;font-weight:700}

.guide-block{margin:26px 0}

.guide-block h3{color:#111827;margin:0 0 14px;font-size:24px}

.guide-grade-table{display:grid;gap:10px}

.guide-grade-row{display:grid;grid-template-columns:52px 72px 170px 1fr;gap:12px;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px}

.guide-grade-row b{color:#b45309;font-size:18px}

.guide-grade-row em{font-style:normal;color:#111827;font-weight:900}

.guide-grade-row strong{color:#111827}

.guide-grade-row span{color:#64748b;line-height:1.55;font-weight:650}

.guide-rarity-table,.guide-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

.guide-rarity-table div,.guide-info-grid div{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px}

.guide-rarity-table b,.guide-info-grid b{display:block;color:#b45309;font-size:18px;margin-bottom:5px}

.guide-rarity-table span,.guide-info-grid span{color:#64748b;font-weight:700;line-height:1.55}

/* Scan page order + clean line icons */

.scan-guide-under {
    margin-top: 30px !important;
}

.scan-guide-icon {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #e5e7eb !important;
}

.scan-guide-icon svg,
    .collector-guide-btn svg {
        width: 19px !important;
        height: 19px !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        fill: none !important;
    }

.collector-guide-btn {
    gap: 10px !important;
}
/* Gemini Reference Scan CSS */
.smart-scan-results {
    margin-top: 16px
}

.smart-scan-loading, .smart-scan-empty, .smart-scan-error, .smart-scan-warning, .smart-scan-denom {
    border: 1px solid #334155;
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    font-weight: 800
}

.smart-scan-error {
    color: #fecaca;
    border-color: #7f1d1d
}

.smart-scan-warning {
    border-color: #b45309;
    color: #fde68a;
    background: rgba(180,83,9,.12);
    margin-bottom: 12px
}

.smart-scan-denom {
    border-color: rgba(245,164,0,.42);
    margin-bottom: 12px
}

    .smart-scan-denom b {
        color: #f5a400
    }

    .smart-scan-denom small {
        color: #94a3b8
    }

.smart-scan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 12px
}

    .smart-scan-head h3 {
        margin: 0;
        color: #fff;
        font-size: 20px
    }

    .smart-scan-head span {
        color: #f5a400;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase
    }

.smart-scan-list {
    display: grid;
    gap: 14px
}

.smart-scan-card {
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 18px;
    padding: 14px
}

    .smart-scan-card.best {
        border-color: rgba(245,164,0,.65);
        box-shadow: 0 18px 45px rgba(245,164,0,.12)
    }

    .smart-scan-card.possible {
        border-color: #334155;
        opacity: .95
    }

.smart-scan-card-top {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 14px;
    align-items: center
}

.smart-scan-thumb {
    height: 66px;
    border-radius: 13px;
    background: #111827;
    border: 1px solid #334155;
    display: grid;
    place-items: center;
    overflow: hidden
}

    .smart-scan-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

.smart-scan-main h4 {
    margin: 4px 0 2px;
    color: #fff;
    font-size: 19px
}

.smart-scan-main p, .smart-scan-main small {
    display: block;
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700
}

.smart-scan-rank {
    color: #f5a400;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em
}

.smart-scan-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148,163,184,.18)
}

    .smart-scan-section h5 {
        margin: 0 0 10px;
        color: #e5e7eb;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .05em
    }

.smart-scan-variant {
    display: grid;
    grid-template-columns: 1fr minmax(170px,.8fr);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 13px;
    padding: 10px;
    margin-top: 8px;
    background: rgba(2,6,23,.35)
}

    .smart-scan-variant b {
        display: block;
        color: #fff;
        font-size: 13px;
        line-height: 1.35
    }

    .smart-scan-variant small {
        display: block;
        color: #94a3b8;
        font-weight: 800;
        margin-top: 3px
    }

.smart-scan-prices {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px
}

    .smart-scan-prices span {
        display: grid;
        gap: 2px;
        background: #111827;
        border-radius: 9px;
        padding: 7px 6px;
        color: #fff;
        text-align: center;
        font-size: 11px
    }

        .smart-scan-prices span b {
            color: #f5a400;
            font-size: 10px
        }

.smart-scan-muted {
    color: #94a3b8;
    font-weight: 800
}

.smart-scan-low-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148,163,184,.18)
}

@media(max-width:650px) {
    .smart-scan-card-top, .smart-scan-variant {
        grid-template-columns: 1fr
    }

    .smart-scan-thumb {
        height: 120px
    }

    .smart-scan-card-top .small-btn {
        width: 100%;
        justify-content: center
    }

    .smart-scan-prices {
        grid-template-columns: 1fr
    }
}


/* SMART SCAN WIZARD V4 */
.wizard-subtitle {
    color: #cbd5e1;
    font-weight: 700;
    line-height: 1.55;
    margin: -4px 0 16px;
}

.wizard-denom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 16px;
}

.wizard-denom-btn {
    height: 44px;
    border-radius: 13px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
    font-weight: 900;
    cursor: pointer;
}

.wizard-denom-btn.active {
    background: #f5a400;
    border-color: #f5a400;
    color: #111827;
}

.wizard-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.wizard-field span {
    color: #94a3b8;
    font-weight: 900;
    font-size: 13px;
}

.wizard-upload-grid,
.wizard-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wizard-upload {
    min-height: 220px !important;
}

.wizard-preview-grid {
    margin-top: 12px;
}

.wizard-preview-grid > div > b {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 6px;
}

@media (max-width: 760px) {
    .wizard-denom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-upload-grid,
    .wizard-preview-grid {
        grid-template-columns: 1fr;
    }
}
