/* SellMidas 2.2 — full feature UI */
.sellmidas-wrap {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px 48px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}
.sellmidas-wrap *, .sellmidas-wrap *::before, .sellmidas-wrap *::after { box-sizing: border-box; }

.sellmidas-brandbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; padding: 14px 18px; border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(212, 175, 55, 0.35); color: #e2e8f0;
}
.sellmidas-logo { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.sellmidas-logo span {
    background: linear-gradient(135deg, #fff099, #d4af37 50%, #aa7c11);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sellmidas-tagline { font-size: 0.85rem; color: #94a3b8; }
.sellmidas-tagline a { color: #f5d76e; text-decoration: none; font-weight: 600; }

/* Platform chips */
.sellmidas-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.sellmidas-chip {
    border: 1px solid #e2e8f0; background: #fff; color: #334155;
    border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: 0.15s;
}
.sellmidas-chip em {
    font-style: normal; margin-left: 4px; color: #b45309; font-weight: 800;
}
.sellmidas-chip:hover { border-color: #d4af37; }
.sellmidas-chip.is-active {
    background: #0f172a; color: #fff; border-color: #0f172a;
}
.sellmidas-chip.is-active em { color: #f5d76e; }

/* Filters */
.sellmidas-filter {
    margin: 0 0 18px; padding: 14px 16px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 12px;
}
.sellmidas-filter-row {
    display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr; gap: 12px;
}
.sellmidas-filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sellmidas-filter-field label {
    font-size: 11px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.sellmidas-filter-field select,
.sellmidas-filter-field input[type="search"] {
    width: 100%; padding: 9px 12px; border-radius: 8px;
    border: 1px solid #cbd5e1; background: #fff; font-size: 14px; color: #0f172a;
}

.sellmidas-price-range { margin-top: 14px; }
.sellmidas-price-range-labels {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #475569; margin-bottom: 8px; gap: 10px; flex-wrap: wrap;
}
.sellmidas-reset-filters {
    border: 0; background: transparent; color: #b45309; font-weight: 700;
    cursor: pointer; font-size: 12px; text-decoration: underline;
}
.sellmidas-range-inputs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sellmidas-range-inputs input[type="range"] { width: 100%; accent-color: #d4af37; }
.sellmidas-count { margin: 12px 0 0; font-size: 13px; color: #64748b; }
.sellmidas-count strong { color: #0f172a; }

/* Cards grid */
.sellmidas-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; align-items: stretch; transition: opacity 0.15s;
}
.sellmidas-item {
    display: flex; flex-direction: column; height: 100%; min-height: 300px;
    border: 1px solid #e2e8f0; padding: 16px; border-radius: 14px; background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sellmidas-item:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.sellmidas-item-top {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 48px;
}
.sellmidas-icon { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.sellmidas-item-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sellmidas-platform {
    font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; color: #b45309;
}
.sellmidas-name {
    font-size: 15px; font-weight: 700; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Badges */
.sellmidas-badge {
    display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    flex-shrink: 0;
}
.sellmidas-badge--demo { background: #e0e7ff; color: #3730a3; }
.sellmidas-badge--new { background: #dcfce7; color: #166534; }
.sellmidas-badge--promo { background: #fef3c7; color: #92400e; }

.sellmidas-meta {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
    gap: 8px; flex: 1 1 auto;
}
.sellmidas-meta li {
    display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center;
    font-size: 13px; min-height: 22px;
}
.sellmidas-meta .k { color: #94a3b8; font-weight: 600; }
.sellmidas-meta .v {
    color: #334155; font-weight: 500; text-align: right;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sellmidas-item-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; min-height: 48px;
}
.sellmidas-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sellmidas-price { font-size: 16px; font-weight: 800; color: #b45309; white-space: nowrap; }

.sellmidas-buy-btn,
.sellmidas-preview-btn,
.sellmidas-load-more-btn,
.sellmidas-back-btn,
#confirm-buy-btn {
    border: none; padding: 9px 14px; cursor: pointer; border-radius: 999px;
    font-size: 12px; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.12s, filter 0.12s, opacity 0.12s; white-space: nowrap;
}
.sellmidas-buy-btn, .sellmidas-load-more-btn, .sellmidas-back-btn, #confirm-buy-btn {
    background: linear-gradient(135deg, #f5d76e 0%, #d4af37 50%, #b8860b 100%);
    color: #0f172a; min-width: 96px;
}
.sellmidas-preview-btn {
    background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; min-width: 80px;
}
.sellmidas-buy-btn:hover, .sellmidas-load-more-btn:hover, .sellmidas-back-btn:hover, #confirm-buy-btn:hover {
    filter: brightness(1.05); transform: translateY(-1px);
}
.sellmidas-preview-btn:hover { background: #e2e8f0; }
.sellmidas-buy-btn:disabled, .sellmidas-load-more-btn:disabled, #confirm-buy-btn:disabled {
    opacity: 0.65; cursor: wait; transform: none;
}
.sellmidas-back-btn--outline {
    background: transparent; border: 1px solid #d4af37; color: #0f172a; margin-left: 8px;
}

.sellmidas-empty {
    grid-column: 1 / -1; text-align: center; padding: 40px 24px; color: #64748b;
    background: #f8fafc; border-radius: 12px;
}

.sellmidas-load-more { text-align: center; margin: 28px 0 8px; }
.sellmidas-load-more-btn { min-width: 200px; padding: 12px 24px; }
.sellmidas-load-hint { margin: 10px 0 8px; font-size: 12px; color: #94a3b8; }
.sellmidas-scroll-sentinel { height: 1px; width: 100%; }

/* Honeypot */
.sellmidas-hp {
    position: absolute !important; left: -10000px !important; top: auto !important;
    width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* Modals shared */
.sellmidas-buy-form,
.sellmidas-preview-modal {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px); z-index: 100000; overflow-y: auto; padding: 20px;
}
.form-content,
.sellmidas-preview-dialog {
    background: #fff; margin: 6vh auto 0; padding: 24px 22px 20px; width: 100%;
    max-width: 440px; border-radius: 16px; position: relative; text-align: left;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.sellmidas-preview-dialog { max-width: 480px; }
.form-content h2, .sellmidas-preview-dialog h2 {
    margin: 0; font-size: 1.2rem; color: #0f172a;
}
.sellmidas-form-note { font-size: 12px; color: #64748b; margin: 0 0 14px; }
.sellmidas-form-note a { color: #b45309; }
.form-close {
    position: absolute; top: 8px; right: 12px; font-size: 28px; line-height: 1;
    cursor: pointer; background: none; border: none; color: #94a3b8;
}
.form-content label {
    display: block; margin: 10px 0 5px; font-size: 13px; font-weight: 600; color: #475569;
}
.form-content input, .form-content select {
    width: 100%; padding: 10px 12px; margin-bottom: 8px;
    border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px;
}
#paypal-instructions {
    margin: 12px 0; font-size: 13px; background: #f8fafc; padding: 12px; border-radius: 10px;
}
#paypal-instructions h3 { color: #b45309; margin: 0 0 8px; font-size: 15px; }
#confirm-buy-btn { width: 100%; margin-top: 12px; padding: 12px; }

.sellmidas-preview-head {
    display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 24px;
}
.sm-preview-platform {
    margin: 0; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; color: #b45309;
}
.sellmidas-preview-meta { margin-bottom: 14px !important; }
.sellmidas-preview-notes {
    background: #f8fafc; border-radius: 10px; padding: 12px; margin-bottom: 14px;
}
.sellmidas-preview-notes h3 {
    margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b;
}
.sellmidas-preview-notes p { margin: 0; font-size: 14px; color: #334155; line-height: 1.45; }
.sellmidas-preview-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 12px; border-top: 1px solid #f1f5f9;
}

.sellmidas-success, .sellmidas-cancel {
    max-width: 560px; margin: 60px auto; text-align: center; padding: 32px 24px;
    border-radius: 16px; background: #fff; border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08); font-family: system-ui, sans-serif;
}

@media (max-width: 1024px) {
    .sellmidas-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sellmidas-filter-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .sellmidas-list { grid-template-columns: 1fr; }
    .sellmidas-filter-row { grid-template-columns: 1fr; }
    .sellmidas-item { min-height: 0; }
    .sellmidas-item-actions { width: 100%; }
    .sellmidas-item-footer { flex-wrap: wrap; }
    .sellmidas-buy-btn, .sellmidas-preview-btn { flex: 1; }
}

/* Social proof */
.sellmidas-social-proof {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    margin-bottom: 16px;
    align-items: stretch;
}
.sellmidas-sp-stat {
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(212,175,55,.35);
}
.sellmidas-sp-stat strong {
    display: block;
    font-size: 1.6rem;
    color: #f5d76e;
}
.sellmidas-sp-stat span {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sellmidas-sp-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.sellmidas-sp-quotes blockquote {
    margin: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}
.sellmidas-sp-quotes cite {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-weight: 700;
    color: #0f172a;
    font-size: 11px;
}

/* Skeleton */
.sellmidas-skeleton {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.sellmidas-skel-card {
    min-height: 280px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    background: #fff;
}
.sk {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: smSkel 1.2s ease infinite;
    border-radius: 6px;
}
.sk-line { height: 14px; margin-bottom: 12px; }
.sk-line.short { width: 55%; }
.sk-btn { height: 36px; width: 40%; margin-top: 40px; border-radius: 999px; }
@keyframes smSkel {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.sellmidas-terms {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    margin: 12px 0 8px !important;
}
.sellmidas-terms input { width: auto !important; margin: 2px 0 0 !important; }
.sellmidas-terms a { color: #b45309; }
.sellmidas-guarantee {
    font-size: 11px;
    color: #94a3b8;
    margin: 10px 0 0;
    line-height: 1.4;
}
.sellmidas-guarantee a { color: #b45309; }
.sellmidas-reserve-note {
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 10px;
}
.sellmidas-powered {
    text-align: center;
    margin: 28px 0 0;
    font-size: 12px;
    color: #94a3b8;
}
.sellmidas-powered a {
    color: #b45309;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .sellmidas-social-proof { grid-template-columns: 1fr; }
    .sellmidas-sp-quotes { grid-template-columns: 1fr; }
    .sellmidas-skeleton { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .sellmidas-skeleton { grid-template-columns: repeat(2, 1fr); }
}
