/* Hatke Deals — base stylesheet */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f7f9;
    color: #1f2328;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 0;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #087f73;
    text-decoration: none;
}
.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav a { color: #087f73; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a.btn-primary-sm { color: #fff; }
.nav-user { color: #555; }
.logout-form { margin: 0; }
.link-button {
    background: none; border: 0; padding: 0;
    color: #087f73; cursor: pointer;
    font: inherit;
}
.link-button:hover { text-decoration: underline; }

/* Combined account and notification menu. Native details works without JavaScript. */
.profile-menu { position: relative; }
.profile-trigger { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; padding: .5rem .75rem; border: 1px solid #d0d7de; border-radius: 8px; color: #1f2328; background: #fff; }
.profile-trigger::-webkit-details-marker { display: none; }
.profile-trigger strong { margin-left: .35rem; overflow-wrap: anywhere; }
.profile-trigger:hover, .profile-menu[open] .profile-trigger { background: #edf7f4; border-color: #087f73; }
.profile-trigger:focus-visible, .profile-panel a:focus-visible, .profile-panel button:focus-visible { outline: 3px solid #087f73; outline-offset: 3px; }
.profile-chevron { transition: transform .15s; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }
.profile-panel { position: absolute; z-index: 100; right: 0; top: calc(100% + .5rem); width: 340px; max-width: calc(100vw - 2rem); max-height: 75vh; overflow-y: auto; background: white; border: 1px solid #d0d7de; border-radius: 12px; box-shadow: 0 12px 32px rgba(31,35,40,.15); }
.profile-actions { padding: .5rem; display: grid; }
.profile-actions a { padding: .65rem .75rem; border-radius: 6px; }
.profile-actions a:hover, .profile-notification-list a:hover { background: #edf7f4; }
.profile-notifications { border-top: 1px solid #e5e7eb; padding: .75rem; }
.profile-notifications h2 { font-size: .85rem; color: #57606a; margin: 0 0 .5rem; }
.profile-notification-list { list-style: none; padding: 0; margin: 0; }
.profile-notification-list li { border-bottom: 1px solid #eef0f2; }
.profile-notification-list a { display: block; padding: .65rem .5rem; border-radius: 6px; overflow-wrap: anywhere; }
.profile-notification-list .is-unread a { background: #edf7f4; font-weight: 600; }
.profile-notification-list small { display: block; font-size: .75rem; color: #57606a; font-weight: 400; margin-top: .2rem; }
.profile-empty { color: #57606a; font-size: .9rem; margin: .5rem 0 1rem; }
.profile-view-all { display: inline-block; margin-top: .75rem; font-size: .9rem; }
.profile-logout { padding: .8rem 1.25rem; border-top: 1px solid #e5e7eb; }
@media (max-width: 760px) {
    .header-row { flex-wrap: wrap; gap: .75rem; }
    .nav { flex-wrap: wrap; gap: .65rem; width: 100%; }
    .profile-menu { margin-left: auto; }
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 1rem 0;
    color: #777;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: .9rem;
}

/* Flash */
.flash {
    padding: .75rem 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border: 1px solid transparent;
}
.flash-success { background: #ddf4e4; border-color: #7ac98d; color: #1a531e; }
.flash-error   { background: #ffe2e2; border-color: #e2a0a0; color: #8a1f1f; }
.flash-info    { background: #dbecff; border-color: #7faed9; color: #1b4a7a; }

/* Auth forms */
.auth-card {
    max-width: 420px;
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.auth-card h1 {
    margin-top: 0;
    font-size: 1.5rem;
}
.auth-card form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: .9rem;
}
.auth-card form input[type=text],
.auth-card form input[type=email],
.auth-card form input[type=password] {
    display: block;
    width: 100%;
    margin-top: .25rem;
    padding: .6rem .75rem;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font: inherit;
}
.auth-card form input:focus {
    outline: 0;
    border-color: #087f73;
    box-shadow: 0 0 0 3px rgba(9,105,218,.2);
}
.hint { display: block; color: #666; font-size: .8rem; margin-top: .25rem; }
.checkbox { font-weight: 400 !important; display: flex; align-items: center; gap: .5rem; }
.checkbox input { margin: 0; }
.auth-links { margin-top: 1rem; text-align: center; font-size: .9rem; }
.auth-links a { color: #087f73; text-decoration: none; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-block;
    padding: .6rem 1.1rem;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1rem;
}
.btn-primary {
    background: #087f73; color: #fff; width: 100%;
    text-align: center;
}
.btn-primary:hover { background: #06665d; }
.btn-primary-sm {
    background: #087f73; color: #fff; margin: 0;
    padding: .4rem .75rem;
    font-size: .9rem;
}
.btn-secondary {
    background: #fff; color: #087f73;
    border-color: #087f73;
    margin-left: .5rem;
}

/* Hero */
.hero { text-align: center; padding: 3rem 0; }
.hero h1 { font-size: 2rem; }

/* Submit form */
.submit-card {
    max-width: 720px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.submit-card h1 { margin-top: 0; }
.submit-card .muted { color: #666; margin-bottom: 1.5rem; }
.submit-card label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: .9rem;
}
.submit-card .req { color: #b42318; }
.submit-card input[type=text],
.submit-card input[type=url],
.submit-card input[type=number],
.submit-card input[type=datetime-local],
.submit-card select,
.submit-card textarea {
    display: block;
    width: 100%;
    margin-top: .25rem;
    padding: .55rem .75rem;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.submit-card textarea { font-family: ui-monospace, monospace; resize: vertical; }
.submit-card input:focus,
.submit-card select:focus,
.submit-card textarea:focus {
    outline: 0;
    border-color: #087f73;
    box-shadow: 0 0 0 3px rgba(9,105,218,.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ================== Listing & detail pages ================== */
.list-header { margin: 1.5rem 0 .5rem; }
.list-header h1 { margin: 0; font-size: 1.6rem; }
.list-sub { color: #666; margin: .25rem 0 0; }

.feed-tabs {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.feed-tabs > a {
    padding: .5rem .75rem;
    text-decoration: none;
    color: #555;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.feed-tabs > a.active {
    color: #087f73;
    border-bottom-color: #087f73;
    font-weight: 600;
}
.window-tabs { display: inline-flex; gap: .25rem; margin-left: auto; font-size: .85rem; }
.window-tabs a {
    padding: .25rem .5rem;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
}
.window-tabs a.active { background: #e5f3ee; color: #087f73; }

.deal-list { display: flex; flex-direction: column; gap: 1rem; }
.deal-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
@media (max-width: 480px) { .deal-card { grid-template-columns: 1fr; } }

.deal-image { background: #f3f4f6; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.deal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-image-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: #999; font-size: .8rem; height: 100%;
}
.deal-image-placeholder.large { aspect-ratio: 16/9; font-size: 1rem; }

.deal-meta-top, .deal-meta-bottom { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #666; }
.deal-meta-bottom { margin-top: .5rem; }
.deal-merchant { color: #555; }
.deal-category a { color: #087f73; text-decoration: none; }

.deal-title { margin: .25rem 0; font-size: 1.05rem; line-height: 1.3; }
.deal-title a { color: #1f2328; text-decoration: none; }
.deal-title a:hover { color: #087f73; }

.deal-pricing { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin: .25rem 0; }
.deal-pricing .price { font-size: 1.1rem; color: #1a531e; }
.deal-pricing .price-original { color: #999; text-decoration: line-through; font-size: .85rem; }
.deal-pricing .price-discount { background: #ddf4e4; color: #1a531e; padding: 1px 6px; border-radius: 4px; font-size: .75rem; font-weight: 600; }

.deal-score strong { color: #1a7f37; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-running  { background: #ddf4e4; color: #1a531e; }
.badge-upcoming { background: #fff7d6; color: #856700; }
.badge-expired  { background: #f3f4f6; color: #666; }
.badge-dead     { background: #ffe2e2; color: #8a1f1f; }

.empty-state { text-align: center; padding: 3rem 1rem; color: #666; }

.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }
.pagination a { color: #087f73; text-decoration: none; padding: .4rem .75rem; border: 1px solid #d0d7de; border-radius: 6px; }
.pager-meta { color: #666; }

.category-rail { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.category-rail h2 { font-size: 1rem; color: #555; margin-bottom: .5rem; }
.category-rail ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.category-rail a { padding: .35rem .75rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; text-decoration: none; color: #555; font-size: .85rem; }
.category-rail a.active { background: #e5f3ee; color: #087f73; border-color: #087f73; }

/* ================== Detail page ================== */
.deal-detail { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 2rem; margin-top: 1.5rem; }
.detail-header h1 { font-size: 1.6rem; margin: .5rem 0; }
.detail-meta-top, .detail-poster { font-size: .9rem; color: #555; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.detail-poster { margin-top: .5rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; margin: 1.5rem 0; }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-image img { width: 100%; max-height: 360px; object-fit: contain; background: #f3f4f6; border-radius: 8px; }
.detail-actions { display: flex; flex-direction: column; gap: .75rem; }
.price-block { padding: 1rem; background: #f6f7f9; border-radius: 8px; text-align: center; }
.price-now { font-size: 1.8rem; font-weight: 700; color: #1a531e; }
.price-was { color: #888; }
.price-discount-large { background: #ddf4e4; color: #1a531e; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-top: .5rem; font-weight: 600; }
.btn-go {
    display: block;
    text-align: center;
    background: #087f73;
    color: #fff;
    padding: .85rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.btn-go:hover { background: #06665d; }
.expires-note { font-size: .85rem; color: #666; margin: 0; }

.detail-description { padding: 1rem 0; line-height: 1.6; border-top: 1px solid #f3f4f6; }
.detail-description p:first-child { margin-top: 0; }
.detail-description code { background: #f3f4f6; padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.detail-description pre { background: #f3f4f6; padding: 1rem; border-radius: 6px; overflow-x: auto; }
.detail-description pre code { background: none; padding: 0; }
.detail-description blockquote { border-left: 3px solid #d0d7de; padding-left: 1rem; color: #555; margin: .75rem 0; }
.detail-description ul, .detail-description ol { padding-left: 1.5rem; }

.detail-bar { display: flex; gap: 1.5rem; align-items: center; padding-top: 1rem; border-top: 1px solid #f3f4f6; flex-wrap: wrap; }
.vote-form { display: flex; gap: .25rem; align-items: center; margin: 0; }
.vote-btn {
    background: none; border: 1px solid #d0d7de; padding: .3rem .55rem;
    border-radius: 6px; cursor: pointer; font-size: 1rem; color: #555;
}
.vote-btn:hover { background: #f3f4f6; }
.vote-btn.voted { background: #087f73; color: #fff; border-color: #087f73; }
.vote-score { font-weight: 700; min-width: 2ch; text-align: center; }
.score-readonly { font-weight: 700; color: #555; }

.dead-form { display: flex; gap: .5rem; align-items: center; margin: 0; }
.dead-btn {
    background: #fff; border: 1px solid #d0d7de; padding: .35rem .75rem;
    border-radius: 6px; cursor: pointer; font: inherit; color: #555;
}
.dead-btn:hover { background: #ffe2e2; color: #8a1f1f; border-color: #e2a0a0; }
.dead-btn.flagged { background: #ffe2e2; color: #8a1f1f; border-color: #e2a0a0; }
.dead-count { font-size: .85rem; color: #666; }

/* ================== Comments ================== */
.comments { margin-top: 2rem; }
.comments h2 { font-size: 1.2rem; }
.comment-form textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}
.comment-form button { margin-top: .5rem; }
.comment-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.comment-item {
    padding: .75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: .75rem;
}
.comment-item.depth-1 { margin-left: 1.5rem; }
.comment-item.depth-2 { margin-left: 3rem; }
.comment-item.depth-3 { margin-left: 4.5rem; }
.comment-meta { font-size: .85rem; color: #666; margin-bottom: .35rem; }
.comment-body { white-space: pre-wrap; }

.muted { color: #666; }

/* ================== Notification bell + queue badge ================== */
.nav-link { color: #555; text-decoration: none; padding: .35rem .55rem; border-radius: 6px; }
.nav-link:hover { background: #f3f4f6; }
.bell-link, .mod-link { font-size: 1rem; }
.badge-pill {
    display: inline-block;
    background: #b42318;
    color: #fff;
    font-size: .7rem;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 2px;
}

/* ================== Moderation queue ================== */
.mod-header { margin: 1.5rem 0 1rem; }
.mod-header h1 { margin: 0; }
.mod-queue { display: flex; flex-direction: column; gap: 1rem; }
.mod-row {
    display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem;
}
@media (max-width: 480px) { .mod-row { grid-template-columns: 1fr; } }
.mod-image { background: #f3f4f6; border-radius: 6px; aspect-ratio: 4/3; overflow: hidden; }
.mod-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-body h3 { margin: 0 0 .35rem; font-size: 1rem; }
.mod-body h3 a { color: #1f2328; text-decoration: none; }
.mod-meta { font-size: .85rem; color: #666; margin-bottom: .35rem; }
.mod-pricing { font-size: .9rem; margin-bottom: .75rem; }
.mod-url { margin-left: .5rem; font-size: .85rem; color: #666; }
.mod-url a { color: #087f73; text-decoration: none; }

.mod-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.inline-form { margin: 0; }
.btn-approve { background: #1a7f37; color: #fff; border: 0; padding: .45rem .85rem; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; }
.btn-approve:hover { background: #15692e; }

.btn-reject { background: #fff; color: #b42318; border: 1px solid #e2a0a0; padding: .45rem .85rem; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; list-style: none; display: inline-block; }
.btn-reject:hover { background: #ffe2e2; }
.btn-reject::-webkit-details-marker { display: none; }

.btn-edit { background: #fff; color: #555; border: 1px solid #d0d7de; padding: .45rem .85rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.btn-edit:hover { background: #f3f4f6; }

.reject-details { display: inline-block; }
.reject-details[open] .reject-form {
    display: flex; flex-direction: column; gap: .5rem;
    margin-top: .5rem; padding: .75rem;
    background: #fff8f8; border: 1px solid #e2a0a0; border-radius: 6px;
    min-width: 320px;
}
.reject-form select, .reject-form input { padding: .4rem; border: 1px solid #d0d7de; border-radius: 4px; font: inherit; }
.btn-reject-confirm { background: #b42318; color: #fff; border: 0; padding: .45rem .85rem; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; }
.btn-reject-confirm:hover { background: #951c14; }

/* ================== Mod log ================== */
.mod-log { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.mod-log th, .mod-log td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: .9rem; }
.mod-log th { background: #f6f7f9; font-weight: 600; color: #555; }
.action-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.action-approve { background: #ddf4e4; color: #1a531e; }
.action-reject, .action-auto.reject { background: #ffe2e2; color: #8a1f1f; }
.action-edit { background: #fff7d6; color: #856700; }

/* ================== Notifications ================== */
.notif-header { display: flex; justify-content: space-between; align-items: center; margin: 1.5rem 0 1rem; }
.notif-header h1 { margin: 0; }
.notif-list { list-style: none; padding: 0; }
.notif-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: .5rem; padding: .85rem 1rem; }
.notif-item.unread { background: #f0f7ff; border-color: #b6d4f3; }
.notif-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.notif-content { flex: 1; }
.notif-title { font-weight: 600; }
.notif-title a { color: #087f73; text-decoration: none; }
.notif-body { color: #555; font-size: .95rem; margin: .15rem 0; }
.notif-meta { color: #888; font-size: .8rem; }
.dot-unread { color: #087f73; font-weight: 700; }

/* ================== Comment voting + sort ================== */
.comments-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.comments-header h2 { margin: 0; }
.comment-sort { font-size: .9rem; }
.comment-sort a {
    color: #555; text-decoration: none; padding: .25rem .5rem; border-radius: 4px;
    margin-left: .25rem;
}
.comment-sort a.active { background: #e5f3ee; color: #087f73; font-weight: 600; }

.comment-footer { margin-top: .5rem; }
.comment-vote-form {
    display: inline-flex; gap: .25rem; align-items: center; margin: 0;
}
.comment-vote-btn {
    background: none; border: 1px solid #d0d7de; padding: .15rem .4rem;
    border-radius: 4px; cursor: pointer; font-size: .8rem; color: #555; line-height: 1;
}
.comment-vote-btn:hover { background: #f3f4f6; }
.comment-vote-btn.voted { background: #087f73; color: #fff; border-color: #087f73; }
.comment-score { font-weight: 600; min-width: 2ch; text-align: center; font-size: .85rem; color: #444; }
.comment-score-readonly { font-size: .85rem; color: #666; }

.comment-author { color: #087f73; text-decoration: none; font-weight: 600; }
.comment-author:hover { text-decoration: underline; }

/* ================== User profile ================== */
.profile-card {
    max-width: 560px; margin: 2rem auto;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 2rem;
}
.profile-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; }
.profile-header h1 { margin: 0; font-size: 1.5rem; }
.role-badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.role-user    { background: #f3f4f6; color: #555; }
.role-trusted { background: #ddf4e4; color: #1a531e; }
.role-mod     { background: #e5f3ee; color: #087f73; }
.role-admin   { background: #fff7d6; color: #856700; }
.role-banned  { background: #ffe2e2; color: #8a1f1f; }

.profile-joined { color: #666; font-size: .9rem; margin: .5rem 0 1.5rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-block {
    text-align: center; padding: 1rem;
    background: #f6f7f9; border-radius: 8px;
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: #1f2328; }
.stat-label { font-size: .8rem; color: #666; text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.profile-counts { color: #555; font-size: .9rem; }

/* ================== Phase 7: footer disclosure ================== */
.affiliate-disclosure {
    color: #888;
    font-size: .8rem;
    max-width: 760px;
    margin: .5rem auto 0;
    line-height: 1.4;
}

/* ================== Phase 8: reports ================== */
.report-target-preview {
    background: #f6f7f9;
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.report-comment-preview {
    background: #fff;
    border-left: 3px solid #d0d7de;
    padding: .5rem .75rem;
    margin: .5rem 0 0;
    color: #555;
    font-size: .9rem;
}
.report-link {
    margin-left: auto;
    color: #888;
    font-size: .85rem;
    text-decoration: none;
}
.report-link:hover { color: #b42318; }
.comment-report-link {
    margin-left: .75rem;
    color: #aaa;
    font-size: .8rem;
    text-decoration: none;
}
.comment-report-link:hover { color: #b42318; text-decoration: underline; }

.report-row .report-row-header {
    display: flex; gap: .5rem; align-items: center;
    margin-bottom: .5rem; flex-wrap: wrap; font-size: .85rem;
}
.report-target { font-size: 1rem; margin: .5rem 0; }
.report-target a { color: #1f2328; text-decoration: none; }
.report-target a:hover { color: #087f73; }
.comment-snippet {
    color: #555; font-style: italic;
    background: #f6f7f9; padding: 2px 8px; border-radius: 4px;
}
.report-reason {
    background: #fff8f0;
    border-left: 3px solid #f0c674;
    padding: .5rem .75rem;
    border-radius: 4px;
    margin: .5rem 0;
    font-size: .9rem;
}
.report-details {
    margin-top: .35rem;
    color: #555;
    font-style: italic;
}

.badge-self { background: #e5f3ee; color: #087f73; }
.badge-deal { background: #ddf4e4; color: #1a531e; }
.badge-comment { background: #fff7d6; color: #856700; }

.report-detail {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1.5rem;
    max-width: 760px;
}
.report-detail-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.report-target-block {
    background: #f6f7f9;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}
.report-details-block {
    background: #fff8f0;
    border-left: 3px solid #f0c674;
    padding: .75rem 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #555;
}
.report-closed-block {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}
.resolve-form {
    display: flex; gap: .5rem; align-items: center; margin: 1rem 0;
}
.resolve-form select {
    flex: 1; padding: .55rem .75rem;
    border: 1px solid #d0d7de; border-radius: 6px; font: inherit;
}
.resolve-hint { font-size: .85rem; }

.checkbox-row { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; }
.checkbox-row input { width: auto; margin: 0; }

/* ================== Phase 9: admin user management ================== */
.user-search {
    display: flex; gap: .5rem; align-items: center;
    margin: 1rem 0; max-width: 600px;
}
.user-search input { flex: 1; padding: .55rem .75rem; border: 1px solid #d0d7de; border-radius: 6px; font: inherit; }
.user-search a.muted { font-size: .85rem; }

.user-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
}
.user-table th, .user-table td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: .9rem; }
.user-table th { background: #f6f7f9; font-weight: 600; color: #555; }
.user-table tr.row-banned { background: #fff5f5; opacity: .7; }
.user-table .btn-secondary { padding: .3rem .65rem; font-size: .85rem; }

.user-admin-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem;
}
@media (max-width: 720px) { .user-admin-grid { grid-template-columns: 1fr; } }

.admin-actions {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}
.admin-actions h3 { margin-top: 0; font-size: 1rem; color: #555; }
.admin-actions .inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.admin-actions select, .admin-actions input[type="text"] {
    padding: .4rem .6rem; border: 1px solid #d0d7de; border-radius: 4px; font: inherit;
}

/* Phase 10 — merchant page */
.deal-merchant a, a.deal-merchant { color: #555; text-decoration: none; }
.deal-merchant a:hover, a.deal-merchant:hover { color: #087f73; text-decoration: underline; }

/* ================== Phase 11: account self-service ================== */
.banner {
    padding: .75rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: .9rem;
}
.banner-warning {
    background: #fff8e1;
    border-left: 4px solid #f0c674;
    color: #5b4500;
}
.banner-warning .inline-form { display: inline-block; margin-left: .75rem; }
.banner-warning .btn-secondary { padding: .25rem .55rem; font-size: .8rem; }
.verify-banner { margin-top: 1rem; }

.account-header { margin-bottom: 1.5rem; }
.account-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-bottom: 1.5rem;
}
@media (max-width: 720px) { .account-grid { grid-template-columns: 1fr; } }
.account-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}
.account-card h2 { margin-top: 0; font-size: 1.1rem; color: #333; }
.account-card label { display: block; margin-top: .75rem; font-weight: 500; font-size: .9rem; }
.account-card input[type="email"],
.account-card input[type="password"],
.account-card input[type="text"] {
    width: 100%; padding: .5rem .65rem; font: inherit;
    border: 1px solid #d0d7de; border-radius: 5px; margin-top: .25rem;
    box-sizing: border-box;
}
.account-card .hint { display: block; color: #888; font-size: .8rem; margin-top: .25rem; }
.account-card button { margin-top: 1rem; }

.my-deals { margin-bottom: 1.5rem; }
.my-deals-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.my-deals-table th, .my-deals-table td {
    padding: .5rem .65rem; text-align: left;
    border-bottom: 1px solid #f3f4f6; font-size: .9rem;
}
.my-deals-table th { background: #f6f7f9; font-weight: 600; color: #555; }
.my-deals-table .btn-sm { padding: .25rem .55rem; font-size: .8rem; }
.my-deals-table .inline-form { display: inline-block; margin-left: .25rem; }

.danger-zone {
    border-color: #fbb;
    background: #fff8f8;
}
.danger-zone h2 { color: #b42318; }

/* Deal-first visual system */
:root { --ink: #172b38; --muted: #596b76; --accent: #087f73; --line: #dfe6e8; --surface: #fff; }
body { background: #f5f7f8; color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, summary, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.25; }
.container { max-width: 1200px; padding-inline: 28px; }
main.container { min-height: 64vh; padding-top: 16px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { padding: 20px 0; border-bottom: 1px solid var(--line); background: white; }
.header-row { gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 21px; letter-spacing: -.6px; line-height: 1.2; white-space: nowrap; }
.logo small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .6px; margin-top: 5px; color: var(--muted); }
.brand-mark { display: grid; place-content: center; position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: white; font-size: 32px; font-weight: 800; letter-spacing: -3px; padding-right: 7px; }
.brand-mark span { color: #81d7bb; position: absolute; right: 9px; bottom: 2px; }
.nav { gap: 24px; font-size: 13px; font-weight: 600; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.btn-primary-sm { color: white; }
.btn-primary, .btn-primary-sm, .btn-go { background: var(--accent); border-color: var(--accent); border-radius: 7px; box-shadow: 0 2px 2px #172b3808; }
.btn-primary:hover, .btn-primary-sm:hover, .btn-go:hover { background: #06665d; border-color: #06665d; text-decoration: none; }
.btn-primary-sm { padding: 10px 16px; display: inline-block; font-size: 13px; }
.btn-secondary { color: var(--ink); border-color: #c4d0d5; margin-left: 0; border-radius: 7px; }
.profile-trigger { font-size: 13px; border-color: var(--line); }
.profile-panel a { font-weight: 500; }
.list-header { padding: 26px 0 30px; margin: 0; max-width: 720px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.8px; margin: 0 0 12px; }
.list-header h1 { font-size: clamp(27px, 3.1vw, 39px); font-weight: 750; letter-spacing: -1.3px; overflow-wrap: anywhere; }
.list-sub { color: var(--muted); font-size: 14px; max-width: 600px; margin-top: 12px; }
.browse-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 28px; align-items: start; }
.feed-content { grid-column: 2; grid-row: 1; min-width: 0; }
.browse-sidebar { grid-column: 1; grid-row: 1; min-width: 0; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 13px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.feed-tabs { border: 0; gap: 5px; margin: 0; }
.feed-tabs > a { padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border: 0; border-radius: 7px; margin: 0; }
.feed-tabs > a.active { color: white; background: var(--ink); border: 0; }
.feed-tabs > a:hover:not(.active) { background: #e9eef0; color: var(--ink); }
.feed-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.window-tabs { margin-left: 5px; gap: 0; }
.window-tabs a { padding: 5px 7px; font-size: 11px; }
.category-rail { margin: 0; padding: 20px; border: 1px solid var(--line); background: white; border-radius: 10px; }
.category-rail h2 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.category-rail .hint { font-size: 11px; margin-bottom: 18px; color: var(--muted); }
.category-rail ul { display: grid; gap: 5px; margin: 10px -8px -6px; }
.category-rail a { display: block; border: 0; border-radius: 6px; font-size: 12px; padding: 9px 10px; background: transparent; color: var(--muted); }
.category-rail a:hover { background: #f1f6f5; color: var(--accent); }
.category-rail a.active { background: #e5f3ee; color: #06665d; font-weight: 650; }
.community-note { padding: 22px 20px; margin-top: 18px; border-radius: 10px; background: #e8f2ee; border: 1px solid #d4e6de; }
.community-note .eyebrow { font-size: 8px; letter-spacing: 1.25px; }
.community-note h2 { margin: 10px 0; font-size: 18px; }
.community-note p { font-size: 12px; color: #48665b; margin: 0 0 18px; }
.community-note .btn-primary-sm { font-size: 12px; width: 100%; text-align: center; }
.feed-footnote { font-size: 11px; line-height: 1.7; padding: 0 8px; color: var(--muted); margin-top: 20px; }
.deal-list { gap: 14px; }
.deal-card { grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; padding: 20px; gap: 20px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 3px #172b3803; transition: border-color .15s, box-shadow .15s; }
.deal-card:hover { border-color: #b9cdca; box-shadow: 0 4px 14px #172b3807; }
.deal-image { display: block; aspect-ratio: 1; background: #f6f8f8; border-radius: 8px; text-decoration: none; }
.deal-image img { object-fit: contain; padding: 8px; }
.deal-image-placeholder { flex-direction: column; gap: 6px; color: #6b7f84; background: #f0f4f3; }
.deal-image-placeholder > span { font-size: 36px; color: #8caaa3; line-height: 1; }
.deal-image-placeholder small { font-size: 10px; }
.deal-body { min-width: 0; }
.deal-title { font-size: 16px; font-weight: 650; line-height: 1.45; margin: 10px 0; overflow-wrap: anywhere; }
.deal-title a { color: var(--ink); }
.deal-meta-top { gap: 8px; font-size: 11px; }
.deal-category a { color: var(--muted); }
.badge { font-size: 9px; letter-spacing: .4px; padding: 3px 7px; }
.badge-running { background: #e5f3ee; color: #22644c; }
.deal-pricing { gap: 9px; margin: 7px 0 12px; }
.deal-pricing .price { font-size: 24px; letter-spacing: -.7px; color: var(--ink); line-height: 1.2; }
.deal-pricing .price-original { font-size: 12px; color: #687982; }
.deal-pricing .price-discount { background: #e5f3ee; color: #22644c; font-size: 10px; padding: 3px 6px; }
.deal-meta-bottom { gap: 12px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.deal-score { display: inline-flex; gap: 4px; align-items: center; }
.deal-score strong { color: #22644c; }
.deal-comments { color: var(--muted); text-decoration: none; }
.deal-comments:hover { text-decoration: underline; }
.deal-poster { width: 100%; }
.deal-view { font-size: 11px; font-weight: 650; text-decoration: none; color: var(--ink); border: 1px solid #ccd8dc; border-radius: 6px; padding: 8px 11px; white-space: nowrap; }
.deal-view:hover { background: #e5f3ee; border-color: #89b6a8; }
.empty-state { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 64px 28px; }
.empty-mark { display: grid; place-content: center; width: 58px; height: 58px; background: #e8f2ee; color: var(--accent); font-size: 35px; margin: 0 auto 22px; border-radius: 16px; }
.empty-state h2 { font-size: 23px; color: var(--ink); margin: 0 0 12px; }
.empty-state p { max-width: 380px; margin: 12px auto 22px; font-size: 13px; }
.site-footer { background: white; border-color: var(--line); margin-top: 64px; padding: 28px 0; text-align: left; }
.site-footer > .container { display: flex; align-items: start; justify-content: space-between; gap: 48px; }
.footer-brand { margin: 0; font-size: 12px; color: var(--ink); font-weight: 650; white-space: nowrap; }
.footer-brand span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 5px; }
.affiliate-disclosure { margin: 0; max-width: 510px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.auth-card, .submit-card, .profile-card, .account-card, .deal-detail { border-color: var(--line); border-radius: 12px; box-shadow: 0 3px 12px #172b3804; }
.auth-card { padding: 32px; max-width: 440px; }
.auth-card h1, .submit-card h1 { letter-spacing: -.7px; }
.detail-header h1 { font-size: clamp(23px, 3vw, 32px); max-width: 840px; }
.detail-image { min-width: 0; }
.price-block { background: #eef6f2; padding: 24px; border: 1px solid #d8e8df; }
.price-now { color: var(--ink); font-size: 34px; letter-spacing: -1px; }
.detail-actions small, .detail-poster, .detail-meta-top, .muted { color: var(--muted); }
.detail-description { overflow-wrap: anywhere; }
.detail-image .large { min-height: 240px; border-radius: 8px; }
@media (max-width: 1050px) {
    .browse-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
    .deal-card { grid-template-columns: 105px minmax(0, 1fr); gap: 16px; }
    .deal-view { grid-column: 2; justify-self: start; }
    .deal-image { align-self: start; }
    .nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
    .feed-toolbar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .container { padding-inline: 18px; }
    .header-row { flex-wrap: nowrap; align-items: center; gap: 15px; }
    .site-header { padding-block: 16px; }
    .logo { font-size: 17px; gap: 8px; }
    .brand-mark { width: 36px; height: 36px; font-size: 28px; }
    .nav { width: auto; gap: 12px; font-size: 12px; }
    .nav .browse-link { display: none; }
    .nav .btn-primary-sm { font-size: 11px; padding: 9px 11px; }
    .list-header { padding: 22px 0 26px; }
    .list-header h1 { letter-spacing: -.8px; }
    .browse-layout { display: flex; flex-direction: column; gap: 18px; }
    .feed-content { order: 2; width: 100%; }
    .browse-sidebar { display: contents; }
    .category-rail { order: 1; width: 100%; padding: 14px; }
    .category-rail h2 { font-size: 12px; }
    .category-rail .hint { display: none; }
    .category-rail ul { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; margin: 8px 0 0; gap: 6px; }
    .category-rail li { flex: 0 0 auto; }
    .category-rail li a { background: #f2f5f5; padding: 7px 11px; font-size: 11px; }
    .category-rail li a.active { background: #e5f3ee; }
    .community-note { order: 3; width: 100%; margin-top: 0; }
    .community-note .btn-primary-sm { width: auto; }
    .feed-footnote { order: 4; margin: 0; }
    .deal-card { padding: 16px; }
    .site-footer > .container { flex-direction: column; gap: 18px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .deal-detail { padding: 22px; }
}
@media (max-width: 440px) {
    .logo small { display: none; }
    .nav { gap: 9px; }
    .nav .btn-primary-sm { max-width: 110px; text-align: center; line-height: 1.3; }
    .profile-trigger { padding: 7px; max-width: 190px; font-size: 11px; }
    .profile-trigger > span:first-child { overflow-wrap: anywhere; min-width: 0; }
    .deal-card { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
    .deal-title { font-size: 14px; }
    .deal-pricing .price { font-size: 22px; }
    .deal-meta-top { gap: 6px; }
    .deal-meta-bottom { gap: 8px; }
    .deal-image-placeholder small { font-size: 8px; }
    .feed-tabs > a { padding: 9px 10px; font-size: 12px; }
    .feed-count { font-size: 11px; }
    .window-tabs { width: 100%; margin: 8px 0 0; }
    .empty-state { padding: 40px 20px; }
    .empty-state h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* A fuller marketplace: compact discovery, colorful navigation and a dense deal grid. */
:root { --deal-orange: #ae4017; --deal-blue: #2855ac; }
.container { max-width: 1380px; padding-inline: 24px; }
body { background: #f2f5f8; }
.site-header { padding: 16px 0 0; border-bottom: 0; }
.site-header .header-row { padding-bottom: 16px; }
.brand-mark { background: #087f73; }
.brand-mark span { color: #ffd38c; }
.market-nav { background: #172e46; color: #fff; }
.market-nav-row { display: flex; align-items: stretch; gap: 28px; overflow-x: auto; scrollbar-width: thin; }
.market-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 0; color: #f3f7fc; white-space: nowrap; font-size: 12px; font-weight: 600; text-decoration: none; }
.market-nav a:hover { color: #ffce86; }
.market-nav .nav-spark { color: #ffba64; font-size: 18px; line-height: 1; }
.market-nav .market-nav-share { margin-left: auto; color: #a3e5d1; }
main.container { padding-top: 20px; }
.market-intro { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; margin-bottom: 18px; border: 1px solid #d6e3ed; border-radius: 10px; background: linear-gradient(110deg, #e4f2ee 0%, #edf3ff 70%, #f5f0ff 100%); }
.market-intro .eyebrow { font-size: 8px; line-height: 1.2; letter-spacing: 1.4px; margin-bottom: 7px; }
.market-intro h1 { font-size: clamp(25px, 2.4vw, 31px); line-height: 1.15; letter-spacing: -.9px; }
.market-intro .list-sub { font-size: 12px; line-height: 1.4; margin-top: 7px; }
.intro-action { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff9ef; border: 1px solid #f0d9b9; border-radius: 9px; text-decoration: none; font-size: 11px; color: #795332; flex-shrink: 0; }
.intro-action strong { display: block; color: #9a431b; font-size: 12px; margin-top: 3px; }
.intro-action-icon { display: grid; place-items: center; height: 32px; width: 32px; background: #ffdfac; color: #9a431b; border-radius: 50%; font-size: 23px; }
.intro-action:hover { border-color: #c48c4a; }
.browse-layout { grid-template-columns: 216px minmax(0, 1fr); gap: 22px; }
.feed-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.feed-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.45px; }
.feed-toolbar { background: #fff; border: 1px solid var(--line); padding: 7px; border-radius: 9px; margin-bottom: 14px; flex-wrap: nowrap; }
.feed-tabs > a { padding: 8px 12px; font-size: 12px; }
.feed-tabs > a.active { background: #087f73; }
.view-switch { display: inline-flex; gap: 3px; flex-shrink: 0; }
.view-switch a { display: grid; place-items: center; padding: 8px; border: 1px solid transparent; border-radius: 5px; color: #627887; }
.view-switch a.active { background: #edf3fa; color: #2855ac; border-color: #d9e5f1; }
.view-switch a:hover { background: #e7efef; }
.deal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.deal-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; position: relative; border-radius: 10px; }
.deal-card:hover { border-color: #a8c4d4; box-shadow: 0 5px 18px #172b380e; }
.deal-card .deal-image { width: 100%; height: 140px; aspect-ratio: auto; align-self: stretch; border-radius: 0; background: #fff; border-bottom: 1px solid #edf1f4; }
.deal-card .deal-image img { padding: 14px 20px; }
.deal-card .deal-image-placeholder { background: linear-gradient(140deg, #edf4fb, #eff7f3); color: #506e7a; }
.deal-card:nth-child(3n + 2) .deal-image-placeholder { background: linear-gradient(140deg, #fff2df, #f8f4e9); }
.deal-card:nth-child(3n) .deal-image-placeholder { background: linear-gradient(140deg, #f0edfb, #edf2fa); }
.deal-card .deal-image-placeholder > span { font-size: 45px; color: #7c9ead; }
.deal-card .deal-body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 0; }
.deal-card .deal-meta-top { font-size: 10px; gap: 6px; }
.deal-card .deal-meta-top .deal-category { width: 100%; }
.deal-card .deal-title { margin: 8px 0 12px; font-size: 14px; line-height: 1.45; font-weight: 650; }
.deal-card .deal-pricing { margin: auto 0 12px; gap: 7px; }
.deal-card .deal-pricing .price { color: #ae4017; font-size: 24px; }
.deal-card .price-discount { background: #fff0db; color: #97430b; font-size: 10px; }
.deal-card .deal-meta-bottom { margin: 0; gap: 9px; padding-top: 10px; border-top: 1px solid #eef1f3; font-size: 10px; }
.deal-card .deal-score { background: #e9f5ef; color: #23684e; border-radius: 5px; padding: 2px 6px; }
.deal-card .deal-poster { font-size: 10px; color: #657782; }
.deal-card .deal-view { margin: 12px 15px 15px; padding: 7px 10px; text-align: center; border-color: #d6e3ec; color: #2855ac; background: #f5f8fc; }
.category-rail { padding: 17px 15px; border-top: 3px solid #087f73; }
.category-rail h2 { font-size: 15px; }
.category-rail .hint { margin-bottom: 12px; }
.category-rail a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; font-size: 12px; }
.category-rail ul { gap: 2px; }
.category-dot { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; background: #e2eee9; color: #087f73; flex-shrink: 0; font-size: 11px; }
.category-dot:empty::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #358471; }
.category-rail li:nth-child(4n + 2) .category-dot { background: #e5ecfd; }
.category-rail li:nth-child(4n + 2) .category-dot:empty::after { background: #5174c9; }
.category-rail li:nth-child(4n + 3) .category-dot { background: #fcebd6; }
.category-rail li:nth-child(4n + 3) .category-dot:empty::after { background: #b67b35; }
.category-rail li:nth-child(4n) .category-dot { background: #f1e6f6; }
.category-rail li:nth-child(4n) .category-dot:empty::after { background: #9b61aa; }
.quick-picks { margin-top: 18px; }
.quick-picks h2 { margin: 0 0 12px; font-size: 13px; }
.quick-pick { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #ead9ca; border-radius: 7px; background: #fff3e7; color: #954816; text-decoration: none; margin: 8px 0; }
.quick-pick > span:first-child { font-size: 20px; }
.quick-pick > span:last-child { margin-left: auto; }
.quick-pick strong { display: block; font-size: 11px; }
.quick-pick small { display: block; font-size: 10px; opacity: .85; margin-top: 1px; }
.quick-pick:hover { filter: brightness(.97); }
.pick-new { background: #eaf3ff; color: #2855ac; border-color: #d1e0f4; }
.pick-top { background: #f1ecfc; color: #73539b; border-color: #e0d4f0; }
.community-note { padding: 19px 15px; background: #173d4c; border-color: #173d4c; color: #fff; }
.community-note .eyebrow { color: #9fdfcf; }
.community-note p { color: #d2e2e7; }
.community-note .btn-primary-sm { background: #ffdb9c; border-color: #ffdb9c; color: #623b0b; }
.community-note .btn-primary-sm:hover { background: #ffd184; }
.empty-state { padding: 32px 24px; border-top: 3px solid #6c8dc7; background: linear-gradient(135deg, white 75%, #f0f6ff); }
.empty-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 29px; margin-bottom: 16px; }
.empty-state h2 { font-size: 22px; }
.empty-state p { margin: 10px auto 14px; }
.empty-state p:last-child a { display: inline-block; background: #087f73; color: #fff; padding: 3px 11px; border-radius: 5px; text-decoration: none; }
.section-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 22px 0 12px; }
.section-caption h2 { font-size: 17px; margin: 0; }
.section-caption > span { color: var(--muted); font-size: 11px; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.discovery-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid #cbddef; border-radius: 8px; text-decoration: none; background: #e7f0fc; color: #254c88; }
.discovery-card .category-symbol { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.discovery-card strong { font-size: 13px; }
.discovery-card > span:last-child { font-size: 10px; margin-top: 5px; }
.discovery-card:hover { box-shadow: 0 3px 10px #172b3810; filter: brightness(.98); }
.tone-1 { background: #fff0dc; border-color: #ecd8b8; color: #88561f; }
.tone-2 { background: #f1eafb; border-color: #dfcfee; color: #744697; }
.tone-3 { background: #fbe9ed; border-color: #edcdd7; color: #a34b68; }
.tone-4 { background: #e3f3e9; border-color: #c6e2d3; color: #286b4b; }
.tone-5 { background: #e5f2f4; border-color: #c7dee5; color: #286573; }
.feed-content.is-list .deal-list { grid-template-columns: minmax(0, 1fr); }
.feed-content.is-list .deal-card { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; padding: 16px; gap: 18px; align-items: center; }
.feed-content.is-list .deal-image { height: 125px; border: 0; border-radius: 7px; }
.feed-content.is-list .deal-body { padding: 0; }
.feed-content.is-list .deal-title { margin: 8px 0; font-size: 15px; }
.feed-content.is-list .deal-meta-top .deal-category { width: auto; }
.feed-content.is-list .deal-view { margin: 0; grid-column: auto; }
.feed-content.is-list .deal-meta-bottom { border: 0; padding: 0; }
.feed-content.is-list .deal-poster { width: auto; }
@media (min-width: 1550px) { .container { max-width: 1500px; } .deal-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .deal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .market-intro { padding: 20px; } .intro-action { padding: 12px; } .feed-content.is-list .deal-card { grid-template-columns: 105px minmax(0, 1fr); } .feed-content.is-list .deal-view { grid-column: 2; justify-self: start; } }
@media (max-width: 760px) {
    .container { padding-inline: 16px; }
    .market-nav-row { gap: 22px; }
    .market-nav a { font-size: 11px; padding-block: 10px; }
    .market-nav .market-nav-share { margin-left: 0; }
    main.container { padding-top: 16px; }
    .market-intro { display: block; padding: 18px; margin-bottom: 16px; }
    .market-intro .eyebrow { font-size: 8px; letter-spacing: 1px; }
    .market-intro h1 { font-size: 27px; }
    .intro-action { display: none; }
    .browse-layout { gap: 16px; }
    .category-rail { padding: 12px; border-top-width: 2px; }
    .category-rail li a { padding: 6px 9px; }
    .category-dot { width: 15px; height: 15px; border-radius: 4px; }
    .category-rail ul { margin-top: 6px; }
    .quick-picks { order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; margin-top: 0; }
    .quick-picks h2 { grid-column: 1 / -1; margin: 0; }
    .quick-pick { margin: 0; gap: 5px; padding: 9px; }
    .quick-pick > span:first-child { font-size: 16px; }
    .quick-pick > span:last-child { display: none; }
    .quick-pick small { display: none; }
    .quick-pick strong { font-size: 10px; }
    .community-note { order: 4; }
    .feed-footnote { order: 5; }
    .feed-heading h2 { font-size: 19px; }
    .deal-list { gap: 10px; }
    .deal-card .deal-image { height: 145px; }
    .deal-card .deal-body { padding: 12px 12px 0; }
    .deal-card .deal-view { margin: 10px 12px 12px; }
    .deal-card .deal-title { font-size: 13px; }
    .feed-content.is-list .deal-card { padding: 12px; gap: 12px; grid-template-columns: 85px minmax(0, 1fr); }
    .feed-content.is-list .deal-image { height: 95px; }
    .feed-content.is-list .deal-body { padding: 0; }
    .feed-content.is-list .deal-view { margin: 0; }
}
@media (max-width: 440px) {
    .feed-toolbar { padding: 5px; align-items: start; }
    .feed-tabs { gap: 0; }
    .feed-tabs > a { font-size: 11px; padding: 8px 9px; }
    .view-switch a { padding: 7px; }
    .deal-card .deal-image { height: 122px; }
    .deal-card .deal-meta-top { font-size: 10px; }
    .deal-card .deal-pricing .price { font-size: 21px; }
    .deal-card .deal-pricing { gap: 5px; }
    .deal-card .deal-pricing .price-original { font-size: 10px; }
    .deal-card .deal-meta-bottom { gap: 6px; }
    .deal-card .deal-poster { font-size: 9px; }
    .deal-card .deal-score > span:last-child { display: none; }
    .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .discovery-card { padding: 14px; }
    .section-caption > span { display: none; }
}
@media (max-width: 359px) { .deal-list { grid-template-columns: minmax(0, 1fr); } .view-switch a { padding: 5px; } }
.nav-label-short { display: none; }
@media (max-width: 760px) {
    .nav-label-wide { display: none; }
    .nav-label-short { display: inline; }
    .nav .btn-primary-sm { max-width: none; white-space: nowrap; }
}
.affiliate-preview { margin-top: 2rem; }
