/* =========================================================
   Habit Community — main stylesheet (v1.1)
   ========================================================= */

:root {
	--habit-blue: #7b2cbf;      /* psychedelic purple accent */
	--habit-blue-dark: #132028; /* brand navy */
	--habit-blue-50: #f7f1fa;
	--habit-blue-100: #efe3f6;
	--habit-blue-200: #ddc7ec;
	--habit-navy: #0f172a;
	--habit-slate: #475569;
	--habit-slate-light: #94a3b8;
	--habit-green: #16a34a;
	--habit-green-100: #dcfce7;
	--habit-orange: #f59e0b;
	--habit-orange-100: #fef3c7;
	--habit-border: #d8d3c6;
	--habit-bg: #f1f5f9;
	--habit-bg-soft: #f8fafc;
	--habit-card-radius: 18px;
	--habit-shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
	--habit-shadow-hover: 0 4px 12px rgba(37, 99, 235, .12), 0 14px 36px rgba(15, 23, 42, .12);
	--habit-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--habit-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--habit-navy);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--habit-blue); text-decoration: none; }
a:hover { color: var(--habit-blue-dark); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--habit-navy); margin: 0 0 .5em; }
ul { padding: 0; margin: 0; }

.habit-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	position: fixed; top: 8px; left: 8px;
	background: #fff; padding: 8px 16px; z-index: 9999; border-radius: 8px;
}

/* Scroll reveal */
.habit-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.habit-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.habit-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Icons / avatars / badges ---------- */
.habit-icon { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.habit-icon svg { width: 100%; height: 100%; }
.habit-avatar { border-radius: 50%; object-fit: cover; }

.habit-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	line-height: 1.5;
	white-space: nowrap;
}
.habit-badge--reply { background: var(--habit-green-100); color: #15803d; }
.habit-badge--topic { background: var(--habit-orange-100); color: #b45309; }
.habit-badge--type { font-size: 12px; text-transform: none; font-weight: 600; padding: 2px 11px; }
.habit-badge--sativa { background: #fef3c7; color: #b45309; }
.habit-badge--indica { background: #ede9fe; color: #6d28d9; }
.habit-badge--hybrid, .habit-badge--type { background: var(--habit-green-100); color: #15803d; }
.habit-badge--sativa.habit-badge--type { background: #fef3c7; color: #b45309; }
.habit-badge--indica.habit-badge--type { background: #ede9fe; color: #6d28d9; }

/* ---------- Buttons ---------- */
.habit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--habit-font);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: all .18s ease;
}
.habit-btn--lg { padding: 13px 28px; font-size: 16px; }
.habit-btn--block { display: flex; width: 100%; margin-top: 14px; }
.habit-btn--primary {
	background: linear-gradient(135deg, var(--habit-blue) 0%, var(--habit-blue-dark) 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(19, 32, 40, .35);
}
.habit-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 200, 0, .4); color: #fff; }
.habit-btn--outline { border-color: var(--habit-blue); color: var(--habit-blue); background: #fff; }
.habit-btn--outline:hover { background: var(--habit-blue-50); }
.habit-btn--ghost { background: rgba(255,255,255,.85); color: var(--habit-blue); border-color: var(--habit-blue-200); }
.habit-btn--ghost:hover { background: #fff; }
.habit-btn--soft { background: var(--habit-blue-50); color: var(--habit-blue); }
.habit-btn--soft:hover { background: var(--habit-blue-100); color: var(--habit-blue-dark); }
.habit-btn--light { background: #fff; color: var(--habit-navy); border-radius: 8px; }

/* ---------- Top bar ---------- */
.habit-topbar { background: var(--habit-blue-100); font-size: 14px; }
.habit-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.habit-topbar a { color: var(--habit-navy); display: inline-flex; align-items: center; gap: 7px; }
.habit-topbar a:hover { color: var(--habit-blue-dark); }
.habit-topbar__sep { margin: 0 10px; color: var(--habit-slate-light); }
.habit-topbar__menu { display: flex; gap: 18px; list-style: none; }

/* ---------- Header ---------- */
.habit-header {
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--habit-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.habit-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.habit-header__brand { margin-right: auto; display: flex; align-items: center; }
.habit-header__brand img { max-height: 52px; width: auto; }
.habit-header__logo-text { font-size: 26px; font-weight: 800; letter-spacing: .02em; color: var(--habit-navy); text-transform: uppercase; }

.habit-nav__list { display: flex; gap: 6px; list-style: none; margin: 0; }
.habit-nav__list a {
	color: var(--habit-navy); font-weight: 500; font-size: 15.5px;
	padding: 8px 14px; border-radius: 10px;
	transition: background .15s ease, color .15s ease;
}
.habit-nav__list a:hover { color: var(--habit-blue); background: var(--habit-blue-50); }

.habit-header__actions { display: flex; align-items: center; gap: 16px; }
.habit-header__search-toggle, .habit-header__burger {
	background: none; border: 0; cursor: pointer; padding: 8px;
	color: var(--habit-navy); display: inline-flex; border-radius: 10px;
	transition: background .15s ease;
}
.habit-header__search-toggle:hover, .habit-header__burger:hover { background: var(--habit-blue-50); color: var(--habit-blue); }
.habit-header__search-toggle .habit-icon, .habit-header__burger .habit-icon { width: 21px; height: 21px; }
.habit-header__divider { width: 1px; height: 26px; background: var(--habit-border); }
.habit-header__login { display: inline-flex; align-items: center; gap: 7px; color: var(--habit-navy); font-weight: 500; }
.habit-header__login:hover { color: var(--habit-blue); }
.habit-header__register { padding: 8px 22px; }
.habit-header__account { display: inline-flex; align-items: center; gap: 9px; color: var(--habit-navy); font-weight: 600; }
.habit-header__burger { display: none; }

.habit-search-panel { border-top: 1px solid var(--habit-border); background: #fff; padding: 16px 0; }
.habit-searchform { display: flex; gap: 10px; }
.habit-searchform input[type="search"] {
	flex: 1; padding: 11px 16px; font-size: 15px;
	border: 1.5px solid var(--habit-border); border-radius: 12px; font-family: var(--habit-font);
}
.habit-searchform input[type="search"]:focus { outline: none; border-color: var(--habit-blue); box-shadow: 0 0 0 3px var(--habit-blue-100); }

.habit-mobile-menu { background: #fff; border-top: 1px solid var(--habit-border); padding: 12px 24px 20px; }
.habit-mobile-menu__list { list-style: none; }
.habit-mobile-menu__list a {
	display: block; padding: 12px 4px; font-weight: 600; color: var(--habit-navy);
	border-bottom: 1px solid var(--habit-bg);
}
.habit-mobile-menu__auth { display: flex; gap: 10px; margin-top: 16px; }
.habit-mobile-menu__auth .habit-btn { flex: 1; }

/* ---------- Hero ---------- */
.habit-hero {
	position: relative;
	background:
		radial-gradient(1100px 500px at 85% -10%, #c7ddfb 0%, rgba(199,221,251,0) 60%),
		linear-gradient(135deg, #eaf2fe 0%, #dbeafe 60%, #e7f0fd 100%);
	padding: 64px 0 56px;
	overflow: hidden;
}
.habit-hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.habit-hero__blob--1 { width: 420px; height: 420px; background: #bfdbfe; top: -160px; right: 8%; }
.habit-hero__blob--2 { width: 320px; height: 320px; background: #bbf7d0; bottom: -180px; left: -80px; opacity: .4; }

.habit-hero__layout { position: relative; display: flex; align-items: center; gap: 40px; }
.habit-hero__copy { flex: 1 1 auto; max-width: 640px; }
.habit-hero__kicker {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(255,255,255,.75);
	border: 1px solid var(--habit-blue-200);
	color: var(--habit-blue-dark);
	font-size: 13.5px; font-weight: 600;
	padding: 6px 14px; border-radius: 999px;
	margin-bottom: 18px;
}
.habit-hero__title { font-size: 52px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.habit-hero__subtitle { font-size: 19px; color: var(--habit-slate); margin: 0 0 26px; }
.habit-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.habit-hero__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.habit-stat {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.8);
	border: 1px solid rgba(191, 219, 254, .9);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(37,99,235,.06);
}
.habit-stat__icon { display: inline-flex; width: 17px; height: 17px; color: var(--habit-blue); }
.habit-stat__icon svg { width: 100%; height: 100%; }
.habit-stat__value { font-weight: 800; color: var(--habit-navy); }
.habit-stat__label { color: var(--habit-slate); }

.habit-hero__art { flex: 0 0 300px; max-width: 300px; animation: habit-float 7s ease-in-out infinite; }
@keyframes habit-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) { .habit-hero__art { animation: none; } }

/* ---------- Feature cards band (own section — no clipping) ---------- */
.habit-features-band { background: var(--habit-bg-soft); padding: 0 0 8px; }
.habit-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: -34px;
	position: relative;
	z-index: 3;
}
.habit-feature {
	background: #fff;
	border: 1px solid var(--habit-border);
	border-radius: var(--habit-card-radius);
	box-shadow: var(--habit-shadow);
	padding: 24px;
	display: flex;
	gap: 15px;
	align-items: flex-start;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.habit-feature:hover { transform: translateY(-4px); box-shadow: var(--habit-shadow-hover); border-color: var(--habit-blue-200); }
.habit-feature__icon {
	flex: 0 0 50px; width: 50px; height: 50px;
	border-radius: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px;
	transition: transform .18s ease;
}
.habit-feature:hover .habit-feature__icon { transform: scale(1.08) rotate(-3deg); }
.habit-feature__icon svg { width: 100%; height: 100%; }
.habit-feature--green .habit-feature__icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: var(--habit-green); }
.habit-feature--blue .habit-feature__icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--habit-blue); }
.habit-feature--lime .habit-feature__icon { background: linear-gradient(135deg, #ecfccb, #d9f99d); color: #65a30d; }
.habit-feature--navy .habit-feature__icon { background: linear-gradient(135deg, #dbeafe, #c7d2fe); color: var(--habit-blue-dark); }
.habit-feature__body { display: flex; flex-direction: column; gap: 3px; }
.habit-feature__title { font-size: 18px; font-weight: 700; color: var(--habit-navy); }
.habit-feature__text { font-size: 14px; color: var(--habit-slate); line-height: 1.45; }
.habit-feature__cta {
	margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--habit-blue);
	display: inline-flex; align-items: center; gap: 6px;
	transition: gap .18s ease;
}
.habit-feature:hover .habit-feature__cta { gap: 10px; }
.habit-feature__cta svg { width: 15px; height: 15px; }

/* ---------- Homepage grid ---------- */
.habit-home-grid-wrap { background: var(--habit-bg-soft); padding: 44px 0 64px; }
.habit-home-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	align-items: start;
}
.habit-home-tabs { display: none; }

.habit-card {
	background: #fff;
	border: 1px solid var(--habit-border);
	border-radius: var(--habit-card-radius);
	box-shadow: var(--habit-shadow);
	padding: 22px;
	transition: box-shadow .18s ease;
}
.habit-card:hover { box-shadow: var(--habit-shadow-hover); }
.habit-card__head {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--habit-bg);
}
.habit-card__head h2 { font-size: 18px; margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.habit-card__head-icon {
	display: inline-flex; width: 30px; height: 30px;
	border-radius: 9px; padding: 6px;
}
.habit-card__head-icon svg { width: 100%; height: 100%; }
.habit-card__head-icon--green { background: var(--habit-green-100); color: var(--habit-green); }
.habit-card__head-icon--blue { background: var(--habit-blue-100); color: var(--habit-blue); }
.habit-card__head-icon--lime { background: #ecfccb; color: #65a30d; }
.habit-card__head-icon--navy { background: #e0e7ff; color: var(--habit-blue-dark); }
.habit-card__viewall { font-size: 14px; font-weight: 600; white-space: nowrap; }
.habit-card__viewall:hover { text-decoration: underline; }

.habit-card__empty { text-align: center; padding: 26px 10px; color: var(--habit-slate-light); }
.habit-card__empty p { font-size: 14.5px; margin: 10px 0 16px; }
.habit-card__empty-icon {
	display: inline-flex; width: 52px; height: 52px;
	background: var(--habit-bg); color: var(--habit-slate-light);
	border-radius: 50%; padding: 13px;
}
.habit-card__empty-icon svg { width: 100%; height: 100%; }

.habit-card__footlink {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 600; font-size: 14.5px;
	margin-top: 14px; padding-top: 14px;
	border-top: 1px solid var(--habit-bg);
	transition: gap .18s ease;
}
.habit-card__footlink:hover { gap: 12px; }
.habit-card__footlink svg { width: 15px; height: 15px; }

.habit-rowlink-chevron { margin-left: auto; color: var(--habit-slate-light); display: inline-flex; flex: 0 0 auto; }
.habit-rowlink-chevron svg { width: 15px; height: 15px; }

/* Strains card */
.habit-strain-list { list-style: none; }
.habit-strain-list__item {
	display: flex; gap: 14px; align-items: center;
	padding: 12px 8px;
	margin: 0 -8px;
	border-radius: 12px;
	border-bottom: 1px solid var(--habit-bg);
	transition: background .15s ease;
}
.habit-strain-list__item:hover { background: var(--habit-blue-50); }
.habit-strain-list__item:last-child { border-bottom: 0; }
.habit-strain-list__thumb { flex: 0 0 60px; }
.habit-strain-list__thumb img {
	width: 60px; height: 60px; border-radius: 14px; object-fit: cover; display: block;
	box-shadow: 0 2px 8px rgba(15,23,42,.12);
}
.habit-strain-list__thumb-fallback {
	width: 60px; height: 60px; border-radius: 14px;
	background: var(--habit-green-100); color: var(--habit-green);
	display: inline-flex; align-items: center; justify-content: center; padding: 14px;
}
.habit-strain-list__thumb-fallback svg { width: 100%; height: 100%; }
.habit-strain-list__body { min-width: 0; }
.habit-strain-list__titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.habit-strain-list__title { font-weight: 700; color: var(--habit-navy); font-size: 15.5px; }
.habit-strain-list__title:hover { color: var(--habit-blue); }
.habit-strain-list__meta { display: flex; gap: 16px; margin-top: 5px; }
.habit-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--habit-slate); font-size: 13.5px; }
.habit-meta .habit-icon { width: 16px; height: 16px; color: var(--habit-slate-light); }

/* Forums card */
.habit-forum-list { list-style: none; }
.habit-forum-list__item {
	display: flex; align-items: center; gap: 13px;
	padding: 12px 8px;
	margin: 0 -8px;
	border-bottom: 1px solid var(--habit-bg);
	border-radius: 12px;
	transition: background .15s ease;
}
.habit-forum-list li:last-child .habit-forum-list__item { border-bottom: 0; }
.habit-forum-list__item:hover { background: var(--habit-blue-50); }
.habit-forum-list__icon {
	flex: 0 0 40px; width: 40px; height: 40px;
	border-radius: 12px; padding: 9px;
	display: inline-flex; align-items: center; justify-content: center;
}
.habit-forum-list__icon svg { width: 100%; height: 100%; }
.habit-forum-list__icon--blue { background: var(--habit-blue-100); color: var(--habit-blue); }
.habit-forum-list__icon--green { background: var(--habit-green-100); color: var(--habit-green); }
.habit-forum-list__icon--purple { background: #ede9fe; color: #7c3aed; }
.habit-forum-list__icon--sky { background: #e0f2fe; color: #0284c7; }
.habit-forum-list__icon--teal { background: #ccfbf1; color: #0d9488; }
.habit-forum-list__body { display: flex; flex-direction: column; min-width: 0; }
.habit-forum-list__title { font-weight: 600; font-size: 15px; color: var(--habit-navy); }
.habit-forum-list__count { font-size: 13px; color: var(--habit-slate); }
.habit-forum-list__chevron { margin-left: auto; color: var(--habit-slate-light); display: inline-flex; }
.habit-forum-list__chevron svg { width: 16px; height: 16px; }

/* Q&A card */
.habit-qa-list { list-style: none; }
.habit-qa-list__item {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 13px 8px;
	margin: 0 -8px;
	border-radius: 12px;
	border-bottom: 1px solid var(--habit-bg);
	transition: background .15s ease;
}
.habit-qa-list__item:hover { background: var(--habit-blue-50); }
.habit-qa-list__item:last-child { border-bottom: 0; }
.habit-qa-list__title { font-weight: 600; font-size: 15px; color: var(--habit-navy); display: block; line-height: 1.45; }
.habit-qa-list__title:hover { color: var(--habit-blue); }
.habit-qa-list__answers {
	font-size: 13px; color: var(--habit-slate); margin-top: 6px;
	display: inline-flex; align-items: center; gap: 7px;
}
.habit-qa-list__answers .habit-avatar { width: 20px; height: 20px; }
.habit-qa-list__pill {
	margin-left: auto; flex: 0 0 auto;
	min-width: 32px; height: 32px;
	border-radius: 999px;
	background: var(--habit-bg);
	color: var(--habit-slate);
	font-weight: 700; font-size: 13.5px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 10px;
}
.habit-qa-list__pill.has-answers { background: var(--habit-blue-50); color: var(--habit-blue); }

/* Activity card */
.habit-activity-list { list-style: none; }
.habit-activity-list__item {
	display: flex; gap: 12px;
	padding: 13px 8px;
	margin: 0 -8px;
	border-radius: 12px;
	border-bottom: 1px solid var(--habit-bg);
	transition: background .15s ease;
}
.habit-activity-list__item:hover { background: var(--habit-blue-50); }
.habit-activity-list__item:last-child { border-bottom: 0; }
.habit-activity-list__item .habit-avatar { flex: 0 0 44px; width: 44px; height: 44px; box-shadow: 0 2px 6px rgba(15,23,42,.12); }
.habit-activity-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.habit-activity-list__body .habit-badge { align-self: flex-start; }
.habit-activity-list__text { font-size: 14px; color: var(--habit-slate); line-height: 1.5; }
.habit-activity-list__text strong { color: var(--habit-navy); }
.habit-activity-list__time { font-size: 12.5px; color: var(--habit-slate-light); }

/* ---------- Welcome CTA band ---------- */
.habit-welcome-band { background: var(--habit-bg-soft); padding: 0 0 72px; }
.habit-welcome-band__inner {
	background:
		radial-gradient(700px 320px at 95% -10%, rgba(255,200,0,.30) 0%, rgba(255,200,0,0) 55%),
		linear-gradient(120deg, #2b0b3a 0%, #7b2cbf 38%, #c2347b 70%, #fd7e14 105%);
	border-radius: 24px;
	color: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	padding: 44px 48px;
	box-shadow: 0 18px 44px rgba(37, 99, 235, .3);
	flex-wrap: wrap;
}
.habit-welcome-band__copy h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.habit-welcome-band__copy p { margin: 0; color: #dbeafe; font-size: 16px; max-width: 520px; }
.habit-welcome-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.habit-welcome-band .habit-btn--primary { background: #fff; color: var(--habit-blue-dark); box-shadow: 0 6px 18px rgba(15,23,42,.25); }
.habit-welcome-band .habit-btn--primary:hover { background: var(--habit-blue-50); }

/* ---------- Generic pages / entries ---------- */
.habit-page { padding: 48px 24px 70px; }
.habit-page__title { font-size: 34px; }
.habit-entry__meta { display: flex; align-items: center; gap: 10px; color: var(--habit-slate); font-size: 14.5px; margin-top: 8px; }
.habit-entry__content { max-width: 820px; }
.habit-entry__content img { border-radius: 12px; }
.habit-entry__thumb img { border-radius: var(--habit-card-radius); }
.habit-post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.habit-post-card {
	background: #fff; border: 1px solid var(--habit-border);
	border-radius: var(--habit-card-radius); overflow: hidden; box-shadow: var(--habit-shadow);
	transition: transform .18s ease, box-shadow .18s ease;
}
.habit-post-card:hover { transform: translateY(-3px); box-shadow: var(--habit-shadow-hover); }
.habit-post-card__thumb img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.habit-post-card__body { padding: 18px; }
.habit-post-card__title { font-size: 17px; margin-bottom: 6px; }
.habit-post-card__title a { color: var(--habit-navy); }
.habit-post-card__meta { font-size: 13px; color: var(--habit-slate-light); margin-bottom: 8px; }
.habit-post-card__excerpt { font-size: 14.5px; color: var(--habit-slate); }
.habit-pagination { margin-top: 36px; text-align: center; }
.habit-pagination .page-numbers {
	display: inline-flex; min-width: 38px; height: 38px; padding: 0 8px;
	align-items: center; justify-content: center;
	border: 1px solid var(--habit-border); border-radius: 10px; margin: 0 3px;
	color: var(--habit-navy); font-weight: 600; font-size: 14.5px;
}
.habit-pagination .page-numbers.current { background: var(--habit-blue); color: #fff; border-color: var(--habit-blue); }

/* Comments */
.habit-comments { max-width: 820px; margin-top: 48px; }
.habit-comments__list { list-style: none; }
.habit-comments__list .comment-body {
	background: var(--habit-blue-50);
	border-radius: 12px; padding: 16px 18px; margin-bottom: 14px;
}
.habit-comments input[type="text"], .habit-comments input[type="email"], .habit-comments input[type="url"], .habit-comments textarea {
	width: 100%; padding: 11px 14px; font-family: var(--habit-font); font-size: 15px;
	border: 1.5px solid var(--habit-border); border-radius: 10px;
}
.habit-comments .submit {
	background: var(--habit-blue); color: #fff; border: 0; cursor: pointer;
	padding: 11px 26px; border-radius: 10px; font-weight: 600; font-size: 15px;
}

/* ---------- bbPress / BuddyPress shell ---------- */
.habit-plugin-shell { padding: 40px 24px 70px; }
#bbpress-forums { font-family: var(--habit-font) !important; }
#bbpress-forums li.bbp-header { background: var(--habit-blue-50); border-radius: 10px 10px 0 0; }
#bbpress-forums .bbp-forums, #bbpress-forums .bbp-topics, #bbpress-forums .bbp-replies {
	border: 1px solid var(--habit-border); border-radius: var(--habit-card-radius); overflow: hidden;
}
#buddypress { font-family: var(--habit-font); }

/* ---------- Newsletter band ---------- */
.habit-newsletter {
	background: linear-gradient(120deg, #1e2a5a 0%, #3b2f63 45%, #1b3a5c 100%);
	color: #fff;
	padding: 44px 0;
}
.habit-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.habit-newsletter__copy h2 { color: #fff; font-size: 28px; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.habit-newsletter__offer { font-size: 18px; margin: 4px 0 0; color: #e2e8f0; }
.habit-newsletter__offer strong { font-size: 24px; color: #fff; }
.habit-newsletter__fallback { display: flex; gap: 10px; flex-wrap: wrap; }
.habit-newsletter__fallback input {
	padding: 11px 14px; border-radius: 8px; border: 0; font-family: var(--habit-font); font-size: 14.5px; min-width: 160px;
}
.habit-newsletter__note { font-size: 12px; color: #cbd5e1; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.habit-footer__main { background: #101a3c; color: #cbd5e1; padding: 56px 0 40px; }
.habit-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 36px; }
.habit-footer__col h4 { color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.habit-footer__col ul { list-style: none; }
.habit-footer__col li { margin-bottom: 9px; }
.habit-footer__col a { color: #cbd5e1; font-size: 14.5px; }
.habit-footer__col a:hover { color: #fff; }
.habit-footer__col--about p { font-size: 14.5px; line-height: 1.7; }
.habit-footer__logo img { max-height: 48px; width: auto; filter: brightness(0) invert(1); }
.habit-footer__logo-text { font-size: 24px; font-weight: 800; color: #fff; text-transform: uppercase; }
.habit-footer__social { display: flex; gap: 10px; }
.habit-footer__social a {
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,.12); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px;
	transition: background .15s ease;
}
.habit-footer__social a:hover { background: var(--habit-blue); }
.habit-footer__social-title { margin-top: 22px; }

.habit-footer__legal { background: #0b1330; color: #94a3b8; padding: 26px 0; text-align: center; font-size: 13px; }
.habit-footer__legal p { margin: 0 0 6px; }
.habit-footer__copyright { margin-top: 12px; color: #cbd5e1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.habit-home-grid { grid-template-columns: repeat(2, 1fr); }
	.habit-features { grid-template-columns: repeat(2, 1fr); }
	.habit-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.habit-hero__art { flex-basis: 220px; max-width: 220px; }
	.habit-hero__title { font-size: 42px; }
	.habit-post-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	body { overflow-x: hidden; }
	.habit-topbar { display: none; }

	.habit-header__inner { gap: 12px; min-height: 64px; }
	.habit-header__burger { display: inline-flex; }
	.habit-nav, .habit-header__divider, .habit-header__login span,
	.habit-header__register, .habit-header__account-name { display: none; }
	.habit-header__brand { position: absolute; left: 50%; transform: translateX(-50%); }
	.habit-header__brand img { max-height: 40px; }
	.habit-header__actions { margin-left: auto; gap: 10px; }
	.habit-header__login { display: inline-flex; }

	.habit-hero { padding: 36px 0 44px; }
	.habit-hero__layout { gap: 0; }
	.habit-hero__art { display: none; }
	.habit-hero__title { font-size: 33px; }
	.habit-hero__subtitle { font-size: 16px; margin-bottom: 20px; }
	.habit-hero__cta { margin-bottom: 24px; }
	.habit-hero__cta .habit-btn { flex: 1; padding: 12px 14px; font-size: 15px; }
	.habit-hero__stats { gap: 8px; }
	.habit-stat { padding: 6px 12px; font-size: 13px; }

	/* Feature cards become a compact icon row */
	.habit-features { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -26px; }
	.habit-feature { flex-direction: column; align-items: center; text-align: center; padding: 14px 6px; gap: 8px; }
	.habit-feature__icon { flex-basis: auto; width: 44px; height: 44px; }
	.habit-feature__title { font-size: 13px; }
	.habit-feature__text, .habit-feature__cta { display: none; }

	/* Tabs replace the 4-column grid */
	.habit-home-grid-wrap { padding-top: 28px; }
	.habit-home-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--habit-bg); }
	.habit-home-tab {
		flex: 1; background: none; border: 0; cursor: pointer;
		font-family: var(--habit-font); font-size: 14.5px; font-weight: 600;
		color: var(--habit-slate); padding: 10px 4px;
		border-bottom: 2.5px solid transparent; margin-bottom: -2px;
	}
	.habit-home-tab.is-active { color: var(--habit-navy); border-bottom-color: var(--habit-blue); }

	.habit-home-grid { grid-template-columns: 1fr; }
	.habit-panel { display: none; }
	.habit-panel.is-active { display: block; }
	.habit-panel[data-panel="activity"].is-companion { display: block; }

	.habit-welcome-band__inner { padding: 32px 24px; }
	.habit-welcome-band__copy h2 { font-size: 23px; }
	.habit-welcome-band__actions { width: 100%; }
	.habit-welcome-band__actions .habit-btn { flex: 1; }

	.habit-page { padding: 28px 0 48px; }
	.habit-page__title { font-size: 26px; }
	.habit-post-list { grid-template-columns: 1fr; }

	.habit-newsletter__inner { flex-direction: column; align-items: flex-start; }
	.habit-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.habit-footer__main { padding: 40px 0 28px; }
}

/* Activity badge variants (BP stream types) */
.habit-badge--act-reply { background: var(--habit-green-100); color: #15803d; }
.habit-badge--act-new_topic { background: var(--habit-orange-100); color: #b45309; }
.habit-badge--act-update { background: var(--habit-blue-50); color: var(--habit-blue); }
.habit-badge--act-member { background: #ede9fe; color: #6d28d9; }
.habit-badge--act-friends { background: #fce7f3; color: #be185d; }
.habit-badge--act-profile { background: #e0f2fe; color: #0284c7; }
.habit-badge--act-post { background: var(--habit-blue-100); color: var(--habit-blue-dark); }
.habit-badge--act-comment { background: var(--habit-bg); color: var(--habit-slate); }
.habit-activity-list__excerpt { font-size: 13.5px; color: var(--habit-slate); font-style: italic; }
.habit-activity-list__text a { font-weight: 600; }
