/* =========================================================
   My Account / Sign in
   ========================================================= */
.account-hero {
	background:
		radial-gradient(ellipse 70% 140% at 50% 0%, rgba(142,31,38,.9) 0%, rgba(142,31,38,0) 70%),
		linear-gradient(180deg, #4a1014 0%, var(--maroon-deep) 100%);
	color: var(--on-dark); text-align: center; padding: clamp(48px, 8vw, 84px) 0 clamp(36px, 6vw, 56px);
}
.account-hero .eyebrow { color: var(--gold); }
.account-hero h1 { color: #fff; margin: 0 0 .2em; overflow-wrap: anywhere; }
.account-hero p { margin: 0 auto; max-width: 520px; }
.account-wrap { background: var(--cream); padding-top: clamp(32px, 5vw, 56px); }

.account-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--crimson); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.account-card h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; margin: 0 0 16px; }

/* Sign-in form */
.account-login { max-width: 460px; margin: 0 auto; }
#ccf-login p { margin: 0 0 16px; }
#ccf-login label { display: block; font-weight: 600; font-size: .9rem; color: var(--maroon); margin-bottom: 6px; }
#ccf-login input[type="text"], #ccf-login input[type="password"], .account-form input {
	width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
	font: inherit; font-size: 16px; color: var(--text);
}
#ccf-login input:focus, .account-form input:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,154,62,.2); }
#ccf-login .login-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
#ccf-login .login-remember input { width: 18px; height: 18px; accent-color: var(--crimson); }
#ccf-login .login-submit input[type="submit"], .account-form button {
	width: 100%; padding: .95rem 1.5rem; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--maroon-deep);
	font: 700 1rem var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(43,10,12,.2);
}
#ccf-login .login-submit input[type="submit"]:hover, .account-form button:hover { filter: brightness(1.06); }
.account-forgot { text-align: center; margin: 4px 0 0; }
.account-forgot a { color: var(--crimson); font-weight: 600; }
.account-help { text-align: center; font-size: .85rem; color: var(--muted); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

.account-msg { padding: 12px 14px; border-radius: 10px; font-size: .92rem; margin: 0 0 18px; }
.account-msg.is-error { background: #fdecec; color: #8e1f26; border: 1px solid #f3c9cb; }
.account-msg.is-info { background: var(--cream); color: var(--maroon); border: 1px solid var(--gold); font-weight: 600; }
.account-msg.is-ok { background: #eef7ea; color: #2f6a1f; border: 1px solid #cfe7c5; }

/* Dashboard */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
.account-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.account-list a {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main go" "sub go"; column-gap: 12px; align-items: center;
	padding: 12px 14px; background: var(--cream); border-radius: 10px; text-decoration: none; color: var(--text); transition: background .2s;
}
.account-list a:hover { background: var(--line); }
.al-main { grid-area: main; font-weight: 700; color: var(--maroon); overflow-wrap: anywhere; }
.al-sub { grid-area: sub; font-size: .82rem; color: var(--muted); }
.al-go { grid-area: go; font-size: .85rem; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.account-empty { color: var(--muted); margin-bottom: 18px; }
.account-form p { margin: 0 0 14px; }
.account-form label { display: block; font-weight: 600; font-size: .88rem; color: var(--maroon); margin-bottom: 6px; }
.account-form button { width: auto; }
.account-who { color: var(--muted); overflow-wrap: anywhere; }
.account-who strong { color: var(--text); }
.account-logout {
	display: inline-block; padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid var(--crimson); color: var(--crimson);
	font-weight: 700; text-decoration: none;
}
.account-logout:hover { background: var(--crimson); color: #fff; }

/* Chat Inbox on My Account (Chat Responders) */
.account-inbox-head { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: .95rem; }
.account-inbox-head a { color: var(--crimson); font-weight: 600; text-decoration: none; }
.account-inbox { padding: clamp(16px, 3vw, 28px); min-width: 0; overflow-wrap: anywhere; }
.account-inbox .ccf-tools select { width: 100%; }
@media (min-width: 601px) { .account-inbox .ccf-tools select { width: auto; max-width: 48%; } }
.account-inbox h2, .account-inbox .ccf-conv-title { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.account-inbox .subsubsub { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.account-inbox .subsubsub li { margin: 0; }
.account-inbox .subsubsub a { color: var(--crimson); text-decoration: none; }
.account-inbox .subsubsub a.current { font-weight: 700; color: var(--maroon); }
.account-inbox .clear { display: none; }
.account-inbox .ccf-row { border-radius: 10px; }
.account-inbox .ccf-row:hover { border-color: var(--gold); }
.account-inbox .ccf-msg { border-radius: 12px; }
.account-inbox .ccf-reply textarea, .account-inbox .ccf-tools select { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font: inherit; font-size: 16px; background: var(--cream); }
.account-inbox .ccf-tools select { font-size: .9rem; max-width: 100%; }
.account-inbox .ccf-reply-foot { font-size: .9rem; }
.account-inbox .ccf-reply-foot .button-primary { padding: .7rem 1.6rem; border: 0; color: var(--maroon-deep); background: var(--gold-grad); }
.account-inbox .ccf-actions .button { background: #fff; border: 1px solid var(--line); color: var(--maroon); border-radius: 999px; padding: .55rem 1rem; font: 600 .88rem var(--sans); cursor: pointer; }
.account-inbox .ccf-side { border-color: var(--line); }
.account-inbox .ccf-side h2 { font-size: 1.05rem; }
.account-inbox .page-numbers { display: inline-block; padding: 4px 10px; margin-right: 4px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--maroon); }
.account-inbox .page-numbers.current { background: var(--maroon); color: #fff; }
.account-chat-card { border-top-color: var(--gold); }
.account-chat-count { color: var(--muted); }
@media (max-width: 600px) {
	.account-inbox .ccf-msg { max-width: 100%; }
	.account-inbox .ccf-tools { flex-direction: column; align-items: stretch; }
	.account-inbox .ccf-reply-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
	.account-inbox .ccf-reply-foot .button-primary { margin-left: 0; width: 100%; }
}
