/* Muj ucet – klientska sekce Vanilla Bay. */
.account-main {
  --acc-paper: #fffdf8;
  --acc-line: rgba(47, 33, 25, .14);
  --acc-soft: rgba(47, 33, 25, .62);
  --acc-accent: #8e5a38;
  --acc-ok: #4f7a3c;
  --acc-bad: #a23b2c;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: calc(var(--header-h, 82px) + 40px) 0 96px;
  color: var(--ink);
}
.account-main h1, .account-main h2, .account-main h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.account-main .page-kicker { margin: 0 0 10px; }
.account-loading { color: var(--acc-soft); padding: 32px 0; }
.account-muted { color: var(--acc-soft); line-height: 1.6; margin: 0 0 12px; }
.account-text { line-height: 1.65; margin: 0 0 16px; color: var(--ink-soft, #3c211a); }
.account-footnote { margin-top: 20px; font-size: 13px; }
.account-footnote a, .account-text a, .account-check a, .account-hint a { text-decoration: underline; text-underline-offset: 3px; }
.account-link { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--acc-accent); }
.account-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- neprihlaseny */
.account-guest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-areas: "head box" "perks box"; grid-template-rows: auto 1fr; column-gap: 72px; align-items: start; }
.account-guest-box { grid-area: box; }
.account-guest-head { grid-area: head; padding-top: 12px; }
.account-guest-head h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; margin: 0 0 18px; }
.account-lead { font-size: 18px; line-height: 1.6; max-width: 440px; color: var(--ink-soft, #3c211a); margin: 0; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(47, 33, 25, .07); margin-bottom: 14px; position: relative; z-index: 1; }
.account-switch a { text-align: center; padding: 11px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--acc-soft); transition: background .2s, color .2s; }
.account-switch a.is-active { background: var(--acc-paper); color: var(--ink); box-shadow: 0 1px 4px rgba(47, 33, 25, .12); }
.account-card { background: var(--acc-paper); border: 1px solid var(--acc-line); border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px -30px rgba(47, 33, 25, .35); }
.account-perks { grid-area: perks; list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; max-width: 440px; }
.account-perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; line-height: 1.5; color: var(--acc-soft); font-size: 15px; }
.account-perks b { display: block; color: var(--ink); font-size: 16px; }
.account-perks svg, .account-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-perks li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(142, 90, 56, .1); color: var(--acc-accent); }

/* --------------------------------------------------------------- formulare */
.account-form { display: grid; gap: 16px; }
.account-form h2 { font-size: 26px; margin: 0; }
.account-field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-soft, #3c211a); }
.account-field small { font-weight: 400; color: var(--acc-soft); }
.account-field input, .account-field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(47, 33, 25, .22); border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 16px var(--sans); transition: border-color .15s, box-shadow .15s;
}
.account-field input:focus, .account-field select:focus { outline: none; border-color: var(--acc-accent); box-shadow: 0 0 0 3px rgba(142, 90, 56, .16); }
.account-field input:disabled { background: rgba(47, 33, 25, .04); color: var(--acc-soft); }
.account-field input:user-invalid { border-color: var(--acc-bad); }
.account-password { position: relative; display: block; }
.account-password input { padding-right: 52px; }
.account-reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--acc-soft); cursor: pointer; border-radius: 8px; }
.account-reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.account-reveal[aria-pressed="true"] { color: var(--acc-accent); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-grid-city { grid-template-columns: 1.6fr 1fr; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-row .account-link { margin: 0; }
.account-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.account-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.account-hint { margin: -8px 0 0; font-size: 13px; color: var(--acc-soft); font-weight: 400; }
.account-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.account-submit { width: 100%; justify-content: center; margin-top: 4px; }
.account-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.account-actions .account-submit { width: auto; min-width: 200px; }
.account-alt { text-align: center; margin: 4px 0 0; font-size: 14px; color: var(--acc-soft); }
.account-alt a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.account-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--acc-soft); margin-bottom: 6px; }
.account-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.account-back:hover { color: var(--ink); }
.account-textbtn { border: 0; background: none; padding: 6px 0; font: 700 14px var(--sans); color: var(--acc-accent); cursor: pointer; }
.account-textbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-textbtn.is-danger { color: var(--acc-bad); }
.account-outline { border: 1px solid var(--ink); background: transparent; color: var(--ink); justify-content: center; }
.account-outline:hover { background: var(--ink); color: var(--cream-soft, #fff9e9); }
.account-delete { background: var(--acc-bad); color: #fff; justify-content: center; }

.account-notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55; display: grid; gap: 8px; outline: none; }
.account-notice[hidden] { display: none; }
.account-notice.is-error { background: #fbe9e5; color: #7c2518; }
.account-notice.is-success { background: #ebf3e5; color: #2f5222; }
.account-notice.is-info { background: #f4ecdf; color: var(--ink-soft, #3c211a); }
.account-content > .account-notice { margin-bottom: 18px; }
.account-dev-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.account-dev-link small { font-weight: 400; opacity: .75; }

/* --------------------------------------------------------------- prihlaseny */
.account-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h, 82px) + 24px); }
.account-me { display: flex; align-items: center; gap: 12px; padding: 0 0 20px; margin-bottom: 12px; border-bottom: 1px solid var(--acc-line); min-width: 0; }
.account-me > span:last-child { min-width: 0; display: grid; }
.account-me b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-me small { font-size: 13px; color: var(--acc-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream-soft, #fff9e9); font: 400 18px var(--serif); }
.account-nav { display: grid; gap: 2px; }
.account-nav a, .account-logout { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-soft, #3c211a); border: 0; background: none; font-family: var(--sans); cursor: pointer; text-align: left; width: 100%; }
.account-nav a:hover, .account-logout:hover { background: rgba(47, 33, 25, .05); }
.account-nav a.is-active { background: var(--ink); color: var(--cream-soft, #fff9e9); }
.account-nav a b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(47, 33, 25, .09); font-size: 12px; display: grid; place-items: center; }
.account-nav a.is-active b { background: rgba(255, 255, 255, .18); }
.account-logout { margin-top: 10px; color: var(--acc-soft); border-top: 1px solid var(--acc-line); border-radius: 0; padding-top: 18px; }
.account-logout svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.account-head { margin-bottom: 28px; }
.account-head h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; margin: 0; }
.account-order-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.account-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 22px; border-radius: 12px; background: #f6ead2; font-size: 14px; line-height: 1.5; }

.account-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-tile, .account-panel { background: var(--acc-paper); border: 1px solid var(--acc-line); border-radius: 18px; padding: 24px; }
.account-tile-wide { grid-column: 1 / -1; }
.account-tile h2, .account-panel h2 { font-size: 22px; margin: 0 0 14px; }
.account-big { font: 400 44px/1 var(--serif); margin: 0 0 6px; }
.account-address { margin: 0 0 12px; line-height: 1.6; font-size: 15px; }
.account-help { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-radius: 18px; border: 1px dashed rgba(47, 33, 25, .25); font-size: 15px; }
.account-help .account-link { margin: 0; }

.account-orders { display: grid; gap: 10px; }
.account-order { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 20px; align-items: center; gap: 16px; padding: 14px 16px; background: var(--acc-paper); border: 1px solid var(--acc-line); border-radius: 14px; transition: border-color .2s, transform .2s; }
.account-tile .account-order { background: #fff; }
.account-order:hover { border-color: rgba(47, 33, 25, .4); }
.account-order-thumbs { display: flex; }
.account-order-thumbs img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #f6f0e4; border: 2px solid var(--acc-paper); margin-left: -12px; }
.account-order-thumbs img:first-child { margin-left: 0; }
.account-order-main { display: grid; gap: 2px; min-width: 0; }
.account-order-main b { font-size: 15px; }
.account-order-main small { color: var(--acc-soft); font-size: 13px; }
.account-order-total { font-weight: 700; white-space: nowrap; }
.account-order-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--acc-soft); }
.account-status { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #f1e6d3; color: #6f4a26; }
.account-status.is-processing { background: #e5eef6; color: #2c4d6b; }
.account-status.is-completed { background: #e3efdb; color: #355a26; }
.account-status.is-cancelled, .account-status.is-failed, .account-status.is-refunded { background: #f6e1dc; color: #7c2518; }
.account-status.is-pending { background: #fbeccb; color: #6d4c0c; }

.account-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0 0 24px; counter-reset: step; }
.account-steps li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--acc-soft); text-align: center; }
.account-steps li span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(47, 33, 25, .25); background: var(--cream, #f7edcf); position: relative; z-index: 1; }
.account-steps li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: rgba(47, 33, 25, .18); }
.account-steps li:first-child::before { display: none; }
.account-steps li.is-done { color: var(--ink); font-weight: 700; }
.account-steps li.is-done span { border-color: var(--acc-ok); background: var(--acc-ok); }
.account-steps li.is-done::before { background: var(--acc-ok); }
.account-steps li.is-current span { box-shadow: 0 0 0 4px rgba(79, 122, 60, .2); }

.account-order-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.account-items { list-style: none; padding: 0; margin: 0; }
.account-items li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--acc-line); }
.account-items img, .account-noimg { width: 60px; height: 60px; object-fit: contain; border-radius: 12px; background: #f6f0e4; }
.account-items span { display: grid; gap: 3px; min-width: 0; }
.account-items a { font-weight: 700; }
.account-items a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-items small { color: var(--acc-soft); font-size: 13px; }
.account-sum { margin: 12px 0 0; display: grid; gap: 8px; }
.account-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.account-sum dt small { color: var(--acc-soft); display: block; font-size: 12px; }
.account-sum dd { margin: 0; white-space: nowrap; }
.account-sum .is-total { border-top: 1px solid var(--acc-line); padding-top: 12px; margin-top: 4px; font: 400 24px var(--serif); }
.account-reorder { margin-top: 20px; width: 100%; justify-content: center; }
.account-order-side h2 { font-size: 18px; margin: 0 0 6px; }
.account-order-side h2 ~ h2 { margin-top: 18px; }
.account-order-links { display: grid; gap: 2px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--acc-line); }

.account-addrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-addr { background: var(--acc-paper); border: 1px solid var(--acc-line); border-radius: 18px; padding: 22px; display: grid; align-content: start; gap: 10px; }
.account-addr-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; flex-wrap: wrap; }
.account-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.account-tags span { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(142, 90, 56, .12); color: var(--acc-accent); }
.account-addr .account-address { margin: 0; color: var(--ink-soft, #3c211a); }
.account-addr-actions { display: flex; gap: 18px; margin-top: 4px; }
.account-addr-new { place-content: center; justify-items: center; min-height: 190px; border-style: dashed; background: transparent; font-weight: 700; color: var(--acc-soft); }
.account-addr-new span { font: 300 40px/1 var(--serif); }
.account-addr-new:hover { color: var(--ink); border-color: rgba(47, 33, 25, .45); }
.account-address-form { max-width: 620px; }
.account-company { border: 1px solid var(--acc-line); border-radius: 12px; padding: 0 16px; }
.account-company summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14px; }
.account-company[open] { padding-bottom: 16px; }
.account-company[open] > .account-field { margin-bottom: 14px; }

.account-favs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-fav { position: relative; background: var(--acc-paper); border: 1px solid var(--acc-line); border-radius: 18px; overflow: hidden; }
.account-fav a { display: grid; }
.account-fav img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 16px; }
.account-fav a > span { display: grid; gap: 4px; padding: 14px 16px 18px; }
.account-fav b { font: 400 18px/1.2 var(--serif); }
.account-fav small { font-weight: 700; font-size: 14px; }
.account-fav .card-fav { position: absolute; top: 10px; right: 10px; }

.account-stack { display: grid; gap: 16px; max-width: 640px; }
.account-danger { border-color: rgba(162, 59, 44, .35); }
.account-danger h2 { color: var(--acc-bad); }

.account-empty { text-align: center; padding: 48px 24px; background: var(--acc-paper); border: 1px solid var(--acc-line); border-radius: 18px; display: grid; justify-items: center; gap: 6px; }
.account-empty img { width: 56px; height: 56px; margin-bottom: 8px; }
.account-empty h3 { font-size: 26px; margin: 0; }
.account-empty p { color: var(--acc-soft); max-width: 380px; line-height: 1.6; margin: 0 0 14px; }

/* ------------------------------------------------------------------ mobil */
@media (max-width: 960px) {
  .account-guest { grid-template-columns: 1fr; grid-template-areas: "head" "box" "perks"; grid-template-rows: auto; }
  .account-guest-head { padding: 0 0 24px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .account-side, .account-content { min-width: 0; }
  .account-side { position: static; }
  .account-me { padding-bottom: 14px; margin-bottom: 0; border: 0; }
  .account-nav { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0 0 6px; scroll-snap-type: x proximity; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a, .account-logout { flex: 0 0 auto; width: auto; padding: 9px 14px; border: 1px solid var(--acc-line); border-radius: 999px; font-size: 14px; scroll-snap-align: start; }
  .account-nav svg, .account-logout svg { width: 18px; height: 18px; }
  .account-logout { margin: 0; padding-top: 9px; border-top: 1px solid var(--acc-line); border-radius: 999px; }
  .account-favs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .account-main { width: calc(100vw - 32px); padding-top: calc(var(--header-h, 72px) + 16px); padding-bottom: 72px; }
  .account-guest-head h1 { font-size: 44px; }
  .account-lead { font-size: 16px; }
  .account-card { padding: 22px 18px; border-radius: 18px; }
  .account-grid, .account-grid-city, .account-tiles, .account-addrs, .account-order-grid { grid-template-columns: 1fr; }
  .account-tile, .account-panel, .account-addr { padding: 20px 18px; }
  .account-order { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "status go"; gap: 6px 12px; }
  .account-order-thumbs { display: none; }
  .account-order-main { grid-area: main; }
  .account-order-total { grid-area: total; justify-self: end; }
  .account-order .account-status { grid-area: status; justify-self: start; }
  .account-order-go { grid-area: go; justify-self: end; }
  .account-favs { gap: 10px; }
  .account-fav b { font-size: 16px; }
  .account-actions .account-submit { width: 100%; }
  .account-help { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .account-main * { transition: none !important; } }
.account-fav .card-fav { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(47, 33, 25, .12); color: #8d3b31; cursor: pointer; }
.account-fav .card-fav svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.req { margin-left: 2px; color: #a4562b; font-weight: 700; }
