/* RedMarket Enterprise Experience v1.7 — visual aligned to the approved mockup */
:root{--rm-red:#f33345;--rm-red-dark:#c9182b;--rm-ink:#101217;--rm-nav:#0b0e12;--rm-navy:#111820;--rm-line:#e5e7eb;--rm-soft:#f5f6f8;--rm-text:#17191f;--rm-muted:#68707d;--rm-green:#12a36b;--rm-shadow:0 16px 48px rgba(18,24,34,.08)}
body.public-body,body.account-body,body.seller-body{background:var(--rm-soft);color:var(--rm-text)}
body.public-body .topbar,body.public-body .market-header,body.account-body .market-header,body.seller-body .market-header{background:#0b0f14!important;border-color:#242b34!important}.market-brand-copy b{letter-spacing:-.02em}.market-brand-symbol{background:linear-gradient(135deg,#ff4456,#d81229)!important;box-shadow:0 8px 22px rgba(243,51,69,.25)}
.market-search{position:relative}.market-search input{background:#fff!important;color:#15171b!important;border:1px solid #d9dde3!important;border-radius:8px!important}.market-search button{background:var(--rm-red)!important;border-radius:7px!important}.rm-search-suggest{position:absolute;z-index:80;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid #e2e5e9;border-radius:12px;box-shadow:0 24px 60px rgba(8,12,18,.18);overflow:hidden;padding:7px}.rm-search-suggest a{display:flex!important;align-items:center;gap:10px;color:#16181d!important;padding:10px 12px;border-radius:8px;text-decoration:none}.rm-search-suggest a:hover{background:#f5f6f8}.rm-suggest-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#f0f2f5;color:var(--rm-red)}.rm-search-suggest b{display:block;font-size:13px}.rm-search-suggest small{display:block;color:#7a828d;font-size:11px;margin-top:2px}
.rm-hero-v17{background:radial-gradient(circle at 77% 22%,rgba(243,51,69,.22),transparent 30%),linear-gradient(118deg,#080b10,#101620 64%,#0b0e13);color:#fff;border-bottom:1px solid #222933}.rm-hero-grid{min-height:430px;display:grid;grid-template-columns:1.13fr .87fr;gap:44px;align-items:center;padding-top:46px;padding-bottom:38px}.rm-overline{font-size:11px;font-weight:800;letter-spacing:.18em;color:#aeb7c4}.rm-hero-copy h1{font-size:clamp(42px,5.4vw,72px);line-height:.98;letter-spacing:-.045em;margin:15px 0 20px;max-width:780px}.rm-hero-copy h1 em{font-style:normal;color:var(--rm-red)}.rm-hero-copy>p{font-size:16px;line-height:1.7;color:#c7cdd6;max-width:630px}.rm-hero-actions{display:flex;gap:10px;margin:26px 0 30px}.hero-primary{background:linear-gradient(180deg,#ff4353,#e42338)!important;box-shadow:0 10px 28px rgba(243,51,69,.28)}.hero-ghost{background:#151b23!important;border:1px solid #3a424d!important;color:#fff!important}.rm-hero-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding-top:25px;border-top:1px solid rgba(255,255,255,.09)}.rm-hero-trust>span{display:grid;grid-template-columns:28px 1fr;column-gap:8px}.rm-hero-trust svg{grid-row:1/3;color:#ff5260}.rm-hero-trust b{font-size:12px}.rm-hero-trust small{font-size:10px;color:#9ca6b3;margin-top:3px}.rm-hero-art{height:330px;position:relative;display:grid;place-items:center}.rm-art-orb{position:absolute;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle at 45% 42%,rgba(255,60,80,.4),rgba(130,15,40,.18) 35%,transparent 68%);filter:blur(2px)}.rm-art-device{position:relative;width:min(440px,92%);padding:20px;border:1px solid #313946;background:linear-gradient(160deg,rgba(27,34,44,.94),rgba(12,16,22,.98));border-radius:20px;box-shadow:0 28px 70px rgba(0,0,0,.38);transform:perspective(900px) rotateY(-5deg)}.rm-art-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid #2c3440;padding-bottom:15px}.rm-art-head .brand-mark{width:34px;height:34px;display:grid;place-items:center;background:var(--rm-red);border-radius:8px;font-weight:900}.rm-art-head i{margin-left:auto;width:8px;height:8px;background:#1dd181;border-radius:50%;box-shadow:0 0 0 5px rgba(29,209,129,.12)}.rm-art-product{display:flex;gap:16px;align-items:center;padding:24px 0}.rm-art-cover{width:76px;height:76px;border-radius:15px;background:linear-gradient(135deg,#ff4b5d,#4b1621);display:grid;place-items:center;font-size:26px;font-weight:900}.rm-art-product strong,.rm-art-product small,.rm-art-product em{display:block}.rm-art-product small{color:#9fa8b5;margin-top:5px}.rm-art-product em{font-style:normal;color:#5de0a5;margin-top:9px;font-size:12px}.rm-art-progress{height:7px;border-radius:99px;background:#262e39;overflow:hidden}.rm-art-progress span{display:block;width:72%;height:100%;background:linear-gradient(90deg,var(--rm-red),#ff7a88)}.rm-art-pills{display:flex;gap:8px;margin-top:18px}.rm-art-pills b{font-size:10px;padding:7px 9px;border-radius:99px;background:#1c242e;color:#c8d0da}.rm-art-float{position:absolute;background:#fff;color:#181b20;padding:11px 13px;border-radius:11px;font-size:11px;font-weight:800;box-shadow:0 14px 35px rgba(0,0,0,.24)}.rm-art-float.f1{top:20px;right:4px}.rm-art-float.f2{bottom:18px;left:12px}
.rm-category-strip{background:#fff;border-bottom:1px solid #e5e7eb}.rm-category-row{display:grid;grid-template-columns:repeat(9,1fr);gap:10px;padding-top:18px;padding-bottom:18px}.rm-category-row>a{min-height:92px;border-radius:9px;background:linear-gradient(180deg,#151b22,#0e1319);color:#fff!important;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;box-shadow:0 4px 14px rgba(7,10,14,.12);transition:.18s}.rm-category-row>a:hover{transform:translateY(-2px);border-color:#ff4353}.rm-category-row svg{width:22px;color:#ff5a67}.rm-category-row b{font-size:12px}.rm-category-row small{font-size:9px;color:#8994a2}
.rm-market-content{padding-top:28px;padding-bottom:30px}.rm-section-v17{margin:0 0 34px}.rm-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:15px}.rm-section-head h2{margin:0;font-size:25px;letter-spacing:-.025em}.rm-section-head p{margin:5px 0 0;color:var(--rm-muted);font-size:13px}.rm-section-head>div>nav{display:flex;gap:18px;margin-top:13px}.rm-section-head>div>nav a{font-size:12px;color:#6e7580;border-bottom:2px solid transparent;padding-bottom:7px}.rm-section-head>div>nav a.active{color:#13161b;border-color:var(--rm-red);font-weight:800}.rm-section-head>a{font-size:12px;color:var(--rm-red);font-weight:800}.rm-product-grid-v17{gap:14px}.product-card-pro{background:#fff!important;border:1px solid #e1e4e8!important;border-radius:10px!important;box-shadow:0 4px 16px rgba(19,25,34,.04)!important;overflow:hidden;transition:.18s}.product-card-pro:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(20,26,34,.10)!important;border-color:#d7dbe0!important}.product-card-pro .product-info{color:#17191e}.product-card-pro h3{color:#17191e!important;font-size:13px!important;line-height:1.35}.product-card-pro .price{color:#e82338!important;font-size:18px}.product-card-pro .product-thumb{background:#eef0f3!important;aspect-ratio:16/10}.product-card-pro .product-category,.product-card-pro .product-micro,.product-card-pro .card-meta{color:#69717c!important}.flag{box-shadow:none!important}.flag.red{background:#f33043!important;color:#fff!important}.flag.success{background:#e6f8f0!important;color:#087b52!important}.verified-flag{background:#ebf4ff!important;color:#1e66b5!important}.rm-promo-band{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-bottom:34px}.rm-promo-band>a{min-height:190px;border-radius:14px;padding:27px;background:#111722 center/cover no-repeat;color:#fff;text-decoration:none;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--rm-shadow)}.rm-promo-band span{font-size:10px;letter-spacing:.16em;color:#ff6876;font-weight:900}.rm-promo-band h3{font-size:26px;margin:6px 0}.rm-promo-band p{color:#c0c8d3;max-width:620px}.rm-promo-band b{margin-top:9px;color:#fff}.rm-confidence-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:36px 0}.rm-confidence-grid article{background:#fff;border:1px solid #e1e4e8;border-radius:12px;padding:20px;box-shadow:0 5px 18px rgba(20,26,34,.04)}.rm-confidence-grid article>span{width:40px;height:40px;border-radius:10px;background:#fff0f2;color:var(--rm-red);display:grid;place-items:center}.rm-confidence-grid h3{margin:14px 0 7px;font-size:15px}.rm-confidence-grid p{margin:0;color:#6d7580;font-size:12px;line-height:1.55}.rm-community-cta{margin:38px 0 12px;padding:32px 34px;background:linear-gradient(110deg,#0d1117,#161e28);color:#fff;border-radius:15px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 18px 50px rgba(14,18,24,.16)}.rm-community-cta span{color:#ff5665;font-size:10px;letter-spacing:.18em;font-weight:900}.rm-community-cta h2{font-size:30px;margin:6px 0}.rm-community-cta p{color:#aab4c1}
/* Product detail */body.public-body .product-page-pro{color:#17191e}.product-hero-pro,.content-card-pro,.seller-profile-card,.safety-card{background:#fff!important;border-color:#e0e3e8!important;box-shadow:0 6px 22px rgba(15,20,28,.05)!important}.buy-panel-pro h1,.content-card-pro h2,.seller-profile-card h3{color:#17191e!important}.product-lead,.product-description-pro,.content-card-pro p,.seller-info-pro small,.micro-trust{color:#68707c!important}.buy-panel-pro .input,.question-form-pro .textarea{background:#fff!important;color:#17191e!important;border-color:#d9dde3!important}.seller-card-pro{background:#f7f8fa!important;border-color:#e3e6ea!important;color:#17191e!important}.purchase-assurance{background:#f8fafb!important;border-color:#e4e7eb!important}.purchase-assurance b{color:#17191e!important}
/* Account + seller */body.account-body .dashboard,body.seller-body .dashboard{max-width:1440px}.sidebar-pro{background:#111821!important;border:1px solid #222c37!important;box-shadow:0 12px 34px rgba(15,20,28,.10)!important}.sidebar-pro a{color:#aeb7c3!important}.sidebar-pro a.active{background:#fff!important;color:#111821!important;box-shadow:0 5px 18px rgba(0,0,0,.14)!important}.sidebar-pro .side-title{color:#687583!important}.dashboard .main{color:#17191e}.dashboard-head h1{color:#17191e!important}.dashboard-head p{color:#6d7580!important}.kpi,.workspace-card,.chart-pro,.finance-snapshot,.panel-card{background:#fff!important;border:1px solid #e1e4e8!important;box-shadow:0 5px 20px rgba(15,20,28,.045)!important;color:#17191e!important}.kpi .label,.kpi small,.workspace-card p,.finance-snapshot,.muted{color:#6b7380!important}.order-row-card,.top-product-row,.notification-row,.queue-card{background:#fafbfc!important;border-color:#e4e7eb!important;color:#17191e!important}.queue-card.urgent{background:#fff5f6!important;border-color:#ffcbd1!important}.dashboard .input,.dashboard .select,.dashboard .textarea{background:#fff!important;color:#16191e!important;border-color:#d9dde4!important}.listing-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.listing-plan-card{display:block;border:1px solid #dfe3e8;border-radius:12px;padding:17px;background:#fff;cursor:pointer;position:relative}.listing-plan-card:has(input:checked){border-color:var(--rm-red);box-shadow:0 0 0 2px rgba(243,51,69,.10)}.listing-plan-card input{position:absolute;top:14px;right:14px}.plan-top{display:flex;justify-content:space-between;align-items:center;padding-right:24px}.plan-top b{font-size:15px}.plan-top strong{color:var(--rm-red)}.listing-plan-card>small{display:block;color:#6b7380;margin:9px 0 13px;min-height:34px}.plan-benefits{display:grid;gap:6px}.plan-benefits em{font-style:normal;font-size:11px;color:#48515c;display:flex;gap:5px;align-items:center}.side-status{margin-left:auto;font-size:9px!important;padding:3px 6px!important}.seller-kyc-main{max-width:1080px}.kyc-intro-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:14px}.trust-icon.big{width:50px;height:50px;display:grid;place-items:center;background:#fff0f2;color:var(--rm-red);border-radius:14px}.kyc-state{padding:18px;border-radius:10px;background:#f7f8fa}.kyc-state.success{background:#eaf8f2}.kyc-state.pending{background:#fff8e9}.kyc-state.rejected{background:#fff0f1}.kyc-upload-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.kyc-upload{display:grid;gap:7px;border:1px dashed #cfd5dc;border-radius:12px;padding:18px;background:#fafbfc}.kyc-upload span{color:#7b838e;font-size:11px}.kyc-admin-files{display:grid;gap:8px}.kyc-admin-files a{display:block;background:#f6f7f9;border:1px solid #e1e4e8;padding:12px;border-radius:8px;color:#1a1d22}.listing-plan-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.table-sub{display:block;color:#7a828e;margin-top:3px}
.market-footer{background:#0d1117!important;border-top:1px solid #202832!important}.market-footer,.market-footer a{color:#aab3bf!important}.footer-assurance{border-color:#28313c!important}
@media(max-width:1180px){.rm-category-row{grid-template-columns:repeat(5,1fr)}.rm-hero-trust{grid-template-columns:repeat(2,1fr)}.rm-confidence-grid{grid-template-columns:repeat(2,1fr)}.listing-plan-admin-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.rm-hero-grid{grid-template-columns:1fr;min-height:auto;padding-top:30px}.rm-hero-art{height:260px}.rm-hero-copy h1{font-size:44px}.rm-category-row{display:flex;overflow:auto;padding-left:14px;padding-right:14px}.rm-category-row>a{min-width:112px}.rm-promo-band{grid-template-columns:1fr}.listing-plan-grid,.kyc-upload-grid,.kyc-intro-grid,.listing-plan-admin-grid{grid-template-columns:1fr}.rm-confidence-grid{grid-template-columns:1fr 1fr}.rm-community-cta{align-items:flex-start;flex-direction:column;gap:18px}}
@media(max-width:520px){.rm-hero-copy h1{font-size:38px}.rm-hero-copy>p{font-size:14px}.rm-hero-art{display:none}.rm-hero-trust{grid-template-columns:1fr 1fr;gap:12px}.rm-section-head{align-items:flex-start}.rm-section-head>div>nav{overflow:auto;max-width:calc(100vw - 32px);padding-bottom:4px}.rm-confidence-grid{grid-template-columns:1fr}.rm-community-cta h2{font-size:25px}.product-card-pro .price{font-size:17px}}
/* Security / 2FA */
.security-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.mfa-secret{margin:18px 0 10px;padding:15px;border:1px solid #e0e4e9;border-radius:11px;background:#f7f8fa;display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center}.mfa-secret span{grid-column:1/-1;color:#727b86;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.mfa-secret code,.mfa-uri code{word-break:break-all;color:#111821;font-size:13px}.mfa-uri{margin-top:10px}.mfa-uri summary{cursor:pointer;color:#606975;font-size:12px}.mfa-uri code{display:block;margin-top:8px;padding:10px;background:#f7f8fa;border-radius:8px}.recovery-box{border-color:#ffd3d8!important}.recovery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0}.recovery-grid code{padding:11px;text-align:center;background:#111821;color:#fff;border-radius:8px;letter-spacing:.08em}.metric-inline{display:flex;gap:10px;align-items:baseline;margin-top:18px}.metric-inline b{font-size:28px}.metric-inline span{color:#6c7580;font-size:12px}.danger-zone{margin-top:14px;border-color:#f1c5ca!important}.inline-security-form{display:grid;grid-template-columns:1fr 180px auto;gap:10px;align-items:end}.mfa-code-input{font-size:20px!important;letter-spacing:.22em;text-align:center}.auth-help-link{display:block;text-align:center;margin-top:14px;color:#737c87;font-size:12px}.admin-security-warning{margin:0 0 14px}.plan-inline{color:#6b7380;font-weight:700}.plan-inline.prime{color:#df2538}.plan-inline.boost{color:#c37c09}
@media(max-width:820px){.security-grid,.inline-security-form{grid-template-columns:1fr}.recovery-grid{grid-template-columns:repeat(2,1fr)}}

/* v1.7 security policy controls */
.security-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:8px}.policy-check{align-items:flex-start;padding:16px;border:1px solid var(--line,#e4e7ec);border-radius:14px;background:var(--surface,#fff);min-height:122px}.policy-check input{margin-top:3px}.policy-check span{display:grid;gap:5px}.policy-check b{font-size:14px}.policy-check small{line-height:1.5;color:var(--muted,#667085)}.btn[disabled]{opacity:.5;cursor:not-allowed;filter:grayscale(.2)}.rm-search-suggest a.is-active{background:#f5f7fa;outline:1px solid rgba(227,27,46,.18)}
@media(max-width:900px){.security-policy-grid{grid-template-columns:1fr}}

/* v1.7 hardening + mockup fidelity */
.seller-kyc-pending{margin:14px 0;background:#fff7e8!important;border:1px solid #f0d69d!important;color:#604715!important;border-radius:10px!important;padding:13px 14px!important}
.rm-hero-copy em{font-style:normal;color:#ff4051}.rm-hero-copy .hero-primary{box-shadow:0 8px 26px rgba(242,48,66,.28)}
.rm-search-suggest{box-shadow:0 22px 55px rgba(8,13,20,.22)!important}
.product-card-pro{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.product-card-pro:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(14,19,26,.09)!important;border-color:#d5d9df!important}
.market-header{box-shadow:0 6px 24px rgba(0,0,0,.12)}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v1.7 approved-concept hero art */
.rm-hero-art{overflow:visible;isolation:isolate}.rm-hero-image-wrap{position:absolute;inset:0;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.10);box-shadow:0 32px 74px rgba(0,0,0,.38);background:#0b1016}.rm-hero-image-wrap img{width:100%;height:100%;object-fit:cover;object-position:52% 42%;display:block;filter:saturate(.92) contrast(1.04)}.rm-hero-image-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,9,13,.18),rgba(6,9,13,0) 44%,rgba(6,9,13,.18)),linear-gradient(0deg,rgba(6,9,13,.40),transparent 42%)}.rm-hero-proof{position:absolute;z-index:3;right:18px;bottom:18px;max-width:250px;padding:12px 14px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(9,13,19,.86);backdrop-filter:blur(10px);display:flex;align-items:center;gap:10px;box-shadow:0 16px 35px rgba(0,0,0,.28)}.rm-hero-proof>span{width:34px;height:34px;border-radius:9px;background:rgba(16,196,126,.15);color:#3fe0a0;display:grid;place-items:center}.rm-hero-proof b,.rm-hero-proof small{display:block}.rm-hero-proof b{font-size:12px;color:#fff}.rm-hero-proof small{font-size:10px;line-height:1.35;color:#aeb8c4;margin-top:2px}.rm-art-float{z-index:4;display:flex;align-items:center;gap:6px}.rm-art-float svg{width:14px;height:14px;color:#13a36c}.rm-art-float.f1{top:18px;right:-8px}.rm-art-float.f2{bottom:34px;left:-20px}.rm-hero-v17{position:relative;overflow:hidden}.rm-hero-v17:after{content:"";position:absolute;inset:auto -8% -55% 42%;height:410px;background:radial-gradient(circle,rgba(243,51,69,.18),transparent 66%);pointer-events:none}
@media(max-width:820px){.rm-hero-image-wrap{inset:0 7%}.rm-art-float.f1{right:3%}.rm-art-float.f2{left:3%}.rm-hero-proof{right:10%}}

/* Trust & Safety reporting */
.report-listing{margin-top:14px;border-top:1px solid #e5e7eb;padding-top:12px}.report-listing summary{cursor:pointer;color:#737b86;font-size:12px;font-weight:700;display:flex;align-items:center;gap:6px}.report-listing form{display:grid;gap:10px;margin-top:12px}.report-listing label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#5f6874}.report-listing .textarea{min-height:100px}.content-report-list .report-reason{margin:12px 0;padding:12px 14px;border-radius:10px;background:#f8f9fb;border:1px solid #e5e7eb}.content-report-list .report-reason strong{font-size:12px}.content-report-list .report-reason p{margin:6px 0 0;white-space:pre-wrap}.report-resolution-form{display:grid;gap:10px;margin-top:12px}.admin-inline-links{display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.admin-inline-links a{font-weight:700}.report-resolution-form .actions{display:flex;gap:8px;flex-wrap:wrap}
