.account-page { min-height: 100vh; background: #fffaf5; }
.inner-header { color: var(--ink); }
.inner-header nav a.active { color: var(--red); }
.privacy-label { color: #5e514d; font-size: 12px; }

.account-hero {
  min-height: 920px;
  padding: 160px max(40px, calc((100vw - 1180px)/2)) 95px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(470px, .78fr);
  align-items: center;
  gap: 82px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.96) 0 15%, transparent 38%),
    linear-gradient(125deg, #fffdf9 0%, #fff7f2 62%, #f2d8d2 100%);
  border-bottom: 1px solid #e7d8cf;
}
.account-intro h1 { max-width: 690px; margin-bottom: 26px; font-size: clamp(52px, 5.8vw, 82px); line-height: 1.05; letter-spacing: -.04em; }
.account-lede { max-width: 620px; color: #665954; font-size: 17px; line-height: 1.8; }
.event-invitation { max-width: 650px; margin: 34px 0 0; padding: 28px 30px; color: #fff; background: linear-gradient(135deg, #171313 0%, #2b1718 64%, #7d111d 100%); border-left: 4px solid var(--red); box-shadow: 0 20px 48px rgba(46,24,20,.12); }
.event-invitation .event-kicker { margin: 0 0 12px; color: #ef9da5; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.event-invitation h2 { margin: 0 0 12px; color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }
.event-invitation > p:last-child { margin: 0; color: #e8dcda; font-size: 15px; line-height: 1.75; }
.gift-steps { margin: 45px 0 32px; padding: 0; display: grid; list-style: none; border-top: 1px solid #ddcec6; }
.gift-steps li { padding: 22px 0; display: grid; grid-template-columns: 48px 1fr; gap: 17px; border-bottom: 1px solid #ddcec6; }
.gift-steps li > span { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.gift-steps strong { display: block; margin-bottom: 6px; font-family: "Libre Baskerville", Georgia, serif; font-size: 18px; font-weight: 400; }
.gift-steps p { margin: 0; color: #7c6f69; font-size: 13px; line-height: 1.65; }
.gift-fine-print { display: flex; gap: 13px; color: #796b65; font-size: 11px; line-height: 1.65; }
.gift-fine-print > span { color: var(--red); }
.gift-fine-print p { margin: 0; }

.account-card { padding: 44px; background: rgba(255,255,255,.94); border: 1px solid #e3d5cd; box-shadow: 0 28px 80px rgba(75,42,33,.12); backdrop-filter: blur(12px); }
.account-tabs { margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e6dcd6; }
.account-tab { position: relative; padding: 0 0 15px; color: #9a8c85; background: transparent; border: 0; font-size: 12px; font-weight: 700; }
.account-tab.active { color: var(--ink); }
.account-tab.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--red); }
.account-panel h2 { margin-bottom: 12px; font-size: clamp(32px, 3vw, 44px); line-height: 1.2; }
.panel-intro { margin-bottom: 30px; color: #796b65; font-size: 13px; line-height: 1.7; }
.account-panel form { display: grid; gap: 20px; }
.account-panel form label { display: grid; gap: 8px; color: #665954; font-size: 12px; font-weight: 600; }
.account-panel input { width: 100%; padding: 12px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #cdbeb6; border-radius: 0; outline: none; font-size: 15px; }
.account-panel input:focus { border-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.field-note { color: #93847e; font-size: 9px; font-weight: 500; line-height: 1.45; }
.password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-panel .terms-row { grid-template-columns: 18px 1fr; align-items: flex-start; gap: 11px; color: #796b65; font-size: 10px; font-weight: 500; line-height: 1.6; }
.event-email-notice { margin: 0; padding: 15px 16px; display: grid; gap: 6px; color: #5e4b46; background: #fff5f3; border: 1px solid #ead4d0; font-size: 11px; line-height: 1.65; }
.event-email-notice strong { color: #3d2b28; font-family: "Libre Baskerville", Georgia, serif; font-size: 13px; font-weight: 400; }
.terms-row input { width: 16px; margin-top: 3px; accent-color: var(--red); }
.account-legal-copy { margin: -4px 0 0; color: #8a7b74; font-size: 10px; line-height: 1.6; }
.account-legal-copy a { color: var(--red); font-weight: 700; }
.account-submit { width: 100%; margin-top: 4px; }
.account-text-button { justify-self: center; padding: 4px; color: #8d1722; background: transparent; border: 0; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.account-text-button:hover { color: #561017; }
.account-message { min-height: 20px; margin: 19px 0 0; color: #786861; font-size: 12px; line-height: 1.6; }
.account-message.error { color: var(--red); }
.account-message.success { color: #2f704e; }
.account-privacy { margin: 20px 0 0; padding-top: 18px; display: flex; gap: 10px; color: #9b8b84; border-top: 1px solid #eee4de; font-size: 9px; line-height: 1.65; }
.account-privacy span { color: var(--red); }
.signed-in-email { color: #776861; font-size: 13px; }
.gift-status-card { margin: 30px 0; padding: 24px; display: grid; grid-template-columns: 42px 1fr; gap: 15px; color: #fff; background: linear-gradient(145deg, #991622, #5c1118); }
.gift-status-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.gift-status-card small { display: block; margin-bottom: 7px; color: #f2b8bc; font-size: 8px; letter-spacing: .15em; }
.gift-status-card strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 20px; font-weight: 400; }
.gift-status-card p { margin: 8px 0 0; color: #ecd2d2; font-size: 11px; line-height: 1.6; }
.event-email-status { margin: -10px 0 28px; padding: 22px 24px; color: #3e312e; background: #fff7f4; border: 1px solid #e7d6d0; }
.event-email-status small { display: block; margin-bottom: 7px; color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.event-email-status strong { display: block; font-family: "Libre Baskerville", Georgia, serif; font-size: 17px; font-weight: 400; }
.event-email-status p { margin: 8px 0 0; color: #796b65; font-size: 12px; line-height: 1.65; }
.email-preference-toggle { margin-top: 16px; padding-top: 15px; display: grid; grid-template-columns: 18px 1fr; align-items: flex-start; gap: 10px; color: #5f504b; border-top: 1px solid #ead8d2; font-size: 11px; font-weight: 600; line-height: 1.55; }
.email-preference-toggle input { width: 16px; margin-top: 2px; accent-color: var(--red); }
.outline-account-button { width: 100%; min-height: 48px; color: #6c5651; background: transparent; border: 1px solid #cdbdb5; font-size: 11px; font-weight: 700; }
.outline-account-button:hover { color: var(--red); border-color: var(--red); }
.review-account-link { min-height: 50px; margin: 0 0 12px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #8f1723; text-decoration: none; font-size: 11px; font-weight: 700; }
.review-account-link[hidden] { display: none; }

.dashboard-heading { margin-bottom: 34px; padding-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid #dfd1ca; }
.dashboard-heading h2 { margin-bottom: 8px; }
.dashboard-account-meta { display: grid; justify-items: end; gap: 9px; color: #7d6e68; font-size: 11px; text-align: right; }
.account-status-pill { padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; color: #382b28; background: #fff; border: 1px solid #d9c9c1; border-radius: 99px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: #8f1723; border-radius: 50%; box-shadow: 0 0 0 4px rgba(143,23,35,.1); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 22px; }
.dashboard-grid .gift-status-card,
.dashboard-grid .event-email-status { margin: 0; }
.dashboard-offer { min-height: 240px; align-content: center; padding: 34px; background: linear-gradient(145deg, #171313 0%, #4f1118 58%, #9b1724 100%); box-shadow: 0 22px 50px rgba(64,20,24,.16); }
.dashboard-offer .gift-status-icon { width: 46px; height: 46px; }
.dashboard-offer strong { display: block; max-width: 420px; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.3; }
.dashboard-offer p { max-width: 560px; font-size: 13px; }
.dashboard-events { min-height: 240px; padding: 30px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.dashboard-remembrance { grid-column: 1 / -1; padding: 34px; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 12px 50px; color: #fff; background: #171313; border-top: 4px solid var(--red); }
.dashboard-remembrance .mini-label { grid-column: 1; margin: 0; color: #ed9099; }
.dashboard-remembrance h3 { grid-column: 1; margin: 5px 0 0; color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(24px, 2.5vw, 34px); font-weight: 400; line-height: 1.3; }
.dashboard-remembrance > p:not(.mini-label) { grid-column: 1; margin: 8px 0 0; color: #d4c9c6; font-size: 13px; line-height: 1.75; }
.dashboard-actions { grid-column: 2; grid-row: 1 / span 3; display: grid; align-content: stretch; }
.dashboard-actions a { min-height: 62px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; border-bottom: 1px solid #4c3f3c; text-decoration: none; font-size: 13px; font-weight: 700; }
.dashboard-actions a:first-child { border-top: 1px solid #4c3f3c; }
.dashboard-actions a span:last-child { color: #e14a59; font-size: 19px; transition: transform .2s ease; }
.dashboard-actions a:hover span:last-child { transform: translateX(4px); }
.dashboard-footer-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 12px; }
.account-tributes { margin-top: 22px; padding: 27px; color: #fff; background: linear-gradient(130deg, #171313 0%, #2b1719 62%, #8a1420 100%); }
.account-tributes-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.account-tributes-heading h3 { margin: 4px 0 0; color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.account-tributes-heading > a { color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; }
.account-tributes-intro { max-width: 720px; margin: 12px 0 20px; color: #dfc9ca; font-size: .82rem; line-height: 1.65; }
.account-tribute-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.account-tribute-card { padding: 17px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.account-tribute-card h4 { margin: 0 0 6px; color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: 1rem; font-weight: 400; }
.account-tribute-card p { margin: 0; color: #d9bfc1; font-size: .72rem; }
.account-tribute-card a { padding: 9px 11px; color: #82141e; background: #fff; font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.account-tribute-status { padding: 7px 9px; color: #fff; background: #a91927; border: 1px solid #d16973; font-size: .68rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.account-tribute-status.rejected { color: #382825; background: #f0dfd8; border-color: #f0dfd8; }
.account-tributes-empty { padding: 25px; display: grid; gap: 5px; text-align: center; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); }
.account-tributes-empty[hidden] { display: none; }
.account-tributes-empty strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 1rem; font-weight: 400; }
.account-tributes-empty span, .account-tributes-message { color: #d8c0c1; font-size: .75rem; line-height: 1.6; }
.account-tributes-message { min-height: 18px; margin: 12px 0 0; }
.owner-calendar-card { margin-top: 22px; padding: 30px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: 34px; color: #fff; background: linear-gradient(115deg, #fff 0 48%, #171313 48% 100%); border: 1px solid #d9c8c1; border-top: 5px solid #a91927; box-shadow: 0 20px 46px rgba(61,31,27,.11); }
.owner-calendar-card[hidden] { display: none; }
.owner-calendar-copy { padding-right: 18px; color: #322623; }
.owner-calendar-copy .mini-label { margin: 0 0 8px; color: #9f1724; }
.owner-calendar-copy h3 { margin: 0 0 12px; color: #211918; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.25; }
.owner-calendar-copy > p:last-child { margin: 0; color: #74645e; font-size: .82rem; line-height: 1.72; }
.owner-calendar-action { display: grid; justify-items: stretch; gap: 11px; }
.owner-calendar-icon { width: 70px; height: 70px; margin-bottom: 5px; display: grid; place-items: center; justify-self: center; align-content: center; color: #fff; background: #a91927; border: 1px solid #dd7882; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.owner-calendar-icon b { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.75rem; font-weight: 400; line-height: 1; }
.owner-calendar-icon small { margin-top: 5px; font-size: .47rem; font-weight: 700; letter-spacing: .12em; }
.owner-calendar-action .primary-button { width: 100%; min-height: 52px; padding-inline: 18px; }
.owner-calendar-copy-link { justify-self: center; padding: 5px; color: #efdfe0; background: transparent; border: 0; font-size: .72rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.owner-calendar-action > p { min-height: 19px; margin: 0; color: #e5cfd1; font-size: .72rem; line-height: 1.55; text-align: center; }
.dashboard-owner-links { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dashboard-owner-links[hidden] { display: none; }
.dashboard-footer-actions .review-account-link { min-width: 250px; margin: 0; }
.dashboard-owner-links .review-account-link { min-width: 0; }
.dashboard-footer-actions .outline-account-button { width: auto; min-width: 220px; padding: 0 24px; background: #fff; }

.account-authenticated .account-hero { min-height: 780px; padding-top: 155px; grid-template-columns: 1fr; align-items: start; background: linear-gradient(135deg, #fffdf9 0%, #fff6f1 70%, #efd3ce 100%); }
.account-authenticated .account-intro { display: none; }
.account-authenticated .account-card { width: min(1180px, 100%); margin: 0 auto; padding: 48px; background: rgba(255,255,255,.9); }
.account-authenticated .account-tabs { display: none; }
.account-authenticated .account-message { margin: 20px 0 0; }

@media (max-width: 960px) {
  .account-hero { grid-template-columns: 1fr; padding-top: 165px; gap: 55px; }
  .account-intro h1 { max-width: 760px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-remembrance { grid-column: 1; }
}

@media (max-width: 650px) {
  .privacy-label { font-size: 0; }
  .privacy-label .lock-icon { font-size: 7px; }
  .account-hero { min-height: 0; padding: 135px 20px 70px; }
  .account-intro h1 { font-size: 47px; }
  .account-card { padding: 32px 22px; }
  .event-invitation { padding: 24px 22px; }
  .password-grid { grid-template-columns: 1fr; }
  .account-authenticated .account-hero { padding: 130px 16px 65px; }
  .account-authenticated .account-card { padding: 28px 20px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-account-meta { justify-items: start; text-align: left; }
  .dashboard-offer,
  .dashboard-events,
  .dashboard-remembrance { padding: 26px 22px; }
  .dashboard-remembrance { grid-template-columns: 1fr; }
  .dashboard-remembrance .mini-label,
  .dashboard-remembrance h3,
  .dashboard-remembrance > p:not(.mini-label),
  .dashboard-actions { grid-column: 1; }
  .dashboard-actions { grid-row: auto; margin-top: 16px; }
  .dashboard-footer-actions { align-items: stretch; flex-direction: column; }
  .account-tributes-heading { align-items: flex-start; flex-direction: column; }
  .account-tribute-list { grid-template-columns: 1fr; }
  .account-tribute-card { grid-template-columns: 1fr; }
  .owner-calendar-card { padding: 24px 20px; grid-template-columns: 1fr; background: linear-gradient(180deg, #fff 0 56%, #171313 56% 100%); }
  .owner-calendar-copy { padding: 0 0 12px; }
  .dashboard-owner-links { grid-template-columns: 1fr; }
  .dashboard-footer-actions .review-account-link,
  .dashboard-footer-actions .outline-account-button { width: 100%; min-width: 0; }
}

/* Soft memorial background keeps account tools bright and readable */
.account-hero,
.account-authenticated .account-hero {
  background:
    linear-gradient(125deg, rgba(255,253,249,.92), rgba(255,247,242,.91) 62%, rgba(242,216,210,.9)),
    var(--kerose-memorial-art) center top / cover no-repeat;
}
