:root {
  --ink: #243c37;
  --muted: #687972;
  --teal: #087b68;
  --teal-soft: #e2f7ef;
  --cream: #fffaf6;
  --paper: #ffffff;
  --line: #e6eae4;
  --lime: #e3f797;
  --coral: #c84935;
  --radius: 20px;
}
* { box-sizing: border-box; }
body.dealmoa-home, body.dealmoa-admin { margin: 0; background: var(--cream); color: var(--ink); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #668532; outline-offset: 4px; }
.hidden { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--teal); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 22px 40px; display: flex; align-items: center; gap: 52px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #ff775e; color: #fff; font: 700 26px Georgia, serif; letter-spacing: -4px; padding-right: 4px; border-radius: 15px 15px 15px 3px; box-shadow: 4px 4px 0 #ffead1; transform: rotate(-5deg); }
.brand-mark span { margin-top: 8px; }
.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1px; margin-top: 5px; color: var(--muted); }
.site-search { flex: 1; max-width: 580px; display: flex; align-items: center; gap: 12px; height: 48px; background: #f5f9f6; border: 1px solid #d7e7de; border-radius: 16px; padding: 0 7px 0 16px; }
.site-search > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.site-search input { width: 100%; min-width: 0; background: transparent; border: none; color: var(--ink); font-size: 14px; outline: none; }
.site-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.site-search input::placeholder { color: #7b8278; }
.site-search button { background: var(--teal); color: white; padding: 8px 15px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.header-actions { margin-left: auto; display: flex; gap: 20px; }
.header-action { position: relative; display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; font-weight: 600; background: none; border: 0; }
.header-action svg { width: 19px; height: 19px; }
.header-action:hover { color: #0d7664; }
.watch-dot { position: absolute; top: 6px; left: 15px; width: 7px; height: 7px; border-radius: 50%; background: #b16025; }
.saved-count { position: absolute; top: 0; left: 10px; min-width: 16px; border-radius: 12px; padding: 1px 4px; color: white; background: var(--teal); font-size: 10px; }
.page-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 44px; max-width: 1400px; padding: 38px 40px 56px; margin: auto; min-height: calc(100vh - 270px); }
.browse-sidebar { border-right: 1px solid var(--line); padding-right: 24px; }
.sidebar-label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; margin: 0 0 20px 12px; }
.category-nav { display: flex; flex-direction: column; gap: 4px; }
.category-option { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px; padding: 10px 12px; text-align: left; font-size: 13px; color: #58665b; border-radius: 6px; white-space: nowrap; }
.category-option > svg { width: 17px; height: 17px; flex-shrink: 0; }
.category-option:hover { background: #eaece0; color: var(--ink); }
.category-option.is-active { background: var(--teal-soft); color: #066451; font-weight: 800; box-shadow: inset 3px 0 #35b79b; }
.category-arrow { display: none; margin-left: auto; font-size: 16px; }
.category-option.is-active .category-arrow { display: block; }
.sidebar-note { margin-top: 36px; padding: 22px 10px 0; border-top: 1px solid var(--line); }
.sidebar-note > svg { width: 22px; height: 22px; color: #75854e; margin-bottom: 12px; }
.sidebar-note strong { font-size: 12px; font-weight: 700; }
.sidebar-note p { margin-top: 8px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.sidebar-note button { font-size: 11px; border-bottom: 1px solid #acb7a6; padding: 0 0 4px; margin-top: 14px; }
.sidebar-note button span { margin-left: 10px; }
.sidebar-admin { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin: 30px 10px 0; }
.sidebar-admin svg { width: 14px; height: 14px; }
.main-content { min-width: 0; }
.page-intro { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 36px 44px; margin-bottom: 24px; border-radius: 26px; background: linear-gradient(110deg, #e4f8ed 0%, #f3fbcf 58%, #fff0d5 100%); border: 1px solid #e1edd9; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.8px; font-weight: 700; color: #487266; margin: 0 0 14px; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #fa765c; }
.page-intro h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.28; font-weight: 800; letter-spacing: -1.8px; margin: 0; }
.page-intro h1 em { font-style: normal; color: #07816a; }
.intro-description { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.update-info { position: absolute; bottom: 15px; right: 24px; display: flex; align-items: center; gap: 12px; text-align: right; font-size: 10px; color: var(--muted); }
.update-label { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; color: #4f6858; }
.status-dot { width: 5px; height: 5px; background: #598055; border-radius: 50%; }
.source-section { padding: 16px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 26px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.source-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.source-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.source-option { font-size: 11px; line-height: 1.3; min-height: 32px; padding: 7px 11px; border-radius: 5px; border: 1px solid transparent; color: #5c685f; }
.source-option:hover { background: #e9ecdf; }
.source-option.is-active { background: #fff0e9; border-color: #ffd5c3; color: #ac482f; font-weight: 700; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.list-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-heading h2 { font-size: 16px; font-weight: 750; letter-spacing: -.4px; overflow-wrap: anywhere; }
#deal-count-badge { color: #637348; font-size: 11px; flex-shrink: 0; }
.list-controls { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.sort-options { display: flex; gap: 14px; }
.sort-option { font-size: 11px; padding: 6px 0; min-height: 32px; color: #758073; }
.sort-option.is-active { color: var(--teal); font-weight: 800; }
.sort-option.is-active::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 5px; background: var(--teal); border-radius: 50%; vertical-align: middle; }
.refresh-button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.refresh-button svg { width: 13px; height: 13px; }
.deal-list { display: grid; gap: 12px; }
.deal-list:empty { display: none; }
.deal-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) 132px 30px; align-items: center; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 4px 18px #314f3c04; transition: box-shadow 180ms ease, border-color 180ms ease; }
.deal-row:hover { border-color: #aacfc0; box-shadow: 0 8px 24px #3b756b10; }
.deal-thumbnail { width: 136px; height: 136px; border-radius: 14px; background: #f5f8f6; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid #edf0ea; }
.deal-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 220ms ease; }
.deal-thumbnail:hover img { transform: scale(1.04); }
.deal-details { min-width: 0; }
.deal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #7a8176; font-size: 10px; margin-bottom: 8px; }
.merchant-name { font-weight: 750; color: #467566; }
.deal-meta > span + span::before { content: "·"; margin-right: 7px; color: #a6b09e; }
.deal-meta .shipping-label { color: #57764f; }
.deal-details h3 { font-size: 15px; line-height: 1.65; font-weight: 650; color: #233d32; letter-spacing: -.35px; margin: 0; }
.deal-details h3 button { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }
.deal-details h3 button:hover { text-decoration: underline; text-decoration-color: #a8baa0; text-underline-offset: 4px; }
.deal-context { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: #858d7e; font-size: 10px; }
.source-name { color: #6d7d65; }
.deal-stat { display: flex; align-items: center; gap: 4px; }
.deal-stat svg { width: 11px; height: 11px; }
.deal-purchase { text-align: right; min-width: 0; }
.deal-price { font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -.65px; color: var(--coral); overflow-wrap: anywhere; }
.price-unknown { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.buy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; background: #e8f7f0; border: 1px solid #ccebdc; color: #086653; padding: 10px 12px; font-size: 11px; font-weight: 700; border-radius: 10px; white-space: nowrap; }
.buy-button:hover { background: #d1efe1; }
.buy-button svg { width: 12px; height: 12px; }
.save-button { align-self: start; margin-top: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 32px; color: #98a38d; border-radius: 5px; }
.save-button svg { width: 17px; height: 17px; }
.save-button:hover { background: var(--teal-soft); color: var(--teal); }
.save-button.is-saved { color: var(--teal); background: var(--teal-soft); }
.save-button.is-saved svg { fill: #c5dbb8; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.list-note { text-align: center; font-size: 10px; color: var(--muted); margin-top: 22px; }
.empty-state { text-align: center; padding: 68px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > svg { width: 28px; height: 28px; margin: 0 auto 20px; color: #879c77; }
.empty-state h3 { font-size: 17px; font-weight: 650; }
.empty-state p { color: var(--muted); font-size: 12px; margin: 10px 0 20px; }
.empty-state button { background: var(--teal); color: white; padding: 10px 18px; border-radius: 6px; font-size: 12px; }
.loading-rows > div { height: 136px; border-bottom: 1px solid var(--line); background: var(--paper); }
.new-deals-banner { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40; }
.new-deals-button { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 30px; background: var(--teal); color: white; font-size: 12px; box-shadow: 0 4px 20px #173d3520; }
.new-deals-button svg { width: 14px; height: 14px; }
.site-footer { border-top: 1px solid var(--line); background: #f0f8f3; }
.footer-inner { max-width: 1400px; margin: auto; padding: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 18px; letter-spacing: -1px; }
.footer-brand span { color: #75806f; font-size: 11px; }
.site-footer nav { display: flex; gap: 22px; font-size: 11px; color: #64735e; }
.site-footer nav a:hover { color: var(--teal); text-decoration: underline; }
#footer-disclosure { width: 100%; color: #697660; font-size: 10px; line-height: 1.8; }
.footer-copyright { width: 100%; font-size: 10px; color: #77816f; }
.dealmoa-admin #login-view > div { border-color: var(--line); box-shadow: 0 12px 48px #173d350b; }
.dealmoa-admin #login-view h2 { color: var(--teal); }
@media (min-width: 1500px) {
  .deal-row { padding-top: 25px; padding-bottom: 25px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 30px; padding: 20px 26px; }
  .page-layout { grid-template-columns: 156px minmax(0, 1fr); gap: 26px; padding: 30px 26px 44px; }
  .browse-sidebar { padding-right: 16px; }
  .update-info { display: none; }
  .deal-row { grid-template-columns: 108px minmax(0,1fr) 114px 26px; gap: 14px; padding: 18px; }
  .deal-thumbnail { width: 108px; height: 108px; }
  .deal-price { font-size: 18px; }
  .price-unknown { font-size: 11px; }
  .source-section { align-items: start; flex-direction: column; gap: 9px; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 18px 20px 16px; gap: 18px; }
  .brand-mark { width: 38px; height: 38px; font-size: 23px; border-radius: 12px 12px 12px 3px; }
  .brand-name { font-size: 24px; }
  .brand-name small { font-size: 9px; margin-top: 3px; }
  .header-actions { gap: 18px; }
  .header-action span:not(.saved-count):not(.watch-dot) { display: none; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .site-search input { font-size: 16px; }
  .page-layout { display: block; padding: 0 20px 36px; }
  .browse-sidebar { border: 0; padding: 0; margin: 0 -20px 20px; background: #f0f8f3; }
  .sidebar-label, .sidebar-note, .sidebar-admin { display: none; }
  .category-nav { flex-direction: row; overflow-x: auto; padding: 10px 20px; scrollbar-width: thin; gap: 4px; }
  .category-option { width: auto; padding: 9px 11px; min-height: 38px; font-size: 12px; flex-shrink: 0; gap: 6px; }
  .category-option > svg { width: 14px; height: 14px; }
  .category-arrow { display: none !important; }
  .page-intro { padding: 26px 22px; margin-bottom: 18px; min-height: 240px; border-radius: 22px; }
  .page-intro h1 { font-size: 30px; letter-spacing: -1.2px; }
  .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .intro-description { font-size: 12px; margin-top: 8px; }
  .source-section { padding: 12px; margin-bottom: 22px; gap: 8px; }
  .source-filters { gap: 4px; flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
  .source-option { flex-shrink: 0; padding: 6px 9px; font-size: 10px; min-height: 32px; }
  .list-toolbar { align-items: start; gap: 8px; }
  .list-heading { padding-top: 6px; }
  .list-heading h2 { font-size: 14px; }
  .list-controls { gap: 8px; }
  .sort-options { gap: 10px; }
  .sort-option { font-size: 10px; }
  .refresh-button { width: 28px; height: 30px; }
  .deal-row { grid-template-columns: 96px minmax(0, 1fr) 24px; align-items: start; column-gap: 10px; row-gap: 12px; padding: 14px 12px; border-radius: 16px; }
  .deal-thumbnail { width: 96px; height: 104px; grid-column: 1; grid-row: 1; }
  .deal-details { grid-column: 2; grid-row: 1; }
  .deal-details h3 { font-size: 13px; line-height: 1.6; }
  .deal-meta { font-size: 9px; gap: 5px; margin-bottom: 6px; }
  .deal-meta > span + span::before { margin-right: 5px; }
  .deal-context { gap: 8px; font-size: 9px; margin-top: 8px; }
  .deal-purchase { grid-column: 1 / 4; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding-top: 10px; border-top: 1px solid #f0f2ed; }
  .deal-price { font-size: 18px; }
  .price-unknown { font-size: 11px; }
  .buy-button { margin: 0; padding: 8px 9px; font-size: 10px; }
  .save-button { grid-column: 3; grid-row: 1; width: 24px; height: 28px; margin-top: -4px; }
  .save-button svg { width: 15px; height: 15px; }
  .list-note { font-size: 9px; line-height: 1.8; padding: 0 10px; }
  .footer-inner { padding: 24px 20px; gap: 14px; }
  .footer-brand { width: 100%; }
  .site-footer nav { font-size: 10px; }
}
.intro-break { display: none; }
.intro-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 20px; font-size: 12px; font-weight: 700; color: #17634f; }
.intro-link span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: white; font-size: 18px; }
.intro-art { position: relative; width: 250px; height: 210px; flex-shrink: 0; }
.art-ticket { position: absolute; top: 18px; left: 24px; width: 176px; height: 182px; padding: 22px; background: #fffdf8; color: #206954; border-radius: 13px; transform: rotate(-9deg); box-shadow: 10px 12px 0 #acd6a838, 0 8px 24px #679c6720; border: 1px solid #ffffff; }
.art-ticket > span:first-child { font: 700 10px Georgia, serif; letter-spacing: 2px; }
.art-ticket strong { display: block; font-size: 24px; letter-spacing: -1px; margin: 6px 0 10px; }
.ticket-line { display: block; border-top: 1px dashed #b9cdbf; }
.art-ticket small { display: block; font-size: 10px; margin-top: 10px; color: #728a7a; }
.art-ticket svg { width: 30px; height: 30px; margin-top: 10px; color: #ef8865; }
.art-spark { position: absolute; left: -15px; top: -12px; font-size: 65px; color: #f18c67; }
.art-sticker { position: absolute; right: 0; bottom: 0; display: grid; place-content: center; width: 90px; height: 90px; background: #e1f889; border: 4px solid #f6ffe0; border-radius: 50%; color: #47611a; text-align: center; font-size: 17px; font-weight: 800; line-height: 1.3; transform: rotate(12deg); box-shadow: 0 6px 12px #72915016; }
.sidebar-note { border: 0; border-radius: 16px; padding: 20px 14px; background: #fff0e4; }
.sidebar-note > svg { color: #bf6845; }
.source-option { border-radius: 8px; }
.category-option { border-radius: 10px; }
.deal-meta .shipping-label { color: #08745a; }
.deal-context { color: #67786e; }
#deal-count-badge { padding: 3px 8px; border-radius: 20px; background: #e9f6dc; color: #526c2d; }
@media (max-width: 1100px) and (min-width: 761px) {
  .page-intro { padding: 26px 24px; }
  .intro-art { transform: scale(.8); width: 170px; transform-origin: center; }
}
@media (max-width: 760px) {
  .intro-art { position: absolute; width: 175px; right: -28px; top: 12px; opacity: .6; transform: scale(.65); transform-origin: right top; z-index: -1; }
  .art-spark { display: none; }
  .intro-break { display: block; }
  .intro-description { max-width: 210px; line-height: 1.8; }
  .intro-link { margin-top: 14px; }
  .list-toolbar { flex-wrap: wrap; }
  .deal-details h3 button { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
