/* ══════════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #1a6b3c;
  --brand-light: #e8f5ee;
  --brand-dark:  #134f2c;
  --accent:      #f05a28;
  --bg:          #f6f7f9;
  --surface:     #ffffff;
  --border:      #e4e7ec;
  --text:        #111827;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --radius:      10px;
  --radius-lg:   14px;
  --shadow:      0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.container      { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.main-layout    { max-width: 1140px; margin: 2rem auto; padding: 0 1.25rem; display: grid; grid-template-columns: 240px 1fr; gap: 1.75rem; }
.form-container { padding-top: 2rem; padding-bottom: 3rem; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; height: 60px; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.brand-icon { font-size: 1.3rem; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; }
.nav-link { padding: .4rem .75rem; border-radius: 6px; font-size: .9rem; color: var(--text-muted); font-weight: 500; transition: background .15s, color .15s; }
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.btn-report-nav { background: var(--brand); color: #fff; padding: .45rem 1rem; border-radius: 7px; font-size: .88rem; font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn-report-nav:hover { background: var(--brand-dark); text-decoration: none; }
.nav-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); margin-left: .5rem; }
.mobile-menu { display: none; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); }
.mobile-menu a { padding: .8rem 1.25rem; font-size: .95rem; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu.open { display: flex; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-strip { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 3.5rem 1.25rem; }
.hero-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: #fff; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 20px; letter-spacing: .04em; margin-bottom: .75rem; }
.hero-text h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
.hero-text p  { margin-top: .6rem; opacity: .85; font-size: 1.05rem; }
.hero-cta     { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.hero-stat    { color: rgba(255,255,255,.7); font-size: .82rem; }
.btn-hero { background: #fff; color: var(--brand); padding: .75rem 1.75rem; border-radius: 8px; font-weight: 700; font-size: 1rem; white-space: nowrap; transition: transform .15s; }
.btn-hero:hover { transform: translateY(-1px); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════ */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; }
.stat-item { flex: 1 1 80px; text-align: center; padding: 1rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-item span { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.text-success { color: #16a34a; }
.text-warning { color: #d97706; }
.text-danger  { color: #dc2626; }
.text-brand   { color: var(--brand); }

/* ══════════════════════════════════════════════════════════
   SIDEBAR (FEED PAGE)
══════════════════════════════════════════════════════════ */
.sidebar { min-width: 0; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .9rem; font-weight: 600; }

.filter-list { list-style: none; display: flex; flex-direction: column; gap: .18rem; max-height: 260px; overflow-y: auto; }
.filter-link { display: flex; justify-content: space-between; align-items: center; padding: .38rem .65rem; border-radius: 6px; font-size: .875rem; color: var(--text-muted); transition: background .15s, color .15s; }
.filter-link:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.filter-link.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.filter-ward { font-size: .72rem; color: var(--text-light); margin-left: .4rem; }

.sidebar-select { width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 7px; font-size: .875rem; font-family: inherit; color: var(--text); background: var(--surface); outline: none; cursor: pointer; transition: border-color .15s; }
.sidebar-select:focus    { border-color: var(--brand); }
.sidebar-select:disabled { background: var(--bg); color: var(--text-light); cursor: not-allowed; }

.btn-filter-apply { width: 100%; background: var(--brand); color: #fff; border: none; padding: .5rem; border-radius: 7px; font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.btn-filter-apply:hover { background: var(--brand-dark); }

.top-county-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.top-county-row:last-child { border-bottom: none; }
.top-county-name { color: var(--brand); font-weight: 500; }
.top-county-count { background: var(--brand-light); color: var(--brand); font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 20px; }

/* ══════════════════════════════════════════════════════════
   FEED
══════════════════════════════════════════════════════════ */
.feed { min-width: 0; }

.active-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .85rem; margin-bottom: 1rem; font-size: .83rem; color: var(--text-muted); }
.filter-tag { background: var(--brand-light); color: var(--brand); padding: .25rem .65rem; border-radius: 20px; font-weight: 600; font-size: .78rem; }
.filter-tag a { color: var(--brand); margin-left: .3rem; font-weight: 700; }
.filter-tag a:hover { text-decoration: none; opacity: .7; }

.feed-controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.search-form { display: flex; gap: .5rem; flex: 1; min-width: 200px; }
.search-input { flex: 1; padding: .5rem .85rem; border: 1px solid var(--border); border-radius: 7px; font-size: .9rem; font-family: inherit; outline: none; transition: border-color .15s; background: var(--surface); color: var(--text); }
.search-input:focus { border-color: var(--brand); }
.btn-search { background: var(--brand); color: #fff; border: none; padding: .5rem 1rem; border-radius: 7px; cursor: pointer; font-size: .9rem; font-weight: 500; font-family: inherit; }

.sort-tabs { display: flex; gap: .35rem; font-size: .85rem; }
.sort-tab { padding: .35rem .7rem; border-radius: 6px; color: var(--text-muted); border: 1px solid var(--border); background: var(--surface); transition: background .15s; }
.sort-tab:hover { background: var(--bg); text-decoration: none; }
.sort-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   REPORT CARD (FEED)
══════════════════════════════════════════════════════════ */
.report-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.report-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.report-img { width: 100%; height: 200px; object-fit: cover; }
.report-body { padding: 1.1rem 1.25rem; }
.report-meta-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.report-title { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.report-title a { color: var(--text); }
.report-title a:hover { color: var(--brand); text-decoration: none; }
.report-excerpt { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }

.report-location-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .65rem; font-size: .8rem; }
.loc-chip { background: var(--bg); border: 1px solid var(--border); padding: .18rem .55rem; border-radius: 20px; color: var(--text-muted); font-size: .78rem; }
.report-time { margin-left: auto; color: var(--text-light); font-size: .78rem; }

.report-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.btn-upvote, .btn-verify { background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: .35rem .8rem; font-size: .85rem; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; color: var(--text); }
.btn-upvote:hover { background: #dbeafe; border-color: #93c5fd; }
.btn-verify:hover { background: #d1fae5; border-color: #6ee7b7; }
.btn-upvote.voted { background: #dbeafe; border-color: #3b82f6; color: #1e40af; font-weight: 600; }
.btn-verify.voted { background: #d1fae5; border-color: #10b981; color: #065f46; font-weight: 600; }
.btn-view { font-size: .85rem; color: var(--brand); font-weight: 600; padding: .35rem .5rem; margin-left: auto; }

/* ══════════════════════════════════════════════════════════
   BADGES & STATUS
══════════════════════════════════════════════════════════ */
.cat-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .22rem .65rem; border-radius: 20px; letter-spacing: .02em; }
.color-amber  { background: #fef3c7; color: #92400e; }
.color-green  { background: #d1fae5; color: #065f46; }
.color-coral  { background: #fee2e2; color: #991b1b; }
.color-red    { background: #fee2e2; color: #7f1d1d; }
.color-blue   { background: #dbeafe; color: #1e40af; }
.color-purple { background: #ede9fe; color: #5b21b6; }
.color-pink   { background: #fce7f3; color: #9d174d; }
.color-gray   { background: #f3f4f6; color: #374151; }

.status-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .22rem .65rem; border-radius: 20px; }
.status-reported    { background: #fee2e2; color: #991b1b; }
.status-seen        { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-resolved    { background: #d1fae5; color: #065f46; }

.cat-link.color-amber:hover,  .cat-link.color-amber.active  { color: #92400e; background: #fef3c7; }
.cat-link.color-green:hover,  .cat-link.color-green.active  { color: #065f46; background: #d1fae5; }
.cat-link.color-coral:hover,  .cat-link.color-coral.active  { color: #991b1b; background: #fee2e2; }
.cat-link.color-red:hover,    .cat-link.color-red.active    { color: #7f1d1d; background: #fee2e2; }
.cat-link.color-blue:hover,   .cat-link.color-blue.active   { color: #1e40af; background: #dbeafe; }
.cat-link.color-purple:hover, .cat-link.color-purple.active { color: #5b21b6; background: #ede9fe; }
.cat-link.color-pink:hover,   .cat-link.color-pink.active   { color: #9d174d; background: #fce7f3; }
.cat-link.color-gray:hover,   .cat-link.color-gray.active   { color: #374151; background: #f3f4f6; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-primary { display: inline-block; background: var(--brand); color: #fff; padding: .55rem 1.25rem; border-radius: 7px; font-weight: 600; font-size: .95rem; border: none; cursor: pointer; font-family: inherit; transition: background .15s; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-danger  { display: inline-block; background: #dc2626; color: #fff; padding: .55rem 1.25rem; border-radius: 7px; font-weight: 600; font-size: .95rem; border: none; cursor: pointer; font-family: inherit; transition: background .15s; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { display: inline-block; padding: .3rem .75rem; background: var(--brand); color: #fff; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.btn-sm:hover { background: var(--brand-dark); text-decoration: none; }
.btn-submit { width: 100%; background: var(--brand); color: #fff; padding: .8rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 1rem; transition: background .15s; }
.btn-submit:hover { background: var(--brand-dark); }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.report-form-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.75rem; }
.report-form-card   { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.required { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: 7px; font-size: .95rem; font-family: inherit; color: var(--text); background: var(--surface); transition: border-color .15s, box-shadow .15s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,107,60,.1); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint  { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; display: block; }
.form-check { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.form-check input { width: auto; }
.form-check label { font-weight: 400; font-size: .9rem; margin: 0; }
.btn-locate { background: none; border: 1px dashed var(--border); border-radius: 6px; padding: .3rem .75rem; font-size: .82rem; color: var(--brand); cursor: pointer; margin-top: .4rem; font-family: inherit; }

/* Upload */
.upload-zone { position: relative; border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s; background: var(--bg); }
.upload-zone:hover { border-color: var(--brand); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-placeholder p { font-size: .9rem; color: var(--text-muted); margin: .4rem 0 .2rem; }
.upload-placeholder small { font-size: .78rem; color: var(--text-light); }
.image-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: 6px; margin-top: .75rem; }

/* Tips sidebar */
.form-tips { display: flex; flex-direction: column; gap: 1rem; }
.tips-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; font-size: .88rem; }
.tips-card h3 { font-size: .88rem; margin-bottom: .65rem; }
.tips-card ul, .tips-card ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; color: var(--text-muted); }
.tips-card p { color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .92rem; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════ */
.page-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2rem 1.25rem; }
.page-header h1 { font-size: 1.6rem; }
.page-header p { color: var(--text-muted); margin-top: .4rem; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════ */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .85rem; margin: 2rem 0 1.5rem; }
.dash-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; box-shadow: var(--shadow-sm); }
.dash-stat-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.dash-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .4rem; text-transform: uppercase; letter-spacing: .04em; }
.dash-stat-card.color-danger  .dash-stat-num { color: #dc2626; }
.dash-stat-card.color-warning .dash-stat-num { color: #d97706; }
.dash-stat-card.color-success .dash-stat-num { color: #16a34a; }
.dash-stat-card.color-blue    .dash-stat-num { color: #2563eb; }

.dash-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; font-size: .88rem; }
.filter-group { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.filter-group label { font-weight: 600; color: var(--text-muted); }
.filter-pill { padding: .3rem .75rem; border-radius: 20px; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); font-size: .82rem; }
.filter-pill:hover { background: var(--bg); text-decoration: none; }
.filter-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.dash-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dash-table th { background: var(--bg); padding: .75rem 1rem; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.dash-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--bg); }
.table-title-link { color: var(--text); font-weight: 500; }
.table-title-link:hover { color: var(--brand); }

/* ══════════════════════════════════════════════════════════
   REPORT DETAIL PAGE
══════════════════════════════════════════════════════════ */
.rd-page { background: var(--bg); min-height: 100vh; padding-bottom: 4rem; }
.rd-container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem; }

/* Breadcrumb */
.rd-breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.rd-breadcrumb a { color: var(--brand); }
.rd-breadcrumb a:hover { text-decoration: underline; }
.rd-breadcrumb span { color: var(--text-light); }
.rd-breadcrumb-current { color: var(--text); font-weight: 500; }

/* Layout */
.rd-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }

/* Generic card */
.rd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.rd-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.rd-card-header h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.rd-card-body { padding: 1.25rem; }
.rd-card-footer-note { padding: .6rem 1.25rem; font-size: .78rem; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--bg); }

/* Hero card */
.rd-hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.rd-image-wrap { position: relative; }
.rd-hero-img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.rd-image-overlay { position: absolute; top: .85rem; left: .85rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.rd-cat-pill, .rd-status-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .28rem .7rem; border-radius: 20px; backdrop-filter: blur(6px); }
.rd-hero-body { padding: 1.5rem; }
.rd-badges-top { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.rd-title { font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 700; line-height: 1.35; margin: 0 0 1rem; color: var(--text); }

/* Meta chips */
.rd-meta-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.rd-chip { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--border); font-size: .78rem; color: var(--text-muted); padding: .22rem .65rem; border-radius: 20px; }
.rd-chip-location { font-style: italic; }

/* Description */
.rd-description { font-size: .97rem; line-height: 1.8; color: var(--text); white-space: pre-line; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }

/* Action bar */
.rd-action-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.rd-btn-upvote, .rd-btn-verify { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg); font-size: .92rem; font-family: inherit; cursor: pointer; font-weight: 500; color: var(--text); transition: background .15s, border-color .15s, transform .1s; }
.rd-btn-upvote:hover  { background: #dbeafe; border-color: #93c5fd; }
.rd-btn-verify:hover  { background: #d1fae5; border-color: #6ee7b7; }
.rd-btn-upvote:active, .rd-btn-verify:active { transform: scale(.97); }
.rd-btn-upvote.voted  { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.rd-btn-verify.voted  { background: #d1fae5; border-color: #10b981; color: #065f46; }
.rd-btn-upvote:disabled, .rd-btn-verify:disabled { opacity: .6; cursor: not-allowed; }
.rd-count { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: .1rem .55rem; font-size: .78rem; font-weight: 700; min-width: 24px; text-align: center; }

/* Timeline track */
.rd-timeline-track { display: flex; align-items: flex-start; margin-bottom: 1.5rem; position: relative; }
.rd-track-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.rd-track-line { position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.rd-track-step:last-child .rd-track-line { display: none; }
.rd-track-line.filled { background: var(--brand); }
.rd-track-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .85rem; z-index: 1; position: relative; transition: background .2s, border-color .2s; }
.rd-track-step.done    .rd-track-dot { background: var(--brand-light); border-color: var(--brand); }
.rd-track-step.current .rd-track-dot { background: var(--brand); border-color: var(--brand-dark); box-shadow: 0 0 0 4px rgba(26,107,60,.18); }
.rd-track-label { font-size: .72rem; color: var(--text-muted); text-align: center; margin-top: .45rem; max-width: 65px; line-height: 1.3; }
.rd-track-step.done    .rd-track-label { color: var(--brand); font-weight: 600; }
.rd-track-step.current .rd-track-label { color: var(--brand-dark); font-weight: 700; }

/* Update log */
.rd-updates { display: flex; flex-direction: column; }
.rd-update-item { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.rd-update-item:last-child { border-bottom: none; }
.rd-update-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; flex-shrink: 0; }
.status-dot-reported    { background: #dc2626; }
.status-dot-seen        { background: #d97706; }
.status-dot-in_progress { background: #2563eb; }
.status-dot-resolved    { background: #16a34a; }
.rd-update-content { flex: 1; }
.rd-update-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.rd-update-by   { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.rd-update-time { font-size: .78rem; color: var(--text-light); margin-left: auto; }
.rd-update-note { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.6; }
.rd-no-updates  { font-size: .88rem; color: var(--text-muted); margin: 0; font-style: italic; }

/* Map */
.rd-map-wrap { overflow: hidden; }
.rd-map-wrap iframe { display: block; }

/* Authority card */
.rd-authority-card { border-color: #bbf7d0; }
.rd-auth-badge { font-size: .78rem; background: var(--brand-light); color: var(--brand); padding: .2rem .6rem; border-radius: 20px; font-weight: 600; }
.rd-moderation { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.rd-moderation h3 { font-size: .9rem; color: #dc2626; margin-bottom: .75rem; }
.rd-mod-note { font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }

/* Sidebar stats */
.rd-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rd-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem; text-align: center; }
.rd-stat-num   { display: block; font-size: 2rem; font-weight: 700; color: var(--brand); }
.rd-stat-label { display: block; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.rd-stat-rows  { padding: .75rem 1.25rem 1.25rem; display: flex; flex-direction: column; }
.rd-stat-row   { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.rd-stat-row:last-child { border-bottom: none; }
.rd-stat-row span   { color: var(--text-muted); }
.rd-stat-row strong { color: var(--text); text-align: right; max-width: 55%; }

/* Share */
.rd-share-btns { display: flex; flex-direction: column; gap: .5rem; }
.rd-share-btn  { display: block; text-align: center; padding: .55rem .85rem; border-radius: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: opacity .15s, transform .1s; }
.rd-share-btn:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }
.rd-share-x    { background: #000; color: #fff; }
.rd-share-wa   { background: #25d366; color: #fff; }
.rd-share-copy { background: var(--bg); border: 1px solid var(--border); color: var(--text); }

/* CTA card */
.rd-cta-card { padding: 1.1rem 1.25rem; }
.rd-cta-card p { font-size: .88rem; color: var(--text-muted); margin: 0 0 .75rem; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 1.25rem; margin-top: 4rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; }
.footer-tagline { color: var(--text-muted); font-size: .85rem; font-weight: 400; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .88rem; color: var(--text-muted); }
.footer-copy { font-size: .8rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .rd-layout { grid-template-columns: 1fr; }
  .rd-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .rd-sidebar .rd-card { margin-bottom: 0; }
}

@media (max-width: 720px) {
  .report-form-layout { grid-template-columns: 1fr; }
  .form-tips { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .nav-links, .btn-report-nav { display: none; }
  .nav-hamburger { display: block; }
  .hero-strip { padding: 2.5rem 1.25rem; }
  .hero-cta { align-items: flex-start; }
  .stats-bar .stat-item { flex: 1 1 45%; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .rd-sidebar { grid-template-columns: 1fr; }
  .rd-action-bar { flex-direction: column; }
  .rd-btn-upvote, .rd-btn-verify { width: 100%; justify-content: center; }
  .rd-track-label { font-size: .65rem; max-width: 50px; }
  .rd-track-dot { width: 24px; height: 24px; font-size: .75rem; }
  .rd-stats-grid { grid-template-columns: 1fr 1fr; }
  .rd-update-time { margin-left: 0; }
  .rd-hero-img { max-height: 240px; }
  .form-tips { grid-template-columns: 1fr; }
  .sort-tabs { display: none; }
}
/* ── Authority Panel ──────────────────────────────────────── */
.authority-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.auth-panel-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.auth-panel-section:last-child { border-bottom: none; }
.auth-panel-section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

/* Moderation section */
.auth-moderation { background: #fafafa; }
.auth-mod-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem;
}
.auth-mod-header h2 { margin-bottom: .15rem; }
.auth-mod-header p  { font-size: .82rem; color: var(--text-muted); margin: 0; }
.auth-mod-badge {
  display: inline-block; white-space: nowrap;
  background: #fef3c7; color: #92400e;
  font-size: .72rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: 20px;
  letter-spacing: .03em;
}
.auth-mod-body {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.auth-mod-info { flex: 1; }
.auth-mod-status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600;
  padding: .28rem .75rem; border-radius: 20px;
  margin-bottom: .6rem;
}
.auth-mod-status.active  { background: #d1fae5; color: #065f46; }
.auth-mod-status.hidden  { background: #fee2e2; color: #991b1b; }
.auth-mod-info p { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.auth-mod-reason {
  margin-top: .5rem; padding: .5rem .75rem;
  background: #fee2e2; border-left: 3px solid #dc2626;
  border-radius: 0 6px 6px 0;
  font-size: .83rem; color: #7f1d1d;
  font-style: italic;
}

/* Hide button */
.btn-hide-report {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: #dc2626;
  border: 1.5px solid #fca5a5;
  padding: .55rem 1.1rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn-hide-report:hover  { background: #fee2e2; border-color: #dc2626; transform: translateY(-1px); }
.btn-hide-report:active { transform: scale(.97); }

/* Restore button */
.btn-restore-report {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: #16a34a;
  border: 1.5px solid #6ee7b7;
  padding: .55rem 1.1rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn-restore-report:hover  { background: #d1fae5; border-color: #16a34a; transform: translateY(-1px); }
.btn-restore-report:active { transform: scale(.97); }

/* ── Hide Modal ───────────────────────────────────────────── */
.hide-modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
  padding: 1.25rem;
}
.hide-modal-backdrop.open { display: flex; }

.hide-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  overflow: hidden;
  animation: modalIn .18s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hide-modal-header {
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hide-modal-icon {
  width: 56px; height: 56px;
  background: #fee2e2; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto .85rem;
}
.hide-modal-header h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.hide-modal-header p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.hide-modal-body {
  padding: 1.25rem 1.5rem;
}
.hide-modal-body label {
  display: block; font-size: .85rem;
  font-weight: 600; margin-bottom: .45rem;
}
.hide-modal-body select,
.hide-modal-body input {
  width: 100%; padding: .6rem .85rem;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: .92rem; font-family: inherit;
  color: var(--text); background: var(--surface);
  outline: none; transition: border-color .15s;
}
.hide-modal-body select:focus,
.hide-modal-body input:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

.hide-modal-footer {
  display: flex; gap: .75rem;
  padding: 1rem 1.5rem 1.5rem;
}
.hide-modal-cancel {
  flex: 1; padding: .65rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; font-size: .92rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
  color: var(--text); transition: background .15s;
}
.hide-modal-cancel:hover { background: var(--border); }
.hide-modal-confirm {
  flex: 2; padding: .65rem;
  background: #dc2626; color: #fff;
  border: none; border-radius: 8px;
  font-size: .92rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.hide-modal-confirm:hover    { background: #b91c1c; }
.hide-modal-confirm:disabled { opacity: .6; cursor: not-allowed; }

/* ── Share buttons ────────────────────────────────────────── */
.share-btn {
  display: block; text-align: center;
  padding: .5rem .85rem; border-radius: 7px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; border: none;
  font-family: inherit; transition: opacity .15s;
}
.share-btn:hover    { opacity: .85; text-decoration: none; }
.share-twitter      { background: #000; color: #fff; }
.share-whatsapp     { background: #25d366; color: #fff; }
.share-copy         { background: var(--bg); border: 1px solid var(--border); color: var(--text); }

/* ── Detail page layout ───────────────────────────────────── */
.detail-container { padding-top: 1.5rem; padding-bottom: 3rem; }
.back-link { display: inline-block; font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.back-link:hover { color: var(--brand); }
.detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.75rem; align-items: start; margin-top: .75rem; }
.detail-main { min-width: 0; }

.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.detail-img  { width: 100%; max-height: 380px; object-fit: cover; }
.detail-body { padding: 1.5rem; }
.detail-title { font-size: clamp(1.2rem,3vw,1.6rem); margin: .5rem 0 .75rem; }

.detail-meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--text-muted); margin-bottom: 1.1rem; }

.detail-description { font-size: .97rem; line-height: 1.8; color: var(--text); white-space: pre-line; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }

.detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.btn-lg { padding: .55rem 1.1rem; font-size: .95rem; }

/* Timeline */
.timeline-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.timeline-card h2 { font-size: 1rem; margin-bottom: 1.25rem; }
.timeline { display: flex; align-items: flex-start; margin-bottom: 1.25rem; }
.timeline-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.timeline-step::before { content: ''; position: absolute; top: 10px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.timeline-step:last-child::before { display: none; }
.timeline-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--border); border: 3px solid var(--surface); z-index: 1; position: relative; }
.timeline-step.done    .timeline-dot { background: var(--brand); }
.timeline-step.current .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(240,90,40,.2); }
.timeline-step.done::before { background: var(--brand); }
.timeline-label { font-size: .72rem; color: var(--text-muted); text-align: center; margin-top: .4rem; max-width: 70px; line-height: 1.3; }
.timeline-step.done    .timeline-label { color: var(--brand); font-weight: 600; }
.timeline-step.current .timeline-label { color: var(--accent); font-weight: 700; }

.timeline-updates { display: flex; flex-direction: column; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }
.timeline-update  { background: var(--bg); padding: .75rem 1rem; border-radius: 8px; font-size: .88rem; }
.update-note { margin: .3rem 0; color: var(--text); }
.timeline-update small { color: var(--text-muted); font-size: .78rem; }

/* Sidebar stat rows */
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row span   { color: var(--text-muted); }
.stat-row strong { color: var(--text); text-align: right; }

.detail-sidebar { min-width: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .detail-sidebar .sidebar-card { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .detail-sidebar { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn-upvote,
  .detail-actions .btn-verify { width: 100%; justify-content: center; }
  .auth-mod-body { flex-direction: column; }
  .timeline-label { font-size: .65rem; max-width: 52px; }
}

/* ── Sidebar filter form ──────────────────────────────────── */
.sb-filter-group { margin-bottom: .85rem; }
.sb-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

/* Apply button — full width, solid brand, clean */
.btn-filter-apply {
  display: block;
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .02em;
  transition: background .15s, transform .1s;
  margin-top: .25rem;
}
.btn-filter-apply:hover  { background: var(--brand-dark); }
.btn-filter-apply:active { transform: scale(.98); }

/* Clear all link */
.btn-filter-clear {
  display: block;
  text-align: center;
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: .3rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.btn-filter-clear:hover {
  color: #dc2626;
  background: #fee2e2;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════════════════ */
.comments-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Header */
.comments-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--brand);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.comments-header-left { display: flex; align-items: center; gap: .65rem; }
.comments-icon { font-size: 1.2rem; line-height: 1; }
.comments-header h2 {
  font-size: 1rem; font-weight: 600; margin: 0;
  color: #fff; letter-spacing: .01em;
}
.comments-count-badge {
  background: rgba(255,255,255,.18); color: #fff;
  font-size: .75rem; font-weight: 600;
  padding: .22rem .7rem; border-radius: 20px;
  letter-spacing: .03em; border: 1px solid rgba(255,255,255,.25);
}

/* Form area */
.comment-form-wrap {
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.comment-form-fields {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: .75rem;
  align-items: start;
  margin-bottom: .65rem;
}
.comment-name-input {
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  height: 42px;
}
.comment-name-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
}
.comment-form-fields textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
  outline: none;
  min-height: 80px;
  line-height: 1.65;
  transition: border-color .15s, box-shadow .15s;
}
.comment-form-fields textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,107,60,.1);
}
.comment-form-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.comment-char-count {
  font-size: .78rem; color: var(--text-light);
}
.btn-comment-submit {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand); color: #fff;
  border: none; border-radius: 8px;
  padding: .58rem 1.25rem;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(26,107,60,.25);
}
.btn-comment-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,60,.3);
}
.btn-comment-submit:active   { transform: scale(.97); box-shadow: none; }
.btn-comment-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Empty state */
.comment-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
}

/* Comment items */
.comment-list { display: flex; flex-direction: column; }

.comment-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  position: relative;
}
.comment-item:last-of-type { border-bottom: none; }
.comment-item:hover { background: #f9fafb; }

@keyframes commentIn {
  from { opacity: 0; transform: translateY(-8px); background: var(--brand-light); }
  to   { opacity: 1; transform: translateY(0); background: transparent; }
}
.comment-new { animation: commentIn .3s ease forwards; }

/* Avatar */
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: .92rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* Body */
.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex; align-items: center;
  gap: .5rem; flex-wrap: wrap;
  margin-bottom: .4rem;
}
.comment-meta strong {
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.comment-time {
  font-size: .76rem; color: var(--text-light);
  background: var(--bg);
  padding: .12rem .5rem; border-radius: 20px;
  border: 1px solid var(--border);
}
.comment-text {
  font-size: .92rem; color: var(--text);
  line-height: 1.7; margin: 0;
  word-break: break-word;
}

/* Hide btn (authority) */
.comment-hide-btn {
  margin-left: auto;
  background: none; border: none;
  cursor: pointer; font-size: .82rem;
  opacity: 0; padding: .2rem .4rem;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.comment-item:hover .comment-hide-btn { opacity: .5; }
.comment-hide-btn:hover { opacity: 1 !important; background: #fee2e2; }

/* Show more / less */
.comment-toggle-row {
  padding: .9rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}
.btn-comment-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .45rem 1.25rem;
  font-size: .83rem; font-weight: 600;
  color: var(--brand); cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-comment-toggle:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(26,107,60,.15);
}

/* Responsive */
@media (max-width: 640px) {
  .comment-form-fields { grid-template-columns: 1fr; }
  .comment-form-footer { flex-direction: column; align-items: stretch; }
  .btn-comment-submit  { justify-content: center; }
  .comment-item        { padding: .9rem 1rem; }
  .comments-header     { padding: 1rem; }
  .comment-form-wrap   { padding: 1rem; }
}

.detail-video-wrap { background: #000; }
.detail-video { width: 100%; max-height: 420px; display: block; }