/* Marketing swing scanner — matches RocketStock marketing site (light peach theme) */

body.rs-marketing.rs-mkt-scanner {
    margin-bottom: 0;
    background: #fff;
    color: #1A1A1A;
}

/* Hero — align with stock directory / integrations */
.mkt-scan-hero {
    position: relative;
    background: var(--surface-soft, #FFD9BF);
    padding: 2.5rem 0 3rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 179, 128, 0.35);
}

.mkt-scan-hero .rs-hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 102, 0, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 179, 128, 0.35) 0%, transparent 40%);
}

.mkt-scan-hero .container {
    position: relative;
    z-index: 1;
}

.mkt-scan-hero-compact {
    padding: 2rem 0 1.75rem;
}

.mkt-scan-hero .breadcrumb-item a {
    color: #697E70;
    text-decoration: none;
    font-weight: 500;
}

.mkt-scan-hero .breadcrumb-item a:hover {
    color: #FF6600;
}

.mkt-scan-hero .breadcrumb-item.active {
    color: #1A1A1A;
    font-weight: 600;
}

.mkt-scan-kicker,
.mkt-scan-hero .rs-hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--action-primary, #FF6600);
    margin-bottom: 0.75rem;
}

.mkt-scan-title,
.mkt-scan-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1A1A1A;
    margin-bottom: 1rem;
}

.mkt-scan-title span,
.mkt-scan-hero h1 .text-orange {
    color: #FF6600;
}

.mkt-scan-lead,
.mkt-scan-hero .rs-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #697E70;
    max-width: 40rem;
    margin-bottom: 0.75rem;
}

.mkt-scan-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mkt-quota-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #FFF4EE;
    color: #FF6600;
    border: 1px solid rgba(255, 102, 0, 0.35);
}

.mkt-quota-badge.warn {
    background: #FEF9C3;
    color: #A16207;
    border-color: rgba(234, 179, 8, 0.45);
}

.mkt-quota-badge.empty {
    background: #FEE2E2;
    color: #DC2626;
    border-color: rgba(220, 38, 38, 0.35);
}

.mkt-scan-body {
    padding: 2.5rem 0 3rem;
    background: #fff;
}

.mkt-stat {
    background: #fff;
    border: 1px solid rgba(255, 179, 128, 0.4);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.04);
    height: 100%;
}

.mkt-stat .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A1A1A;
}

.mkt-stat .lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #697E70;
}

.mkt-stat.strong .num { color: #16A34A; }
.mkt-stat.moderate .num { color: #2563EB; }
.mkt-stat.watch .num { color: #D97706; }

.mkt-unlock-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #FFF4EE;
    border: 1px solid rgba(255, 102, 0, 0.35);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
}

.mkt-scan-card {
    background: #fff;
    border: 1px solid rgba(255, 179, 128, 0.4);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.mkt-scan-card:hover {
    border-color: rgba(255, 102, 0, 0.45);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.1);
}

.mkt-scan-card.strong { border-left: 4px solid #16A34A; }
.mkt-scan-card.moderate { border-left: 4px solid #2563EB; }
.mkt-scan-card.watch { border-left: 4px solid #D97706; }

.mkt-scan-card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.mkt-scan-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.mkt-scan-meta {
    flex: 1;
    min-width: 0;
}

.mkt-scan-symbol {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: #1A1A1A;
}

.mkt-scan-name {
    font-size: 0.8rem;
    color: #697E70;
    margin: 0;
}

.mkt-scan-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FF6600;
    margin: 0.25rem 0 0;
}

.mkt-scan-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mkt-signal-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.mkt-signal-pill.strong { background: #DCFCE7; color: #16A34A; }
.mkt-signal-pill.moderate { background: #DBEAFE; color: #2563EB; }
.mkt-signal-pill.watch { background: #FEF3C7; color: #D97706; }

.mkt-score-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #F9FAFB;
    color: #697E70;
    border: 1px solid rgba(255, 179, 128, 0.35);
}

.mkt-scan-progress {
    height: 4px;
    background: rgba(255, 179, 128, 0.25);
    border-radius: 4px;
    margin: 0.75rem 0;
    overflow: hidden;
}

.mkt-scan-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #FF6600, #FFB380);
    border-radius: 4px;
}

.mkt-scan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.mkt-scan-summary {
    line-height: 1.45;
    word-break: break-word;
}

.mkt-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #F9FAFB;
    color: #697E70;
    border: 1px solid rgba(255, 179, 128, 0.3);
}

.mkt-tag.ok {
    background: #DCFCE7;
    color: #16A34A;
    border-color: rgba(22, 163, 74, 0.25);
}

.mkt-bt-toggle {
    background: #FFF4EE !important;
    color: #FF6600 !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 102, 0, 0.2) !important;
}

.mkt-bt-toggle:not(.collapsed) {
    background: rgba(255, 102, 0, 0.12) !important;
}

.mkt-bt-accordion .accordion-button::after {
    filter: none;
}

.mkt-preview-lock {
    background: #FFF4EE;
    border: 1px dashed rgba(255, 102, 0, 0.45);
    border-radius: 14px;
    color: #697E70;
}

.mkt-settings-panel {
    background: #fff;
    border: 1px solid rgba(255, 179, 128, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 900px;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.04);
}

.mkt-settings-panel .form-label {
    color: #697E70;
}

.mkt-settings-panel .form-control,
.mkt-settings-panel .form-select {
    background: #fff;
    border-color: rgba(255, 179, 128, 0.45);
    color: #1A1A1A;
}

.mkt-settings-panel .form-control:focus,
.mkt-settings-panel .form-select:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.12);
}

.mkt-scan-hero-compact .text-white-50 {
    color: #697E70 !important;
}

/* Backtest results injected from tenant partial — keep readable on light bg */
.rs-mkt-scanner .mkt-sbt,
.rs-mkt-scanner .sbt-wrap {
    background: #fff;
    border: 1px solid rgba(255, 179, 128, 0.35);
    border-radius: 14px;
    overflow: hidden;
}

.rs-mkt-scanner .sbt-hero {
    background: #FFF4EE;
    border-bottom: 1px solid rgba(255, 179, 128, 0.35);
}

.rs-mkt-scanner .sbt-stat,
.rs-mkt-scanner .sbt-card {
    background: #F9FAFB;
    border-color: rgba(255, 179, 128, 0.25);
}
