/* ── Reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.lt-step {
    padding: 0 0 48px;
}

.lt-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.lt-center {
    text-align: center;
    padding-top: 80px;
}

/* ── Page hero (step 1) ──────────────────────────────────────────────── */
.lt-hero {
    background: linear-gradient(135deg, #1D3557 0%, #16293f 100%);
    padding: 40px 20px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.lt-hero::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.lt-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.lt-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 3px 12px 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a8c4e0;
    margin-bottom: 14px;
}

.lt-hero-eyebrow span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

.lt-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lt-hero h1 em {
    font-style: normal;
    color: #ef8080;
}

.lt-hero-sub {
    color: #8fb3d4;
    font-size: 0.9rem;
    font-weight: 400;
    max-width: 580px;
    line-height: 1.6;
    margin: 0;
}

/* ── Section heading (step 2) ────────────────────────────────────────── */
.lt-section-header {
    padding: 28px 0 4px;
}

.lt-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1D3557;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.lt-subheading {
    font-size: 1rem;
    color: #1D3557;
    font-weight: 700;
    margin: 0;
}

.lt-subtext {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 16px;
    font-weight: 400;
    line-height: 1.55;
}

.lt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #475569;
    font-weight: 700;
    margin: 16px 0 6px;
}

.lt-hint {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 400;
    margin: 4px 0 8px;
    line-height: 1.5;
}

.lt-hint code {
    background: #e8edf5;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.79rem;
    color: #1D3557;
    font-weight: 600;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.lt-char-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: auto;
}

/* ── Card / panel ────────────────────────────────────────────────────── */
.lt-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(29,53,87,.06), 0 0 0 0 transparent;
    transition: box-shadow 0.15s;
}

.lt-card:focus-within {
    box-shadow: 0 2px 8px rgba(29,53,87,.1);
}

/* ── Form elements ───────────────────────────────────────────────────── */
.lt-input,
.lt-textarea {
    width: 100%;
    border: 1.5px solid #dde3ed;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1D3557;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lt-input:focus,
.lt-textarea:focus {
    outline: none;
    border-color: #1D3557;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,53,87,.08);
}

.lt-textarea {
    resize: vertical;
}

.lt-desc-textarea {
    min-height: 110px;
}

.lt-cert-count {
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1D3557;
}

.lt-footer-note {
    margin-top: 8px;
    font-style: italic;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ── Variable chips ──────────────────────────────────────────────────── */
.lt-vars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 14px;
}

.lt-hint-vars {
    margin-bottom: 4px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lt-hint-vars + .lt-vars-row code,
.lt-hint code {
    /* override below with .lt-var-chip */
}

.lt-var-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #e8f0ff 0%, #eef2ff 100%);
    border: 1px solid #c7d4f5;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #3357aa;
    font-family: 'SFMono-Regular', Consolas, monospace;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s, border-color 0.1s;
}

.lt-var-chip:hover {
    background: linear-gradient(135deg, #d8e4ff 0%, #e4eaff 100%);
    border-color: #a8c0f0;
}

/* ── Template section header ─────────────────────────────────────────── */
.lt-template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* ── Collapsible cards ───────────────────────────────────────────────── */
.lt-collapsible { padding: 0; }

.lt-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    cursor: pointer;
    user-select: none;
    border-radius: 12px;
    transition: background 0.1s;
}

.lt-collapse-header:hover { background: #f8fafc; }

.lt-collapsible.lt-open .lt-collapse-header {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

.lt-collapse-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lt-collapse-title .lt-subheading { margin: 0; }

.lt-collapse-hint {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 500;
}

.lt-chevron {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s;
    line-height: 1;
}

.lt-collapsible.lt-open .lt-chevron { transform: rotate(90deg); }

.lt-collapse-body { padding: 16px 22px 18px; }

.lt-btn-sm { font-size: 0.78rem; padding: 4px 12px; }

.lt-btn-full { display: block; width: 100%; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.lt-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #83000A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(131,0,10,.25);
    letter-spacing: 0.01em;
}

.lt-btn-primary:hover {
    background: #6b0008;
    box-shadow: 0 4px 14px rgba(131,0,10,.35);
    transform: translateY(-1px);
}

.lt-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(131,0,10,.2);
}

.lt-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #1D3557;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lt-btn-ghost:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ── Spinner ─────────────────────────────────────────────────────────── */
.lt-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.lt-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #e2e8f0;
    border-top-color: #83000A;
    border-radius: 50%;
    animation: lt-spin 0.75s linear infinite;
    margin: 0 auto 20px;
}

@keyframes lt-spin {
    to { transform: rotate(360deg); }
}

.lt-loading-text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ── Error ───────────────────────────────────────────────────────────── */
.lt-error {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    margin: 12px 0;
}

/* ── Review meta line ────────────────────────────────────────────────── */
.lt-review-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
    padding-top: 4px;
}

/* ── Individual listing card ─────────────────────────────────────────── */
.lt-listing-card {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(29,53,87,.07);
    transition: box-shadow 0.15s;
}

.lt-listing-card:hover {
    box-shadow: 0 4px 16px rgba(29,53,87,.11);
}

.lt-listing-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(160deg, #1D3557 0%, #16293f 100%);
    padding: 14px 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.lt-img-main,
.lt-img-back {
    width: 112px;
    height: auto;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,.12);
    object-fit: contain;
    background: rgba(0,0,0,.15);
    display: block;
}

.lt-img-back {
    opacity: 0.85;
}

.lt-listing-fields {
    flex: 1;
    min-width: 0;
    padding: 18px 20px 16px;
}

/* ── Grade / cert meta ───────────────────────────────────────────────── */
.lt-field-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lt-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: #475569;
}

.lt-cert-badge strong {
    color: #1D3557;
    font-weight: 700;
    font-size: 0.85rem;
}

.lt-grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.lt-grade-badge--10 {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fef3c7;
    border: 1px solid #a16207;
    box-shadow: 0 1px 3px rgba(120,53,15,.3);
}

.lt-grade-badge--9 {
    background: linear-gradient(135deg, #1D3557, #1e40af);
    color: #dbeafe;
    border: 1px solid #1d4ed8;
}

.lt-grade-badge--other {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.lt-grade-badge .lt-grade-psa {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.72rem;
}

/* legacy selectors no longer used */

/* ── Format row ──────────────────────────────────────────────────────── */
.lt-format-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.lt-format-opt {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.lt-format-opt input[type="radio"] {
    display: none;
}

.lt-format-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.lt-format-opt input[type="radio"]:checked + .lt-format-label {
    background: #1D3557;
    border-color: #1D3557;
    color: #fff;
}

.lt-duration-select {
    width: auto;
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
}

/* ── Price row ───────────────────────────────────────────────────────── */
.lt-price-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.lt-price-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lt-price-label {
    margin: 0;
    font-size: 0.72rem;
}

.lt-price-field {
    width: 130px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1D3557;
    padding: 8px 12px;
}

.lt-price-missing {
    border-color: #f87171 !important;
    background: #fff5f5 !important;
}

/* ── Comps links ─────────────────────────────────────────────────────── */
.lt-comps-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    align-self: flex-end;
    padding-bottom: 1px;
}

.lt-comps-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1D3557;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 11px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
}

.lt-comps-link:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ── Loading cert placeholder ────────────────────────────────────────── */
.lt-listing-card--loading {
    grid-template-columns: 64px 1fr;
    align-items: center;
    background: #fafbfc;
}

.lt-loading-pulse {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    background: #e2e8f0;
    flex-shrink: 0;
    animation: lt-pulse 1.4s ease-in-out infinite;
    margin: 16px;
}

@keyframes lt-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.lt-loading-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
}

.lt-loading-cert {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1D3557;
}

.lt-loading-msg {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ── Failed cert placeholder ─────────────────────────────────────────── */
.lt-listing-card--failed {
    grid-template-columns: 56px 1fr;
    align-items: center;
    background: #fafafa;
    border-color: #e5e7eb;
    opacity: 0.8;
}

.lt-failed-icon {
    font-size: 1.6rem;
    text-align: center;
    padding: 16px;
}

.lt-failed-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 16px 16px 0;
}

.lt-failed-cert {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1D3557;
}

.lt-failed-msg {
    font-size: 0.82rem;
    color: #94a3b8;
}

.lt-btn-retry {
    margin-top: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    align-self: flex-start;
}

/* ── Bottom bar (review step) ────────────────────────────────────────── */
.lt-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 0;
    border-top: 1.5px solid #e2e8f0;
    margin-top: 8px;
}

/* ── Step 3: upload instructions ─────────────────────────────────────── */
.lt-instructions {
    border-left: 4px solid #83000A;
}

.lt-steps-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lt-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.55;
}

.lt-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #1D3557;
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.lt-note-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #78350f;
    margin-top: 14px;
    line-height: 1.55;
}

.lt-note-box strong { font-weight: 700; }

.lt-mt {
    margin-top: 12px;
}

.lt-done-actions {
    margin-top: 28px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .lt-hero h1 { font-size: 1.5rem; }

    .lt-listing-card {
        grid-template-columns: 1fr;
    }

    .lt-listing-images {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px;
        min-height: unset;
    }

    .lt-img-main,
    .lt-img-back {
        width: 72px;
    }

    .lt-bottom-bar {
        flex-direction: column;
        gap: 12px;
    }

    .lt-btn-primary,
    .lt-btn-ghost {
        width: 100%;
        text-align: center;
    }

    .lt-comps-links {
        margin-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
}
