/* ==========================================================================
   BuildShowcase design system
   ========================================================================== */

:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --accent: #EA580C;
  --accent-2: #F59E0B;
  --accent-dark: #C2410C;
  --charcoal: #1F2937;
  --black: #0B0E14;
  --danger: #DC2626;
  --danger-dark: #B91C1C;
  --success: #16A34A;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.06), 0 1px 3px rgba(17,24,39,0.06);
  --shadow-md: 0 6px 16px rgba(17,24,39,0.08), 0 2px 6px rgba(17,24,39,0.05);
  --shadow-lg: 0 16px 40px rgba(17,24,39,0.14);
  --nav-height: 68px;
  --mobile-nav-height: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; margin: 0; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.icon-brand { width: 24px; height: 24px; color: var(--accent); }

/* --------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px; padding: 11px 20px; font-weight: 700;
  font-size: 14.5px; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-danger { background: #FEF2F2; color: var(--danger-dark); border: 1.5px solid #FCA5A5; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* --------------------------------- Layout -------------------------------- */
.page-inner { max-width: 1080px; margin: 0 auto; padding: 28px 20px 90px; }
.page-inner.narrow { max-width: 620px; }
.page-title { font-size: 26px; margin-bottom: 20px; }
.section-title { font-size: 20px; margin: 32px 0 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------- Navbar -------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; height: var(--nav-height);
  display: flex; align-items: center; gap: 28px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--charcoal); }
.nav-links { display: none; gap: 6px; flex: 1; }
.nav-link { padding: 9px 14px; border-radius: 999px; font-weight: 600; color: var(--text-secondary); font-size: 14.5px; }
.nav-link:hover { background: #F3F4F6; color: var(--text); }
.nav-link.active { background: var(--charcoal); color: #fff; }
.navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hamburger-btn { background: none; border: none; padding: 6px; border-radius: 8px; color: var(--text); }
.hamburger-btn:hover { background: #F3F4F6; }

.navbar-user { position: relative; }
.avatar-btn { background: none; border: none; padding: 0; border-radius: 999px; }
.navbar-dropdown {
  display: none; position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 190px; overflow: hidden; z-index: 50;
}
.navbar-dropdown.open { display: block; }
.navbar-dropdown a, .navbar-dropdown button {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; width: 100%; text-align: left;
  background: none; border: none; font-size: 14px; font-weight: 600; color: var(--text);
}
.navbar-dropdown a:hover, .navbar-dropdown button:hover { background: #F9FAFB; }

.mobile-menu {
  display: none; flex-direction: column; padding: 8px 20px 18px; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  padding: 12px 4px; font-weight: 600; border-bottom: 1px solid #F3F4F6; background: none; border-left: none; border-right: none; border-top: none;
  text-align: left; font-size: 15px; color: var(--text);
}
.mobile-menu-logout { color: var(--danger); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .hamburger-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* ------------------------------- Mobile nav ------------------------------- */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--mobile-nav-height); background: #fff;
  border-top: 1px solid var(--border); display: flex; z-index: 40; box-shadow: 0 -4px 16px rgba(17,24,39,0.06);
}
.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-secondary); font-size: 11px; font-weight: 600;
}
.mobile-nav-item.active { color: var(--accent); }
.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-upload span { color: var(--accent); }
.mobile-nav-upload svg { background: var(--accent); color: #fff; border-radius: 999px; padding: 5px; width: 30px; height: 30px; margin-bottom: -2px; }

@media (min-width: 860px) {
  .mobile-nav { display: none; }
}
@media (max-width: 859px) {
  body { padding-bottom: var(--mobile-nav-height); }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--charcoal) 0%, #111827 55%, #3a2412 100%);
  color: #fff; padding: 72px 20px; text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 34px; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent-2); }
.hero p { font-size: 17px; color: #D1D5DB; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 640px) { .hero h1 { font-size: 46px; } .hero p { font-size: 18px; } }

.section { max-width: 1080px; margin: 0 auto; padding: 48px 20px; }
.section-alt { background: #F1EFEA; border-radius: var(--radius-lg); }

.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.category-pill {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); font-weight: 600;
  font-size: 14px; transition: all .15s ease;
}
.category-pill:hover { border-color: var(--accent); color: var(--accent-dark); box-shadow: var(--shadow-sm); }

.how-it-works { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .how-it-works { grid-template-columns: repeat(3, 1fr); } }
.how-card { background: #fff; border-radius: var(--radius-md); padding: 26px; border: 1px solid var(--border); }
.how-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.how-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.how-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }

.benefits { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits-col h3 { margin-bottom: 14px; font-size: 18px; }
.benefits-col li { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--text); font-weight: 500; }
.benefits-col .icon-sm { color: var(--success); }

.site-footer { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.site-footer .brand { justify-content: center; margin-bottom: 8px; }
.site-footer p { font-size: 13.5px; margin: 0; }

/* --------------------------------- Auth ----------------------------------- */
.auth-page { max-width: 480px; margin: 40px auto 90px; padding: 0 20px; }
.auth-card { padding: 32px 28px; }
.auth-card-wide { max-width: 100%; }
.auth-page .auth-card-wide { }
.auth-page:has(.auth-card-wide) { max-width: 640px; }

.hidden { display: none !important; }

.social-auth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1.5px solid var(--border); color: var(--text); font-weight: 600; padding: 11px 16px; }
.btn-social:hover { background: #F9FAFB; border-color: #D1D5DB; }
.btn-social .icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-google .icon { color: #EA580C; }
.btn-apple .icon { color: var(--charcoal, #1F2937); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; color: var(--text-secondary); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.recent-accounts { margin-bottom: 20px; }
.recent-accounts-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 10px; }
.recent-account-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.recent-account-btn { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; cursor: pointer; }
.recent-account-btn:hover { border-color: var(--accent); background: #FFF7ED; }
.recent-account-info { display: flex; flex-direction: column; min-width: 0; }
.recent-account-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-account-info small { color: var(--text-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-account-remove { background: none; border: none; color: var(--text-secondary); padding: 8px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.recent-account-remove:hover { background: #F1EFEA; color: var(--text); }
.recent-account-remove .icon { width: 14px; height: 14px; }

.social-auth-card { max-width: 440px; }
.social-auth-note { font-size: 13px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-sub { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 22px; }
.auth-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 14px; text-align: center; color: var(--text-secondary); }
.auth-links a { color: var(--accent-dark); font-weight: 700; }
.auth-demo-hint { margin-top: 18px; padding: 12px 14px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--radius-sm); font-size: 12.5px; color: #9A3412; }

/* --------------------------------- Forms ---------------------------------- */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.form-label .optional { font-weight: 400; color: var(--text-secondary); }
.form-input {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 14.5px; background: #fff; color: var(--text); font-family: inherit; transition: border-color .12s ease;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,0.12); }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; min-height: 15px; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.radio-chip input { margin-right: 6px; }

.category-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-checkbox {
  border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--text-secondary); background: #fff;
}
.chip-checkbox input { margin-right: 6px; }
.chip-checkbox.checked { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

form.upload-form, .auth-card form { display: block; }
.upload-form { padding: 26px; }

/* ------------------------------ Image uploader ----------------------------- */
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.image-preview { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-remove-btn {
  position: absolute; top: 5px; right: 5px; background: rgba(17,24,39,0.65); color: #fff; border: none;
  border-radius: 999px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}
.image-add-btn {
  aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px dashed var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer;
}
.image-add-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.upload-hint { font-size: 12.5px; color: var(--text-secondary); margin: 10px 0 0; }

.avatar-picker { display: flex; align-items: center; gap: 14px; }

.upload-progress-wrap { height: 8px; background: #F3F4F6; border-radius: 999px; overflow: hidden; margin: 18px 0; }
.upload-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .15s ease; }

/* ---------------------------------- Avatar --------------------------------- */
.avatar { border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }

/* --------------------------------- Feed / Cards ----------------------------- */
.feed-page { max-width: 620px; }
.feed-list { display: flex; flex-direction: column; gap: 22px; }
.feed-sentinel { min-height: 4px; }

.post-card { overflow: hidden; }
.post-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 10px; }
.post-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-user-meta { display: flex; flex-direction: column; min-width: 0; }
.post-user-meta strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.post-user-meta small { color: var(--text-secondary); font-size: 12.5px; display: flex; align-items: center; }
.post-user-meta small svg { margin-right: 3px; }

.badge {
  display: inline-flex; align-items: center; background: #FFF7ED; color: var(--accent-dark); font-weight: 700;
  font-size: 12px; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-link:hover { background: #FFEDD5; }

.post-media-link { display: block; }
.carousel { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #F3F4F6; overflow: hidden; }
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel.single img { }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.carousel-slide.active { opacity: 1; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(17,24,39,0.55); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s ease;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.55); }
.carousel-dot.active { background: #fff; }

.post-card-body { padding: 14px 16px 16px; }
.post-caption { font-size: 14.5px; margin: 0 0 6px; }
.post-caption-name { font-weight: 700; margin-right: 5px; }
.post-tags { color: #2563EB; font-size: 13.5px; margin: 0 0 10px; }

.post-actions { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; flex-wrap: wrap; }
.action-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 7px 10px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--text-secondary);
}
.action-btn:hover { background: #F3F4F6; color: var(--text); }
.action-btn.liked { color: var(--accent-dark); }
.action-btn.liked svg { fill: var(--accent); stroke: var(--accent-dark); }
.post-time { margin-left: auto; font-size: 12.5px; color: var(--text-secondary); }

/* ------------------------------- Skeletons -------------------------------- */
.skeleton { background: linear-gradient(90deg, #EEECE7 25%, #F5F3EF 37%, #EEECE7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-line { height: 12px; }
.skeleton-block { height: 260px; border-radius: var(--radius-md); }

/* -------------------------------- Empty state ------------------------------ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--border); }
.empty-state h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty-state p { margin: 0 0 18px; font-size: 14.5px; }

/* -------------------------------- Filter bar ------------------------------- */
.filter-bar { display: grid; grid-template-columns: 1fr; gap: 10px; background: #fff; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 22px; }
@media (min-width: 760px) { .filter-bar { grid-template-columns: repeat(5, 1fr); align-items: end; } }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; }
.result-count { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 14px; }

.browse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .browse-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .browse-grid { grid-template-columns: repeat(4, 1fr); } }
.browse-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-sm); }
.browse-card-img { position: absolute; inset: 0; }
.browse-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.browse-card:hover .browse-card-img img { transform: scale(1.05); }
.browse-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
}
.browse-card-meta { display: flex; justify-content: space-between; color: #fff; font-size: 12px; font-weight: 700; }
.browse-card-meta span { display: flex; align-items: center; }

/* -------------------------------- Profile ---------------------------------- */
.profile-header { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px; }
@media (min-width: 640px) { .profile-header { flex-direction: row; } }
.profile-header-info { flex: 1; width: 100%; }
.profile-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.profile-header-info h1 { font-size: 22px; }
.profile-company { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 600; font-size: 14px; margin: 4px 0 0; }
.profile-location { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; margin: 8px 0; }
.profile-bio { font-size: 14.5px; margin: 0 0 12px; max-width: 620px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.profile-contact { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-stats { display: flex; gap: 28px; border-top: 1px solid var(--border); padding-top: 14px; }
.profile-stats div { display: flex; flex-direction: column; }
.profile-stats strong { font-size: 16px; }
.profile-stats span { font-size: 12.5px; color: var(--text-secondary); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 640px) { .photo-grid { gap: 8px; } }
.photo-grid-item { aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
@media (min-width: 640px) { .photo-grid-item { border-radius: var(--radius-sm); } }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.photo-grid-item:hover img { transform: scale(1.06); }

/* ------------------------------- Post detail -------------------------------- */
.post-detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .post-detail-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.post-detail-media { border-radius: var(--radius-lg); overflow: hidden; }
.post-detail-media .carousel { aspect-ratio: 1; }
.post-detail-side { padding: 22px; }
.post-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.post-meta-line { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 13.5px; margin: 6px 0; }
.post-owner-actions { display: flex; gap: 8px; margin: 14px 0; }
.post-detail-actions { border-top: none; margin-top: 4px; padding-top: 0; }

.comment-section { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.comment-section h3 { font-size: 15px; margin-bottom: 12px; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.comment-body { flex: 1; background: #F9FAFB; border-radius: var(--radius-sm); padding: 8px 12px; }
.comment-head { display: flex; justify-content: space-between; gap: 8px; }
.comment-head a { font-weight: 700; font-size: 13.5px; }
.comment-time { color: var(--text-secondary); font-size: 12px; }
.comment-body p { margin: 3px 0 0; font-size: 13.5px; }
.comment-delete-btn { background: none; border: none; color: var(--text-secondary); padding: 6px; border-radius: 999px; }
.comment-delete-btn:hover { color: var(--danger); background: #FEF2F2; }
.no-comments { color: var(--text-secondary); font-size: 13.5px; }
.comment-form { display: flex; gap: 8px; margin-top: 14px; }
.comment-form .form-input { flex: 1; }

/* -------------------------------- Dashboard --------------------------------- */
.dashboard-top { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 10px; }
@media (min-width: 780px) { .dashboard-top { grid-template-columns: 1.2fr 1fr 0.8fr; } }
.profile-preview { display: flex; align-items: center; gap: 14px; padding: 20px; }
.profile-preview h3 { font-size: 16px; margin-bottom: 2px; }
.profile-preview p { margin: 0 0 6px; color: var(--text-secondary); font-size: 13.5px; }
.link { color: var(--accent-dark); font-weight: 700; font-size: 13px; }
.stats-card { display: flex; padding: 20px; justify-content: space-around; align-items: center; }
.stats-card div { display: flex; flex-direction: column; align-items: center; }
.stats-card strong { font-size: 20px; }
.stats-card span { font-size: 12px; color: var(--text-secondary); }
.upload-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px;
  background: var(--charcoal); color: #fff; font-weight: 700; text-align: center;
}
.upload-cta:hover { background: #111827; }
.upload-cta svg { color: var(--accent-2); }

.dashboard-post-list { display: flex; flex-direction: column; gap: 12px; }
.dashboard-post-row { display: flex; gap: 14px; align-items: center; padding: 12px; }
.dashboard-post-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.dashboard-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-post-info { flex: 1; min-width: 0; }
.dashboard-post-info strong { font-size: 14px; }
.dashboard-post-info p { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dashboard-post-stats { color: var(--text-secondary); display: flex; gap: 12px; }
.dashboard-post-actions { display: flex; gap: 6px; }

/* --------------------------------- Toasts ----------------------------------- */
.toast-container { position: fixed; bottom: 84px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 100; pointer-events: none; }
@media (min-width: 860px) { .toast-container { bottom: 24px; } }
.toast {
  display: flex; align-items: center; gap: 8px; background: var(--charcoal); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .25s ease;
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--danger-dark); }

/* --------------------------------- Modal ------------------------------------ */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-card { background: #fff; border-radius: var(--radius-md); padding: 24px; max-width: 380px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-title { font-size: 17px; margin-bottom: 8px; }
.modal-body { color: var(--text-secondary); font-size: 14px; margin: 0 0 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* --------------------------------- Misc -------------------------------------- */
@media (max-width: 640px) {
  .page-title { font-size: 21px; }
  .section { padding: 36px 16px; }
}
