/* ─── Home Dashboard ─────────────────────────────────── */

.home-dash {
  max-width: 720px; margin: 0 auto;
  padding: 90px 16px 120px;
}
.home-greeting { margin-bottom: 28px; }
.home-greeting h1 {
  font-size: 28px; font-weight: 800; margin: 0 0 4px;
  background: linear-gradient(135deg, #e7ebf3, #4ade80);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-greeting p { color: var(--muted); font-size: 14px; margin: 0; }

/* Section layout */
.home-section { margin-bottom: 28px; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.home-section-head h2 { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.home-section-head .home-see-all { font-size: 12px; color: var(--accent); text-decoration: none; cursor: pointer; background: none; border: none; font-weight: 600; }
.home-section-head .home-see-all:hover { text-decoration: underline; }

/* Horizontal scroll row */
.home-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; -webkit-overflow-scrolling: touch; }
.home-scroll::-webkit-scrollbar { height: 4px; }
.home-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Mini event card */
.home-ev { flex-shrink: 0; width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.home-ev:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.home-ev-img { height: 80px; background: var(--surface2) center/cover no-repeat; position: relative; }
.home-ev-img .home-ev-type { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.home-ev-body { padding: 10px 12px; }
.home-ev-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-ev-meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-ev-friends { display: flex; align-items: center; gap: 4px; }
.home-ev-friends .mini-av { width: 20px; height: 20px; border-radius: 50%; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -3px; border: 1.5px solid var(--surface); }
.home-ev-friends .mini-av:first-child { margin-left: 0; }
.home-ev-friends .fr-count { font-size: 10px; color: var(--muted); margin-left: 4px; }

/* Notification feed */
.home-notif { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; transition: background .15s; cursor: pointer; }
.home-notif:hover { background: var(--surface2); }
.home-notif-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.home-notif-body { flex: 1; min-width: 0; }
.home-notif-text { font-size: 13px; line-height: 1.4; }
.home-notif-text strong { font-weight: 600; }
.home-notif-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Stats row */
.home-stats { display: flex; gap: 10px; margin-bottom: 24px; }
.home-stat { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; position: relative; }
.home-stat:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.home-stat:active { background: rgba(255,255,255,.06); transform: translateY(0); }
.home-stat .num { font-size: 24px; font-weight: 800; }
.home-stat .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.home-stat.expanded { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }

/* Stat expand panels */
.stat-expand { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.22,1,.36,1), opacity .25s; opacity: 0; margin-top: 0; }
.stat-expand.open { max-height: 400px; opacity: 1; margin-top: 10px; }
.stat-expand-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 0; max-height: 280px; overflow-y: auto; }
.stat-expand-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; cursor: pointer; transition: background .15s; }
.stat-expand-item:hover { background: rgba(255,255,255,.04); }
.stat-expand-item .sei-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stat-expand-item .sei-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.stat-expand-item .sei-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.stat-expand-empty { padding: 12px 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* Empty state */
.home-empty { text-align: center; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 13px; }
.home-empty .icon { font-size: 28px; margin-bottom: 6px; }
