/* Blankup account: a private atelier, built on the existing account data and actions. */
.account-page {
  padding: 112px 0 104px;
  background:
    radial-gradient(circle at 84% 8%, rgba(181, 137, 75, .11), transparent 25%),
    linear-gradient(180deg, #eeeae1 0, #f7f4ee 310px, #f7f4ee 100%);
}
.account-page > .container { max-width: 1392px; }

/* A brand moment that still belongs to an account page. */
.account-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  min-height: 296px;
  max-width: none;
  margin: 0 0 30px;
  overflow: hidden;
  background: #211b15;
  border: 1px solid rgba(73, 51, 27, .32);
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(54, 38, 22, .13);
}
.account-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #211b15 0%, rgba(33, 27, 21, .98) 42%, rgba(33, 27, 21, .08) 100%);
}
.account-header-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 45px clamp(28px, 5vw, 70px);
}
.account-header .tag {
  margin: 0 0 24px;
  color: #dbb980;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}
.account-title {
  max-width: 750px;
  margin: 0;
  color: #fffaf0;
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.account-title .accent { color: #e5be7e; }
.account-subtitle {
  max-width: 52ch;
  margin: 17px 0 22px;
  color: #d7c8b5;
  font-size: .94rem;
  line-height: 1.7;
}
.account-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 0 0 7px;
  color: #f3d7a7;
  border-bottom: 1px solid rgba(229, 190, 126, .7);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.account-hero-link:hover { gap: 31px; color: #fff9ec; }
.account-header-art {
  min-width: 0;
  background: url('../assets/img/blankup-tshirt-closeup.jpg') center 51% / cover no-repeat;
}

/* The four destinations stay visible without overwhelming the content. */
.account-workspace {
  display: grid;
  grid-template-columns: minmax(235px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 2.8vw, 40px);
}
.account-sidebar {
  position: sticky;
  top: 100px;
  padding: 28px 16px 16px;
  color: #f5ebdc;
  background: #29251f;
  border: 1px solid #332d24;
  border-radius: 13px;
  box-shadow: 0 18px 38px rgba(43, 35, 24, .12);
}
.account-sidebar-eyebrow {
  margin: 0 14px 20px;
  color: #c8b99f;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.account-tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  border: 0;
}
.account-tab {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c7bfb4;
  font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.account-tab:hover { color: #fffaf0; background: rgba(255, 255, 255, .07); }
.account-tab.active {
  color: #2c2114;
  background: #e3bd7e;
  border-color: #f0cf97;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
}
.account-tab-index { opacity: .62; font-size: .65rem; font-variant-numeric: tabular-nums; }
.account-tab-arrow { justify-self: end; opacity: .45; font-size: 1rem; }
.account-tab.active .account-tab-arrow { opacity: 1; }
.account-sidebar-foot {
  display: grid;
  gap: 9px;
  margin: 24px 14px 0;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .17);
}
.account-sidebar-foot > span {
  color: #a99983;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .17em;
}
.account-sidebar-foot a { color: #f4e7cf; font-size: .8rem; font-weight: 700; text-decoration: none; }
.account-sidebar-foot a span { margin-left: 8px; color: #e3bd7e; }

.account-content { min-width: 0; }
.account-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 4px 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid #d9d0c2;
}
.account-panel-kicker {
  color: #916d3e;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.account-panel-heading h2 {
  margin: 7px 0 4px;
  color: #2a241e;
  font-family: var(--bk-font-display, 'Playfair Display', serif);
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
}
.account-panel-heading p { margin: 0; color: #776e63; font-size: .86rem; line-height: 1.6; }
.account-panel-link {
  flex-shrink: 0;
  padding-bottom: 5px;
  color: #78552c;
  border-bottom: 1px solid #af8951;
  font-size: .77rem;
  font-weight: 700;
  text-decoration: none;
}
.account-panel-link span { margin-left: 8px; }
.account-panel.active { animation-duration: .28s; }

/* Profile and account metadata get a deliberate two-column hierarchy. */
.account-card {
  max-width: none;
  padding: clamp(25px, 3vw, 42px);
  background: #fffdf9;
  border-color: #e2d8c9;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(54, 38, 22, .055);
}
.account-card + .account-card { margin-top: 20px; }
.account-card-title { color: #29231d; font-size: 1.6rem; font-weight: 600; }
.account-card-desc { max-width: 65ch; color: #776e63; }
.account-profile-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .78fr); gap: clamp(25px, 4vw, 58px); }
.account-profile-meta { padding: 20px 23px; background: #f4f0e8; border: 1px solid #e8dfd1; border-radius: 8px; }
.account-meta-heading { margin: 0 0 8px; color: #805e35; font-size: .65rem; font-weight: 750; letter-spacing: .13em; }
.account-meta-row { display: grid; gap: 5px; padding: 17px 0; }
.account-meta-label { color: #80776a; font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.account-meta-value { color: #30291f; font-size: .88rem; overflow-wrap: anywhere; }
.account-form label { color: #665c50; font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-size: .76rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.account-form input {
  min-height: 47px;
  padding: 11px 13px;
  background: #fbf8f2;
  border: 1px solid #d8cdbc;
  border-radius: 6px;
}
.account-form input:focus { outline: 2px solid rgba(179, 132, 64, .24); outline-offset: 1px; border-color: #a57739; }
.account-form .btn-primary {
  min-height: 44px;
  padding: 11px 22px;
  background: #30291f;
  border-color: #30291f;
  border-radius: 5px;
  font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* Order and credit numbers now read as useful account information. */
.account-orders-summary { gap: 10px; margin-bottom: 22px; background: transparent; border: 0; overflow: visible; }
.account-summary-stat {
  min-width: 0;
  padding: 18px 18px 19px;
  text-align: left;
  background: #fffdf9;
  border: 1px solid #e2d8c9;
  border-radius: 9px;
  box-shadow: 0 10px 25px rgba(54, 38, 22, .045);
}
.account-summary-stat:first-child { background: #30291f; border-color: #30291f; }
.account-summary-stat:first-child .account-summary-value { color: #fff9ed; }
.account-summary-stat:first-child .account-summary-label { color: #d6c2a1; }
.account-summary-value { color: #30291f; font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-summary-label { margin-top: 7px; color: #786f64; font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-size: .7rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
#creditsSummary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.account-order-card {
  gap: 22px;
  padding: 19px;
  margin-bottom: 11px;
  background: #fffdf9;
  border-color: #e2d8c9;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(54, 38, 22, .045);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.account-order-card:hover { border-color: #cdb58d; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(54, 38, 22, .09); }
.account-order-thumb { width: 92px; height: 104px; background: #eee6d8; border-color: #e6dac7; border-radius: 5px; }
.account-order-top { align-items: center; gap: 10px; }
.account-order-top > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.account-order-id { color: #615649; font-size: .75rem; font-weight: 700; letter-spacing: .015em; }
.account-order-price { color: #30291f; font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-size: 1rem; font-weight: 750; }
.account-order-meta { margin-top: 10px; color: #796f62; font-size: .8rem; line-height: 1.55; }
.account-badge { background: #f4eee3; border-color: transparent; border-radius: 4px; font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-size: .65rem; font-weight: 700; letter-spacing: .03em; }
.account-badge.status-pending { color: #806029; background: #f8edd2; border-color: #ead3a6; }
.account-badge.status-completed, .account-badge.status-paid, .account-badge.status-confirmed { color: #435c43; background: #eaf1e7; border-color: #c9ddc7; }
.account-badge.status-cancelled, .account-badge.status-failed { color: #934b42; background: #f7e9e5; border-color: #ebd0c9; }
.account-order-review { margin-top: 14px; padding-top: 13px; border-top-color: #e8dfd2; }
.account-review-prompt, .account-review-wait { color: #776f64; line-height: 1.5; }

.account-empty { background: #fffdf9; border: 1px dashed #d7c7b0; border-radius: 10px; }
.account-empty-hero { padding: 56px 24px; }
.account-loading { padding: 48px; background: #fffdf9; border: 1px solid #e2d8c9; border-radius: 10px; }
.account-plan-card { padding: 20px 22px; border-color: #e2d8c9; border-radius: 7px; }
.account-plan-price { font-family: var(--bk-font-body, 'Be Vietnam Pro', sans-serif); font-weight: 750; }
.account-credit-row { padding: 18px 0; }
.account-credit-icon { border-radius: 9px; }

/* Compact commerce controls within the Credits panel. */
#voucherPanel { padding: 19px !important; background: #f6f0e6 !important; border: 1px solid #e4d6c1 !important; border-radius: 8px !important; }
#voucherInput { min-height: 42px; background: #fffdf9; border-color: #d4c4aa !important; border-radius: 5px !important; }
#voucherAvailableList label { padding: 7px 0; line-height: 1.5; }
#voucherQuotePreview { background: #fffdf9 !important; border-color: #dccdb6 !important; border-radius: 6px !important; }
#planPurchaseModal .modal-content { border-radius: 9px !important; }

.account-tab:focus-visible, .account-hero-link:focus-visible, .account-panel-link:focus-visible,
.account-sidebar-foot a:focus-visible, .account-review-btn:focus-visible,
.account-empty-cta:focus-visible { outline: 3px solid #d4a95f; outline-offset: 3px; }

@media (max-width: 1050px) {
  .account-workspace { grid-template-columns: minmax(195px, 225px) minmax(0, 1fr); gap: 22px; }
  .account-profile-grid { grid-template-columns: 1fr; gap: 16px; }
  .account-profile-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
  .account-meta-heading { grid-column: 1 / -1; }
  .account-meta-row { border-bottom: 0; }
  #ordersSummary { flex-wrap: wrap; }
  #ordersSummary .account-summary-stat { flex: 1 1 calc(50% - 10px); }
  #creditsSummary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .account-page { padding-top: 91px; }
  .account-header { display: block; min-height: 270px; }
  .account-header::before { background: linear-gradient(90deg, rgba(33, 27, 21, .97), rgba(33, 27, 21, .82) 68%, rgba(33, 27, 21, .42)); }
  .account-header-art { position: absolute; inset: 0 0 0 auto; width: 58%; opacity: .62; }
  .account-header-copy { padding: 32px; }
  .account-title { max-width: 510px; }
  .account-workspace { display: block; }
  .account-sidebar { position: static; padding: 8px; margin-bottom: 22px; border-radius: 9px; }
  .account-sidebar-eyebrow, .account-sidebar-foot { display: none; }
  .account-tabs { flex-direction: row; overflow-x: auto; gap: 5px; scrollbar-width: thin; }
  .account-tab { display: flex; justify-content: center; gap: 7px; width: auto; min-width: max-content; min-height: 43px; padding: 9px 12px; }
  .account-tab-index, .account-tab-arrow { display: none; }
  .account-panel-heading { margin-top: 0; }
}
@media (max-width: 640px) {
  .account-header { min-height: 285px; margin-bottom: 18px; }
  .account-header-copy { padding: 30px 24px; }
  .account-title { font-size: clamp(2.1rem, 8vw, 3rem); }
  .account-subtitle { font-size: .84rem; }
  .account-panel-heading { align-items: start; flex-direction: column; gap: 10px; }
  .account-panel-heading h2 { font-size: 1.85rem; }
  .account-card { padding: 24px 20px; }
  .account-profile-meta { display: block; }
  .account-meta-row { border-bottom: 1px solid #e4dbce; }
  #ordersSummary { flex-direction: row; }
  #ordersSummary .account-summary-stat { flex: 1 1 calc(50% - 10px); border: 1px solid #e2d8c9; }
  #ordersSummary .account-summary-stat:first-child { border-color: #30291f; }
  #creditsSummary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #creditsSummary .account-summary-stat { border: 1px solid #e2d8c9; }
  #creditsSummary .account-summary-stat:first-child { border-color: #30291f; }
  .account-order-card { gap: 13px; padding: 14px; }
  .account-order-thumb { width: 64px; height: 80px; }
  .account-order-top { align-items: flex-start; flex-direction: column; }
  .account-order-price { font-size: .92rem; }
}
@media (max-width: 400px) {
  .account-header-copy { padding: 26px 19px; }
  .account-title { font-size: 2rem; }
  .account-order-card { gap: 10px; }
  .account-order-thumb { width: 52px; height: 70px; }
  .account-summary-stat { padding: 13px; }
  .account-summary-value { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .account-hero-link, .account-tab, .account-order-card { transition: none; }
}

[data-theme="dark"] .account-page { background: #181612; }
[data-theme="dark"] .account-panel-heading { border-bottom-color: #4c453b; }
[data-theme="dark"] .account-panel-heading h2 { color: #f5efe4; }
[data-theme="dark"] .account-panel-heading p { color: #bcb1a2; }
[data-theme="dark"] .account-card,
[data-theme="dark"] .account-summary-stat,
[data-theme="dark"] .account-order-card,
[data-theme="dark"] .account-empty,
[data-theme="dark"] .account-loading { background: #25211c; border-color: #453c31; }
[data-theme="dark"] .account-summary-stat:first-child { background: #d5b178; border-color: #d5b178; }
[data-theme="dark"] .account-summary-stat:first-child .account-summary-value { color: #211b15; }
[data-theme="dark"] .account-summary-stat:first-child .account-summary-label { color: #4e3b25; }
[data-theme="dark"] .account-summary-value,
[data-theme="dark"] .account-card-title,
[data-theme="dark"] .account-order-price { color: #f5efe4; }
[data-theme="dark"] .account-profile-meta,
[data-theme="dark"] #voucherPanel { background: #2e2922 !important; border-color: #514635 !important; }
[data-theme="dark"] .account-meta-value { color: #f0e4d1; }
[data-theme="dark"] .account-form input,
[data-theme="dark"] #voucherInput,
[data-theme="dark"] #voucherQuotePreview { color: #f5efe4; background: #211d18 !important; border-color: #554939 !important; }
[data-theme="dark"] .account-summary-label,
[data-theme="dark"] .account-order-id { color: #bcb1a2; }
