/* My Dashboard (/my-dashboard/): log in / create an account, and the customer's area. Loaded on that page only. */

/* Hero: "Signed in as" + Log out beside the copy. */
.ldr-phero__row--aside { gap: 24px; }
.ldr-dash-who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ldr-dash-who__text { font-size: 13px; color: var(--ldr-wine); overflow-wrap: anywhere; }
.ldr-dash-who__text strong { color: var(--ldr-ink); }
.ldr-dash-pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--ldr-r-pill); border: 1.5px solid rgba(214, 59, 88, .35); background: #fff; color: var(--ldr-brand-dark); font-weight: 700; font-size: 14px; line-height: normal; transition: transform .2s, background .2s; }
.ldr-dash-pillbtn:hover, .ldr-dash-pillbtn:focus-visible { background: var(--ldr-pink); color: var(--ldr-brand-dark); transform: translateY(-2px); }

/* Section */
.ldr-dash { padding: clamp(20px, 2.7vw, 32px) var(--ldr-gutter) clamp(64px, 8.7vw, 104px); background: var(--ldr-cream); scroll-margin-top: 80px; }
.ldr-dash__in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.ldr-dash-card { background: #fff; border-radius: var(--ldr-r-md); border: 1px solid var(--ldr-line-soft); box-shadow: 0 10px 30px rgba(180, 60, 80, .06); }
.ldr-dash .ldr-field__label { font-weight: 700; }
.ldr-dash [hidden] { display: none !important; }
.ldr-dash-form { display: flex; flex-direction: column; gap: 16px; }
.ldr-dash-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--ldr-pink); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.ldr-dash-ic--46 { width: 46px; height: 46px; }
.ldr-dash-link { align-self: flex-start; padding: 0; border: none; background: transparent; font-family: inherit; font-weight: 700; font-size: 14px; line-height: normal; color: var(--ldr-brand-dark); cursor: pointer; }
.ldr-dash-link:hover, .ldr-dash-link:focus-visible { color: var(--ldr-brand); }
.ldr-dash-alert { padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.ldr-dash-alert--error { background: var(--ldr-pink); color: var(--ldr-brand-dark); }
.ldr-dash-alert--ok { background: #E7F6EC; color: #1E7A46; }
.ldr-dash-alert a { color: inherit; text-decoration: underline; }
.ldr-dash-btn--block { width: 100%; line-height: normal; }
.ldr-dash-outbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--ldr-r-pill); border: 1.5px solid rgba(214, 59, 88, .35); background: #fff; color: var(--ldr-brand-dark); font-family: inherit; font-weight: 700; font-size: 16px; line-height: normal; cursor: pointer; transition: transform .2s, background .2s; }
.ldr-dash-outbtn:hover, .ldr-dash-outbtn:focus-visible { background: var(--ldr-pink); color: var(--ldr-brand-dark); transform: translateY(-2px); }
.ldr-dash-outbtn--sm { padding: 10px 16px; font-size: 14px; line-height: 1.6; }
.ldr-dash-outbtn--copy { flex: 1 1 110px; padding: 9px 14px; font-size: 14px; }
.ldr-dash-btn--sm { padding: 11px 18px; font-size: 14px; line-height: normal; }
.ldr-dash-btn--sm2 { padding: 12px 22px; font-size: 15px; line-height: 1.6; margin-top: 6px; }
.ldr-dash-btn--gift { flex: 1 1 120px; padding: 10px 16px; font-size: 14px; line-height: 1.6; }

/* Logged out */
.ldr-dash-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.ldr-dash-authcard { padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.ldr-dash-authcard__head { display: flex; flex-direction: column; gap: 8px; }
.ldr-dash-authcard__title { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: 0; }
.ldr-dash-authcard__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ldr-dash-authcard__intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ldr-muted); }
.ldr-dash-authcard__note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ldr-wine); }
.ldr-dash-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ldr-text); cursor: pointer; }
.ldr-dash-check input { width: 16px; height: 16px; accent-color: var(--ldr-brand); cursor: pointer; }
.ldr-dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ldr-dash-tile { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.ldr-dash-tile__txt { display: flex; flex-direction: column; gap: 4px; }
.ldr-dash-tile__txt strong { font-size: 16px; }
.ldr-dash-tile__txt span { font-size: 14px; line-height: 1.5; color: var(--ldr-muted); }

/* Logged in: sidebar */
.ldr-dash-app { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.ldr-dash-side { flex: 0 1 300px; min-width: min(100%, 260px); position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 919px) {
	.ldr-dash-side { flex-basis: 100%; } /* Above the views: as wide as them. */
}
.ldr-dash-user { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.ldr-dash-user__av { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ldr-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.ldr-dash-user__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ldr-dash-user__txt strong { font-size: 16px; }
.ldr-dash-user__txt span { font-size: 13px; color: var(--ldr-wine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldr-dash-nav { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ldr-dash-nav__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: normal; color: var(--ldr-ink); transition: background .2s, color .2s; }
.ldr-dash-nav__item:hover, .ldr-dash-nav__item:focus-visible { background: #FFF1F3; color: var(--ldr-ink); }
.ldr-dash-nav__item[aria-current="page"] { background: var(--ldr-pink); color: var(--ldr-brand-dark); }
.ldr-dash-nav__ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--ldr-pink); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.ldr-dash-nav__label { flex: 1; }
.ldr-dash-nav__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--ldr-r-pill); background: var(--ldr-brand); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ldr-dash-nav__item--out, .ldr-dash-nav__item--out:hover, .ldr-dash-nav__item--out:focus-visible { color: var(--ldr-wine); }
.ldr-dash-nav__item--out .ldr-dash-nav__ic { background: #FFF1F3; }

/* Logged in: views */
.ldr-dash-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ldr-dash-view { display: flex; flex-direction: column; gap: 20px; }
.ldr-dash-panel { padding: clamp(20px, 3.3vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.ldr-dash-panel--16 { gap: 16px; }
.ldr-dash-panel--18 { gap: 18px; }
.ldr-dash-panel__head { display: flex; flex-direction: column; gap: 6px; }
.ldr-dash-panel__head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ldr-muted); }
.ldr-dash-panel__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ldr-dash-panel__bar--end { align-items: flex-end; flex-wrap: wrap; }
.ldr-dash-h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: 0; }
.ldr-dash-muted { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ldr-muted); }
.ldr-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.ldr-dash-stat, .ldr-dash-qcard { transition: transform .35s var(--ldr-ease), box-shadow .35s; }
.ldr-dash-stat:hover, .ldr-dash-qcard:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(180, 60, 80, .14); }
.ldr-dash-stat { padding: 20px 22px; display: flex; align-items: center; gap: 14px; color: var(--ldr-ink); line-height: normal; }
.ldr-dash-stat:hover { color: var(--ldr-ink); }
.ldr-dash-stat__txt { display: flex; flex-direction: column; gap: 2px; }
.ldr-dash-stat__n { font-weight: 800; font-size: 28px; line-height: 1; color: var(--ldr-ink); }
.ldr-dash-stat__label { font-size: 13px; font-weight: 700; color: var(--ldr-wine); }
.ldr-dash-orow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--ldr-cream); border: 1px solid var(--ldr-line-soft); }
.ldr-dash-orow__id { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.ldr-dash-orow__id strong { font-size: 15px; color: var(--ldr-ink); }
.ldr-dash-orow__id span { font-size: 13px; color: var(--ldr-wine); }
.ldr-dash-orow__total { font-size: 15px; min-width: 56px; text-align: right; color: var(--ldr-ink); }
.ldr-dash-orow .ldr-dash-link { align-self: auto; }
.ldr-dash-pill { padding: 5px 11px; border-radius: var(--ldr-r-pill); font-size: 12px; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.ldr-dash-order__head .ldr-dash-pill { line-height: inherit; }
.ldr-dash-pill--crafting { background: var(--ldr-pink); color: var(--ldr-brand-dark); }
.ldr-dash-pill--sent { background: #E7F6EC; color: #1E7A46; }
.ldr-dash-pill--done { background: #FFF1F3; color: var(--ldr-wine); }
.ldr-dash-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.ldr-dash-qcard { padding: 20px 22px; color: var(--ldr-ink); display: flex; flex-direction: column; gap: 10px; }
.ldr-dash-qcard:hover { color: var(--ldr-ink); }
.ldr-dash-qcard strong { font-size: 16px; }
.ldr-dash-qcard__text { font-size: 14px; line-height: 1.5; color: var(--ldr-muted); }
.ldr-dash-qcard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ldr-brand-dark); margin-top: auto; }

/* Orders */
.ldr-dash-order { border: 1px solid var(--ldr-line-soft); border-radius: 18px; overflow: hidden; }
.ldr-dash-order__head { width: 100%; line-height: normal; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: #fff; cursor: pointer; list-style: none; transition: background .2s; }
.ldr-dash-order__head::-webkit-details-marker { display: none; }
.ldr-dash-order__head::marker { content: ""; }
.ldr-dash-order__head:hover { background: var(--ldr-cream); }
.ldr-dash-order__chev { color: var(--ldr-accent-soft); font-size: 14px; }
.ldr-dash-order__chev::before { content: "▼"; }
.ldr-dash-order[open] .ldr-dash-order__chev::before { content: "▲"; }
.ldr-dash-order__body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--ldr-cream); border-top: 1px solid var(--ldr-line-soft); }
.ldr-dash-line { display: flex; gap: 12px; align-items: center; padding-top: 12px; }
.ldr-dash-line__media { flex: none; position: relative; width: 52px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #FFF1F3; }
.ldr-dash-line__media img, .woocommerce-page .ldr-dash-line__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ldr-dash-line__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ldr-dash-line__txt a, .ldr-dash-line__txt strong { color: var(--ldr-ink); font-weight: 800; font-size: 14px; }
.ldr-dash-line__txt a:hover { color: var(--ldr-brand-dark); }
.ldr-dash-line__txt span { font-size: 13px; color: var(--ldr-wine); }
.ldr-dash-line__total { font-size: 14px; }
.ldr-dash-order__info { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ldr-text); padding-top: 4px; overflow-wrap: anywhere; }
.ldr-dash-order__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* My gifts */
.ldr-dash-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.ldr-dash-gift { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--ldr-line-soft); background: #fff; }
.ldr-dash-gift__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #FFF1F3; }
.ldr-dash-gift__media img, .woocommerce-page .ldr-dash-gift__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ldr-dash-gift__media .ldr-dash-pill { position: absolute; left: 12px; top: 12px; }
.ldr-dash-gift__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.ldr-dash-gift__body > strong { font-size: 16px; line-height: 1.3; }
.ldr-dash-gift__meta { font-size: 13px; color: var(--ldr-wine); }
.ldr-dash-gift__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ldr-dash-note { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: #FFF1F3; border: 1px solid var(--ldr-line); font-size: 13px; line-height: 1.55; color: var(--ldr-text); }
.ldr-dash-note > span:first-child { font-size: 16px; line-height: 1.3; }
.ldr-dash-note strong { overflow-wrap: anywhere; }

/* Saved dates */
.ldr-dash-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; transition: gap .2s; }
.ldr-dash-more:hover { gap: 12px; }
.ldr-dash-saved { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ldr-card.ldr-dash-scard { position: relative; border-radius: 20px; box-shadow: none; transition: transform .35s var(--ldr-ease), box-shadow .35s; }
.ldr-card.ldr-dash-scard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(180, 60, 80, .12); }
.ldr-dash-scard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #FFF1F3; }
.ldr-dash-scard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ldr-save.ldr-dash-scard__save { top: 12px; right: 12px; padding: 7px 12px; font-size: 12px; }
.ldr-save.ldr-dash-scard__save.is-saved:hover { background: var(--ldr-brand-dark); transform: none; }
.ldr-dash-scard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ldr-dash-scard__body a { color: var(--ldr-ink); font-weight: 800; font-size: 16px; line-height: 1.3; }
.ldr-dash-scard__body a:hover { color: var(--ldr-brand-dark); }
.ldr-dash-scard__body span { font-size: 13px; color: var(--ldr-wine); }
.ldr-dash-empty { padding: clamp(28px, 4vw, 44px) 20px; border-radius: 20px; border: 1px dashed rgba(214, 59, 88, .35); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ldr-dash-empty__ic { font-size: 32px; line-height: 1.6; }
.ldr-dash-empty strong { font-size: 18px; }
.ldr-dash-empty p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ldr-muted); max-width: 380px; }

/* Mini games */
.ldr-dash-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ldr-card.ldr-dash-gcard { position: relative; display: flex; flex-direction: column; border-radius: 20px; box-shadow: none; transition: transform .35s var(--ldr-ease), box-shadow .35s; }
.ldr-card.ldr-dash-gcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(180, 60, 80, .12); }
.ldr-dash-gcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #FFF1F3; }
.ldr-dash-gcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ldr-dash-gcard__body { flex: 1; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ldr-dash-gcard__type { align-self: flex-start; padding: 4px 10px; border-radius: var(--ldr-r-pill); background: var(--ldr-pink); color: var(--ldr-brand-dark); font-size: 12px; font-weight: 800; line-height: 1.5; }
.ldr-dash-gcard__body > strong { font-size: 16px; line-height: 1.3; color: var(--ldr-ink); }
.ldr-dash-gcard__text { font-size: 13.5px; line-height: 1.5; color: var(--ldr-muted); }
.ldr-dash-gcard__actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ldr-dash-gcard__actions .ldr-dash-link, .ldr-dash-player__bar .ldr-dash-link { align-self: auto; }
.ldr-dash-player { gap: 18px; }
.ldr-dash-player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ldr-dash-player__name { flex: 1; min-width: 0; text-align: center; font-size: 15px; color: var(--ldr-wine); outline: none; }
.ldr-dash-player__stage .ldr-ib__sec { gap: 20px; }
.ldr-dash-player__stage .ldr-ib__head h2 { font-size: clamp(22px, 2.6vw, 30px); }
@media (max-width: 600px) {
	.ldr-dash-games { gap: 12px; }
	.ldr-card.ldr-dash-gcard { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
	.ldr-dash-gcard__media { aspect-ratio: auto; min-height: 100%; }
	.ldr-dash-gcard__body { padding: 12px 14px 14px; gap: 4px; }
	.ldr-dash-gcard__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.ldr-dash-gcard__actions { padding-top: 6px; }
	.ldr-dash-gcard__actions .ldr-btn { padding: 8px 18px; font-size: 14px; }
	.ldr-dash-player__name { order: -1; flex-basis: 100%; text-align: left; }
}

/* Account details */
.ldr-dash-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ldr-dash-pwhead { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--ldr-line); margin-top: 4px; }
.ldr-dash-pwhead h3 { margin: 0; padding-top: 8px; font-size: 17px; line-height: 1.25; letter-spacing: 0; }
.ldr-dash-pwhead span { font-size: 13px; color: var(--ldr-wine); }
.ldr-dash-save { align-self: flex-start; line-height: normal; }

@media (prefers-reduced-motion: reduce) {
	.ldr-dash-stat, .ldr-dash-qcard, .ldr-card.ldr-dash-scard, .ldr-card.ldr-dash-gcard, .ldr-dash-outbtn, .ldr-dash-pillbtn { transition: none; }
}
