/* ============================================================
   REQUESTS.CSS - PRISTINE PREMIUM UI (STRICT BRAND)
   ============================================================ */

:root {
  --ff-head: 'Bricolage Grotesque', sans-serif;
  --ff-body: 'Plus Jakarta Sans', sans-serif;
}

.requests-page { background: var(--bg); font-family: var(--ff-body); color: var(--text); }
.hidden { display: none !important; }

/* Hero */
.req-hero {
  position: relative;
  background: linear-gradient(135deg, #0E2040 0%, #001233 60%, #0a1628 100%);
  padding: 72px 0 56px;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.req-hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,162,39,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 1;
}
.req-hero-inner { position: relative; z-index: 2; }
.req-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(201, 162, 39, 0.15); border: 1px solid rgba(201, 162, 39, 0.3);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mnuc-gold); margin-bottom: 16px;
}
.req-hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mnuc-gold); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.req-hero-title { font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.02em; }
.req-hero-title em { color: var(--mnuc-gold); font-style: normal; }
.req-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 500px; line-height: 1.6; }

.req-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.req-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.req-hero-stat strong { font-family: var(--ff-head); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.req-hero-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Toolbar */
.req-toolbar {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.req-toolbar-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.req-filter-pills { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.req-filter-pills::-webkit-scrollbar { display: none; }
.req-pill {
  flex-shrink: 0; padding: 8px 16px; border-radius: 99px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); white-space: nowrap; transition: all 0.18s; font-family: var(--ff-body);
}
.req-pill:hover { border-color: var(--mnuc-blue); color: var(--mnuc-blue); }
.req-pill.active { background: var(--mnuc-navy); border-color: var(--mnuc-navy); color: var(--mnuc-gold); }
.btn-post-req { flex-shrink: 0; white-space: nowrap; }

/* Layout */
.req-main-section { padding: 40px 0 80px; }
.req-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.req-list { display: flex; flex-direction: column; gap: 16px; }

/* Request Card */
.req-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px; transition: all 0.2s; cursor: default; animation: cardIn 0.3s ease both;
}
.req-card:hover { border-color: rgba(0,82,255,0.2); box-shadow: 0 8px 28px rgba(14,32,64,0.08); transform: translateY(-2px); }
@keyframes cardIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.req-card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.req-cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.req-cat-icon svg { width: 24px; height: 24px; }

.req-card-meta { flex: 1; min-width: 0; }
.req-card-title { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700; color: var(--mnuc-navy); line-height: 1.4; margin-bottom: 4px; }
.req-card-byline { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.req-card-byline span { display: flex; align-items: center; gap: 4px; }
.req-card-byline svg { color: var(--mnuc-gold); }

.req-card-desc { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.req-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.req-card-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Strict Brand Category Pills */
.req-cat-rentals    { background: rgba(14,32,64,0.08);   color: #0E2040; }
.req-cat-books      { background: rgba(0,82,255,0.08);   color: #0052FF; }
.req-cat-electronics{ background: rgba(201,162,39,0.12); color: #9A7A1A; }
.req-cat-beddings   { background: rgba(14,32,64,0.08);   color: #0E2040; }
.req-cat-food       { background: rgba(0,82,255,0.08);   color: #0052FF; }
.req-cat-services   { background: rgba(201,162,39,0.12); color: #9A7A1A; }
.req-cat-clothes    { background: rgba(14,32,64,0.08);   color: #0E2040; }
.req-cat-other      { background: rgba(14,32,64,0.05);   color: #6B7280; }
/* Status Badges */
.req-status-badge { font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; display: flex; align-items: center; gap: 4px; }
.req-status-open    { background: rgba(5, 150, 105, 0.1); color: #059669; }
.req-status-urgent  { background: rgba(220, 38, 38, 0.1); color: #DC2626; }

/* Skeletons & Empty */
.req-skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; }
.sk-line { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 10px; }
.sk-line.w80 { width: 80%; } .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.req-empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1.5px dashed var(--border); border-radius: 16px; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: var(--bg); border-radius: 50%; color: var(--text-muted); margin-bottom: 16px; }
.req-empty h3 { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 800; color: var(--mnuc-navy); margin-bottom: 8px; }
.req-empty p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.load-more-wrap { margin-top: 16px; }

/* Sidebar */
.req-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.sidebar-card-head { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.sidebar-card-head h3 { font-family: var(--ff-head); font-size: 0.95rem; font-weight: 700; color: var(--mnuc-navy); display: flex; align-items: center; gap: 8px; }
.sidebar-card-head h3 svg { color: var(--mnuc-gold); }
.sidebar-card-head p { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.sidebar-card-body { padding: 18px 20px; }

.req-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req-stat-box { padding: 16px; background: var(--bg); border-radius: 12px; text-align: center; }
.req-stat-box strong { display: block; font-family: var(--ff-head); font-size: 1.5rem; font-weight: 800; color: var(--mnuc-navy); }
.req-stat-box span { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-tips { display: flex; flex-direction: column; gap: 14px; }
.sidebar-tip { display: flex; gap: 12px; align-items: flex-start; }
.tip-ico { color: var(--mnuc-blue); flex-shrink: 0; margin-top: 2px; display: flex; }
.tip-text { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.tip-text strong { color: var(--mnuc-navy); font-weight: 700; }

.req-cta-card { background: linear-gradient(135deg, var(--mnuc-navy), #1a3060); border-radius: 16px; padding: 24px; text-align: center; }
.req-cta-icon { color: var(--mnuc-gold); margin-bottom: 12px; display: flex; justify-content: center; }
.req-cta-card h3 { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.req-cta-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; line-height: 1.5; }

/* Modal */
.modal-sheet { max-width: 640px; border-radius: 24px 24px 0 0; padding: 0; }
.modal-drag { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 14px auto 0; }
.modal-header { padding: 12px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 700; color: var(--mnuc-navy); }
.modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
.modal-body { padding: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req-mark { color: #DC2626; margin-left: 2px; }
.label-muted { color: var(--text-muted); font-weight: 500; }

.form-urgency { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.urgency-option { position: relative; }
.urgency-option input { position: absolute; opacity: 0; }
.urgency-label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.18s; background: var(--surface); }
.urgency-label:hover { border-color: var(--mnuc-blue); }
.urgency-option input:checked + .urgency-label { border-color: var(--mnuc-blue); background: rgba(0, 82, 255, 0.03); }
.urgency-label-text { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.urgency-label-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.urgency-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.urgency-dot.open { background: #10B981; }
.urgency-dot.urgent { background: #EF4444; }

/* Success State */
.success-state { text-align: center; padding: 48px 24px; }
.success-icon { color: #059669; margin-bottom: 16px; animation: popIn 0.5s cubic-bezier(0.16,1,0.3,1); display: flex; justify-content: center; }
@keyframes popIn { from{transform:scale(0.5);opacity:0} to{transform:scale(1);opacity:1} }
.success-state h3 { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 800; color: var(--mnuc-navy); margin-bottom: 8px; }
.success-state p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media(max-width: 900px) {
  .req-layout { grid-template-columns: 1fr; }
}
@media(max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .form-urgency { grid-template-columns: 1fr; }

}
#modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(14,32,64,0.85); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
#modal-backdrop.hidden { display: none !important; }

.modal-sheet {
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 24px 24px 0 0;
  padding-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}