/* MRAIT Deals / shared design system. Plugin selectors are generated by scripts/build.py. */
@font-face { font-family: 'DM Sans'; src: url('fonts/DMSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Epilogue; src: url('fonts/Epilogue-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

.mdeals {
  --bg: #f0eefa; --surface: #faf9f2; --surface-2: #e8e3f1;
  --text: #17151d; --muted: #625a6c; --border: #d9d2e3;
  --accent: #6a548c; --accent-2: #51416c; --green: #35634b;
  --radius: 24px; --font: 'DM Sans', Arial, sans-serif;
}

.mdeals * { box-sizing: border-box; }

.mdeals { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }

.mdeals a { color: inherit; }

.mdeals button, .mdeals input, .mdeals select { font: inherit; }

.mdeals button { cursor: pointer; }

.mdeals button, .mdeals a, .mdeals input, .mdeals select, .mdeals summary { -webkit-tap-highlight-color: transparent; }

.mdeals :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.mdeals .wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: 32px; }

.mdeals .hero, .mdeals .block, .mdeals .toolbar { color: var(--text); }

.mdeals h1, .mdeals h2, .mdeals h3, .mdeals p { margin: 0; }

.mdeals h1, .mdeals h2, .mdeals h3 { color: var(--text); text-wrap: balance; }

.mdeals p { text-wrap: pretty; }

.mdeals .hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: center; gap: 60px; padding-block: 64px 56px; }

.mdeals .hero-badge, .mdeals .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

.mdeals .hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.mdeals .hero h1 { font-family: Epilogue, Arial, sans-serif; font-weight: 900; font-size: clamp(40px, 4.8vw, 68px); line-height: 1.08; letter-spacing: -.035em; margin-block: 24px; }

.mdeals .hero h1 .grad { color: #51416c; display: block; }

.mdeals .hero .tagline { font-size: 17px; color: var(--muted); line-height: 1.8; max-width: 510px; }

.mdeals .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }

.mdeals .btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; padding: 13px 22px; min-height: 48px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }

.mdeals .btn-primary { background: var(--text); color: var(--surface); }

.mdeals .btn-primary:hover { background: var(--accent-2); color: var(--surface); }

.mdeals .btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }

.mdeals .text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--text); font-size: 13px; text-decoration: none; }

.mdeals .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.mdeals .hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }

.mdeals .stat-chip { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.mdeals .stat-chip strong { color: var(--text); }

.mdeals .disclosure { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: 11px; color: var(--muted); max-width: 520px; }

.mdeals .spotlight { position: relative; background: var(--text); color: #faf9f2; padding: 28px; border-radius: 30px; min-width: 0; }

.mdeals .spotlight-label { display: flex; justify-content: space-between; gap: 16px; color: #bdb2ce; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.mdeals .spotlight-art { height: 188px; display: flex; justify-content: center; align-items: center; position: relative; margin-block: 18px 18px; }

.mdeals .ticket { width: 238px; background: #e2d9f0; color: #17151d; border-radius: 18px; padding: 20px 24px; transform: rotate(-7deg); position: relative; box-shadow: 10px 14px 0 #3c3547; }

.mdeals .ticket::before, .mdeals .ticket::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #17151d; top: 60%; }

.mdeals .ticket::before { left: -10px; }

.mdeals .ticket::after { right: -10px; }

.mdeals .ticket small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.mdeals .ticket strong { display: block; font-family: Epilogue, Arial, sans-serif; font-size: 28px; line-height: 1.25; margin-block: 10px; letter-spacing: -.04em; }

.mdeals .ticket span { display: block; border-top: 1px dashed #92829f; padding-top: 8px; font-size: 9px; }

.mdeals .spotlight h2 { color: #faf9f2; font-size: 25px; font-weight: 500; line-height: 1.25; }

.mdeals .spotlight p { color: #c5bdcf; font-size: 13px; line-height: 1.75; margin-top: 12px; }

.mdeals .spotlight-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }

.mdeals .spotlight-bottom span { color: #bdb2ce; font-size: 11px; }

.mdeals .spotlight .btn { background: #e2d9f0; color: #17151d; padding: 12px 18px; }

.mdeals .spotlight .btn:hover { background: #faf9f2; }

.mdeals .browse-panel { padding-block: 36px 64px; background: var(--surface); border: 1px solid var(--border); border-radius: 40px 40px 0 0; }

.mdeals .toolbar { margin-bottom: 40px; }

.mdeals .toolbar-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }

.mdeals .toolbar-title { font-size: 14px; font-weight: 600; }

.mdeals .header-search { position: relative; flex: 1; max-width: 390px; }

.mdeals .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }

.mdeals .header-search input { width: 100%; min-width: 0; height: 48px; padding: 11px 16px 11px 44px; background: transparent; border: 1px solid #bcb3c8; border-radius: 999px; color: var(--text); font-size: 13px; }

.mdeals .header-search input::placeholder { color: var(--muted); opacity: 1; }

.mdeals .filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.mdeals .chips { display: flex; flex-wrap: wrap; gap: 8px; }

.mdeals .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.4; }

.mdeals .chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }

.mdeals .chip-count { opacity: .7; font-size: 10px; }

.mdeals .chip:hover { border-color: var(--accent); }

.mdeals .sort-control { display: flex; align-items: center; gap: 8px; flex: none; }

.mdeals .sort-control label { color: var(--muted); font-size: 11px; }

.mdeals .sort-control select { border: 0; padding: 10px 22px 10px 6px; background: transparent; color: var(--text); font-size: 12px; min-height: 44px; max-width: 180px; }

.mdeals .result-count { color: var(--muted); font-size: 12px; margin-top: 18px; min-height: 20px; }

.mdeals .block { margin-top: 46px; scroll-margin-top: 36px; }

.mdeals .browse-panel .block:first-of-type { margin-top: 0; }

.mdeals .block-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }

.mdeals .block-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }

.mdeals .block-head .sub { font-size: 12px; color: var(--muted); }

.mdeals .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.mdeals .card { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fffefa; position: relative; }

.mdeals .card:hover { border-color: #a596b7; }

.mdeals .card-top { display: flex; align-items: center; gap: 12px; }

.mdeals .avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff; }

.mdeals .card-brand { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.4; }

.mdeals .card-cat { color: var(--muted); font-size: 11px; margin-top: 2px; }

.mdeals .badges { display: flex; flex-wrap: wrap; gap: 7px; }

.mdeals .badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 7px; font-size: 9px; font-weight: 600; line-height: 1.3; }

.mdeals .badge.off { background: #e9e3f1; color: #51416c; }

.mdeals .badge.featured { background: #f4eddb; color: #78603b; }

.mdeals .badge.verified, .mdeals .badge.reviewed { background: #edf3ec; color: #35634b; }

.mdeals .badge.ending { background: #fae9e3; color: #9b4d31; }

.mdeals .card h3 { color: var(--text); font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }

.mdeals .card .desc { color: var(--muted); font-size: 13px; line-height: 1.8; flex: 1; }

.mdeals .card-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

.mdeals .card .btn { width: 100%; justify-content: space-between; }

.mdeals .card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; color: var(--muted); font-size: 10px; }

.mdeals .card-meta a { text-decoration: underline; text-underline-offset: 3px; }

.mdeals .code-pill { border: 1px dashed #b3a5c2; background: var(--bg); color: var(--accent); border-radius: 8px; padding: 10px; text-align: center; font: 13px/1.5 Consolas, monospace; letter-spacing: 1px; }

.mdeals .table-wrap { position: relative; overflow: auto; border: 1px solid var(--border); border-radius: 20px; background: #fffefa; }

.mdeals table.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; margin: 0; }

.mdeals table.compare th, .mdeals table.compare td { padding: 18px 20px; text-align: left; border: 0; border-bottom: 1px solid var(--border); }

.mdeals table.compare th { background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 600; }

.mdeals table.compare tr:last-child td { border-bottom: 0; }

.mdeals table.compare .code { color: var(--accent); font-family: Consolas, monospace; }

.mdeals table.compare a { color: var(--text); text-decoration: none; white-space: nowrap; }

.mdeals table.compare a:hover { text-decoration: underline; }

.mdeals .lower-content { padding-block: 8px 64px; }

.mdeals .brand-blurbs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }

.mdeals .brand-blurb { min-width: 0; border-top: 1px solid #c9bfd8; padding-block: 24px; }

.mdeals .brand-blurb h2 { color: var(--text); font-size: 22px; font-weight: 700; margin-bottom: 12px; }

.mdeals .brand-blurb p { color: var(--muted); font-size: 13px; line-height: 1.8; }

.mdeals .brand-blurb .blurb-cta { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); text-decoration: none; font-size: 12px; margin-top: 12px; }

.mdeals .brand-blurb .blurb-cta:hover { text-decoration: underline; }

.mdeals .source-link { display: inline-flex; min-height: 32px; align-items: center; margin-right: 16px; font-size: 11px; color: var(--accent); text-underline-offset: 3px; }

.mdeals .steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }

.mdeals .step { border-top: 1px solid #c9bfd8; padding-top: 24px; }

.mdeals .step .num { color: var(--accent); font-size: 12px; margin-bottom: 18px; }

.mdeals .step h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }

.mdeals .step p { color: var(--muted); font-size: 13px; line-height: 1.8; }

.mdeals .verification-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; }

.mdeals .verification-layout h2 { font-family: Epilogue, Arial, sans-serif; font-size: 31px; line-height: 1.2; letter-spacing: -.05em; font-weight: 900; margin-top: 16px; }

.mdeals .verify-block { padding: 0; border: 0; }

.mdeals .verify-block p { font-size: 13px; color: var(--muted); line-height: 1.9; }

.mdeals .review-date { margin-top: 20px; color: var(--muted); font-size: 11px; }

.mdeals .faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }

.mdeals .faq-intro h2 { font-family: Epilogue, Arial, sans-serif; font-size: 38px; line-height: 1.2; font-weight: 900; letter-spacing: -.06em; margin-top: 16px; }

.mdeals .faq-intro p { color: var(--muted); font-size: 13px; max-width: 280px; margin-top: 18px; }

.mdeals .faq-item { border-bottom: 1px solid #c9bfd8; }

.mdeals .faq-item:first-child { border-top: 1px solid #c9bfd8; }

.mdeals .faq-item summary { cursor: pointer; min-height: 64px; padding-block: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }

.mdeals .faq-item summary::-webkit-details-marker { display: none; }

.mdeals .faq-item summary::after { content: '+'; color: var(--accent); font-size: 22px; }

.mdeals .faq-item[open] summary::after { content: '−'; }

.mdeals .faq-item .ans { color: var(--muted); font-size: 13px; line-height: 1.8; padding-bottom: 22px; }

.mdeals .newsletter { background: var(--text); color: var(--surface); border-radius: 28px; padding: 36px; }

.mdeals .newsletter h2 { color: var(--surface); font-size: 28px; margin-bottom: 12px; }

.mdeals .newsletter p { color: #c5bdcf; font-size: 13px; margin-bottom: 20px; }

.mdeals .newsletter form { display: flex; flex-wrap: wrap; gap: 12px; }

.mdeals .newsletter input { background: #faf9f2; color: var(--text); border-radius: 999px; border: 0; min-width: 0; padding: 12px 18px; }

.mdeals .newsletter .btn { background: #e2d9f0; color: var(--text); }

.mdeals .newsletter .msg { margin-top: 12px; font-size: 13px; }

.mdeals .mdeals-footer { border-top: 1px solid var(--border); padding-block: 32px; }

.mdeals .mdeals-footer p { color: var(--muted); font-size: 11px; margin-bottom: 8px; max-width: 930px; }

.mdeals .footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }

.mdeals .footer-links a { font-size: 11px; min-height: 32px; display: inline-flex; align-items: center; text-underline-offset: 3px; }

.mdeals .empty { grid-column: 1/-1; padding: 40px 24px; text-align: center; border: 1px dashed #bcb3c8; border-radius: var(--radius); font-size: 14px; color: var(--muted); }

.mdeals .empty button { margin-top: 16px; }

.mdeals .modal-overlay { position: fixed; inset: 0; z-index: 100; background: #17151d99; display: none; align-items: center; justify-content: center; padding: 20px; }

.mdeals .modal-overlay.open { display: flex; }

.mdeals .modal { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 26px; padding: 32px; box-shadow: 0 24px 80px #17151d33; }

.mdeals .modal-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; }

.mdeals .m-brand { display: flex; align-items: center; gap: 12px; margin-right: 30px; }

.mdeals .m-brand strong { font-size: 17px; }

.mdeals .m-title { font-size: 25px; font-weight: 500; margin-block: 22px 12px; }

.mdeals .m-copy { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.mdeals .m-code { padding: 18px; margin-bottom: 14px; border: 1px dashed #b3a5c2; border-radius: 12px; font: 20px/1.5 Consolas, monospace; text-align: center; color: var(--accent); overflow-wrap: anywhere; user-select: all; }

.mdeals .btn-copy, .mdeals .btn-redeem { width: 100%; margin-top: 10px; }

.mdeals .m-terms { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 18px; }

.mdeals .vote-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 22px; }

.mdeals .vote-row .q { font-size: 12px; margin-right: auto; }

.mdeals .vote-btn { width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 50%; font-size: 16px; }

.mdeals .vote-btn.on { background: var(--surface-2); border-color: var(--accent); }

.mdeals .vote-result { flex-basis: 100%; color: var(--muted); font-size: 10px; margin-top: 4px; }

.mdeals .toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 12px 20px; font-size: 13px; border-radius: 999px; z-index: 110; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }

.mdeals .toast.show { opacity: 1; }

.mdeals .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1100px) {

.mdeals .hero { gap: 36px; }

.mdeals .wrap { padding-inline: 28px; }

.mdeals .filter-row { align-items: flex-start; }

.mdeals .chips { gap: 6px; }

.mdeals .chip { padding-inline: 12px; }

.mdeals .grid { gap: 16px; }

.mdeals .card { padding: 22px; }

.mdeals .sort-control label { display: none; }
}
@media (max-width: 900px) {

.mdeals .hero { grid-template-columns: 1fr 1fr; gap: 28px; }

.mdeals .hero h1 { font-size: 48px; }

.mdeals .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

.mdeals .filter-row { flex-direction: column; gap: 12px; }

.mdeals .verification-layout, .mdeals .faq-layout { gap: 32px; }

.mdeals .brand-blurbs { gap: 24px; }
}
@media (max-width: 640px) {

.mdeals .wrap { padding-inline: 20px; }

.mdeals .hero { grid-template-columns: 1fr; padding-block: 36px 32px; gap: 32px; }

.mdeals .hero h1 { font-size: clamp(38px, 10.7vw, 58px); margin-block: 20px; }

.mdeals .hero .tagline { font-size: 15px; }

.mdeals .hero-stats { gap: 14px; }

.mdeals .hero-actions { gap: 18px; }

.mdeals .spotlight { padding: 24px; border-radius: 24px; }

.mdeals .spotlight-art { height: 178px; }

.mdeals .spotlight h2 { font-size: 24px; }

.mdeals .browse-panel { border-radius: 28px 28px 0 0; padding-block: 28px 40px; }

.mdeals .toolbar-top { flex-direction: column; align-items: stretch; gap: 14px; }

.mdeals .header-search { max-width: none; }

.mdeals .grid, .mdeals .steps, .mdeals .brand-blurbs, .mdeals .verification-layout, .mdeals .faq-layout { grid-template-columns: 1fr; }

.mdeals .block { margin-top: 36px; }

.mdeals .block-head { align-items: flex-start; gap: 12px; }

.mdeals .block-head h2 { font-size: 23px; }

.mdeals .block-head .sub { max-width: 130px; text-align: right; font-size: 11px; }

.mdeals .card { padding: 24px; }

.mdeals .card h3 { font-size: 23px; }

.mdeals .verification-layout { padding: 26px; gap: 24px; }

.mdeals .verification-layout h2 { font-size: 28px; }

.mdeals .faq-layout { gap: 28px; }

.mdeals .faq-intro h2 { font-size: 32px; }

.mdeals .steps { gap: 24px; }

.mdeals .newsletter { padding: 26px; }

.mdeals .newsletter input { width: 100%; }

.mdeals .modal { padding: 28px 24px; }

.mdeals .spotlight-bottom { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {

.mdeals * { scroll-behavior: auto !important; } }
/* Make the next action unmistakable, including inside theme-styled tables. */
.mdeals .card .btn-primary, .mdeals .compare .compare-offer, .mdeals .modal .btn-copy, .mdeals .modal .btn-redeem { background: #51416c; color: #fff; border: 2px solid #51416c; min-height: 52px; font-size: 16px; font-weight: 700; text-decoration: none; opacity: 1; }

.mdeals .card .btn-primary { width: 100%; justify-content: center; }

.mdeals .card .btn-primary:hover, .mdeals .compare .compare-offer:hover, .mdeals .modal .btn-copy:hover, .mdeals .modal .btn-redeem:hover { background: #352748; border-color: #352748; color: #fff; }

.mdeals .compare .compare-offer { white-space: nowrap; padding: 10px 18px; }

.mdeals .offer-step { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 22px; margin-bottom: 10px; }

.mdeals .paste-help { font-size: 15px; line-height: 1.6; padding: 16px; background: #eee8f4; color: #352748; border-radius: 12px; margin-top: 18px; }

.mdeals .m-code { font-size: 24px; font-weight: 700; border: 2px dashed #51416c; background: #fff; color: #352748; }

.mdeals .m-title { font-weight: 700; }
